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

115 lines
338 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[4496],{26227:function(Fe,dt,ie){"use strict";ie.d(dt,{Z:function(){return Je}});var ae=ie(54476),Te=ie(59301),Ze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},_e=Ze,ve=ie(7657),Ie=function(je,He){return Te.createElement(ve.Z,(0,ae.Z)({},je,{ref:He,icon:_e}))},Se=Te.forwardRef(Ie),Je=Se},41464:function(Fe,dt,ie){"use strict";ie.d(dt,{Z:function(){return Je}});var ae=ie(54476),Te=ie(59301),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"},_e=Ze,ve=ie(7657),Ie=function(je,He){return Te.createElement(ve.Z,(0,ae.Z)({},je,{ref:He,icon:_e}))},Se=Te.forwardRef(Ie),Je=Se},40862:function(Fe,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},60803:function(){"use strict";function Fe(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(Fe.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(Fe.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(Fe.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(Fe.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 Fe))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 x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var dt=[];function ie(ne,a){var y=dt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=dt.pop();return ne===void 0?new go.Point:ne}function Te(ne){dt.push(ne)}function Ze(ne,a,y,x,b,E,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=(E-ee)/ge,Le=E-le*b;re=ne,se=le*re+Le}else if(ge===0){var Ee=(a-x)/oe,et=a-Ee*ne;re=b,se=Ee*re+et}else{var Ee=(a-x)/oe,le=(E-ee)/ge,et=a-Ee*ne,Le=E-le*b;re=(Le-et)/(Ee-le),se=Ee*re+et}return te.x=re,te.y=se,te}function _e(ne,a,y,x,b,E,z,ee,te,oe,ge,re,se,le){var Le=1-te,Ee=te,et=ne*Le+y*Ee,St=a*Le+x*Ee,Nt=y*Le+b*Ee,Lt=x*Le+E*Ee,it=b*Le+z*Ee,Pt=E*Le+ee*Ee,yn=et*Le+Nt*Ee,pn=St*Le+Lt*Ee,wn=Nt*Le+it*Ee,Fn=Lt*Le+Pt*Ee,Jn=yn*Le+wn*Ee,Zn=pn*Le+Fn*Ee;oe.x=et,oe.y=St,ge.x=yn,ge.y=pn,re.x=Jn,re.y=Zn,se.x=wn,se.y=Fn,le.x=it,le.y=Pt}var ve=new go.Spot(.156,.156),Ie=new go.Spot(.844,.844),Se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Fe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*Se,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),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 x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),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 x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*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 x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=ve,b.spot2=Ie,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),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,Se*a,0,a,(1-Se)*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,Se*y,(1-Se)*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,Se*y,Se*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-Se)*a,0,0,(1-Se)*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 Fe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.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&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Fe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.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&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new Fe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.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&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Fe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.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&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new Fe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.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())):E.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&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Je=[];function Oe(){var ne=Je.pop();return ne===void 0?[]:ne}function je(ne){ne.length=0,Je.push(ne)}function He(ne){for(var a=Oe(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function qe(ne){var a=Ve(ne),y=Oe();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return je(a),y}function Ve(ne){for(var a=He(ne),y=Oe(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(x+z-1)%b],ge=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Ze(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],je(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=He(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=He(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=He(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=He(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=He(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=He(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=He(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=Ve(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=Ve(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=Ve(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=Ve(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=Ve(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=Ve(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),je(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=qe(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=qe(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=qe(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=qe(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=qe(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=qe(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Fe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Fe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,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,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new Fe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,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())),E.spot1=ve,E.spot2=Ie,E.defaultStretch=go.GraphObject.Uniform,E}),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 x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new Fe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Fe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=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,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=Se/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Fe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+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,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-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,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Fe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+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,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-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,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Fe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=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 E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/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,E,.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,E,.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 Fe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Fe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Fe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*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,Se*a,0,a,(.5-Se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+Se/2)*y,Se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(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 x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.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 E=.2,z=.3,ee=0,te=E*Se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*Se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*Se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.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 E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.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+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=Se*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=Se*.4;var oe=ae(),ge=ae(),re=ae(),se=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,ge,re,se,se);var le=ae(),Le=ae(),Ee=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,se,se,Ee,le,Le);var et=ae(),St=ae(),Nt=ae();_e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,et,St,Nt,se,se);var Lt=ae(),it=ae(),Pt=ae();return _e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,se,se,Pt,Lt,it),te.add(new go.PathSegment(go.PathSegment.Move,Pt.x*a,Pt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Lt.x*a,Lt.y*y,it.x*a,it.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*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,Pt.x*a,Pt.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,Ee.x*a,Ee.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,le.x*a,le.y*y,Le.x*a,Le.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Nt.x*a,Nt.y*y,et.x*a,et.y*y,St.x*a,St.y*y).close()),Te(oe),Te(ge),Te(re),Te(se),Te(le),Te(Le),Te(Ee),Te(et),Te(St),Te(Nt),Te(Lt),Te(it),Te(Pt),x.defaultStretch=go.GraphObject.Uniform,x}),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 Fe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.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 x=new go.Geometry,b=Se*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),re=ae(),se=new go.PathFigure((z-E)*a,ee*y,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,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);_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,ge,re);var Le=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,(Le.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(Le.x*.1+.9)*a,(Le.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,Le.x*a,Le.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*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+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=Se*.35;var Ee=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var et=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(et),Te(te),Te(oe),Te(ge),Te(re),Te(le),Te(Le),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*Se,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*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,E=0,z=-.125,ee=b*Se;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*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 x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*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,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*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 x=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 x.defaultStretch=go.GraphObject.Uniform,x}),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 x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Fe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Fe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*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,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ze(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),Te(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new Fe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Fe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,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,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ze(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),Te(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Fe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/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,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),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=Ze(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ze(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),Te(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Fe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Fe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=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,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var re=Ze(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(re.x,re.y),re=Ze(.7,te/y,1,.5,0,z/y,1,z/y,re),oe.spot2=new go.Spot(re.x,re.y),Te(re),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Fe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/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,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),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=Ze(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Te(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Fe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Fe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=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,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var re=Ze(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(re.x,re.y),Te(re),oe}),go.Shape.setFigureParameter("Pointer",0,new Fe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=Ze(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Te(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Fe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=Ze(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Te(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Fe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/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,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),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=Ze(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Te(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Fe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=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,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),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=Ze(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),Te(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Fe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=Se*.5,E=Se*.1,z=new go.PathFigure(0,.9*y,!0);return x.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+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.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 E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.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 E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.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 E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=Se*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,Se*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-Se*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-Se*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-Se*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-Se*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=Se*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,Se*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-Se*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-Se*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-Se*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-Se*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=Se*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-Se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-Se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,Se*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+Se*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+Se*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=Se*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-Se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-Se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,Se*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-Se*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-Se*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.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 E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.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 E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=Se*b,ee=Se*E,te=.5,oe=.1,ge=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var re=.05,se=Se*re;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return x.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=Se*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=Se*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=Se*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=Se*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)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Fe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.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 E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=Se*.5,E=Se*.1,z=new go.PathFigure(a,.1*y,!0);x.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+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*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-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*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+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*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+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=Se*.5,E=Se*.1,z=new go.PathFigure(a,.1*y,!0);x.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+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*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-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*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+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.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()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=Se*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*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+E)*a,0,a,(.2-E)*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+E)*y,(.8+E)*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-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.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()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.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 E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);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());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=Se*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.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((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.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 E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=Se*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+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)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.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()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.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 E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.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 E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.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 x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=Se*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.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()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var 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,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.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 E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.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 x.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)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.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)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=Se*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=Se*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=Se*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.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+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=Se*.5,E=Se*.4,z=Se*.1,ee=.1,te=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*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-E)*y));var re=new go.PathFigure((te+ee)*a,oe*y,!0);return x.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)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=Se*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*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+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=Se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=Se*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=Se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.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);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*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+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=Se*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=Se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.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 x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=Se*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=Se*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.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)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=Se*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,re=(E-y)/2,se=new go.PathFigure(te*a+ge,(oe+ee)*y+re,!0);x.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=Se*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+ge,(oe+ee)*y+re,!0);x.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=Se*.2,ee=.2,te=.5,oe=.5;var Le=new go.PathFigure((te-ee)*a+ge,oe*y+re,!0);x.add(Le),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)*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)*a+ge,oe*y+re,(te-z)*a+ge,(oe+ee)*y+re,(te-ee)*a+ge,(oe+z)*y+re)),z=Se*.4,ee=.4,te=.8,oe=.5;var Ee=new go.PathFigure(te*a+ge,(oe-ee)*y+re,!0);x.add(Ee),Ee.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)),Ee.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)),Ee.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)),Ee.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=Se*.8,ee=.8,te=1,oe=.5;var et=new go.PathFigure(te*a+ge,(oe-ee)*y+re,!0);return x.add(et),et.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)),et.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)),et.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)),et.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()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.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 E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.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 x.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)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=Se*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),re=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,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);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*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+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.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=Se*.3,E=.3,_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.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-E)*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+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,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 x.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()),Te(te),Te(oe),Te(ge),Te(re),Te(se),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(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 E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.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()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.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()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.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()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*Se,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,re=.5,se=.5,le=0,Le=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,re*y,ge*a,.7*y,ge*a,re*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+E)*a,(le+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Le.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Le.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.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 x.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)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.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 E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.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,Le=ge*se,Ee=ge*le;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(Le+se)/2)*a,(te+(le+Ee)/2)*y,(ee-se)*a,(te+Ee)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-se)*a,(te-Ee)*y,(ee-Le)*a,(te-le)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+Le)*a,(te-le)*y,(ee+se)*a,(te-Ee)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+Ee)*y,(ee+(Le+se)/2)*a,(te+(le+Ee)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var et=new go.PathFigure(.2*a,y,!1);x.add(et),et.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var St=new go.PathFigure(.8*a,y,!1);return x.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.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 E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.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 E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*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)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.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 E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=Se*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.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 E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.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 E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.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 E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=Se*.1,te=.2,oe=.9,ge=new go.PathFigure((te-z)*a,oe*y,!0);x.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=Se*.1,te=.8,oe=.9;var re=new go.PathFigure((te-z)*a,oe*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.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);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=Se*.1,ge=.1,re=.9,se=new go.PathFigure((ge-te)*a,re*y,!0);x.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=Se*.1,ge=.4,re=.9;var le=new go.PathFigure((ge-te)*a,re*y,!0);return x.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)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.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 E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,re=Se*.05,se=.175,le=.95,ee=new go.PathFigure((se-ge)*a,le*y,!0);x.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=Se*.05,se=.375,le=.95,te=new go.PathFigure((se-ge)*a,le*y,!0);x.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=Se*.05,se=.625,le=.95,oe=new go.PathFigure((se-ge)*a,le*y,!0);x.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=Se*.05,se=.825,le=.95,Le=new go.PathFigure((se-ge)*a,le*y,!0);x.add(Le),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-re)*y,(se-re)*a,(le-ge)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+re)*a,(le-ge)*y,(se+ge)*a,(le-re)*y)),Le.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+re)*y,(se+re)*a,(le+ge)*y)),Le.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 Ee=new go.PathFigure(0,y,!1);return x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.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=Se*.05,oe=.35,ge=.775,re=new go.PathFigure((oe-ee)*a,ge*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.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)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=Se*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.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 E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=Se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=Se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=Se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*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)),x}),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 x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.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 E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.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 E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),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 x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.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)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.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 E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),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 x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.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 E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.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);x.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 x.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()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.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()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.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 E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.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);x.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 x.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()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.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 E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.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);x.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 x.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()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.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()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.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 E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.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);x.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 x.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()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*Se,z=new go.PathFigure(b,0,!1);x.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-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.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);x.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 x.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()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*Se,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,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 x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.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 E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),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 x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.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 E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*Se,z=new go.PathFigure(a*.62,y*.475,!0);return x.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-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),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()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.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-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),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-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.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()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.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-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),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-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.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-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),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-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),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-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.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()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.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()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.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 E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.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()),x}),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")},75544: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 Fe={},dt="5.0",ie={},ae=null,Te=!1,Ze=!1,_e=null,ve=!1,Ie=null,Se=null,Je=0;Je<arguments.length;Je++){var Oe=arguments[Je];if(Oe!==null)switch(typeof Oe){case"number":dt=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?dt=Oe:_e=Oe;break;case"object":typeof Oe.is3D!="undefined"?ae=Oe:ie=Oe;break;case"boolean":Te=Oe,Ze=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ie.material_id!==void 0&&!Ze&&(Te=!0)),_e!==null&&ie.id===void 0&&(ie.id=_e);var je="",He="",qe=!1,Ve=null,ne=null,a=null,y=!1,x=null,b=null,E=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};Fe.setHTML5Codebase=function(ye,ze){Se=ye,Fn(ye,ze)},Fe.setJavaCodebase=Fe.setJavaCodebaseVersion=Fe.isCompiledInstalled=Fe.setPreCompiledScriptPath=Fe.setPreCompiledResourcePath=function(){},Fe.setHTML5CodebaseVersion=function(ye,ze){var Re=parseFloat(ye);if(Re!==NaN&&Re<5){console.log("The GeoGebra HTML5 codebase version "+Re+" is deprecated. Using version latest instead.");return}Ie=ye,wn(ye,ze)},Fe.getHTML5CodebaseVersion=function(){return ne},Fe.getParameters=function(){return ie},Fe.setFontsCSSURL=function(ye){z=ye},Fe.setGiacJSURL=function(ye){},Fe.setJNLPFile=function(ye){je=ye},Fe.setJNLPBaseDir=function(ye){},Fe.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ze="auto",Re=ie.id,xt,$e=!1,ht=0;ht<arguments.length;ht++){var de=arguments[ht];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ze=de:Re=arguments[ht]):typeof de=="boolean"?$e=de:de instanceof HTMLElement&&(xt=de)}Xe();function Xe(){if(!ve){setTimeout(Xe,200);return}ze=yn(ze);var Et=xt||document.getElementById(Re);if(!Et){console.log("possibly bug on ajax loading? ");return}if(Fe.removeExistingApplet(Et,!1),ie.width===void 0&&Et.clientWidth&&(ie.width=Et.clientWidth),ie.height===void 0&&Et.clientHeight&&(ie.height=Et.clientHeight),!(ie.width&&ie.height)&&ze==="html5"&&(delete ie.width,delete ie.height),Ve=ze,ze==="screenshot")St(Et,ie);else{var on=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?on=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(on=(!oe()||ye())&&ge()),on?(Ve="screenshot",Lt(Et,ie,$e,ze)):et(Et,ie,$e)}}};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}Fe.getViews=function(){return ae},Fe.isJavaInstalled=function(){return!1};var re=function(ye){var ze=function(ht){var de=JSON.parse(ht),Xe=function(_t){return _t.type=="G"||_t.type=="E"},Et=de.elements?de.elements.filter(Xe)[0]:de;if(!Et||!Et.url){Re();return}ie.fileName=Et.url,se(Et.settings||{}),ae.is3D=!0;var on="https://www.geogebra.org/images/";Fe.setPreviewImage(x||Et.previewUrl,on+"GeoGebra_loading.png",on+"applet_play.png"),ye()},Re=function(){ie.onError&&ie.onError(),Jn("Error: Fetching material (id "+ie.material_id+") failed.",ie)},xt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",$e="/materials/"+ie.material_id+"?scope=basic";le("https://"+xt+"/api/proxy.php?path="+encodeURIComponent($e),ze,Re)};function se(ye){var ze=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Re){ye[Re]=!!ye[Re]}),ze.forEach(function(Re){ie[Re]===void 0&&ye[Re]!==void 0&&(ie[Re]=ye[Re])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function le(ye,ze,Re){var xt=new XMLHttpRequest;xt.open("GET",ye),xt.onload=function(){ze(xt.responseText)},xt.onerror=Re,xt.send()}Fe.isHTML5Installed=function(){return!0},Fe.getLoadedAppletType=function(){return Ve},Fe.setPreviewImage=function(ye,ze,Re){x=ye,b=ze,E=Re},Fe.removeExistingApplet=function(ye,ze){var Re;typeof ye=="string"&&(ye=document.getElementById(ye)),Ve=null;var xt=null;for(Re=0;Re<ye.childNodes.length;Re++){var $e=ye.childNodes[Re],ht=$e.className;ht==="applet_screenshot"?ze?($e.style.display="block",Ve="screenshot"):$e.style.display="none":ht!=="applet_scaler prerender"&&(ye.removeChild($e),xt=ht&&ht.indexOf("appletParameters")!=-1?$e.id:null,Re--)}var de=ie.id!==void 0?ie.id:xt,Xe=window[de];Xe&&typeof Xe.getBase64=="function"&&(Xe.remove(),window[de]=null)},Fe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=Fe.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},Fe.startAnimation=function(){var ye=Fe.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},Fe.stopAnimation=function(){var ye=Fe.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},Fe.getAppletObject=function(){var ye=ie.id!==void 0?ie.id:"ggbApplet";return window[ye]},Fe.resize=function(){};var Le=function(ye,ze,Re){var xt=document.createElement("param");xt.setAttribute("name",ze),xt.setAttribute("value",Re),ye.appendChild(xt)},Ee=function(ye){return ye&&ye!=="false"},et=function(ye,ze,Re){te(ne)<=4.2&&(Re=!0);var xt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(xt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var $e=document.createElement("div");$e.classList.add("appletParameters","notranslate");var ht=ze.width,de=ze.height;if(ze.disableAutoScale=ze.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ze.disableAutoScale,ze.width!==void 0)if(te(ne)<=4.4)Ee(ze.showToolBar)&&(ze.height-=7),Ee(ze.showAlgebraInput)&&(ze.height-=37),ze.width<605&&Ee(ze.showToolBar)&&(ze.width=605,ht=605);else{var Xe=100;(Ee(ze.showToolBar)||Ee(ze.showMenuBar))&&(ze.hasOwnProperty("customToolBar")&&(ze.customToolbar=ze.customToolBar),Xe=Ee(ze.showMenuBar)?245:155),ht<Xe&&(ze.width=Xe,ht=Xe)}$e.style.border="none",$e.style.display="inline-block";for(var Et in ze)ze.hasOwnProperty(Et)&&Et!=="appletOnLoad"&&$e.setAttribute("data-param-"+Et,ze[Et]);z&&$e.setAttribute("data-param-fontscssurl",z),Fe.resize=function(){GGBAppletUtils.responsiveResize(ye,ze)},window.addEventListener("resize",function(tn){Fe.resize()});var on=typeof ze.appletOnLoad=="function"?ze.appletOnLoad:function(){};if(!Re&&ze.width!==void 0){ze.hasOwnProperty("showSplash")||$e.setAttribute("data-param-showSplash","false");var _t=ye.querySelector(".applet_scaler.prerender"),zn=_t!==null;if(zn)var Tn=_t.querySelector(".ggb_preview");else{var Tn=Pt(ht,de,ze.borderColor,!1);_t=document.createElement("div"),_t.className="applet_scaler",_t.style.position="relative",_t.style.display="block",_t.style.width=ht+"px",_t.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_t,"66%"),te(ne)>=5?(ze.appletOnLoad=function(tn){var Mt=ye.querySelector(".ggb_preview");Mt&&Mt.parentNode.removeChild(Mt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(_t),window.GGBT_wsf_view&&$(window).trigger("resize"),on(tn)},zn||_t.appendChild(Tn)):$e.appendChild(Tn),_t.appendChild($e),zn||ye.appendChild(_t),setTimeout(function(){Fe.resize()},1)}else{var $t=document.createElement("div");$t.className="applet_scaler",$t.style.position="relative",$t.style.display="block",$t.appendChild($e),ye.appendChild($t),ze.appletOnLoad=function(tn){Fe.resize(),on(tn)}}function Un(tn,Mt){Mt&&typeof Mt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(tn,Mt.appletOnLoad):renderGGBElement(tn),Jn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Mt)}function Qn(tn,Mt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:tn,params:Mt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(qn){Un(qn.article,qn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(tn.className+=" geogebraweb")):Un(tn,Mt)}if(xt){scriptLoadStarted=!0;for(var In=0;In<$e.childNodes.length;In++){var Xn=$e.childNodes[In].tagName;Xn==="TABLE"&&($e.removeChild($e.childNodes[In]),In--)}if(ggbHTML5LoadedScript!==null){var On=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');On!=null&&On.parentNode.removeChild(On)}var Ut=document.createElement("script"),Yt=function(){Qn($e,ze)};Ut.src=He+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Ut.src,Jn("GeoGebra HTML5 codebase loaded: '"+He+"'.",ze),!Se&&(!Ie||Ie=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Yt()):He.requirejs?__webpack_require__.e(7989).then(function(){var tn=[__webpack_require__(87989)];Yt.apply(null,tn)}.bind(this)).catch(__webpack_require__.oe):(Ut.onload=Yt,ye.appendChild(Ut))}else Qn($e,ze);ze.height=de,ze.width=ht},St=function(ye,ze,Re){var xt=Pt(ze.width,ze.height,ze.borderColor,Re),$e=document.createElement("div");$e.style.position="relative",$e.style.display="block",$e.style.width=ze.width+"px",$e.style.height=ze.height+"px",$e.className="applet_screenshot applet_scaler"+(Re?" applet_screenshot_play":""),$e.appendChild(xt);var ht=GGBAppletUtils.getScale(ze,ye,Re);Re?(ye.appendChild(it()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner($e,"66%"),ye.appendChild($e),ht!==1&&!isNaN(ht)&&(GGBAppletUtils.scaleElement($e,ht),$e.style.width=ze.width+"px",$e.style.height=ze.height+"px",$e.parentNode.style.width=ze.width*ht+"px",$e.parentNode.style.height=ze.height*ht+"px"),Fe.resize=function(){Nt(ye,xt,$e,Re)},window.addEventListener("resize",function(de){Fe.resize()}),Fe.resize()};function Nt(ye,ze,Re,xt){if(ye.contains(ze)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var $e=GGBAppletUtils.getScale(ie,ye,xt);Re.parentNode!==null&&(!isNaN($e)&&$e!==1?(GGBAppletUtils.scaleElement(Re,$e),Re.parentNode.style.width=ie.width*$e+"px",Re.parentNode.style.height=ie.height*$e+"px"):(GGBAppletUtils.scaleElement(Re,1),Re.parentNode.style.width=ie.width+"px",Re.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()}}Fe.onExitFullscreen=function(ye,ze){ze.appendChild(ye)};var Lt=function(ye,ze,Re,xt){St(ye,ze,!0);for(var $e=function(){var Xe=[];for(de=0;de<ye.childNodes.length;de++)Xe.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var Et=window.GGBT_wsf_view.renderFullScreen(ye,ze.id),on=document.getElementById("fullscreencontainer"),_t=jQuery(ye).find(".fullscreencontent");_t.length>0?(Et.remove(),_t.attr("id","fullscreencontent").show(),jQuery(on).append(_t),window.dispatchEvent(new Event("resize"))):et(Et,ze,!1),window.GGBT_wsf_view.launchFullScreen(on)}else Ve=xt,et(ye,ze,!1);if(!window.GGBT_wsf_view)for(de=0;de<Xe.length;de++)ye.removeChild(Xe[de])},ht=ye.getElementsByClassName("ggb_preview_play"),de=0;de<ht.length;de++)ht[de].addEventListener("click",$e,!1),ht[de].addEventListener("ontouchstart",$e,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},it=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ze='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Re=document.createElement("style");Re.styleSheet?Re.styleSheet.cssText=ze:Re.appendChild(document.createTextNode(ze)),document.getElementsByTagName("head")[0].appendChild(Re)}return ye},Pt=function(ye,ze,Re,xt){var $e=document.createElement("div");$e.className="ggb_preview",$e.style.position="absolute",$e.style.zIndex="90",$e.style.width=ye-2+"px",$e.style.height=ze-2+"px",$e.style.top="0px",$e.style.left="0px",$e.style.overflow="hidden",$e.style.backgroundColor="white";var ht="lightgrey";Re!==void 0&&(Re==="none"?ht="transparent":ht=Re),$e.style.border="1px solid "+ht;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var Xe,Et,on;if(!xt){Xe=document.createElement("img"),Xe.style.position="absolute",Xe.style.zIndex="1001",Xe.style.opacity=1,de.style.opacity=.3,Et=360,Et>ye/4*3&&(Et=ye/4*3),on=Et/5.8,Xe.setAttribute("src",b),Xe.setAttribute("width",Et),Xe.setAttribute("height",on);var _t=(ye-Et)/2,zn=(ze-on)/2;Xe.style.left=_t+"px",Xe.style.top=zn+"px",$e.appendChild(Xe)}}return $e.appendChild(de),$e},yn=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},pn=["web","webSimple","web3d","tablet","tablet3d","phone"],wn=function(ye,ze){if(ne=ye,ze){Fn(ne,!0);return}var Re=!Te;if(Re){var xt=te(ne);!isNaN(xt)&&xt<4.4&&(Re=!1)}var $e,ht;window.location.protocol.substr(0,4)==="http"?$e=window.location.protocol:$e="http:";var de=ne.indexOf("//");de>0?ht=ne:de===0?ht=$e+ne:ht="https://www.geogebra.org/apps/5.2.814.0/";for(var Xe in pn)if(ne.slice(pn[Xe].length*-1)===pn[Xe]||ne.slice((pn[Xe].length+1)*-1)===pn[Xe]+"/"){Fn(ht,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Re&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ee(ie.showToolBar)&&!Ee(ie.showMenuBar)&&!Ee(ie.showAlgebraInput)&&!Ee(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?ht+="webSimple/":ht+="web3d/",Fn(ht,!1)},Fn=function(ye,ze){if(ye.requirejs){He=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),He=ye,ze===null&&(ze=ye.indexOf("http")===-1),qe=ze,a="web.nocache.js",y=!1;var Re=He.split("/");Re.length>1&&(!ze&&Re[Re.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):pn.indexOf(Re[Re.length-2])>=0&&(a=Re[Re.length-2]+".nocache.js")),Re=ye.split("/"),ne=Re[Re.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 xt=parseFloat(ne);xt!==NaN&&xt<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+xt+" is deprecated. Using version latest instead."),wn("5.0",ze))},Jn=function(ye,ze){window.console&&window.console.log&&(!ze||typeof ze.showLogging=="undefined"||ze.showLogging&&ze.showLogging!=="false")&&console.log(ye)};ie.material_id!==void 0?re(Zn):Zn();function Zn(){var ye=dt;Ie!==null?ye=Ie:parseFloat(ye)<5&&(ye="5.0"),wn(ye,!1),Se!==null&&Fn(Se,qe),ve=!0}return Fe},GGBAppletUtils=function(){"use strict";function Fe(){return window.GGBT_wsf_edit!==void 0}function dt(ve,Ie){Ie!=1?(ve.style.transformOrigin="0% 0% 0px",ve.style.webkitTransformOrigin="0% 0% 0px",ve.style.transform="scale("+Ie+","+Ie+")",ve.style.webkitTransform="scale("+Ie+","+Ie+")",ve.style.maxWidth="initial",ve.querySelector(".ggb_preview")!==null&&(ve.querySelector(".ggb_preview").style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ve.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ve.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ve.style.transform="none",ve.style.webkitTransform="none")}function ie(ve,Ie,Se,Je,Oe,je){var He=null;if(je!=null&&je!="")for(var qe=ve.parentNode;qe!=null;)if((" "+qe.className+" ").indexOf(" "+je+" ")>-1){He=qe;break}else qe=qe.parentNode;var Ve=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(He)Ve=He.offsetWidth,ne=Math.max(Je?He.offsetWidth:0,He.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ve=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ve):(Ve=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ve){var z=ve.getBoundingClientRect();z.left>0&&z.left<=Ve&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(x=Ve-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(ve&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ve.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ve&&((Se===void 0||!Se)&&Ie>0&&Ie+y<Ve?Ve=Ie:Ve-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se===void 0||!Se)&&(ne-=E)),{width:Ve,height:ne}}function ae(ve,Ie,Se,Je,Oe){if(ve.isScreenshoGenerator)return 1;var je=Je!==void 0&&Je,He=ve.noScaleMargin!=null&&ve.noScaleMargin,qe=function(ee){return ee&&ee!=="false"},Ve=qe(ve.autoHeight),ne=ie(Ie,ve.width,Se,Ve,je&&window.GGBT_wsf_view||He,Oe),a=parseInt(ne.width),y=ve.width,x=ve.height;if(y===void 0){var b=Ie.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=je?1:ne.height/x;return Se!==void 0&&!Se&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function Te(ve,Ie,Se){var Je=1,Oe,je=!1;if(ve.hasOwnProperty("allowUpscale")&&(je=ve.allowUpscale),ve.hasOwnProperty("scale")&&(Je=parseFloat(ve.scale),(isNaN(Je)||Je===null||Je===0)&&(Je=1),Je>1&&(je=!0)),Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(je=!0),!(ve.hasOwnProperty("disableAutoScale")&&ve.disableAutoScale))Oe=ae(ve,Ie,je,Se,ve.scaleContainerClass);else return Je;return je&&(!ve.hasOwnProperty("scale")||Je===1)?Oe:Math.min(Je,Oe)}function Ze(ve){var Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),Je=ve.getBoundingClientRect(),Oe=(Ie-Je.width)/2,je=(Se-Je.height)/2;je<0&&(je=0),ve.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?ve.style.left="40px":ve.style.left=Oe+"px",ve.style.top=je+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(je<40?ve.style.top="40px":ve.style.top=je+"px",ve.style.left=Oe+"px")}function _e(ve,Ie){var Se=ve.querySelector(".appletParameters");if(Se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ie.id!==Se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ve)}if(Se.parentElement&&/fullscreen/.test(Se.parentElement.className))return;var Je=Te(Ie,ve);Fe()&&Se.setAttribute("data-param-scale",Je);for(var Oe=null,je=0;je<ve.childNodes.length;je++)if(ve.childNodes[je].className!==void 0&&ve.childNodes[je].className.match(/^applet_scaler/)){Oe=ve.childNodes[je];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var He=Ie.id!==void 0?Ie.id:"ggbApplet",qe=window[He];(qe==null||!qe.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(Je)&&Je!==1?(Oe.parentNode.style.width=Ie.width*Je+"px",Oe.parentNode.style.height=Ie.height*Je+"px",dt(Oe,Je)):(dt(Oe,1),Oe.parentNode.style.width=Ie.width+"px",Oe.parentNode.style.height=Ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ze(ve),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Se).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:Fe,positionCenter:Ze,getScale:Te,scaleElement:dt}}();__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 Fe=n.location.search;return Fe.indexOf(J)!=-1||Fe.indexOf(K)!=-1}function q(Fe,dt){}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(Fe){var dt=s[L].bindings;s[L].bindings=function(){for(var ie=dt?dt():{},ae=Fe[webModule.__softPermutationId],Te=O;Te<ae.length;Te++){var Ze=ae[Te];ie[Ze[O]]=Ze[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var Fe=o.createElement(Q);if(Fe.id=L,Fe.style.cssText=R+S,Fe.tabIndex=-1,o.body.appendChild(Fe),t=Fe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var dt=document.compatMode==U?V:W;t.write(dt+X),t.close()}}}function w(Fe){function dt(ae){function Te(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ze=Te();if(Ze){ae();return}function _e(){if(!Ze){if(!Te())return;Ze=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,_e,!1),ve&&clearInterval(ve)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var ve=setInterval(function(){_e()},$)}function ie(ae){var Te=u(),Ze=Te.body,_e=Te.createElement(_);_e.language=ab,_e.crossOrigin=W,_e.src=ae,webModule.__errFn&&(_e.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ze.appendChild(_e)}dt(function(){ie(Fe)})}webModule.__startLoadingFragment=function(Fe){return C(Fe)},webModule.__installRunAsyncCode=function(Fe){var dt=u(),ie=dt.body,ae=dt.createElement(_);ae.language=ab,ae.text=Fe,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(Fe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Fe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Fe){var dt=c[Fe];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function Fe(ve){var Ie=ve.lastIndexOf(rb);Ie==-1&&(Ie=ve.length);var Se=ve.indexOf(sb);Se==-1&&(Se=ve.length);var Je=ve.lastIndexOf(tb,Math.min(Se,Ie));return Je>=O?ve.substring(O,Je+P):W}function dt(ve){if(!ve.match(/^\w+:\/\//)){var Ie=o.createElement(ub);Ie.src=ve+vb,ve=Fe(Ie.src)}return ve}function ie(){var ve=__gwt_getMetaProperty(wb);return ve!=null?ve:W}function ae(){for(var ve=o.getElementsByTagName(_),Ie=O;Ie<ve.length;++Ie)if(ve[Ie].src.indexOf(xb)!=-1)return Fe(ve[Ie].src);return W}function Te(){var ve=o.getElementsByTagName(yb);return ve.length>O?ve[ve.length-P].href:W}function Ze(){var ve=o.location;return ve.href==ve.protocol+zb+ve.host+ve.pathname+ve.search+ve.hash}var _e=ie();return _e==W&&(_e=ae()),_e==W&&(_e=Te()),_e==W&&Ze()&&(_e=Fe(o.location.href)),_e=dt(_e),_e}function C(Fe){return Fe.match(/^\//)||Fe.match(/^[a-zA-Z]+:\/\//)?Fe:webModule.__moduleBase+Fe}function D(){var Fe=[],dt=O,ie=[],ae=[];function Te(ve){var Ie=ae[ve](),Se=ie[ve];if(Ie in Se)return Ie;var Je=[];for(var Oe in Se)Je[Se[Oe]]=Oe;throw r&&r(ve,Je,Ie),null}if(__gwt_isKnownPropertyValue=function(ve,Ie){return Ie in ie[ve]},webModule.__getPropMap=function(){var ve={};for(var Ie in ie)ie.hasOwnProperty(Ie)&&(ve[Ie]=Te(Ie));return ve},webModule.__computePropValue=Te,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ze;try{Ze=Cb;var _e=Ze.indexOf(Db);_e!=-1&&(dt=parseInt(Ze.substring(_e+P),$),Ze=Ze.substring(O,_e))}catch(ve){}return webModule.__softPermutationId=dt,C(Ze+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},52882:function(Fe,dt,ie){"use strict";ie.d(dt,{Ax:function(){return _e},Ds:function(){return ve},KI:function(){return Se},SI:function(){return Ze},f1:function(){return Te}});var ae=ie(26869);function Te(Je){let Oe=!0;if(Je.length>0){for(let je=0;je<Je.length;je++)if(Je[je].compile_success==0||!Je[je].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function Ze(Je,Oe=""){let je=[];for(let He=0;He<Je.length;He++){let qe=Je[He],Ve=Oe?`${Oe}/${qe.name}`:`${qe.name}`;je.push({title:qe.name,type:qe.type,isLeaf:qe.type!=="tree",key:Ve})}return je}function _e(Je,Oe,je){for(let He=0;He<Je.length;He++){let qe=Je[He];if(qe.key===Oe){qe.children=je;break}qe.children&&_e(qe.children,Oe,je)}return Je}function ve(Je,Oe,je){let He;return function(){let qe=this,Ve=arguments,ne=function(){He=null,je||Je.apply(qe,Ve)},a=je&&!He;clearTimeout(He),He=setTimeout(ne,Oe),a&&Je.apply(qe,Ve)}}const Ie=!0,Se=ae.Z.API_SERVER},3353:function(Fe,dt,ie){"use strict";ie.d(dt,{Z:function(){return He}});var ae=ie(59301),Te={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=ie(92310),_e=ie.n(Ze),ve=ie(71418),Ie=ie(2859),Se=ie(97013),Je=ie(31735),Oe=(qe,Ve,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(qe,Ve)).next())}),He=({data:qe,className:Ve,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{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)),qe!=null&&qe.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",qe!=null&&qe.src&&Le()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[qe==null?void 0:qe.visible]);const Le=()=>Oe(void 0,null,function*(){re(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Lt=yield(0,Je.ZJ)(qe==null?void 0:qe.src);z.current.src="",z.current.src=Lt,z.current.onload=function(){Nt()},re(!1),le("")}),Ee=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},et=Lt=>Oe(void 0,null,function*(){re(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const it=yield(0,Se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:qe.title,file:Lt.dataUrl}});it!=null&&it.id&&!E?(yield(0,Se.ZP)(`/api/attachments/${qe.id}/add_subitem.json`,{method:"post",body:{subitem_id:it==null?void 0:it.id,settings:JSON.stringify(Lt.state)}})).status===0&&x():it!=null&&it.id&&x(it),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",re(!1),le("")}),St=()=>{const Lt=document.querySelector('a[href="https://markerjs.com/"]');Lt&&Lt.parentNode&&(Lt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\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(Pt=>{const yn=document.querySelector(Pt.name);yn&&yn.setAttribute("title",Pt.title)})},Nt=()=>{ee.current=new Ie.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",et),ee.current.addEventListener("beforeclose",Ee),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(),qe!=null&&qe.snapshotData&&ee.current.restoreState(qe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),St()},300)};return ae.createElement(ae.Fragment,null,(qe==null?void 0:qe.visible)&&ae.createElement(ve.Z,{spinning:ge,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:_e()(Te.imageDimensions,Ve,ne?Te.fullWidth:""),style:a},ae.createElement("img",{className:Te.img,ref:z}))))}},50047:function(Fe,dt,ie){"use strict";var ae=ie(59301),Te=ie(95237),Ze=ie(43604),_e=ie(99313),ve=ie(3113),Ie=ie(95318),Se=ie(40862),Je=ie(48136),Oe=ie(59301);const je=(0,ae.forwardRef)(({callback:He,showSaveButton:qe,value:Ve=""},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 "}]}]}],x=[{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+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Oe.createElement(Te.Z,{className:Se.Z.lists,gutter:[10,10]},y.map((ee,te)=>Oe.createElement(Ze.Z,{flex:"110px",className:Se.Z.item},Oe.createElement("div",null,Oe.createElement(Ie.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:Se.Z.children},ee.children.map((oe,ge)=>Oe.createElement("div",{key:ge},Oe.createElement("h1",null,oe.name),Oe.createElement(Te.Z,{gutter:[10,10]},oe.data.map((re,se)=>Oe.createElement(Ze.Z,{key:se,onClick:()=>b(re),className:Se.Z.diamond},Oe.createElement(Ie.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(Te.Z,{className:Se.Z.lists,gutter:[10,10]},x.map((ee,te)=>Oe.createElement(Ze.Z,{flex:"110px",className:Se.Z.item},Oe.createElement("div",null,Oe.createElement(Ie.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:Se.Z.children},ee.children.map((oe,ge)=>Oe.createElement("div",{key:ge},oe.name&&Oe.createElement("h1",null,oe.name),Oe.createElement(Te.Z,{gutter:[10,10]},oe.data.map((re,se)=>Oe.createElement(Ze.Z,{key:se,onClick:()=>b(re),className:Se.Z.diamond},Oe.createElement(Ie.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return He&&He(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Oe.createElement("div",{className:Se.Z.mathWrap},Oe.createElement(_e.default,{defaultActiveKey:"1",items:E}),Oe.createElement("math-field",{locale:"zh_cn",className:Se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ve||""),qe&&Oe.createElement("div",{className:Se.Z.button},Oe.createElement(ve.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=je},92928:function(Fe,dt,ie){"use strict";ie.d(dt,{h:function(){return ee}});var ae=ie(59301),Te=ie(57809),Ze=ie(78241),_e=ie(3113),ve=ie(89780),Ie=ie.n(ve),Se=ie(2018),Je=ie(66551),Oe=Object.defineProperty,je=Object.defineProperties,He=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?Oe(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[oe]=ge,y=(te,oe)=>{for(var ge in oe||(oe={}))Ve.call(oe,ge)&&a(te,ge,oe[ge]);if(qe)for(var ge of qe(oe))ne.call(oe,ge)&&a(te,ge,oe[ge]);return te},x=(te,oe)=>je(te,He(oe));const b=Te.default.Option,E={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"]};dt.Z=({callback:te,onCancel:oe})=>{const[ge,re]=(0,ae.useState)("python");function se(Le){re(z[Le][1])}function le(Le){te(Le)}return ae.createElement(Ze.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Te.default,{getPopupContainer:Le=>Le.parentNode,onChange:se},Object.keys(z).map(Le=>ae.createElement(b,{key:Le,value:Le},z[Le][0])))),ae.createElement(Ze.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(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(_e.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:re={}}){const se=(0,ae.useRef)(),[le,Le]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Ee=function(et){const St=et.getValue();oe&&oe(St)};return le.on("change",Ee),()=>{le.off("change",Ee)}}},[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 Ee=Ie().fromTextArea(se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));Le(Ee)}},[se.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},86401:function(Fe,dt,ie){"use strict";ie.d(dt,{Z:function(){return jn}});var ae=ie(59301),Te=ie(89780),Ze=ie.n(Te),_e=ie(76374),ve=ie(2018),Ie=ie(6313),Se=ie(25717),Je=ie(99498),Oe=ie(25419),je=ie(67549),He=ie(95318),qe=({value:ce="",className:Pe,showTextOnly:ue,showLines:ke,style:gt={}})=>{const tt=(0,ae.useMemo)(()=>"",[ce]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:tt}}))},Ve=ie(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ce,Pe,ue)=>Pe in ce?ne(ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ce[Pe]=ue,ee=(ce,Pe)=>{for(var ue in Pe||(Pe={}))b.call(Pe,ue)&&z(ce,ue,Pe[ue]);if(x)for(var ue of x(Pe))E.call(Pe,ue)&&z(ce,ue,Pe[ue]);return ce},te=(ce,Pe)=>a(ce,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:ce,title:Pe,icon:ue,actionName:ke,className:gt="",children:tt}){function Tt(){ce(ke)}return Ve.createElement("a",{title:Pe,className:gt,onClick:Tt},Ve.createElement("i",{className:`${ue}`}),tt)}var re=({watch:ce,showNullButton:Pe,showNullProgramButton:ue,onActionCallback:ke,fullScreen:gt,insertTemp:tt,hidetoolBar:Tt,extraUse:pt})=>{const Ct=[...oe,{title:`${ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ve.createElement("ul",{className:"markdown-toolbar-container"},!Tt&&Ct.map((Vt,Bn)=>Ve.createElement("li",{key:Bn},Vt.actionName?Ve.createElement(ge,te(ee({},Vt),{onActionCallback:ke})):Ve.createElement("span",{className:"v-line"}))),Pe?Ve.createElement("li",null,Ve.createElement(ge,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ke},Ve.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,ue?Ve.createElement(Ve.Fragment,null,Ve.createElement("li",null,Ve.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ke},Ve.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ve.createElement("li",null,Ve.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ke},Ve.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,tt&&Ve.createElement("li",null,Ve.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${tt}`,onActionCallback:ke},Ve.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),pt&&Ve.createElement("li",null,pt),Ve.createElement("li",{className:"btn-full-screen"},Ve.createElement(ge,{icon:`${gt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:gt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ke})))},se=ie(35990),le=ie(78241),Le=ie(92832),Ee=ie(3113),et=Object.defineProperty,St=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,yn=(ce,Pe,ue)=>Pe in ce?et(ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ce[Pe]=ue,pn=(ce,Pe)=>{for(var ue in Pe||(Pe={}))it.call(Pe,ue)&&yn(ce,ue,Pe[ue]);if(Lt)for(var ue of Lt(Pe))Pt.call(Pe,ue)&&yn(ce,ue,Pe[ue]);return ce},wn=(ce,Pe)=>St(ce,Nt(Pe));const Fn={labelCol:{span:4},wrapperCol:{span:20}};var Jn=({callback:ce,onCancel:Pe})=>{function ue(ke){ce(ke)}return ae.createElement(le.default,wn(pn({},Fn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ue,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(Le.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(Le.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ee.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Zn=ie(92928),ye=ie(82441),ze=ie(43418),Re=ie(95237),xt=ie(3353),$e=ie(59301),ht=({callback:ce,onCancel:Pe})=>{const ue=document.createElement("canvas"),ke=ue.getContext("2d");ue.width=1e3,ue.height=800,ke.fillStyle="#ffffff",ke.fillRect(0,0,ue.width,ue.height);const gt=ue.toDataURL("image/png");return $e.createElement(ze.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},$e.createElement(Re.Z,{style:{height:"100vh"}},$e.createElement(xt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:gt,visible:!0,title:String(Date.now())},onOk:tt=>{ce({src:tt.url})},onClose:Pe})))},de=ie(12378);function Xe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Xe,go.CommandHandler),Xe.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},Xe.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var Pe=1/0;ce.selection.each(function(ue){ue instanceof go.Link||(Pe=Math.min(ue.position.x,Pe))}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Pe,ue.position.y))}),ce.commitTransaction("aligning left")},Xe.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var Pe=-1/0;ce.selection.each(function(ue){if(!(ue instanceof go.Link)){var ke=ue.actualBounds.x+ue.actualBounds.width;Pe=Math.max(ke,Pe)}}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Pe-ue.actualBounds.width,ue.position.y))}),ce.commitTransaction("aligning right")},Xe.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var Pe=1/0;ce.selection.each(function(ue){ue instanceof go.Link||(Pe=Math.min(ue.position.y,Pe))}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.position.x,Pe))}),ce.commitTransaction("alignTop")},Xe.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var Pe=-1/0;ce.selection.each(function(ue){if(!(ue instanceof go.Link)){var ke=ue.actualBounds.y+ue.actualBounds.height;Pe=Math.max(ke,Pe)}}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.actualBounds.x,Pe-ue.actualBounds.height))}),ce.commitTransaction("aligning bottom")},Xe.prototype.alignCenterX=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe){ce.startTransaction("aligning Center X");var ue=Pe.actualBounds.x+Pe.actualBounds.width/2;ce.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ue-ke.actualBounds.width/2,ke.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},Xe.prototype.alignCenterY=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe){ce.startTransaction("aligning Center Y");var ue=Pe.actualBounds.y+Pe.actualBounds.height/2;ce.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ke.actualBounds.x,ue-ke.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},Xe.prototype.alignColumn=function(ce){var Pe=this.diagram;Pe.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var ue=new Array;Pe.selection.each(function(pt){pt instanceof go.Link||ue.push(pt)});for(var ke=0;ke<ue.length-1;ke++){var gt=ue[ke],tt=gt.actualBounds.y+gt.actualBounds.height+ce,Tt=ue[ke+1];Tt.move(new go.Point(gt.actualBounds.x,tt))}Pe.commitTransaction("align Column")},Xe.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var Pe=this.diagram;Pe.startTransaction("align Row");var ue=new Array;Pe.selection.each(function(pt){pt instanceof go.Link||ue.push(pt)});for(var ke=0;ke<ue.length-1;ke++){var gt=ue[ke],tt=gt.actualBounds.x+gt.actualBounds.width+ce,Tt=ue[ke+1];Tt.move(new go.Point(tt,gt.actualBounds.y))}Pe.commitTransaction("align Row")},Xe.prototype.canRotate=function(ce){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Xe.prototype.rotate=function(ce){ce===void 0&&(ce=90);var Pe=this.diagram;Pe.startTransaction("rotate "+ce.toString());var Pe=this.diagram;Pe.selection.each(function(ue){ue instanceof go.Link||ue instanceof go.Group||(ue.angle+=ce)}),Pe.commitTransaction("rotate "+ce.toString())},Xe.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var Pe=new go.Map;ce.selection.each(function(ue){Pe.set(ue.layer,0)}),Pe.iteratorKeys.each(function(ue){var ke=0;ue.parts.each(function(gt){if(!gt.isSelected){var tt=gt.zOrder;isNaN(tt)?gt.zOrder=0:ke=Math.max(ke,tt)}}),Pe.set(ue,ke)}),ce.selection.each(function(ue){Xe._assignZOrder(ue,Pe.get(ue.layer)+1)}),ce.commitTransaction("pullToFront")},Xe.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var Pe=new go.Map;ce.selection.each(function(ue){Pe.set(ue.layer,0)}),Pe.iteratorKeys.each(function(ue){var ke=0;ue.parts.each(function(gt){if(!gt.isSelected){var tt=gt.zOrder;isNaN(tt)?gt.zOrder=0:ke=Math.min(ke,tt)}}),Pe.set(ue,ke)}),ce.selection.each(function(ue){Xe._assignZOrder(ue,Pe.get(ue.layer)-1-Xe._findGroupDepth(ue))}),ce.commitTransaction("pushToBack")},Xe._assignZOrder=function(ce,Pe,ue){ue===void 0&&(ue=ce),ce.layer===ue.layer&&(ce.zOrder=Pe),ce instanceof go.Group&&ce.memberParts.each(function(ke){Xe._assignZOrder(ke,Pe+1,ue)})},Xe._findGroupDepth=function(ce){if(ce instanceof go.Group){var Pe=0;return ce.memberParts.each(function(ue){Pe=Math.max(Pe,Xe._findGroupDepth(ue))}),Pe+1}else return 0},Xe.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var Pe=ce.lastInput;if(Pe.key==="Up"||Pe.key==="Down"||Pe.key==="Left"||Pe.key==="Right"){var ue=this.arrowKeyBehavior;if(ue==="none")return;if(ue==="select"){this._arrowKeySelect();return}else if(ue==="move"){this._arrowKeyMove();return}else if(ue==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Xe.prototype._getAllParts=function(){var ce=new Array;return this.diagram.nodes.each(function(Pe){ce.push(Pe)}),this.diagram.parts.each(function(Pe){ce.push(Pe)}),ce},Xe.prototype._arrowKeyMove=function(){var ce=this.diagram,Pe=ce.lastInput,ue=0,ke=0;if(Pe.control||Pe.meta)ue=1,ke=1;else if(ce.grid!==null){var gt=ce.grid.gridCellSize;ke=gt.width,ue=gt.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(tt){Pe.key==="Up"?tt.move(new go.Point(tt.actualBounds.x,tt.actualBounds.y-ue)):Pe.key==="Down"?tt.move(new go.Point(tt.actualBounds.x,tt.actualBounds.y+ue)):Pe.key==="Left"?tt.move(new go.Point(tt.actualBounds.x-ke,tt.actualBounds.y)):Pe.key==="Right"&&tt.move(new go.Point(tt.actualBounds.x+ke,tt.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},Xe.prototype._arrowKeySelect=function(){var ce=this.diagram,Pe=ce.lastInput,ue=null;Pe.key==="Up"?ue=this._findNearestPartTowards(270):Pe.key==="Down"?ue=this._findNearestPartTowards(90):Pe.key==="Left"?ue=this._findNearestPartTowards(180):Pe.key==="Right"&&(ue=this._findNearestPartTowards(0)),ue!==null&&(Pe.shift?ue.isSelected=!0:Pe.control||Pe.meta?ue.isSelected=!ue.isSelected:ce.select(ue))},Xe.prototype._findNearestPartTowards=function(ce){var Pe=this.diagram.selection.first();if(Pe===null)return null;for(var ue=Pe.actualBounds.center,ke=this._getAllParts(),gt=1/0,tt=Pe,Tt=0;Tt<ke.length;Tt++){var pt=ke[Tt];if(pt!==Pe&&pt.canSelect()){var Ct=pt.actualBounds.center,Vt=ue.directionPoint(Ct),Bn=this._angleCloseness(Vt,ce);if(Bn<=45){var De=ue.distanceSquaredPoint(Ct);De*=1+Math.sin(Bn*Math.PI/180),De<gt&&(gt=De,tt=pt)}}}return tt},Xe.prototype._angleCloseness=function(ce,Pe){return Math.min(Math.abs(Pe-ce),Math.min(Math.abs(Pe+360-ce),Math.abs(Pe-360-ce)))},Xe.prototype._arrowKeyTree=function(){var ce=this.diagram,Pe=ce.selection.first();if(Pe instanceof go.Node){var ue=ce.lastInput;if(ue.key==="Right"){if(!Pe.isTreeLeaf)if(!Pe.isTreeExpanded)ce.commandHandler.canExpandTree(Pe)&&ce.commandHandler.expandTree(Pe);else{var ke=this._sortTreeChildrenByY(Pe).first();ke!==null&&ce.select(ke)}}else if(ue.key==="Left")if(!Pe.isTreeLeaf&&Pe.isTreeExpanded)ce.commandHandler.canCollapseTree(Pe)&&ce.commandHandler.collapseTree(Pe);else{var gt=Pe.findTreeParentNode();gt!==null&&ce.select(gt)}else if(ue.key==="Up"){var gt=Pe.findTreeParentNode();if(gt!==null){var tt=this._sortTreeChildrenByY(gt),Tt=tt.indexOf(Pe);if(Tt>0){for(var pt=tt.elt(Tt-1);pt!==null&&pt.isTreeExpanded&&!pt.isTreeLeaf;){var Ct=this._sortTreeChildrenByY(pt);pt=Ct.last()}pt!==null&&ce.select(pt)}else ce.select(gt)}}else if(ue.key==="Down")if(Pe.isTreeExpanded&&!Pe.isTreeLeaf){var ke=this._sortTreeChildrenByY(Pe).first();ke!==null&&ce.select(ke)}else for(;Pe!==null;){var gt=Pe.findTreeParentNode();if(gt===null)break;var tt=this._sortTreeChildrenByY(gt),Tt=tt.indexOf(Pe);if(Tt<tt.length-1){ce.select(tt.elt(Tt+1));break}else Pe=gt}var Vt=ce.selection.first();Vt!==null&&ce.scrollToRect(Vt.actualBounds)}},Xe.prototype._sortTreeChildrenByY=function(ce){var Pe=new go.List().addAll(ce.findTreeChildrenNodes());return Pe.sort(function(ue,ke){var gt=ue.location,tt=ke.location;return gt.y<tt.y?-1:gt.y>tt.y?1:gt.x<tt.x?-1:gt.x>tt.x?1:0}),Pe},Xe.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},Xe.prototype.pasteFromClipboard=function(){var ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ce},Object.defineProperty(Xe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ce){if(ce!=="move"&&ce!=="select"&&ce!=="scroll"&&ce!=="tree"&&ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ce);this._arrowKeyBehavior=ce}}),Object.defineProperty(Xe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ce){if(!(ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ce);this._pasteOffset.set(ce)}});var Et=Xe,on=ie(60803),_t=ie(43604),zn=ie(97013),Tn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},$t=ie(59301),Un=(ce,Pe,ue)=>new Promise((ke,gt)=>{var tt=Ct=>{try{pt(ue.next(Ct))}catch(Vt){gt(Vt)}},Tt=Ct=>{try{pt(ue.throw(Ct))}catch(Vt){gt(Vt)}},pt=Ct=>Ct.done?ke(Ct.value):Promise.resolve(Ct.value).then(tt,Tt);pt((ue=ue.apply(ce,Pe)).next())});function Qn({onCancel:ce,callback:Pe}){let ue=(0,ae.useRef)(),ke=(0,ae.useRef)(),gt=(0,ae.useRef)(),tt=(0,ae.useRef)(!1);const Tt=(0,ae.useRef)(!1),[pt,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"};ue.current=new de.S0(ke.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:Ce=>{var Ye=Ce.diagram.commandHandler.addTopLevelParts(Ce.diagram.selection,!0);Ye||Ce.diagram.currentTool.doCancel()},commandHandler:De(Et),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ce=>{var Ye=Ce.subject;Ye.location=Ye.location.copy().snapToGridPoint(Ce.diagram.grid.gridOrigin,Ce.diagram.grid.gridCellSize),setTimeout(()=>{Ce.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ce=>{var Ye=Ce.subject;setTimeout(()=>{Ce.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ce=>{var Ye=Ce.parameter.part;Ye.invalidateConnectedLinks();var at=Ce.subject;Ce.diagram.toolManager.linkingTool.isForwards?at.toNode.invalidateConnectedLinks():at.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ue.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"))),ue.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 Pn(Ce,Ye){var at=(rt,vt)=>{rt.handled=!0,rt.diagram.model.commit(bt=>{var ut=vt.part.adornedPart,jt=new de.E9().setRectSpot(ut.actualBounds,Ce);jt.subtract(ut.location),jt.scale(2,2),jt.x+=Math.sign(jt.x)*130,jt.y+=Math.sign(jt.y)*130,jt.add(ut.location),jt.snapToGridPoint(rt.diagram.grid.gridOrigin,rt.diagram.grid.gridCellSize);var Wt=bt.copyNodeData(ut.data);bt.setGroupKeyForNodeData(Wt,bt.getGroupKeyForNodeData(ut.data)),bt.addNodeData(Wt);var Hn={from:ut.key,to:bt.getKeyForNodeData(Wt)};bt.addLinkData(Hn);var ea=rt.diagram.findNodeForData(Wt);ea.location=jt,rt.diagram.select(ea),setTimeout(()=>{rt.diagram.commandHandler.editTextBlock()},20)})};return De(de.bn,{figure:Ye,alignment:Ce,alignmentFocus:Ce.opposite(),width:Ce.equals(de.z6.Top)||Ce.equals(de.z6.Bottom)?25:18,height:Ce.equals(de.z6.Top)||Ce.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:zt.white,strokeWidth:4,mouseEnter:(rt,vt)=>vt.fill="dodgerblue",mouseLeave:(rt,vt)=>vt.fill="orange",isActionable:!0,click:at,contextClick:at})}function An(Ce){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:(Ye,at)=>at.fill="dodgerblue",mouseLeave:(Ye,at)=>at.fill="orange",click:(Ye,at)=>{Ye.diagram.commandHandler.showContextMenu(at.part.adornedPart)}},Ce||{})}ue.current.nodeTemplate.selectionAdornmentTemplate=De(de.uz,"Spot",De(de.Vm,{padding:10}),Pn(de.z6.Top,"TriangleUp"),Pn(de.z6.Left,"TriangleLeft"),Pn(de.z6.Right,"TriangleRight"),Pn(de.z6.Bottom,"TriangleDown"),An({alignment:new de.z6(.75,0)}));function nn(Ce,Ye){return(at,rt)=>{at.handled=!0,at.diagram.model.commit(vt=>{vt.set(rt.part.adornedPart.data,Ce,Ye)})}}function me(Ce,Ye){return Ye||(Ye="color"),De(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ce,margin:1,background:"transparent",mouseEnter:(at,rt)=>rt.stroke="dodgerblue",mouseLeave:(at,rt)=>rt.stroke="lightgray",click:nn(Ye,Ce),contextClick:nn(Ye,Ce)})}function pe(){return[De("ContextMenuButton",De(de.s_,"Horizontal",me(zt.white,"fill"),me(zt.beige,"fill"),me(zt.extralightblue,"fill"),me(zt.extralightred,"fill"))),De("ContextMenuButton",De(de.s_,"Horizontal",me(zt.lightgray,"fill"),me(zt.lightgreen,"fill"),me(zt.lightblue,"fill"),me(zt.lightred,"fill")))]}function fe(){return[De("ContextMenuButton",De(de.s_,"Horizontal",me(zt.black),me(zt.green),me(zt.blue),me(zt.red))),De("ContextMenuButton",De(de.s_,"Horizontal",me(zt.white),me(zt.magenta),me(zt.purple),me(zt.orange)))]}function Be(Ce,Ye){return Ye||(Ye="thickness"),De(de.bn,"LineH",{width:16,height:16,strokeWidth:Ce,margin:1,background:"transparent",mouseEnter:(at,rt)=>rt.background="dodgerblue",mouseLeave:(at,rt)=>rt.background="transparent",click:nn(Ye,Ce),contextClick:nn(Ye,Ce)})}function Ne(Ce,Ye){return Ye||(Ye="dash"),De(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ce,margin:1,background:"transparent",mouseEnter:(at,rt)=>rt.background="dodgerblue",mouseLeave:(at,rt)=>rt.background="transparent",click:nn(Ye,Ce),contextClick:nn(Ye,Ce)})}function Me(){return[De("ContextMenuButton",De(de.s_,"Horizontal",Be(1),Be(2),Be(3),Be(4))),De("ContextMenuButton",De(de.s_,"Horizontal",Ne(null),Ne([2,4]),Ne([4,4])))]}function Ge(Ce,Ye){return Ye||(Ye="figure"),De(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ce,margin:1,background:"transparent",mouseEnter:(at,rt)=>rt.fill="dodgerblue",mouseLeave:(at,rt)=>rt.fill="lightgray",click:nn(Ye,Ce),contextClick:nn(Ye,Ce)})}ue.current.nodeTemplate.contextMenu=De("ContextMenu",De("ContextMenuButton",De(de.s_,"Horizontal",Ge("Rectangle"),Ge("RoundedRectangle"),Ge("Ellipse"),Ge("Diamond"))),De("ContextMenuButton",De(de.s_,"Horizontal",Ge("Parallelogram2"),Ge("ManualOperation"),Ge("Procedure"),Ge("Cylinder1"))),De("ContextMenuButton",De(de.s_,"Horizontal",Ge("Terminator"),Ge("CreateRequest"),Ge("Document"),Ge("TriangleDown"))),pe(),fe(),Me()),ue.current.groupTemplate=De(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ce,Ye)=>{var at=Ye.addMembers(Ye.diagram.selection,!0);at||Ye.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"))),ue.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})),An({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ue.current.groupTemplate.contextMenu=De("ContextMenu",pe(),fe(),Me()),ue.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",Ce=>Ce>=1?10:0),new de.KX("toShortLength","dir",Ce=>Ce>=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",Ce=>Ce===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",Ce=>Ce>=1),new de.KX("width","thickness",Ce=>7+3*Ce),new de.KX("height","thickness",Ce=>7+3*Ce),new de.KX("segmentOffset","thickness",Ce=>new de.E9(-15,4+1.5*Ce))),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",Ce=>Ce===2),new de.KX("width","thickness",Ce=>7+3*Ce),new de.KX("height","thickness",Ce=>7+3*Ce),new de.KX("segmentOffset","thickness",Ce=>new de.E9(-15,4+1.5*Ce))),De(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ue.current.linkTemplate.selectionAdornmentTemplate=De(de.uz,De(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:xe(2)},new de.KX("pathPattern","thickness",xe)),An({alignmentFocus:new de.z6(0,0,-6,-4)}));function xe(Ce){return De(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ce+4).toString()+" H3"})}function mt(Ce){var Ye="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ce===0?Ye="M0 0 M16 16 M0 8 L16 8":Ce===2&&(Ye="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),De(de.bn,{geometryString:Ye,margin:2,background:"transparent",mouseEnter:(at,rt)=>rt.background="dodgerblue",mouseLeave:(at,rt)=>rt.background="transparent",click:nn("dir",Ce),contextClick:nn("dir",Ce)})}function lt(Ce){var Ye=(at,rt)=>{at.handled=!0,at.diagram.model.commit(vt=>{var bt=rt.part.adornedPart;vt.set(bt.data,Ce?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ce?bt.toNode:bt.fromNode).invalidateConnectedLinks()})};return De(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(at,rt)=>rt.background="dodgerblue",mouseLeave:(at,rt)=>rt.background="transparent",click:Ye,contextClick:Ye})}function st(Ce,Ye){var at=0,rt=de.z6.RightSide;Ce.equals(de.z6.Top)?(at=270,rt=de.z6.TopSide):Ce.equals(de.z6.Left)?(at=180,rt=de.z6.LeftSide):Ce.equals(de.z6.Bottom)&&(at=90,rt=de.z6.BottomSide),Ye||(at-=180);var vt=(bt,ut)=>{bt.handled=!0,bt.diagram.model.commit(jt=>{var Wt=ut.part.adornedPart;jt.set(Wt.data,Ye?"toSpot":"fromSpot",de.z6.stringify(rt)),(Ye?Wt.toNode:Wt.fromNode).invalidateConnectedLinks()})};return De(de.bn,{alignment:Ce,alignmentFocus:Ce.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:at,background:"transparent",mouseEnter:(bt,ut)=>ut.background="dodgerblue",mouseLeave:(bt,ut)=>ut.background="transparent",click:vt,contextClick:vt})}ue.current.linkTemplate.contextMenu=De("ContextMenu",fe(),Me(),De("ContextMenuButton",De(de.s_,"Horizontal",mt(0),mt(1),mt(2))),De("ContextMenuButton",De(de.s_,"Horizontal",De(de.s_,"Spot",lt(!1),st(de.z6.Top,!1),st(de.z6.Left,!1),st(de.z6.Right,!1),st(de.z6.Bottom,!1)),De(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},lt(!0),st(de.z6.Top,!0),st(de.z6.Left,!0),st(de.z6.Right,!0),st(de.z6.Bottom,!0)))));const we=`{ "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 Ot=["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 Xt(Ce){return console.log("shapeName:",Ce),Ot.indexOf(Ce)>=0}var hn=new de.YI(gt.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(Ce=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ce.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ue.current.addDiagramListener("TextEdited",function(Ce){var Ye;const at=Ce.subject.part;var rt=(Ye=document.activeElement)==null?void 0:Ye.value;typeof rt=="string"&&rt.trim()===""&&ue.current.model.commit(function(vt){vt.set(at.data,"text","\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}),hn.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(()=>{ue.current.grid=De(de.s_,"Grid",De(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),De(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ue.current.grid.visible=!0,ue.current.grid.gridCellStroke="darkgray",ue.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ue.current,ue.current}const Bn=()=>Un(this,null,function*(){var De=ue.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(pt+1),()=>{ue.current=null}),[]),$t.createElement("div",{ref:Tt,className:tt.current?`${Tn.maxH60} body-overflow-initial`:"body-overflow-initial"},$t.createElement(ze.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!pt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:$t.createElement(Re.Z,null,$t.createElement(_t.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),$t.createElement(_t.Z,{onClick:()=>{var De,zt,Pn=ue.current.selection.first();if(tt.current=!tt.current,document.activeElement&&Pn){let An=(zt=(De=document.activeElement)==null?void 0:De.value)==null?void 0:zt.trim();typeof An=="string"&&ue.current.model.commit(function(nn){nn.set(Pn.data,"text",An||"\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}Ct(pt+1)}},$t.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},$t.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Tn.flowChartWrp},$t.createElement("div",{style:{display:"flex",height:"100%"}},$t.createElement("div",{style:{width:"300px",height:"100%"}},$t.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),$t.createElement("div",{style:{height:"calc(100% - 50px)"},className:Tn.myPaletteDiv,ref:gt})),$t.createElement("div",{style:{flex:1,position:"relative"}},$t.createElement("div",{ref:ke,style:{height:"80vh"}}))),$t.createElement("div",{className:"tr"},$t.createElement(Ee.ZP,{size:"large",onClick:Bn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var In=Qn,Xn=ie(5112),On=ie(5871);const Ut=Xn.ZP.Group,Yt={margin:"0 8px"};var tn=({callback:ce,onCancel:Pe})=>{function ue(ke){ce(ke)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ue},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Yt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Yt},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(On.Z,null)),ae.createElement("span",{style:Yt},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(On.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Yt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Ut,null,ae.createElement(Xn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Xn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Xn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Xn.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ee.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ee.ZP,{type:"ghost",onClick:Pe},"\u53D6\u6D88")))},Mt=ie(78673),qn=ie(75544),na=ie.n(qn),Sa=(0,ae.forwardRef)(({use3d:ce,width:Pe,height:ue,callback:ke,showSaveButton:gt},tt)=>{const Tt=(0,ae.useRef)(),pt=(0,ae.useRef)(),[Ct,Vt]=(0,ae.useState)(!1),Bn=(0,ae.useRef)({id:Tt,appName:"graphing",width:Pe||1e3,height:ue||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)(()=>{pt.current=new(na())(Bn.current,!0),window.onload=function(){pt.current.inject("applet_container")}},[]);const De=()=>{var zt=window.ggbApplet.getPNGBase64(1,!0,72);return ke&&ke(zt),zt};return(0,ae.useEffect)(()=>{Bn.current.appName=Ct?"3D":"graphing",pt.current.inject("applet_container")},[Ct]),(0,ae.useEffect)(()=>{Vt(ce)},[ce]),(0,ae.useImperativeHandle)(tt,()=>({getImgData:De})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Tt}),ae.createElement(Re.Z,{align:"middle"},ae.createElement(_t.Z,{flex:1},ae.createElement(Mt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ct,onChange:zt=>Vt(zt)})),ae.createElement(_t.Z,null,ae.createElement(Ee.ZP,{size:"large",onClick:De,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Rn=ie(50047),he=ie(1012),be=ie(8591);const Ae="link",Ue="upload-image",Qe="add-flowchart",yt="draw-image",Bt="add-flowchart",ft="code-block",Ft="add-table",Dt="------------",At={default:Dt,left:`:${Dt}`,center:`:${Dt}:`,right:`${Dt}:`};var It=ie(61904),gn=(ce,Pe,ue)=>new Promise((ke,gt)=>{var tt=Ct=>{try{pt(ue.next(Ct))}catch(Vt){gt(Vt)}},Tt=Ct=>{try{pt(ue.throw(Ct))}catch(Vt){gt(Vt)}},pt=Ct=>Ct.done?ke(Ct.value):Promise.resolve(Ct.value).then(tt,Tt);pt((ue=ue.apply(ce,Pe)).next())});function sn(){}let un=0;const Kt=1e4,Ht="\u2581",bn="@\u2581\u2581@",cn="@\u2581@",Sn=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Zt=["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 Nn(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const _n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Mn={[_n+"-B"]:"bold",[_n+"-I"]:"italic"},Vn={[Ae]:"\u6DFB\u52A0\u94FE\u63A5",[ft]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ue]:"\u6DFB\u52A0\u56FE\u7247",[yt]:"\u6DFB\u52A0\u753B\u56FE",[Qe]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ft]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var jn=({defaultValue:ce="",onChange:Pe,width:ue="100%",height:ke=400,miniToolbar:gt=!1,isFocus:tt=!1,watch:Tt,insertTemp:pt,mode:Ct="markdown",id:Vt="markdown-editor-id",showResizeBar:Bn=!1,noStorage:De=!1,showNullButton:zt=!1,showNullProgramButton:Pn=!1,hidetoolBar:An=!1,fullScreen:nn=!1,onBlur:me,onCMBeforeChange:pe,onFullScreen:fe,className:Be="",disablePaste:Ne=!1,disabled:Me=!1,disabledFill:Ge=!1,placeholder:xe="",values:mt="",extraUse:lt,onAddBlank:st})=>{const[we,Ot]=(0,ae.useState)(null),[Xt,hn]=(0,ae.useState)(ce),[Ce,Ye]=(0,ae.useState)(Tt),[at,rt]=(0,ae.useState)(nn),[vt,bt]=(0,ae.useState)(""),[ut,jt]=(0,ae.useState)(0),[Wt,Hn]=(0,ae.useState)(ke),[ea,Dn]=(0,ae.useState)(!1),ua=(0,ae.useRef)((0,he.Z)()),Pa=(0,ae.useRef)(!1),ca=(0,ae.useRef)(),[ga,kn]=(0,ae.useState)(0),[rn,la]=(0,ae.useState)(0),Wn=(0,ae.useRef)(),aa=(0,ae.useRef)(),Yn=(0,ae.useRef)(),Gn=(0,ae.useRef)(),ha=()=>gn(void 0,null,function*(){var ot;const We=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ua.current}});(ot=We==null?void 0:We.attachments)!=null&&ot.length&&(console.log("cm:",we,Wn),We.attachments.map(Ke=>{Ke.content_type.indexOf("image")>-1?we.replaceSelection(`![,](/api/attachments/${Ke.id}?type=${Ke.content_type})`):Ke.content_type.indexOf("video")>-1?we.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ke.content_type.indexOf("pdf")>-1?we.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ke.id}?type=${Ke.content_type}&disposition=inline" target="_blank">${Ke.name}</a>`):we.replaceSelection(`[${Ke.name}](${ENV.API_SERVER}/api/attachments/${Ke.id}?type=${Ke.content_type})`)}))});(0,ae.useEffect)(()=>{const ot=window.scrollY||window.pageYOffset;hn(mt),we==null||we.setValue(mt),window.scrollTo(0,ot)},[mt]),(0,ae.useEffect)(()=>{fe==null||fe(at)},[at]),(0,ae.useEffect)(()=>{if(Wn.current){let ot=function(Ke,nt){var Rt;if(Ne){nt.preventDefault();return}const qt=nt.clipboardData;if(qt){const Ln=qt.types.toString(),vn=qt.items;if(Ln==="Files"||qt.types.indexOf("Files")>-1){if(nt.preventDefault(),Ct=="stex")return;try{let En=vn[1];((Rt=vn[0])==null?void 0:Rt.kind)==="file"&&(En=vn[0]);const Cn=En.getAsFile(),ta=Cn.name.split(".").pop();(0,ye.I)(Cn,ct=>{var kt,Jt,Gt;ct.id?((kt=Cn==null?void 0:Cn.type)==null?void 0:kt.indexOf("image"))>-1?We.replaceSelection(`<img width="100%" src="/api/attachments/${ct.id}?type=${ct.content_type})" alt="" />`):((Jt=Cn==null?void 0:Cn.type)==null?void 0:Jt.indexOf("video"))>-1?We.replaceSelection(`<video width="100%" controls src="/api/attachments/${ct.id}"></video>`):((Gt=Cn==null?void 0:Cn.type)==null?void 0:Gt.indexOf("pdf"))>-1?We.replaceSelection(`<a href="/api/attachments/${ct.id}?type=${Cn.type}&disposition=inline" target="_blank">${Cn.name}</a>`):Zt.includes(ta)?We.replaceSelection(`<a href="/api/attachments/${ct.id}?type=office&disposition=inline" target="_blank">${Cn.name}</a>`):We.replaceSelection(`[${Cn.name}](/api/attachments/${ct.id}?type=${ct.content_type})`):(ct==null?void 0:ct.status)===401&&(be.ZP.warning((ct==null?void 0:ct.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(En){be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const We=Ze().fromTextArea(Wn.current,{mode:Ct,lineNumbers:!gt,lineWrapping:!0,value:ce,autoCloseTags:!Pn,autoCloseBrackets:!0});return We.on("keyup",function(Ke,nt){nt.keyCode===8&&(Ke.getValue()==""?We.setOption("placeholder",xe):We.setOption("placeholder",null))}),We.on("keydown",function(Ke,nt){if(nt.keyCode===8){var Rt=mn(Ke);Rt&&nt.preventDefault()}}),tt&&We.focus(),We.on("paste",ot),We.on("dragleave",function(Ke,nt){aa.current.classList.remove("mouse-hover-md")}),Me&&We.on("beforeChange",function(Ke,nt){(nt.origin==="paste"||nt.origin==="+input")&&nt.cancel()}),Ot(We),()=>{We.off("paste",ot)}}},[]);const wt=(0,ae.useCallback)(()=>{if(aa.current)try{}catch(ot){console.log(ot,"---- to set md editor body height")}},[Wt,aa,at]);(0,ae.useEffect)(()=>{function ot(){let We=new _e.Z(Ke=>{for(let nt of Ke)(nt.target.offsetHeight>0||nt.target.offsetWidth>0)&&(wt(),we.setSize("100%","100%"),we.refresh())});return We.observe(Wn.current.parentElement),We}if(we){const We=ot();return()=>{var Ke,nt;(Ke=Wn.current)!=null&&Ke.parentElement&&We.unobserve((nt=Wn.current)==null?void 0:nt.parentElement)}}},[we,wt]),(0,ae.useEffect)(()=>{if(we){let ot=[];for(const[We,Ke]of Object.entries(Mn)){let nt={[We]:()=>{$n(Ke)}};ot.push(nt),we.addKeyMap(nt)}return ca.current=setInterval(()=>{Pa.current&&ha()},4e3),()=>{clearInterval(ca.current);for(let We of ot)we.removeKeyMap(We)}}},[we]),(0,ae.useEffect)(()=>{nn!==at&&rt(nn)},[nn]),(0,It.Z)(()=>{if(!De&&ut>0){let ot=new Date().getTime(),We=window.sessionStorage.getItem(Vt);ot>=ut+Kt&&(!We||We!==Xt)&&(window.sessionStorage.setItem(Vt,Xt),Dn(!0))}},Kt),(0,ae.useEffect)(()=>{Ye(Tt)},[we,Tt]),(0,ae.useEffect)(()=>{we&&tt&&we.focus()},[we,tt]),(0,ae.useEffect)(()=>{if(Ce&&we){let ot=function(Ke){let nt=Ke.target;if(Gn.current){let Rt=nt.scrollTop/nt.scrollHeight;Gn.current.scrollTop=Gn.current.scrollHeight*Rt}};const We=we.getScrollerElement();return We.addEventListener("scroll",ot),()=>{We.removeEventListener("scroll",ot)}}},[we,Ce]),(0,ae.useEffect)(()=>{if(we&&pe){let ot=function(We,Ke){pe(We,Ke)};return we.on("beforeChange",ot),()=>{we.off("beforeChange",ot)}}},[we,pe]),(0,ae.useEffect)(()=>{if(we&&me){let ot=function(){me(we.getValue())};return we.on("blur",ot),()=>{we.off("blur",ot)}}},[we,me]);function mn(ot,We){var Ke=ot.getDoc(),nt=Ke.getCursor(),Rt=Ke.getLine(nt.line),qt=Rt.charAt(nt.ch-1),Ln=Rt.lastIndexOf("@\u2581@",nt.ch),vn=Rt.lastIndexOf("@\u2581\u2581@",nt.ch),En=Ln>vn?Ln:vn,Cn=Ln>vn?3:4;if(bn.indexOf(qt)===-1)return null;if(console.log("change1:",We,ot,Rt,nt,En,Ln,vn,qt),En>=0&&nt.ch-En<5){var ta=En+Cn;return Ke.replaceRange("",{line:nt.line,ch:En},{line:nt.line,ch:ta}),{line:nt.line,ch:ta}}return null}(0,ae.useEffect)(()=>{if(we){let ot=function(We,Ke){const nt=We.getValue();hn(nt),jt(new Date().getTime()),We.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(Pn?Pe(nt,oa(nt)):Pe(nt))};return we.on("change",ot),()=>{we.off("change",ot)}}},[we,Pe]),(0,ae.useEffect)(()=>{if(we)if(ce==null)we.setValue(""),hn("");else{const ot=window.scrollY||window.pageYOffset;ce!==we.getValue()&&(we.setValue(ce),hn(ce),we.setCursor(Me?1:we.lineCount(),0),window.scrollTo(0,ot))}},[we,ce]);const $n=(0,ae.useCallback)(ot=>{const We=we.getCursor(),Ke=we.getSelection();let nt=Ke.split(`
`);switch(ot){case"bold":return we.replaceSelection("**"+Ke+"**"),Ke===""&&we.setCursor(We.line,We.ch+2),we.focus();case"italic":return we.replaceSelection("*"+Ke+"*"),Ke===""&&we.setCursor(We.line,We.ch+1),we.focus();case"code":return we.replaceSelection("`"+Ke+"`"),Ke===""&&we.setCursor(We.line,We.ch+1),we.focus();case"inline-latex":return bt("inline-latex"),we.focus();case"latex":return we.replaceSelection("```latex\n"+Ke+"\n```"),we.setCursor(We.line+1,Ke.length+1),we.focus();case"line-break":return we.replaceSelection(`<br/>
`),we.focus();case"list-ul":return Ke===""?we.replaceSelection("- "+Ke):we.replaceSelection(nt.map(Rt=>Rt===""?"":`- ${Rt}`).join(`
`)),we.focus();case"list-ol":return Ke===""?we.replaceSelection("1. "+Ke):we.replaceSelection(nt.map((Rt,qt)=>Rt===""?"":`${qt+1}. ${Rt}`).join(`
`)),we.focus();case"add-null-ch":st==null||st();return;case"add-signal":return Ke===""&&we.setCursor(We.line,We.ch),we.replaceSelection(cn),we.focus();case"add-multiple":return Ke===""&&we.setCursor(We.line,We.ch),we.replaceSelection(bn),we.focus();case"inster-template-1":return Ke===""&&we.setCursor(We.line,We.ch),we.replaceSelection(Sn),we.focus();case"eraser":return we.setValue(""),we.focus();case"trigger-watch":return Ye(!Ce),we.focus();case"trigger-full-screen":return rt(!at),we.focus();case Ae:bt(Ae);return;case ft:bt(ft);return;case Ue:bt(Ue);return;case yt:bt(yt);return;case"maths-latex":bt("maths-latex");return;case Qe:bt(Qe);return;case Ft:bt(Ft);return;default:throw new Error}},[we,Ce,at]),an=(0,ae.useCallback)((ot,We)=>{var Ke,nt,Rt,qt,Ln,vn;switch(bt(""),vt){case Ae:const{title:kt,link:Jt}=ot;return we.replaceSelection(`[${kt}](${Jt})`),we.focus();case ft:const{language:Gt,content:Qt}=ot;return we.replaceSelection(["```"+Gt,Qt,"```"].join(`
`)),we.focus();case"maths-latex":for(var En=atob(ot),Cn=new Uint8Array(En.length),ta=0;ta<En.length;ta++)Cn[ta]=En.charCodeAt(ta);var ct=new Blob([Cn],{type:"image/png"});(0,ye.I)(ct,da=>{da.id?we.replaceSelection(`![,](/api/attachments/${da.id}?type=${da.content_type})`):(da==null?void 0:da.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":we.replaceSelection("`$$"+ot+"$$`");break;case Ue:case yt:case Bt:const{src:fn,alt:ia}=ot,en=We,sa=(Rt=(nt=(Ke=en==null?void 0:en.name)==null?void 0:Ke.split("."))==null?void 0:nt.pop)==null?void 0:Rt.call(nt);return((qt=en==null?void 0:en.type)==null?void 0:qt.indexOf("image"))>-1||!(en!=null&&en.type)?en.align||en.width?we.replaceSelection(`<p style="text-align:${en.align||"initial"}"><img width="${en.width?en.width+"%":"initial"}" src="${fn}" alt="${ia||""}" /></p>`):we.replaceSelection(`<img width="100%" src="${fn}" alt="${ia||""}" />`):((Ln=en==null?void 0:en.type)==null?void 0:Ln.indexOf("video"))>-1?we.replaceSelection(`<video width="100%" controls src="${fn}"></video>`):((vn=en==null?void 0:en.type)==null?void 0:vn.indexOf("pdf"))>-1?we.replaceSelection(`<a href="${fn}?type=${en.type}&disposition=inline" target="_blank">${en.name}</a>`):Zt.includes(sa)?we.replaceSelection(`<a href="${fn}?type=office&disposition=inline" target="_blank">${en.name}</a>`):we.replaceSelection(`[${en.name}](${fn})`),we.focus();case Ft:const{row:ba,col:Ba,align:Ca}=ot;let Fa=`
`;for(let da=0;da<ba;da++){let xa=[],Ea=[];for(let Ga=0;Ga<Ba;Ga++)da===1&&Ea.push(At[Ca]),xa.push(" ");da===1&&(Fa+=`| ${Ea.join(" | ")} |
`),Fa+=`| ${xa.join(Ba===1?"":" | ")} |
`}return we.replaceSelection(Fa+`
`),we.focus();default:throw new Error}},[we,vt]),ra=(0,ae.useMemo)(()=>{switch(vt){case Ae:return ae.createElement(Jn,{callback:an,onCancel:xn});case ft:return ae.createElement(Zn.Z,{callback:an,onCancel:xn});case Ue:return ae.createElement(ye.Z,{callback:an,onCancel:xn});case Qe:return ae.createElement(In,{callback:an,onCancel:xn});case Ft:return ae.createElement(tn,{callback:an,onCancel:xn});case"maths-latex":return ae.createElement(Sa,{showSaveButton:!0,callback:an});case"inline-latex":return ae.createElement(Rn.Z,{showSaveButton:!0,callback:an});default:return null}},[vt]);function xn(){bt("")}(0,ae.useEffect)(()=>{if(Yn.current){let ot=function(Ln){Rt=!0,qt=Ln.pageY},We=function(){Rt=!1},Ke=function(Ln){if(Rt){let vn=Ln.pageY-qt;vn<0&&(vn=0),vn>300&&(vn=300);let En=ke+vn+"px";Hn(En)}},nt=Yn.current,Rt=!1,qt=0;return nt.addEventListener("mousedown",ot),document.addEventListener("mousemove",Ke),document.addEventListener("mouseup",We),()=>{nt.removeEventListener("mousedown",ot),document.removeEventListener("mousemove",Ke),document.removeEventListener("mouseup",We)}}},[we,Yn]),(0,ae.useEffect)(()=>{Hn(ke)},[ke]);const pa=Nn(ue),fa=Nn(Wt),dn={width:pa,height:fa},ln=(0,ae.useMemo)(()=>{if(ut){let ot=new Date(ut),We=ot.getHours(),Ke=ot.getMinutes(),nt=ot.getSeconds();return We=We<10?"0"+We:We,Ke=Ke<10?"0"+Ke:Ke,nt=nt<10?"0"+nt:nt,`${We}:${Ke}:${nt}`}return 0},[ut]),oa=ot=>{const We=[];if(Pn){let Ke=-1;ot=ot.replace(/(@▁▁@|@▁@)/g,function(nt,Rt,qt){We.push({multiLine:nt!==cn})})}return We};function va(){window.sessionStorage.removeItem(Vt),Dn(!1),jt(0)}function La(){Dn(!1),jt(0),we.setValue(window.sessionStorage.getItem(Vt))}(0,ae.useEffect)(()=>{Vn[vt]&&vt!==yt&&vt!==Qe&&setTimeout(()=>{const ot=document.getElementsByClassName("markdown-popup-form")[0],We=window.innerWidth/2-ot.offsetWidth/2,Ke=window.innerHeight/2-ot.offsetHeight/2;kn(We),la(Ke)},0)},[vt]);const ya=ot=>{ot.preventDefault();const We=ot.clientX-ga,Ke=ot.clientY-rn;document.body.onmousemove=nt=>{let Rt=nt.clientX-We,qt=nt.clientY-Ke;const Ln=document.getElementsByClassName("markdown-popup-form")[0],vn=window.innerWidth-Ln.offsetWidth,En=window.innerHeight-Ln.offsetHeight;Rt=Math.max(0,Math.min(Rt,vn)),qt=Math.max(0,Math.min(qt,En)),wa(nt.clientX,nt.clientY,We,Ke)&&(kn(Rt),la(qt))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(ot,We,Ke,nt)=>{const Rt=document.body.clientHeight,qt=document.body.clientWidth;return ot<20&&Ke>ot||ot>qt-20&&Ke<ot||We<20&&nt>We||We>Rt-20&&nt<We?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:aa},ae.createElement("div",{className:`markdown-editor-container ${Be} ${Ce?"on-preview":""} ${gt?"mini":""} ${at?"full-screen":""}`,style:dn},ae.createElement(re,{insertTemp:pt,watch:Ce,fullScreen:at,showNullButton:zt,showNullProgramButton:Pn,onActionCallback:$n,hidetoolBar:An,extraUse:lt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Wn,placeholder:xe})),Ce?ae.createElement("div",{ref:Gn,className:"preview-container"},Ct==="stex"&&ae.createElement(qe,{value:Xt}),Ct!=="stex"&&ae.createElement(He.Z,{disabledFill:Ge,showProgramFill:Pn,value:Xt})):null))),Bn?ae.createElement("a",{ref:Yn,className:"editor-resize"}):null,vt===yt&&ae.createElement(ht,{callback:an,onCancel:xn}),vt===Qe&&ae.createElement(In,{callback:an,onCancel:xn}),ae.createElement(se.Z,null,Vn[vt]&&vt!==yt&&vt!==Qe?ae.createElement(ze.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ga,top:rn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},Vn[vt]),open:!0,onCancel:xn,footer:null,destroyOnClose:!0,width:vt===Qe?"1200px":null,height:vt===Qe?"80vh":null,className:"markdown-popup-form"},ra):null))}},82441:function(Fe,dt,ie){"use strict";ie.d(dt,{Z:function(){return ge},I:function(){return se}});var ae=ie(78241),Te=ie(8591),Ze=ie(92832),_e=ie(81327),ve=ie(5871),Ie=ie(5112),Se=ie(3113),Je=ie(52882),Oe=ie(59301),je=ie(11968),He=ie(59301),qe=Object.defineProperty,Ve=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(le,Le,Ee)=>Le in le?qe(le,Le,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):le[Le]=Ee,E=(le,Le)=>{for(var Ee in Le||(Le={}))y.call(Le,Ee)&&b(le,Ee,Le[Ee]);if(a)for(var Ee of a(Le))x.call(Le,Ee)&&b(le,Ee,Le[Ee]);return le},z=(le,Le)=>Ve(le,ne(Le));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:Le})=>{const[Ee]=ee();let et=(0,Oe.useRef)();function St(it){et.current.width=Ee.getFieldValue("width"),et.current.align=Ee.getFieldValue("align"),le(it,et.current)}function Nt(it,Pt){if(it.status===-1){Te.ZP.error(it.message);return}Ee.setFieldsValue({src:`/api/attachments/${it.id}`,type:Pt.type})}function Lt(it){let Pt=it.target.files[0];et.current=Pt,se(Pt,Nt)}return He.createElement(ae.default,z(E({form:Ee},oe),{className:"upload-image-panel",onFinish:St,style:{width:470,overflow:"hidden"}}),He.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},He.createElement("div",{className:"flex-container"},He.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},He.createElement(Ze.default,{style:te})),He.createElement(re,{onFileChange:Lt}))),He.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},He.createElement(Ze.default,{style:{width:264}})),He.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},He.createElement(_e.Z,null,He.createElement(ae.default.Item,{name:"width",style:{margin:0}},He.createElement(ve.Z,{style:{width:264}})),He.createElement("span",{className:"ml8"},"%"))),He.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},He.createElement(Ie.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"}]})),He.createElement("aside",null,He.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},He.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(Se.ZP,{type:"default",onClick:Le},"\u53D6\u6D88"))))};function re({onFileChange:le}){return He.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",He.createElement("input",{type:"file",onChange:le}))}function se(le,Le){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,je.bg)())throw Te.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ee=new FormData;Ee.append("editormd-image-file",le),Ee.append("file_param_name","editormd-image-file"),Ee.append("byxhr","true");var et=new window.XMLHttpRequest;et.withCredentials=!0,et.addEventListener("load",function(St){Le(JSON.parse(St.target.responseText),le)},!1),et.addEventListener("error",function(St){console.error(St)},!1),et.open("POST",`${Je.KI}/api/attachments.json`),et.send(Ee)}},35990:function(Fe,dt,ie){"use strict";ie.d(dt,{Z:function(){return Ze}});var ae=ie(59301),Te=ie(4676);class Ze extends ae.Component{constructor(ve){super(ve);const Ie=window.document;this.node=Ie.createElement("div"),Ie.body.appendChild(this.node)}render(){const{children:ve}=this.props;return(0,Te.createPortal)(ve,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},61904:function(Fe,dt,ie){"use strict";ie.d(dt,{Z:function(){return Te}});var ae=ie(59301);function Te(Ze,_e){const ve=(0,ae.useRef)();(0,ae.useEffect)(()=>{ve.current=Ze}),(0,ae.useEffect)(()=>{function Ie(){ve.current()}if(_e!==null){let Se=setInterval(Ie,_e);return()=>clearInterval(Se)}},[_e])}},24118:function(Fe,dt,ie){"use strict";ie.r(dt),ie.d(dt,{default:function(){return re}});var ae=ie(59301),Te=ie(86401),Ze=ie(8591),_e=ie(92832),ve=ie(3113),Ie=ie(97013),Se=(se,le,Le)=>new Promise((Ee,et)=>{var St=it=>{try{Lt(Le.next(it))}catch(Pt){et(Pt)}},Nt=it=>{try{Lt(Le.throw(it))}catch(Pt){et(Pt)}},Lt=it=>it.done?Ee(it.value):Promise.resolve(it.value).then(St,Nt);Lt((Le=Le.apply(se,le)).next())});function Je({setIscreate:se,init:le,UpdateItem:Le}){const[Ee,et]=(0,ae.useState)(""),[St,Nt]=(0,ae.useState)("");(0,ae.useEffect)(()=>{Le&&(et(Le&&Le.name),Nt(Le&&Le.description))},[Le]);function Lt(){return Se(this,null,function*(){if(!Ee){Ze.ZP.info("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!St){Ze.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}if(Le){it();return}(yield(0,Ie.ZP)("/api/hpc_courses.json",{method:"post",body:{name:Ee,description:St,container_type:window.location.pathname.split("/")[1]}}))&&(Ze.ZP.info("\u521B\u5EFA\u6210\u529F"),se(!1),le("add"))})}function it(){return Se(this,null,function*(){(yield(0,Ie.ZP)(`/api/hpc_courses/${Le.id}.json`,{method:"put",body:{name:Ee,description:St,container_type:window.location.pathname.split("/")[1]}}))&&(Ze.ZP.info("\u7F16\u8F91\u6210\u529F"),se(!1),le(""))})}return ae.createElement("div",null,ae.createElement(_e.default,{style:{marginBottom:"20px"},placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",value:Ee,maxLength:60,addonAfter:String(Ee.length)+"/60",onChange:Pt=>et(Pt.target.value)}),ae.createElement(Te.Z,{id:"courseContentMD",defaultValue:St,onChange:Pt=>Nt(Pt)}),ae.createElement("div",{className:"clearfix mt30 mb30"},ae.createElement(ve.ZP,{type:"primary",onClick:()=>Lt(),className:"defalutSubmitbtn fl mr20"},"\u63D0\u4EA4"),ae.createElement("a",{className:"defalutCancelbtn fl",onClick:()=>se(!1)},"\u53D6\u6D88")))}var Oe=Je,je=ie(95318),He=(se,le,Le)=>new Promise((Ee,et)=>{var St=it=>{try{Lt(Le.next(it))}catch(Pt){et(Pt)}},Nt=it=>{try{Lt(Le.throw(it))}catch(Pt){et(Pt)}},Lt=it=>it.done?Ee(it.value):Promise.resolve(it.value).then(St,Nt);Lt((Le=Le.apply(se,le)).next())});function qe({CourseItem:se,userId:le,init:Le,ItemUpdate:Ee,setSee:et,UserInfo:St}){function Nt(){return He(this,null,function*(){(yield(0,Ie.ZP)(`/api/hpc_courses/${se.id}.json`,{method:"delete"}))&&(Ze.ZP.info("\u5220\u9664\u6210\u529F"),Le("delete"),et(!1))})}function Lt(){Ee(se)}return ae.createElement("div",null,le===299635||le===301458||St!=null&&St.admin||St!=null&&St.business?ae.createElement("div",{style:{textAlign:"right"}},ae.createElement(ve.ZP,{onClick:()=>Lt()},"\u7F16\u8F91"),ae.createElement(ve.ZP,{onClick:()=>Nt(),style:{marginLeft:"30px"}},"\u5220\u9664")):null,ae.createElement("h1",null,se==null?void 0:se.name),ae.createElement(je.Z,{value:se==null?void 0:se.description}))}var Ve=qe,ne=ie(54580),a=ie(26869),y=ie(58106),x=Object.defineProperty,b=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(se,le,Le)=>le in se?x(se,le,{enumerable:!0,configurable:!0,writable:!0,value:Le}):se[le]=Le,te=(se,le)=>{for(var Le in le||(le={}))E.call(le,Le)&&ee(se,Le,le[Le]);if(b)for(var Le of b(le))z.call(le,Le)&&ee(se,Le,le[Le]);return se},oe=(se,le,Le)=>new Promise((Ee,et)=>{var St=it=>{try{Lt(Le.next(it))}catch(Pt){et(Pt)}},Nt=it=>{try{Lt(Le.throw(it))}catch(Pt){et(Pt)}},Lt=it=>it.done?Ee(it.value):Promise.resolve(it.value).then(St,Nt);Lt((Le=Le.apply(se,le)).next())});function ge({user:se,dispatch:le}){var Le,Ee,et,St,Nt,Lt,it,Pt,yn;const[pn,wn]=(0,ae.useState)(1),[Fn,Jn]=(0,ae.useState)(100),[Zn,ye]=(0,ae.useState)([]),[ze,Re]=(0,ae.useState)(!1),[xt,$e]=(0,ae.useState)(!1),[ht,de]=(0,ae.useState)(""),[Xe,Et]=(0,ae.useState)(""),[on,_t]=(0,ae.useState)("");let{itemname:zn}=(0,y.useParams)();const[Tn,$t]=(0,ae.useState)("");(0,ae.useEffect)(()=>{le({type:"globalSetting/headerToggle",payload:!1}),pn&&Un("")},[pn]);function Un(Ut){return oe(this,null,function*(){var Yt,tn;const Mt=yield(0,Ie.ZP)("/api/hpc_courses.json",{method:"get",params:{page:pn,per_page:Fn,container_type:window.location.pathname.split("/")[1]}});if(Mt){let qn=Mt.data.hpc_courses.length;if(ye(Mt.data.hpc_courses),_t(Mt.data.file_url),Et(""),!qn)return;if(Tn)if(Ut==="delete"){if(qn===0){$e(!1);return}de(Mt.data.hpc_courses[0]),$e(!0),$t(Mt.data.hpc_courses[0].id)}else Ut==="add"?(de(Mt.data.hpc_courses[qn-1]),$e(!0),$t(Mt.data.hpc_courses[qn-1].id)):(de(Mt.data.hpc_courses.filter(na=>na.id===Tn)[0]),$e(!0),$t(Tn));else if(zn){let na=0;(tn=(Yt=Mt==null?void 0:Mt.data)==null?void 0:Yt.hpc_courses)==null||tn.map((ma,Sa)=>{var Rn;(zn==null?void 0:zn.toLocaleLowerCase())===((Rn=ma==null?void 0:ma.name)==null?void 0:Rn.toLocaleLowerCase())&&(na=Sa)}),de(Mt.data.hpc_courses[na]),$e(!0),$t(Mt.data.hpc_courses[na].id),(zn==null?void 0:zn.toLocaleLowerCase())==="resources"&&(de(Mt.data.hpc_courses.filter(ma=>ma.id===15)[0]),$e(!0),$t(15))}else de(Mt.data.hpc_courses[0]),$e(!0),$t(Mt.data.hpc_courses[0].id)}})}function Qn(Ut){Re(!1),$e(!0),de(Ut),$t(Ut.id)}function In(Ut){Et(Ut),Re(!0),$e(!1)}function Xn(){Et(""),Re(!0),$e(!1)}const On={name:"file",multiple:!0,action:"https://www.educoder.net/api/hpc_courses/upload_file.json",data:{container_type:window.location.pathname.split("/")[1]},onChange(Ut){const{status:Yt}=Ut.file;Yt==="done"?(Ze.ZP.success(`${Ut.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`),Un("")):Yt==="error"&&Ze.ZP.error(`${Ut.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Ut=>{const Yt=Ut.size/1024/1024<150;return Yt||Ze.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),Yt}};return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("div",{className:"bannterdiv",style:{background:`url(${a.Z.IMG_SERVER+`/${on}`})`}}),ae.createElement("img",{style:{width:"100%"},src:a.Z.IMG_SERVER+`/${on}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement("div",{style:{flex:"1",marginTop:"17px"}},Zn&&Zn.map((Ut,Yt)=>ae.createElement("p",{key:Yt,onClick:()=>Qn(Ut),className:Tn===Ut.id?"menuitemselect":"menuitem task-hide"},Ut.name)),((Le=se==null?void 0:se.userInfo)==null?void 0:Le.user_id)===299635||((Ee=se==null?void 0:se.userInfo)==null?void 0:Ee.user_id)===301458||(et=se==null?void 0:se.userInfo)!=null&&et.admin||(St=se==null?void 0:se.userInfo)!=null&&St.business?ae.createElement("p",{onClick:()=>Xn(),className:"menuadd",style:{fontSize:"24px",paddingLeft:"10px"}},ae.createElement("span",{style:{fontSize:"16px",marginLeft:"5px"}},"Last updated")):null),ae.createElement("div",{className:"rightcount",style:{flex:"6",background:"#ffffff",padding:"20px",marginLeft:"30px",marginTop:"24px"}},ze?ae.createElement(Oe,{UpdateItem:Xe,setIscreate:Re,init:Un}):null,xt?ae.createElement(Ve,{UserInfo:se==null?void 0:se.userInfo,setSee:$e,userId:(Nt=se==null?void 0:se.userInfo)==null?void 0:Nt.user_id,ItemUpdate:In,CourseItem:ht,init:Un}):null)),((Lt=se==null?void 0:se.userInfo)==null?void 0:Lt.user_id)===299635||((it=se==null?void 0:se.userInfo)==null?void 0:it.user_id)===301458||(Pt=se==null?void 0:se.userInfo)!=null&&Pt.admin||(yn=se==null?void 0:se.userInfo)!=null&&yn.business?ae.createElement(ne.default,te({},On),ae.createElement(ve.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)},56762:function(Fe,dt,ie){"use strict";ie.d(dt,{Z:function(){return Te}});var ae=ie(59301);function Te(){const[,Ze]=ae.useReducer(_e=>_e+1,0);return Ze}},93948:function(Fe,dt,ie){"use strict";ie.d(dt,{Z:function(){return Rn}});var ae=ie(59301),Te=ie(29679),Ze=ie(40001),_e=ie(19248),ve=ie(99267),Ie=ie(92310),Se=ie.n(Ie),Je=ie(2738),Oe=ie(36355),je=ie(54476),He=ie(33885),qe=ie(75931),Ve={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var be=(0,ae.useRef)([]),Ae=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Ue=Date.now(),Qe=!1;be.current.forEach(function(yt){if(yt){Qe=!0;var Bt=yt.style;Bt.transitionDuration=".3s, .3s, .3s, .06s",Ae.current&&Ue-Ae.current<100&&(Bt.transitionDuration="0s, 0s")}}),Qe&&(Ae.current=Date.now())}),be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(be){var Ae=(0,He.Z)((0,He.Z)({},Ve),be),Ue=Ae.className,Qe=Ae.percent,yt=Ae.prefixCls,Bt=Ae.strokeColor,ft=Ae.strokeLinecap,Ft=Ae.strokeWidth,Dt=Ae.style,At=Ae.trailColor,It=Ae.trailWidth,gn=Ae.transition,sn=(0,qe.Z)(Ae,a);delete sn.gapPosition;var un=Array.isArray(Qe)?Qe:[Qe],Kt=Array.isArray(Bt)?Bt:[Bt],Ht=ne(),bn=Ft/2,cn=100-Ft/2,Sn="M ".concat(ft==="round"?bn:0,",").concat(bn,`
L `).concat(ft==="round"?cn:100,",").concat(bn),Zt="0 0 100 ".concat(Ft),Nn=0;return ae.createElement("svg",(0,je.Z)({className:Se()("".concat(yt,"-line"),Ue),viewBox:Zt,preserveAspectRatio:"none",style:Dt},sn),ae.createElement("path",{className:"".concat(yt,"-line-trail"),d:Sn,strokeLinecap:ft,stroke:At,strokeWidth:It||Ft,fillOpacity:"0"}),un.map(function(Kn,_n){var Mn=1;switch(ft){case"round":Mn=1-Ft/100;break;case"square":Mn=1-Ft/2/100;break;default:Mn=1;break}var Vn={strokeDasharray:"".concat(Kn*Mn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:gn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},jn=Kt[_n]||Kt[Kt.length-1];return Nn+=Kn,ae.createElement("path",{key:_n,className:"".concat(yt,"-line-path"),d:Sn,strokeLinecap:ft,stroke:jn,strokeWidth:Ft,fillOpacity:"0",ref:function(Pe){Ht[_n]=Pe},style:Vn})}))},x=y,b=ie(76190),E=ie(42978),z=ie(47273),ee=0,te=(0,z.Z)();function oe(){var he;return te?(he=ee,ee+=1):he="TEST_OR_SSR",he}var ge=function(he){var be=ae.useState(),Ae=(0,E.Z)(be,2),Ue=Ae[0],Qe=Ae[1];return ae.useEffect(function(){Qe("rc_progress_".concat(oe()))},[]),he||Ue},re=function(be){var Ae=be.bg,Ue=be.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Ae}},Ue)};function se(he,be){return Object.keys(he).map(function(Ae){var Ue=parseFloat(Ae),Qe="".concat(Math.floor(Ue*be),"%");return"".concat(he[Ae]," ").concat(Qe)})}var le=ae.forwardRef(function(he,be){var Ae=he.prefixCls,Ue=he.color,Qe=he.gradientId,yt=he.radius,Bt=he.style,ft=he.ptg,Ft=he.strokeLinecap,Dt=he.strokeWidth,At=he.size,It=he.gapDegree,gn=Ue&&(0,b.Z)(Ue)==="object",sn=gn?"#FFF":void 0,un=At/2,Kt=ae.createElement("circle",{className:"".concat(Ae,"-circle-path"),r:yt,cx:un,cy:un,stroke:sn,strokeLinecap:Ft,strokeWidth:Dt,opacity:ft===0?0:1,style:Bt,ref:be});if(!gn)return Kt;var Ht="".concat(Qe,"-conic"),bn=It?"".concat(180+It/2,"deg"):"0deg",cn=se(Ue,(360-It)/360),Sn=se(Ue,1),Zt="conic-gradient(from ".concat(bn,", ").concat(cn.join(", "),")"),Nn="linear-gradient(to ".concat(It?"bottom":"top",", ").concat(Sn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Ht},Kt),ae.createElement("foreignObject",{x:0,y:0,width:At,height:At,mask:"url(#".concat(Ht,")")},ae.createElement(re,{bg:Nn},ae.createElement(re,{bg:Zt}))))}),Le=le,Ee=100,et=function(be,Ae,Ue,Qe,yt,Bt,ft,Ft,Dt,At){var It=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,gn=Ue/100*360*((360-Bt)/360),sn=Bt===0?0:{bottom:0,top:180,left:90,right:-90}[ft],un=(100-Qe)/100*Ae;Dt==="round"&&Qe!==100&&(un+=At/2,un>=Ae&&(un=Ae-.01));var Kt=Ee/2;return{stroke:typeof Ft=="string"?Ft:void 0,strokeDasharray:"".concat(Ae,"px ").concat(be),strokeDashoffset:un+It,transform:"rotate(".concat(yt+gn+sn,"deg)"),transformOrigin:"".concat(Kt,"px ").concat(Kt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},St=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Nt(he){var be=he!=null?he:[];return Array.isArray(be)?be:[be]}var Lt=function(be){var Ae=(0,He.Z)((0,He.Z)({},Ve),be),Ue=Ae.id,Qe=Ae.prefixCls,yt=Ae.steps,Bt=Ae.strokeWidth,ft=Ae.trailWidth,Ft=Ae.gapDegree,Dt=Ft===void 0?0:Ft,At=Ae.gapPosition,It=Ae.trailColor,gn=Ae.strokeLinecap,sn=Ae.style,un=Ae.className,Kt=Ae.strokeColor,Ht=Ae.percent,bn=(0,qe.Z)(Ae,St),cn=Ee/2,Sn=ge(Ue),Zt="".concat(Sn,"-gradient"),Nn=cn-Bt/2,Kn=Math.PI*2*Nn,_n=Dt>0?90+Dt/2:-90,Mn=Kn*((360-Dt)/360),Vn=(0,b.Z)(yt)==="object"?yt:{count:yt,space:2},jn=Vn.count,ce=Vn.space,Pe=Nt(Ht),ue=Nt(Kt),ke=ue.find(function(Bn){return Bn&&(0,b.Z)(Bn)==="object"}),gt=ke&&(0,b.Z)(ke)==="object",tt=gt?"butt":gn,Tt=et(Kn,Mn,0,100,_n,Dt,At,It,tt,Bt),pt=ne(),Ct=function(){var De=0;return Pe.map(function(zt,Pn){var An=ue[Pn]||ue[ue.length-1],nn=et(Kn,Mn,De,zt,_n,Dt,At,An,tt,Bt);return De+=zt,ae.createElement(Le,{key:Pn,color:An,ptg:zt,radius:Nn,prefixCls:Qe,gradientId:Zt,style:nn,strokeLinecap:tt,strokeWidth:Bt,gapDegree:Dt,ref:function(pe){pt[Pn]=pe},size:Ee})}).reverse()},Vt=function(){var De=Math.round(jn*(Pe[0]/100)),zt=100/jn,Pn=0;return new Array(jn).fill(null).map(function(An,nn){var me=nn<=De-1?ue[0]:It,pe=me&&(0,b.Z)(me)==="object"?"url(#".concat(Zt,")"):void 0,fe=et(Kn,Mn,Pn,zt,_n,Dt,At,me,"butt",Bt,ce);return Pn+=(Mn-fe.strokeDashoffset+ce)*100/Mn,ae.createElement("circle",{key:nn,className:"".concat(Qe,"-circle-path"),r:Nn,cx:cn,cy:cn,stroke:pe,strokeWidth:Bt,opacity:1,style:fe,ref:function(Ne){pt[nn]=Ne}})})};return ae.createElement("svg",(0,je.Z)({className:Se()("".concat(Qe,"-circle"),un),viewBox:"0 0 ".concat(Ee," ").concat(Ee),style:sn,id:Ue,role:"presentation"},bn),!jn&&ae.createElement("circle",{className:"".concat(Qe,"-circle-trail"),r:Nn,cx:cn,cy:cn,stroke:It,strokeLinecap:tt,strokeWidth:ft||Bt,style:Tt}),jn?Vt():Ct())},it=Lt,Pt={Line:x,Circle:it},yn=ie(6848),pn=ie(30071);function wn(he){return!he||he<0?0:he>100?100:he}function Fn(he){let{success:be,successPercent:Ae}=he,Ue=Ae;return be&&"progress"in be&&(Ue=be.progress),be&&"percent"in be&&(Ue=be.percent),Ue}const Jn=he=>{let{percent:be,success:Ae,successPercent:Ue}=he;const Qe=wn(Fn({success:Ae,successPercent:Ue}));return[Qe,wn(wn(be)-Qe)]},Zn=he=>{let{success:be={},strokeColor:Ae}=he;const{strokeColor:Ue}=be;return[Ue||pn.presetPrimaryColors.green,Ae||null]},ye=(he,be,Ae)=>{var Ue,Qe,yt,Bt;let ft=-1,Ft=-1;if(be==="step"){const Dt=Ae.steps,At=Ae.strokeWidth;typeof he=="string"||typeof he=="undefined"?(ft=he==="small"?2:14,Ft=At!=null?At:8):typeof he=="number"?[ft,Ft]=[he,he]:[ft=14,Ft=8]=he,ft*=Dt}else if(be==="line"){const Dt=Ae==null?void 0:Ae.strokeWidth;typeof he=="string"||typeof he=="undefined"?Ft=Dt||(he==="small"?6:8):typeof he=="number"?[ft,Ft]=[he,he]:[ft=-1,Ft=8]=he}else(be==="circle"||be==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[ft,Ft]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[ft,Ft]=[he,he]:(ft=(Qe=(Ue=he[0])!==null&&Ue!==void 0?Ue:he[1])!==null&&Qe!==void 0?Qe:120,Ft=(Bt=(yt=he[0])!==null&&yt!==void 0?yt:he[1])!==null&&Bt!==void 0?Bt:120));return[ft,Ft]},ze=3,Re=he=>ze/he*100;var $e=he=>{const{prefixCls:be,trailColor:Ae=null,strokeLinecap:Ue="round",gapPosition:Qe,gapDegree:yt,width:Bt=120,type:ft,children:Ft,success:Dt,size:At=Bt}=he,[It,gn]=ye(At,"circle");let{strokeWidth:sn}=he;sn===void 0&&(sn=Math.max(Re(It),6));const un={width:It,height:gn,fontSize:It*.15+6},Kt=ae.useMemo(()=>{if(yt||yt===0)return yt;if(ft==="dashboard")return 75},[yt,ft]),Ht=Qe||ft==="dashboard"&&"bottom"||void 0,bn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",cn=Zn({success:Dt,strokeColor:he.strokeColor}),Sn=Se()(`${be}-inner`,{[`${be}-circle-gradient`]:bn}),Zt=ae.createElement(it,{percent:Jn(he),strokeWidth:sn,trailWidth:sn,strokeColor:cn,strokeLinecap:Ue,trailColor:Ae,prefixCls:be,gapDegree:Kt,gapPosition:Ht});return ae.createElement("div",{className:Sn,style:un},It<=20?ae.createElement(yn.Z,{title:Ft},ae.createElement("span",null,Zt)):ae.createElement(ae.Fragment,null,Zt,Ft))},ht=function(he,be){var Ae={};for(var Ue in he)Object.prototype.hasOwnProperty.call(he,Ue)&&be.indexOf(Ue)<0&&(Ae[Ue]=he[Ue]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Ue=Object.getOwnPropertySymbols(he);Qe<Ue.length;Qe++)be.indexOf(Ue[Qe])<0&&Object.prototype.propertyIsEnumerable.call(he,Ue[Qe])&&(Ae[Ue[Qe]]=he[Ue[Qe]]);return Ae};const de=he=>{let be=[];return Object.keys(he).forEach(Ae=>{const Ue=parseFloat(Ae.replace(/%/g,""));isNaN(Ue)||be.push({key:Ue,value:he[Ae]})}),be=be.sort((Ae,Ue)=>Ae.key-Ue.key),be.map(Ae=>{let{key:Ue,value:Qe}=Ae;return`${Qe} ${Ue}%`}).join(", ")},Xe=(he,be)=>{const{from:Ae=pn.presetPrimaryColors.blue,to:Ue=pn.presetPrimaryColors.blue,direction:Qe=be==="rtl"?"to left":"to right"}=he,yt=ht(he,["from","to","direction"]);if(Object.keys(yt).length!==0){const Bt=de(yt);return{backgroundImage:`linear-gradient(${Qe}, ${Bt})`}}return{backgroundImage:`linear-gradient(${Qe}, ${Ae}, ${Ue})`}};var on=he=>{const{prefixCls:be,direction:Ae,percent:Ue,size:Qe,strokeWidth:yt,strokeColor:Bt,strokeLinecap:ft="round",children:Ft,trailColor:Dt=null,success:At}=he,It=Bt&&typeof Bt!="string"?Xe(Bt,Ae):{backgroundColor:Bt},gn=ft==="square"||ft==="butt"?0:void 0,sn={backgroundColor:Dt||void 0,borderRadius:gn},un=Qe!=null?Qe:[-1,yt||(Qe==="small"?6:8)],[Kt,Ht]=ye(un,"line",{strokeWidth:yt}),bn=Object.assign({width:`${wn(Ue)}%`,height:Ht,borderRadius:gn},It),cn=Fn(he),Sn={width:`${wn(cn)}%`,height:Ht,borderRadius:gn,backgroundColor:At==null?void 0:At.strokeColor},Zt={width:Kt<0?"100%":Kt,height:Ht};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${be}-outer`,style:Zt},ae.createElement("div",{className:`${be}-inner`,style:sn},ae.createElement("div",{className:`${be}-bg`,style:bn}),cn!==void 0?ae.createElement("div",{className:`${be}-success-bg`,style:Sn}):null)),Ft)},zn=he=>{const{size:be,steps:Ae,percent:Ue=0,strokeWidth:Qe=8,strokeColor:yt,trailColor:Bt=null,prefixCls:ft,children:Ft}=he,Dt=Math.round(Ae*(Ue/100)),At=be==="small"?2:14,It=be!=null?be:[At,Qe],[gn,sn]=ye(It,"step",{steps:Ae,strokeWidth:Qe}),un=gn/Ae,Kt=new Array(Ae);for(let Ht=0;Ht<Ae;Ht++){const bn=Array.isArray(yt)?yt[Ht]:yt;Kt[Ht]=ae.createElement("div",{key:Ht,className:Se()(`${ft}-steps-item`,{[`${ft}-steps-item-active`]:Ht<=Dt-1}),style:{backgroundColor:Ht<=Dt-1?bn:Bt,width:un,height:sn}})}return ae.createElement("div",{className:`${ft}-steps-outer`},Kt,Ft)},Tn=ie(36237),$t=ie(17313),Un=ie(83116),Qn=ie(37613);const In=he=>{const be=he?"100%":"-100%";return new Tn.Keyframes(`antProgress${he?"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}})},Xn=he=>{const{componentCls:be,iconCls:Ae}=he;return{[be]:Object.assign(Object.assign({},(0,$t.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${be}-outer`]:{display:"inline-block",width:"100%"},[`&${be}-show-info`]:{[`${be}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:he.defaultColor}},[`${be}-success-bg, ${be}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ae]:{fontSize:he.fontSize}},[`&${be}-status-active`]:{[`${be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:In(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${be}-rtl${be}-status-active`]:{[`${be}-bg::before`]:{animationName:In(!0)}},[`&${be}-status-exception`]:{[`${be}-bg`]:{backgroundColor:he.colorError},[`${be}-text`]:{color:he.colorError}},[`&${be}-status-exception ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:he.colorError}},[`&${be}-status-success`]:{[`${be}-bg`]:{backgroundColor:he.colorSuccess},[`${be}-text`]:{color:he.colorSuccess}},[`&${be}-status-success ${be}-inner:not(${be}-circle-gradient)`]:{[`${be}-circle-path`]:{stroke:he.colorSuccess}}})}},On=he=>{const{componentCls:be,iconCls:Ae}=he;return{[be]:{[`${be}-circle-trail`]:{stroke:he.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:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ae]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${be}-circle&-status-exception`]:{[`${be}-text`]:{color:he.colorError}},[`${be}-circle&-status-success`]:{[`${be}-text`]:{color:he.colorSuccess}}},[`${be}-inline-circle`]:{lineHeight:1,[`${be}-inner`]:{verticalAlign:"bottom"}}}},Ut=he=>{const{componentCls:be}=he;return{[be]:{[`${be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},Yt=he=>{const{componentCls:be,iconCls:Ae}=he;return{[be]:{[`${be}-small&-line, ${be}-small&-line ${be}-text ${Ae}`]:{fontSize:he.fontSizeSM}}}};var tn=(0,Un.Z)("Progress",he=>{const be=he.marginXXS/2,Ae=(0,Qn.TS)(he,{progressStepMarginInlineEnd:be,progressStepMinWidth:be,progressActiveMotionDuration:"2.4s"});return[Xn(Ae),On(Ae),Ut(Ae),Yt(Ae)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Mt=function(he,be){var Ae={};for(var Ue in he)Object.prototype.hasOwnProperty.call(he,Ue)&&be.indexOf(Ue)<0&&(Ae[Ue]=he[Ue]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,Ue=Object.getOwnPropertySymbols(he);Qe<Ue.length;Qe++)be.indexOf(Ue[Qe])<0&&Object.prototype.propertyIsEnumerable.call(he,Ue[Qe])&&(Ae[Ue[Qe]]=he[Ue[Qe]]);return Ae};const qn=null,na=["normal","exception","active","success"];var Sa=ae.forwardRef((he,be)=>{const{prefixCls:Ae,className:Ue,rootClassName:Qe,steps:yt,strokeColor:Bt,percent:ft=0,size:Ft="default",showInfo:Dt=!0,type:At="line",status:It,format:gn,style:sn}=he,un=Mt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Kt=ae.useMemo(()=>{var Pe,ue;const ke=Fn(he);return parseInt(ke!==void 0?(Pe=ke!=null?ke:0)===null||Pe===void 0?void 0:Pe.toString():(ue=ft!=null?ft:0)===null||ue===void 0?void 0:ue.toString(),10)},[ft,he.success,he.successPercent]),Ht=ae.useMemo(()=>!na.includes(It)&&Kt>=100?"success":It||"normal",[It,Kt]),{getPrefixCls:bn,direction:cn,progress:Sn}=ae.useContext(Oe.E_),Zt=bn("progress",Ae),[Nn,Kn]=tn(Zt),_n=ae.useMemo(()=>{if(!Dt)return null;const Pe=Fn(he);let ue;const ke=gn||(tt=>`${tt}%`),gt=At==="line";return gn||Ht!=="exception"&&Ht!=="success"?ue=ke(wn(ft),wn(Pe)):Ht==="exception"?ue=gt?ae.createElement(_e.Z,null):ae.createElement(ve.Z,null):Ht==="success"&&(ue=gt?ae.createElement(Te.Z,null):ae.createElement(Ze.Z,null)),ae.createElement("span",{className:`${Zt}-text`,title:typeof ue=="string"?ue:void 0},ue)},[Dt,ft,Kt,Ht,At,Zt,gn]),Mn=Array.isArray(Bt)?Bt[0]:Bt,Vn=typeof Bt=="string"||Array.isArray(Bt)?Bt:void 0;let jn;At==="line"?jn=yt?ae.createElement(zn,Object.assign({},he,{strokeColor:Vn,prefixCls:Zt,steps:yt}),_n):ae.createElement(on,Object.assign({},he,{strokeColor:Mn,prefixCls:Zt,direction:cn}),_n):(At==="circle"||At==="dashboard")&&(jn=ae.createElement($e,Object.assign({},he,{strokeColor:Mn,prefixCls:Zt,progressStatus:Ht}),_n));const ce=Se()(Zt,`${Zt}-status-${Ht}`,`${Zt}-${At==="dashboard"&&"circle"||yt&&"steps"||At}`,{[`${Zt}-inline-circle`]:At==="circle"&&ye(Ft,"circle")[0]<=20,[`${Zt}-show-info`]:Dt,[`${Zt}-${Ft}`]:typeof Ft=="string",[`${Zt}-rtl`]:cn==="rtl"},Sn==null?void 0:Sn.className,Ue,Qe,Kn);return Nn(ae.createElement("div",Object.assign({ref:be,style:Object.assign(Object.assign({},Sn==null?void 0:Sn.style),sn),className:ce,role:"progressbar","aria-valuenow":Kt},(0,Je.Z)(un,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),jn))}),Rn=Sa},54580:function(Fe,dt,ie){"use strict";ie.d(dt,{default:function(){return nn}});var ae=ie(59301),Te=ie(94480),Ze=ie(92310),_e=ie.n(Ze),ve=ie(54476),Ie=ie(67732),Se=ie(83652),Je=ie(42403),Oe=ie(158),je=ie(20068),He=ie(75931),qe=ie(75044),Ve=ie(76190),ne=ie(3202),a=ie(26112);function y(me,pe){var fe="cannot ".concat(me.method," ").concat(me.action," ").concat(pe.status,"'"),Be=new Error(fe);return Be.status=pe.status,Be.method=me.method,Be.url=me.action,Be}function x(me){var pe=me.responseText||me.response;if(!pe)return pe;try{return JSON.parse(pe)}catch(fe){return pe}}function b(me){var pe=new XMLHttpRequest;me.onProgress&&pe.upload&&(pe.upload.onprogress=function(Me){Me.total>0&&(Me.percent=Me.loaded/Me.total*100),me.onProgress(Me)});var fe=new FormData;me.data&&Object.keys(me.data).forEach(function(Ne){var Me=me.data[Ne];if(Array.isArray(Me)){Me.forEach(function(Ge){fe.append("".concat(Ne,"[]"),Ge)});return}fe.append(Ne,Me)}),me.file instanceof Blob?fe.append(me.filename,me.file,me.file.name):fe.append(me.filename,me.file),pe.onerror=function(Me){me.onError(Me)},pe.onload=function(){return pe.status<200||pe.status>=300?me.onError(y(me,pe),x(pe)):me.onSuccess(x(pe),pe)},pe.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in pe&&(pe.withCredentials=!0);var Be=me.headers||{};return Be["X-Requested-With"]!==null&&pe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Be).forEach(function(Ne){Be[Ne]!==null&&pe.setRequestHeader(Ne,Be[Ne])}),pe.send(fe),{abort:function(){pe.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=ie(48736),oe=function(me,pe){if(me&&pe){var fe=Array.isArray(pe)?pe:pe.split(","),Be=me.name||"",Ne=me.type||"",Me=Ne.replace(/\/.*$/,"");return fe.some(function(Ge){var xe=Ge.trim();if(/^\*(\/\*)?$/.test(Ge))return!0;if(xe.charAt(0)==="."){var mt=Be.toLowerCase(),lt=xe.toLowerCase(),st=[lt];return(lt===".jpg"||lt===".jpeg")&&(st=[".jpg",".jpeg"]),st.some(function(we){return mt.endsWith(we)})}return/\/\*$/.test(xe)?Me===xe.replace(/\/.*$/,""):Ne===xe?!0:/^\w+$/.test(xe)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(xe,"'.Skip for check.")),!0):!1})}return!0};function ge(me,pe){var fe=me.createReader(),Be=[];function Ne(){fe.readEntries(function(Me){var Ge=Array.prototype.slice.apply(Me);Be=Be.concat(Ge);var xe=!Ge.length;xe?pe(Be):Ne()})}Ne()}var re=function(pe,fe,Be){var Ne=function Me(Ge,xe){Ge&&(Ge.path=xe||"",Ge.isFile?Ge.file(function(mt){Be(mt)&&(Ge.fullPath&&!mt.webkitRelativePath&&(Object.defineProperties(mt,{webkitRelativePath:{writable:!0}}),mt.webkitRelativePath=Ge.fullPath.replace(/^\//,""),Object.defineProperties(mt,{webkitRelativePath:{writable:!1}})),fe([mt]))}):Ge.isDirectory&&ge(Ge,function(mt){mt.forEach(function(lt){Me(lt,"".concat(xe).concat(Ge.name,"/"))})}))};pe.forEach(function(Me){Ne(Me.webkitGetAsEntry())})},se=re,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Le=function(me){(0,Je.Z)(fe,me);var pe=(0,Oe.Z)(fe);function fe(){var Be;(0,Ie.Z)(this,fe);for(var Ne=arguments.length,Me=new Array(Ne),Ge=0;Ge<Ne;Ge++)Me[Ge]=arguments[Ge];return Be=pe.call.apply(pe,[this].concat(Me)),Be.state={uid:ee()},Be.reqs={},Be.fileInput=void 0,Be._isMounted=void 0,Be.onChange=function(xe){var mt=Be.props,lt=mt.accept,st=mt.directory,we=xe.target.files,Ot=(0,Te.Z)(we).filter(function(Xt){return!st||oe(Xt,lt)});Be.uploadFiles(Ot),Be.reset()},Be.onClick=function(xe){var mt=Be.fileInput;if(mt){var lt=xe.target,st=Be.props.onClick;if(lt&&lt.tagName==="BUTTON"){var we=mt.parentNode;we.focus(),lt.blur()}mt.click(),st&&st(xe)}},Be.onKeyDown=function(xe){xe.key==="Enter"&&Be.onClick(xe)},Be.onFileDrop=function(xe){var mt=Be.props.multiple;if(xe.preventDefault(),xe.type!=="dragover")if(Be.props.directory)se(Array.prototype.slice.call(xe.dataTransfer.items),Be.uploadFiles,function(st){return oe(st,Be.props.accept)});else{var lt=(0,Te.Z)(xe.dataTransfer.files).filter(function(st){return oe(st,Be.props.accept)});mt===!1&&(lt=lt.slice(0,1)),Be.uploadFiles(lt)}},Be.uploadFiles=function(xe){var mt=(0,Te.Z)(xe),lt=mt.map(function(st){return st.uid=ee(),Be.processFile(st,mt)});Promise.all(lt).then(function(st){var we=Be.props.onBatchStart;we==null||we(st.map(function(Ot){var Xt=Ot.origin,hn=Ot.parsedFile;return{file:Xt,parsedFile:hn}})),st.filter(function(Ot){return Ot.parsedFile!==null}).forEach(function(Ot){Be.post(Ot)})})},Be.processFile=function(){var xe=(0,ne.Z)((0,qe.Z)().mark(function mt(lt,st){var we,Ot,Xt,hn,Ce,Ye,at,rt,vt;return(0,qe.Z)().wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:if(we=Be.props.beforeUpload,Ot=lt,!we){ut.next=14;break}return ut.prev=3,ut.next=6,we(lt,st);case 6:Ot=ut.sent,ut.next=12;break;case 9:ut.prev=9,ut.t0=ut.catch(3),Ot=!1;case 12:if(Ot!==!1){ut.next=14;break}return ut.abrupt("return",{origin:lt,parsedFile:null,action:null,data:null});case 14:if(Xt=Be.props.action,typeof Xt!="function"){ut.next=21;break}return ut.next=18,Xt(lt);case 18:hn=ut.sent,ut.next=22;break;case 21:hn=Xt;case 22:if(Ce=Be.props.data,typeof Ce!="function"){ut.next=29;break}return ut.next=26,Ce(lt);case 26:Ye=ut.sent,ut.next=30;break;case 29:Ye=Ce;case 30:return at=((0,Ve.Z)(Ot)==="object"||typeof Ot=="string")&&Ot?Ot:lt,at instanceof File?rt=at:rt=new File([at],lt.name,{type:lt.type}),vt=rt,vt.uid=lt.uid,ut.abrupt("return",{origin:lt,data:Ye,parsedFile:vt,action:hn});case 35:case"end":return ut.stop()}},mt,null,[[3,9]])}));return function(mt,lt){return xe.apply(this,arguments)}}(),Be.saveFileInput=function(xe){Be.fileInput=xe},Be}return(0,Se.Z)(fe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ne){var Me=this,Ge=Ne.data,xe=Ne.origin,mt=Ne.action,lt=Ne.parsedFile;if(this._isMounted){var st=this.props,we=st.onStart,Ot=st.customRequest,Xt=st.name,hn=st.headers,Ce=st.withCredentials,Ye=st.method,at=xe.uid,rt=Ot||b,vt={action:mt,filename:Xt,data:Ge,file:lt,headers:hn,withCredentials:Ce,method:Ye||"post",onProgress:function(ut){var jt=Me.props.onProgress;jt==null||jt(ut,lt)},onSuccess:function(ut,jt){var Wt=Me.props.onSuccess;Wt==null||Wt(ut,lt,jt),delete Me.reqs[at]},onError:function(ut,jt){var Wt=Me.props.onError;Wt==null||Wt(ut,jt,lt),delete Me.reqs[at]}};we(xe),this.reqs[at]=rt(vt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Ne){var Me=this.reqs;if(Ne){var Ge=Ne.uid?Ne.uid:Ne;Me[Ge]&&Me[Ge].abort&&Me[Ge].abort(),delete Me[Ge]}else Object.keys(Me).forEach(function(xe){Me[xe]&&Me[xe].abort&&Me[xe].abort(),delete Me[xe]})}},{key:"render",value:function(){var Ne=this.props,Me=Ne.component,Ge=Ne.prefixCls,xe=Ne.className,mt=Ne.disabled,lt=Ne.id,st=Ne.style,we=Ne.multiple,Ot=Ne.accept,Xt=Ne.capture,hn=Ne.children,Ce=Ne.directory,Ye=Ne.openFileDialogOnClick,at=Ne.onMouseEnter,rt=Ne.onMouseLeave,vt=(0,He.Z)(Ne,le),bt=_e()((0,je.Z)((0,je.Z)((0,je.Z)({},Ge,!0),"".concat(Ge,"-disabled"),mt),xe,xe)),ut=Ce?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},jt=mt?{}:{onClick:Ye?this.onClick:function(){},onKeyDown:Ye?this.onKeyDown:function(){},onMouseEnter:at,onMouseLeave:rt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Me,(0,ve.Z)({},jt,{className:bt,role:"button",style:st}),ae.createElement("input",(0,ve.Z)({},(0,a.Z)(vt,{aria:!0,data:!0}),{id:lt,disabled:mt,type:"file",ref:this.saveFileInput,onClick:function(Hn){return Hn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ot},ut,{multiple:we,onChange:this.onChange},Xt!=null?{capture:Xt}:{})),hn)}}]),fe}(ae.Component),Ee=Le;function et(){}var St=function(me){(0,Je.Z)(fe,me);var pe=(0,Oe.Z)(fe);function fe(){var Be;(0,Ie.Z)(this,fe);for(var Ne=arguments.length,Me=new Array(Ne),Ge=0;Ge<Ne;Ge++)Me[Ge]=arguments[Ge];return Be=pe.call.apply(pe,[this].concat(Me)),Be.uploader=void 0,Be.saveUploader=function(xe){Be.uploader=xe},Be}return(0,Se.Z)(fe,[{key:"abort",value:function(Ne){this.uploader.abort(Ne)}},{key:"render",value:function(){return ae.createElement(Ee,(0,ve.Z)({},this.props,{ref:this.saveUploader}))}}]),fe}(ae.Component);St.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:et,onError:et,onSuccess:et,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Nt=St,Lt=Nt,it=ie(18929),Pt=ie(4676),yn=ie(36355),pn=ie(1684),wn=ie(9763),Fn=ie(31724),Jn={icon:function(pe,fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:fe}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:pe}}]}},name:"file",theme:"twotone"},Zn=Jn,ye=ie(7657),ze=function(pe,fe){return ae.createElement(ye.Z,(0,ve.Z)({},pe,{ref:fe,icon:Zn}))},Re=ae.forwardRef(ze),xt=Re,$e=ie(58617),ht={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"},de=ht,Xe=function(pe,fe){return ae.createElement(ye.Z,(0,ve.Z)({},pe,{ref:fe,icon:de}))},Et=ae.forwardRef(Xe),on=Et,_t={icon:function(pe,fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:pe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:fe}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:fe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:fe}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:pe}}]}},name:"picture",theme:"twotone"},zn=_t,Tn=function(pe,fe){return ae.createElement(ye.Z,(0,ve.Z)({},pe,{ref:fe,icon:zn}))},$t=ae.forwardRef(Tn),Un=$t,Qn=ie(77900),In=ie(56762),Xn=ie(62892),On=ie(92343),Ut=ie(3113);function Yt(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function tn(me,pe){const fe=(0,Te.Z)(pe),Be=fe.findIndex(Ne=>{let{uid:Me}=Ne;return Me===me.uid});return Be===-1?fe.push(me):fe[Be]=me,fe}function Mt(me,pe){const fe=me.uid!==void 0?"uid":"name";return pe.filter(Be=>Be[fe]===me[fe])[0]}function qn(me,pe){const fe=me.uid!==void 0?"uid":"name",Be=pe.filter(Ne=>Ne[fe]!==me[fe]);return Be.length===pe.length?null:Be}const na=function(){const pe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Be=pe[pe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Be)||[""])[0]},ma=me=>me.indexOf("image/")===0,Sa=me=>{if(me.type&&!me.thumbUrl)return ma(me.type);const pe=me.thumbUrl||me.url||"",fe=na(pe);return/^data:image\//.test(pe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(fe)?!0:!(/^data:/.test(pe)||fe)},Rn=200;function he(me){return new Promise(pe=>{if(!me.type||!ma(me.type)){pe("");return}const fe=document.createElement("canvas");fe.width=Rn,fe.height=Rn,fe.style.cssText=`position: fixed; left: 0; top: 0; width: ${Rn}px; height: ${Rn}px; z-index: 9999; display: none;`,document.body.appendChild(fe);const Be=fe.getContext("2d"),Ne=new Image;if(Ne.onload=()=>{const{width:Me,height:Ge}=Ne;let xe=Rn,mt=Rn,lt=0,st=0;Me>Ge?(mt=Ge*(Rn/Me),st=-(mt-xe)/2):(xe=Me*(Rn/Ge),lt=-(xe-mt)/2),Be.drawImage(Ne,lt,st,xe,mt);const we=fe.toDataURL();document.body.removeChild(fe),window.URL.revokeObjectURL(Ne.src),pe(we)},Ne.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Me=new FileReader;Me.onload=()=>{Me.result&&(Ne.src=Me.result)},Me.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Me=new FileReader;Me.onload=()=>{Me.result&&pe(Me.result)},Me.readAsDataURL(me)}else Ne.src=window.URL.createObjectURL(me)})}var be=ie(26227),Ae=ie(41464),Ue=ie(15277),Qe=ie(93948),yt=ie(6848),ft=ae.forwardRef((me,pe)=>{let{prefixCls:fe,className:Be,style:Ne,locale:Me,listType:Ge,file:xe,items:mt,progress:lt,iconRender:st,actionIconRender:we,itemRender:Ot,isImgUrl:Xt,showPreviewIcon:hn,showRemoveIcon:Ce,showDownloadIcon:Ye,previewIcon:at,removeIcon:rt,downloadIcon:vt,onPreview:bt,onDownload:ut,onClose:jt}=me;var Wt,Hn;const{status:ea}=xe,[Dn,ua]=ae.useState(ea);ae.useEffect(()=>{ea!=="removed"&&ua(ea)},[ea]);const[Pa,ca]=ae.useState(!1);ae.useEffect(()=>{const dn=setTimeout(()=>{ca(!0)},300);return()=>{clearTimeout(dn)}},[]);const ga=st(xe);let kn=ae.createElement("div",{className:`${fe}-icon`},ga);if(Ge==="picture"||Ge==="picture-card"||Ge==="picture-circle")if(Dn==="uploading"||!xe.thumbUrl&&!xe.url){const dn=_e()(`${fe}-list-item-thumbnail`,{[`${fe}-list-item-file`]:Dn!=="uploading"});kn=ae.createElement("div",{className:dn},ga)}else{const dn=Xt!=null&&Xt(xe)?ae.createElement("img",{src:xe.thumbUrl||xe.url,alt:xe.name,className:`${fe}-list-item-image`,crossOrigin:xe.crossOrigin}):ga,ln=_e()(`${fe}-list-item-thumbnail`,{[`${fe}-list-item-file`]:Xt&&!Xt(xe)});kn=ae.createElement("a",{className:ln,onClick:oa=>bt(xe,oa),href:xe.url||xe.thumbUrl,target:"_blank",rel:"noopener noreferrer"},dn)}const rn=_e()(`${fe}-list-item`,`${fe}-list-item-${Dn}`),la=typeof xe.linkProps=="string"?JSON.parse(xe.linkProps):xe.linkProps,Wn=Ce?we((typeof rt=="function"?rt(xe):rt)||ae.createElement(be.Z,null),()=>jt(xe),fe,Me.removeFile):null,aa=Ye&&Dn==="done"?we((typeof vt=="function"?vt(xe):vt)||ae.createElement(Ae.Z,null),()=>ut(xe),fe,Me.downloadFile):null,Yn=Ge!=="picture-card"&&Ge!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:_e()(`${fe}-list-item-actions`,{picture:Ge==="picture"})},aa,Wn),Gn=_e()(`${fe}-list-item-name`),ha=xe.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Gn,title:xe.name},la,{href:xe.url,onClick:dn=>bt(xe,dn)}),xe.name),Yn]:[ae.createElement("span",{key:"view",className:Gn,onClick:dn=>bt(xe,dn),title:xe.name},xe.name),Yn],wt={pointerEvents:"none",opacity:.5},mn=hn?ae.createElement("a",{href:xe.url||xe.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:xe.url||xe.thumbUrl?void 0:wt,onClick:dn=>bt(xe,dn),title:Me.previewFile},typeof at=="function"?at(xe):at||ae.createElement(Ue.Z,null)):null,$n=(Ge==="picture-card"||Ge==="picture-circle")&&Dn!=="uploading"&&ae.createElement("span",{className:`${fe}-list-item-actions`},mn,Dn==="done"&&aa,Wn),{getPrefixCls:an}=ae.useContext(yn.E_),ra=an(),xn=ae.createElement("div",{className:rn},kn,ha,$n,Pa&&ae.createElement(Qn.default,{motionName:`${ra}-fade`,visible:Dn==="uploading",motionDeadline:2e3},dn=>{let{className:ln}=dn;const oa="percent"in xe?ae.createElement(Qe.Z,Object.assign({},lt,{type:"line",percent:xe.percent,"aria-label":xe["aria-label"],"aria-labelledby":xe["aria-labelledby"]})):null;return ae.createElement("div",{className:_e()(`${fe}-list-item-progress`,ln)},oa)})),pa=xe.response&&typeof xe.response=="string"?xe.response:((Wt=xe.error)===null||Wt===void 0?void 0:Wt.statusText)||((Hn=xe.error)===null||Hn===void 0?void 0:Hn.message)||Me.uploadError,fa=Dn==="error"?ae.createElement(yt.Z,{title:pa,getPopupContainer:dn=>dn.parentNode},xn):xn;return ae.createElement("div",{className:_e()(`${fe}-list-item-container`,Be),style:Ne,ref:pe},Ot?Ot(fa,xe,mt,{download:ut.bind(null,xe),preview:bt.bind(null,xe),remove:jt.bind(null,xe)}):fa)});const Ft=(me,pe)=>{const{listType:fe="text",previewFile:Be=he,onPreview:Ne,onDownload:Me,onRemove:Ge,locale:xe,iconRender:mt,isImageUrl:lt=Sa,prefixCls:st,items:we=[],showPreviewIcon:Ot=!0,showRemoveIcon:Xt=!0,showDownloadIcon:hn=!1,removeIcon:Ce,previewIcon:Ye,downloadIcon:at,progress:rt={size:[-1,2],showInfo:!1},appendAction:vt,appendActionVisible:bt=!0,itemRender:ut,disabled:jt}=me,Wt=(0,In.Z)(),[Hn,ea]=ae.useState(!1);ae.useEffect(()=>{fe!=="picture"&&fe!=="picture-card"&&fe!=="picture-circle"||(we||[]).forEach(wt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(wt.originFileObj instanceof File||wt.originFileObj instanceof Blob)||wt.thumbUrl!==void 0||(wt.thumbUrl="",Be&&Be(wt.originFileObj).then(mn=>{wt.thumbUrl=mn||"",Wt()}))})},[fe,we,Be]),ae.useEffect(()=>{ea(!0)},[]);const Dn=(wt,mn)=>{if(Ne)return mn==null||mn.preventDefault(),Ne(wt)},ua=wt=>{typeof Me=="function"?Me(wt):wt.url&&window.open(wt.url)},Pa=wt=>{Ge==null||Ge(wt)},ca=wt=>{if(mt)return mt(wt,fe);const mn=wt.status==="uploading",$n=lt&&lt(wt)?ae.createElement(Un,null):ae.createElement(xt,null);let an=mn?ae.createElement($e.Z,null):ae.createElement(on,null);return fe==="picture"?an=mn?ae.createElement($e.Z,null):$n:(fe==="picture-card"||fe==="picture-circle")&&(an=mn?xe.uploading:$n),an},ga=(wt,mn,$n,an)=>{const ra={type:"text",size:"small",title:an,onClick:xn=>{mn(),(0,On.l$)(wt)&&wt.props.onClick&&wt.props.onClick(xn)},className:`${$n}-list-item-action`,disabled:jt};if((0,On.l$)(wt)){const xn=(0,On.Tm)(wt,Object.assign(Object.assign({},wt.props),{onClick:()=>{}}));return ae.createElement(Ut.ZP,Object.assign({},ra,{icon:xn}))}return ae.createElement(Ut.ZP,Object.assign({},ra),ae.createElement("span",null,wt))};ae.useImperativeHandle(pe,()=>({handlePreview:Dn,handleDownload:ua}));const{getPrefixCls:kn}=ae.useContext(yn.E_),rn=kn("upload",st),la=kn(),Wn=_e()(`${rn}-list`,`${rn}-list-${fe}`),aa=(0,Te.Z)(we.map(wt=>({key:wt.uid,file:wt})));let Gn={motionDeadline:2e3,motionName:`${rn}-${fe==="picture-card"||fe==="picture-circle"?"animate-inline":"animate"}`,keys:aa,motionAppear:Hn};const ha=ae.useMemo(()=>{const wt=Object.assign({},(0,Xn.Z)(la));return delete wt.onAppearEnd,delete wt.onEnterEnd,delete wt.onLeaveEnd,wt},[la]);return fe!=="picture-card"&&fe!=="picture-circle"&&(Gn=Object.assign(Object.assign({},ha),Gn)),ae.createElement("div",{className:Wn},ae.createElement(Qn.CSSMotionList,Object.assign({},Gn,{component:!1}),wt=>{let{key:mn,file:$n,className:an,style:ra}=wt;return ae.createElement(ft,{key:mn,locale:xe,prefixCls:rn,className:an,style:ra,file:$n,items:we,progress:rt,listType:fe,isImgUrl:lt,showPreviewIcon:Ot,showRemoveIcon:Xt,showDownloadIcon:hn,removeIcon:Ce,previewIcon:Ye,downloadIcon:at,iconRender:ca,actionIconRender:ga,itemRender:ut,onPreview:Dn,onDownload:ua,onClose:Pa})}),vt&&ae.createElement(Qn.default,Object.assign({},Gn,{visible:bt,forceRender:!0}),wt=>{let{className:mn,style:$n}=wt;return(0,On.Tm)(vt,an=>({className:_e()(an.className,mn),style:Object.assign(Object.assign(Object.assign({},$n),{pointerEvents:mn?"none":void 0}),an.style)}))}))};var At=ae.forwardRef(Ft),It=ie(17313),gn=ie(8378),sn=ie(83116),un=ie(37613),Ht=me=>{const{componentCls:pe,iconCls:fe}=me;return{[`${pe}-wrapper`]:{[`${pe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[pe]:{padding:`${me.padding}px 0`},[`${pe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${pe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${pe}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${pe}-drag-icon`]:{marginBottom:me.margin,[fe]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${pe}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${pe}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${pe}-disabled`]:{cursor:"not-allowed",[`p${pe}-drag-icon ${fe},
p${pe}-text,
p${pe}-hint
`]:{color:me.colorTextDisabled}}}}}},cn=me=>{const{componentCls:pe,antCls:fe,iconCls:Be,fontSize:Ne,lineHeight:Me}=me,Ge=`${pe}-list-item`,xe=`${Ge}-actions`,mt=`${Ge}-action`,lt=Math.round(Ne*Me);return{[`${pe}-wrapper`]:{[`${pe}-list`]:Object.assign(Object.assign({},(0,It.dF)()),{lineHeight:me.lineHeight,[Ge]:{position:"relative",height:me.lineHeight*Ne,marginTop:me.marginXS,fontSize:Ne,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${Ge}-name`]:Object.assign(Object.assign({},It.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Me,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[xe]:{[mt]:{opacity:0},[`${mt}${fe}-btn-sm`]:{height:lt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${mt}:focus-visible,
&.picture ${mt}
`]:{opacity:1},[Be]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${Be}`]:{color:me.colorText}},[`${pe}-icon ${Be}`]:{color:me.colorTextDescription,fontSize:Ne},[`${Ge}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:Ne+me.paddingXS,fontSize:Ne,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ge}:hover ${mt}`]:{opacity:1,color:me.colorText},[`${Ge}-error`]:{color:me.colorError,[`${Ge}-name, ${pe}-icon ${Be}`]:{color:me.colorError},[xe]:{[`${Be}, ${Be}:hover`]:{color:me.colorError},[mt]:{opacity:1}}},[`${pe}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Sn=ie(36237),Zt=ie(1950);const Nn=new Sn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Kn=new Sn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Mn=me=>{const{componentCls:pe}=me,fe=`${pe}-animate-inline`;return[{[`${pe}-wrapper`]:{[`${fe}-appear, ${fe}-enter, ${fe}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${fe}-appear, ${fe}-enter`]:{animationName:Nn},[`${fe}-leave`]:{animationName:Kn}}},{[`${pe}-wrapper`]:(0,Zt.J$)(me)},Nn,Kn]},Vn=ie(30071),jn=ie(64993);const ce=me=>{const{componentCls:pe,iconCls:fe,uploadThumbnailSize:Be,uploadProgressOffset:Ne}=me,Me=`${pe}-list`,Ge=`${Me}-item`;return{[`${pe}-wrapper`]:{[`
${Me}${Me}-picture,
${Me}${Me}-picture-card,
${Me}${Me}-picture-circle
`]:{[Ge]:{position:"relative",height:Be+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ge}-thumbnail`]:Object.assign(Object.assign({},It.vS),{width:Be,height:Be,lineHeight:`${Be+me.paddingSM}px`,textAlign:"center",flex:"none",[fe]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ge}-progress`]:{bottom:Ne,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Be+me.paddingXS}},[`${Ge}-error`]:{borderColor:me.colorError,[`${Ge}-thumbnail ${fe}`]:{[`svg path[fill='${Vn.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${Vn.blue.primary}']`]:{fill:me.colorError}}},[`${Ge}-uploading`]:{borderStyle:"dashed",[`${Ge}-name`]:{marginBottom:Ne}}},[`${Me}${Me}-picture-circle ${Ge}`]:{[`&, &::before, ${Ge}-thumbnail`]:{borderRadius:"50%"}}}}},Pe=me=>{const{componentCls:pe,iconCls:fe,fontSizeLG:Be,colorTextLightSolid:Ne}=me,Me=`${pe}-list`,Ge=`${Me}-item`,xe=me.uploadPicCardSize;return{[`
${pe}-wrapper${pe}-picture-card-wrapper,
${pe}-wrapper${pe}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,It.dF)()),{display:"inline-block",width:"100%",[`${pe}${pe}-select`]:{width:xe,height:xe,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${pe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${pe}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Me}${Me}-picture-card, ${Me}${Me}-picture-circle`]:{[`${Me}-item-container`]:{display:"inline-block",width:xe,height:xe,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ge]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${Ge}:hover`]:{[`&::before, ${Ge}-actions`]:{opacity:1}},[`${Ge}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${fe}-eye, ${fe}-download, ${fe}-delete`]:{zIndex:10,width:Be,margin:`0 ${me.marginXXS}px`,fontSize:Be,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ge}-actions, ${Ge}-actions:hover`]:{[`${fe}-eye, ${fe}-download, ${fe}-delete`]:{color:new jn.C(Ne).setAlpha(.65).toRgbString(),"&:hover":{color:Ne}}},[`${Ge}-thumbnail, ${Ge}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ge}-name`]:{display:"none",textAlign:"center"},[`${Ge}-file + ${Ge}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${Ge}-uploading`]:{[`&${Ge}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${fe}-eye, ${fe}-download, ${fe}-delete`]:{display:"none"}},[`${Ge}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${pe}-wrapper${pe}-picture-circle-wrapper`]:{[`${pe}${pe}-select`]:{borderRadius:"50%"}}}};var ke=me=>{const{componentCls:pe}=me;return{[`${pe}-rtl`]:{direction:"rtl"}}};const gt=me=>{const{componentCls:pe,colorTextDisabled:fe}=me;return{[`${pe}-wrapper`]:Object.assign(Object.assign({},(0,It.Wf)(me)),{[pe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${pe}-select`]:{display:"inline-block"},[`${pe}-disabled`]:{color:fe,cursor:"not-allowed"}})}};var tt=(0,sn.Z)("Upload",me=>{const{fontSizeHeading3:pe,fontSize:fe,lineHeight:Be,lineWidth:Ne,controlHeightLG:Me}=me,Ge=Math.round(fe*Be),xe=(0,un.TS)(me,{uploadThumbnailSize:pe*2,uploadProgressOffset:Ge/2+Ne,uploadPicCardSize:Me*2.55});return[gt(xe),Ht(xe),ce(xe),Pe(xe),cn(xe),Mn(xe),ke(xe),(0,gn.Z)(xe)]},me=>({actionsColor:me.colorTextDescription})),Tt=function(me,pe,fe,Be){function Ne(Me){return Me instanceof fe?Me:new fe(function(Ge){Ge(Me)})}return new(fe||(fe=Promise))(function(Me,Ge){function xe(st){try{lt(Be.next(st))}catch(we){Ge(we)}}function mt(st){try{lt(Be.throw(st))}catch(we){Ge(we)}}function lt(st){st.done?Me(st.value):Ne(st.value).then(xe,mt)}lt((Be=Be.apply(me,pe||[])).next())})};const pt=`__LIST_IGNORE_${Date.now()}__`,Ct=(me,pe)=>{const{fileList:fe,defaultFileList:Be,onRemove:Ne,showUploadList:Me=!0,listType:Ge="text",onPreview:xe,onDownload:mt,onChange:lt,onDrop:st,previewFile:we,disabled:Ot,locale:Xt,iconRender:hn,isImageUrl:Ce,progress:Ye,prefixCls:at,className:rt,type:vt="select",children:bt,style:ut,itemRender:jt,maxCount:Wt,data:Hn={},multiple:ea=!1,action:Dn="",accept:ua="",supportServerRender:Pa=!0,rootClassName:ca}=me,ga=ae.useContext(pn.Z),kn=Ot!=null?Ot:ga,[rn,la]=(0,it.Z)(Be||[],{value:fe,postState:ct=>ct!=null?ct:[]}),[Wn,aa]=ae.useState("drop"),Yn=ae.useRef(null);ae.useMemo(()=>{const ct=Date.now();(fe||[]).forEach((kt,Jt)=>{!kt.uid&&!Object.isFrozen(kt)&&(kt.uid=`__AUTO__${ct}_${Jt}__`)})},[fe]);const Gn=(ct,kt,Jt)=>{let Gt=(0,Te.Z)(kt),Qt=!1;Wt===1?Gt=Gt.slice(-1):Wt&&(Qt=Gt.length>Wt,Gt=Gt.slice(0,Wt)),(0,Pt.flushSync)(()=>{la(Gt)});const fn={file:ct,fileList:Gt};Jt&&(fn.event=Jt),(!Qt||Gt.some(ia=>ia.uid===ct.uid))&&(0,Pt.flushSync)(()=>{lt==null||lt(fn)})},ha=(ct,kt)=>Tt(void 0,void 0,void 0,function*(){const{beforeUpload:Jt,transformFile:Gt}=me;let Qt=ct;if(Jt){const fn=yield Jt(ct,kt);if(fn===!1)return!1;if(delete ct[pt],fn===pt)return Object.defineProperty(ct,pt,{value:!0,configurable:!0}),!1;typeof fn=="object"&&fn&&(Qt=fn)}return Gt&&(Qt=yield Gt(Qt)),Qt}),wt=ct=>{const kt=ct.filter(Qt=>!Qt.file[pt]);if(!kt.length)return;const Jt=kt.map(Qt=>Yt(Qt.file));let Gt=(0,Te.Z)(rn);Jt.forEach(Qt=>{Gt=tn(Qt,Gt)}),Jt.forEach((Qt,fn)=>{let ia=Qt;if(kt[fn].parsedFile)Qt.status="uploading";else{const{originFileObj:en}=Qt;let sa;try{sa=new File([en],en.name,{type:en.type})}catch(ba){sa=new Blob([en],{type:en.type}),sa.name=en.name,sa.lastModifiedDate=new Date,sa.lastModified=new Date().getTime()}sa.uid=Qt.uid,ia=sa}Gn(ia,Gt)})},mn=(ct,kt,Jt)=>{try{typeof ct=="string"&&(ct=JSON.parse(ct))}catch(fn){}if(!Mt(kt,rn))return;const Gt=Yt(kt);Gt.status="done",Gt.percent=100,Gt.response=ct,Gt.xhr=Jt;const Qt=tn(Gt,rn);Gn(Gt,Qt)},$n=(ct,kt)=>{if(!Mt(kt,rn))return;const Jt=Yt(kt);Jt.status="uploading",Jt.percent=ct.percent;const Gt=tn(Jt,rn);Gn(Jt,Gt,ct)},an=(ct,kt,Jt)=>{if(!Mt(Jt,rn))return;const Gt=Yt(Jt);Gt.error=ct,Gt.response=kt,Gt.status="error";const Qt=tn(Gt,rn);Gn(Gt,Qt)},ra=ct=>{let kt;Promise.resolve(typeof Ne=="function"?Ne(ct):Ne).then(Jt=>{var Gt;if(Jt===!1)return;const Qt=qn(ct,rn);Qt&&(kt=Object.assign(Object.assign({},ct),{status:"removed"}),rn==null||rn.forEach(fn=>{const ia=kt.uid!==void 0?"uid":"name";fn[ia]===kt[ia]&&!Object.isFrozen(fn)&&(fn.status="removed")}),(Gt=Yn.current)===null||Gt===void 0||Gt.abort(kt),Gn(kt,Qt))})},xn=ct=>{aa(ct.type),ct.type==="drop"&&(st==null||st(ct))};ae.useImperativeHandle(pe,()=>({onBatchStart:wt,onSuccess:mn,onProgress:$n,onError:an,fileList:rn,upload:Yn.current}));const{getPrefixCls:pa,direction:fa,upload:dn}=ae.useContext(yn.E_),ln=pa("upload",at),oa=Object.assign(Object.assign({onBatchStart:wt,onError:an,onProgress:$n,onSuccess:mn},me),{data:Hn,multiple:ea,action:Dn,accept:ua,supportServerRender:Pa,prefixCls:ln,disabled:kn,beforeUpload:ha,onChange:void 0});delete oa.className,delete oa.style,(!bt||kn)&&delete oa.id;const[va,La]=tt(ln),[ya]=(0,wn.Z)("Upload",Fn.Z.Upload),{showRemoveIcon:wa,showPreviewIcon:ot,showDownloadIcon:We,removeIcon:Ke,previewIcon:nt,downloadIcon:Rt}=typeof Me=="boolean"?{}:Me,qt=(ct,kt)=>Me?ae.createElement(At,{prefixCls:ln,listType:Ge,items:rn,previewFile:we,onPreview:xe,onDownload:mt,onRemove:ra,showRemoveIcon:!kn&&wa,showPreviewIcon:ot,showDownloadIcon:We,removeIcon:Ke,previewIcon:nt,downloadIcon:Rt,iconRender:hn,locale:Object.assign(Object.assign({},ya),Xt),isImageUrl:Ce,progress:Ye,appendAction:ct,appendActionVisible:kt,itemRender:jt,disabled:kn}):ct,Ln=_e()(`${ln}-wrapper`,rt,ca,La,dn==null?void 0:dn.className,{[`${ln}-rtl`]:fa==="rtl",[`${ln}-picture-card-wrapper`]:Ge==="picture-card",[`${ln}-picture-circle-wrapper`]:Ge==="picture-circle"}),vn=Object.assign(Object.assign({},dn==null?void 0:dn.style),ut);if(vt==="drag"){const ct=_e()(La,ln,`${ln}-drag`,{[`${ln}-drag-uploading`]:rn.some(kt=>kt.status==="uploading"),[`${ln}-drag-hover`]:Wn==="dragover",[`${ln}-disabled`]:kn,[`${ln}-rtl`]:fa==="rtl"});return va(ae.createElement("span",{className:Ln},ae.createElement("div",{className:ct,style:vn,onDrop:xn,onDragOver:xn,onDragLeave:xn},ae.createElement(Lt,Object.assign({},oa,{ref:Yn,className:`${ln}-btn`}),ae.createElement("div",{className:`${ln}-drag-container`},bt))),qt()))}const En=_e()(ln,`${ln}-select`,{[`${ln}-disabled`]:kn}),ta=(ct=>ae.createElement("div",{className:En,style:ct},ae.createElement(Lt,Object.assign({},oa,{ref:Yn}))))(bt?void 0:{display:"none"});return va(Ge==="picture-card"||Ge==="picture-circle"?ae.createElement("span",{className:Ln},qt(ta,!!bt)):ae.createElement("span",{className:Ln},ta,qt()))};var Bn=ae.forwardRef(Ct),De=function(me,pe){var fe={};for(var Be in me)Object.prototype.hasOwnProperty.call(me,Be)&&pe.indexOf(Be)<0&&(fe[Be]=me[Be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,Be=Object.getOwnPropertySymbols(me);Ne<Be.length;Ne++)pe.indexOf(Be[Ne])<0&&Object.prototype.propertyIsEnumerable.call(me,Be[Ne])&&(fe[Be[Ne]]=me[Be[Ne]]);return fe},Pn=ae.forwardRef((me,pe)=>{var{style:fe,height:Be}=me,Ne=De(me,["style","height"]);return ae.createElement(Bn,Object.assign({ref:pe},Ne,{type:"drag",style:Object.assign(Object.assign({},fe),{height:Be})}))});const An=Bn;An.Dragger=Pn,An.LIST_IGNORE=pt;var nn=An}}]);