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.
115 lines
338 KiB
115 lines
338 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4496],{26227:function(Fe,it,ie){"use strict";ie.d(it,{Z:function(){return Qe}});var ae=ie(5016),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,Le=ie(7657),Ie=function(je,We){return Te.createElement(Le.Z,(0,ae.Z)({},je,{ref:We,icon:_e}))},Se=Te.forwardRef(Ie),Qe=Se},41464:function(Fe,it,ie){"use strict";ie.d(it,{Z:function(){return Qe}});var ae=ie(5016),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,Le=ie(7657),Ie=function(je,We){return Te.createElement(Le.Z,(0,ae.Z)({},je,{ref:We,icon:_e}))},Se=Te.forwardRef(Ie),Qe=Se},99587:function(Fe,it){"use strict";it.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},63720: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 it=[];function ie(ne,a){var y=it.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=it.pop();return ne===void 0?new go.Point:ne}function Te(ne){it.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,ye=E-le*b;re=ne,se=le*re+ye}else if(ge===0){var Ee=(a-x)/oe,tt=a-Ee*ne;re=b,se=Ee*re+tt}else{var Ee=(a-x)/oe,le=(E-ee)/ge,tt=a-Ee*ne,ye=E-le*b;re=(ye-tt)/(Ee-le),se=Ee*re+tt}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 ye=1-te,Ee=te,tt=ne*ye+y*Ee,ut=a*ye+x*Ee,zt=y*ye+b*Ee,ft=x*ye+E*Ee,rt=b*ye+z*Ee,ct=E*ye+ee*Ee,Ln=tt*ye+zt*Ee,pn=ut*ye+ft*Ee,yn=zt*ye+rt*Ee,wn=ft*ye+ct*Ee,Qn=Ln*ye+yn*Ee,Un=pn*ye+wn*Ee;oe.x=tt,oe.y=ut,ge.x=Ln,ge.y=pn,re.x=Qn,re.y=Un,se.x=yn,se.y=wn,le.x=rt,le.y=ct}var Le=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=Le,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 Qe=[];function Oe(){var ne=Qe.pop();return ne===void 0?[]:ne}function je(ne){ne.length=0,Qe.push(ne)}function We(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 et(ne){var a=Je(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 Je(ne){for(var a=We(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=We(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=We(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=We(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=We(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=We(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=We(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=We(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=Je(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=Je(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=Je(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=Je(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=Je(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=Je(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=et(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=et(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=et(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=et(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=et(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=et(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=Le,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(),ye=ae(),Ee=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,se,se,Ee,le,ye);var tt=ae(),ut=ae(),zt=ae();_e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,tt,ut,zt,se,se);var ft=ae(),rt=ae(),ct=ae();return _e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,se,se,ct,ft,rt),te.add(new go.PathSegment(go.PathSegment.Move,ct.x*a,ct.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ft.x*a,ft.y*y,rt.x*a,rt.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,ct.x*a,ct.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,zt.x*a,zt.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,ye.x*a,ye.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,zt.x*a,zt.y*y,tt.x*a,tt.y*y,ut.x*a,ut.y*y).close()),Te(oe),Te(ge),Te(re),Te(se),Te(le),Te(ye),Te(Ee),Te(tt),Te(ut),Te(zt),Te(ft),Te(rt),Te(ct),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 ye=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,(ye.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ye.x*.1+.9)*a,(ye.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,ye.x*a,ye.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 tt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(tt),Te(te),Te(oe),Te(ge),Te(re),Te(le),Te(ye),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 ye=new go.PathFigure((te-ee)*a+ge,oe*y+re,!0);x.add(ye),ye.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)),ye.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)),ye.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)),ye.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 tt=new go.PathFigure(te*a+ge,(oe-ee)*y+re,!0);return x.add(tt),tt.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)),tt.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)),tt.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)),tt.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,ye=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,re*y,ge*a,.7*y,ge*a,re*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+E)*a,(le+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),ye.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)),ye.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)),ye.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),ye.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),ye.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,ye=ge*se,Ee=ge*le;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(ye+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-ye)*a,(te-le)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+ye)*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+(ye+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 tt=new go.PathFigure(.2*a,y,!1);x.add(tt),tt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var ut=new go.PathFigure(.8*a,y,!1);return x.add(ut),ut.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,ye=new go.PathFigure((se-ge)*a,le*y,!0);x.add(ye),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-re)*y,(se-re)*a,(le-ge)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+re)*a,(le-ge)*y,(se+ge)*a,(le-re)*y)),ye.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+re)*y,(se+re)*a,(le+ge)*y)),ye.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")},43001: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={},it="5.0",ie={},ae=null,Te=!1,Ze=!1,_e=null,Le=!1,Ie=null,Se=null,Qe=0;Qe<arguments.length;Qe++){var Oe=arguments[Qe];if(Oe!==null)switch(typeof Oe){case"number":it=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?it=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="",We="",et=!1,Je=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(we){return parseFloat(we)>4?parseFloat(we):5};Fe.setHTML5Codebase=function(we,Ce){Se=we,wn(we,Ce)},Fe.setJavaCodebase=Fe.setJavaCodebaseVersion=Fe.isCompiledInstalled=Fe.setPreCompiledScriptPath=Fe.setPreCompiledResourcePath=function(){},Fe.setHTML5CodebaseVersion=function(we,Ce){var Re=parseFloat(we);if(Re!==NaN&&Re<5){console.log("The GeoGebra HTML5 codebase version "+Re+" is deprecated. Using version latest instead.");return}Ie=we,yn(we,Ce)},Fe.getHTML5CodebaseVersion=function(){return ne},Fe.getParameters=function(){return ie},Fe.setFontsCSSURL=function(we){z=we},Fe.setGiacJSURL=function(we){},Fe.setJNLPFile=function(we){je=we},Fe.setJNLPBaseDir=function(we){},Fe.inject=function(){function we(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ce="auto",Re=ie.id,Ft,$e=!1,St=0;St<arguments.length;St++){var de=arguments[St];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ce=de:Re=arguments[St]):typeof de=="boolean"?$e=de:de instanceof HTMLElement&&(Ft=de)}Ye();function Ye(){if(!Le){setTimeout(Ye,200);return}Ce=Ln(Ce);var xt=Ft||document.getElementById(Re);if(!xt){console.log("possibly bug on ajax loading? ");return}if(Fe.removeExistingApplet(xt,!1),ie.width===void 0&&xt.clientWidth&&(ie.width=xt.clientWidth),ie.height===void 0&&xt.clientHeight&&(ie.height=xt.clientHeight),!(ie.width&&ie.height)&&Ce==="html5"&&(delete ie.width,delete ie.height),Je=Ce,Ce==="screenshot")ut(xt,ie);else{var an=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?an=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(an=(!oe()||we())&&ge()),an?(Je="screenshot",ft(xt,ie,$e,Ce)):tt(xt,ie,$e)}}};function oe(){try{return window.self!==window.top}catch(we){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(we){var Ce=function(St){var de=JSON.parse(St),Ye=function(_t){return _t.type=="G"||_t.type=="E"},xt=de.elements?de.elements.filter(Ye)[0]:de;if(!xt||!xt.url){Re();return}ie.fileName=xt.url,se(xt.settings||{}),ae.is3D=!0;var an="https://www.geogebra.org/images/";Fe.setPreviewImage(x||xt.previewUrl,an+"GeoGebra_loading.png",an+"applet_play.png"),we()},Re=function(){ie.onError&&ie.onError(),Qn("Error: Fetching material (id "+ie.material_id+") failed.",ie)},Ft=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://"+Ft+"/api/proxy.php?path="+encodeURIComponent($e),Ce,Re)};function se(we){var Ce=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Re){we[Re]=!!we[Re]}),Ce.forEach(function(Re){ie[Re]===void 0&&we[Re]!==void 0&&(ie[Re]=we[Re])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function le(we,Ce,Re){var Ft=new XMLHttpRequest;Ft.open("GET",we),Ft.onload=function(){Ce(Ft.responseText)},Ft.onerror=Re,Ft.send()}Fe.isHTML5Installed=function(){return!0},Fe.getLoadedAppletType=function(){return Je},Fe.setPreviewImage=function(we,Ce,Re){x=we,b=Ce,E=Re},Fe.removeExistingApplet=function(we,Ce){var Re;typeof we=="string"&&(we=document.getElementById(we)),Je=null;var Ft=null;for(Re=0;Re<we.childNodes.length;Re++){var $e=we.childNodes[Re],St=$e.className;St==="applet_screenshot"?Ce?($e.style.display="block",Je="screenshot"):$e.style.display="none":St!=="applet_scaler prerender"&&(we.removeChild($e),Ft=St&&St.indexOf("appletParameters")!=-1?$e.id:null,Re--)}var de=ie.id!==void 0?ie.id:Ft,Ye=window[de];Ye&&typeof Ye.getBase64=="function"&&(Ye.remove(),window[de]=null)},Fe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var we=Fe.getAppletObject();return we&&typeof we.recalculateEnvironments=="function"?(we.recalculateEnvironments(),!0):!1},Fe.startAnimation=function(){var we=Fe.getAppletObject();return we&&typeof we.startAnimation=="function"?(we.startAnimation(),!0):!1},Fe.stopAnimation=function(){var we=Fe.getAppletObject();return we&&typeof we.stopAnimation=="function"?(we.stopAnimation(),!0):!1},Fe.getAppletObject=function(){var we=ie.id!==void 0?ie.id:"ggbApplet";return window[we]},Fe.resize=function(){};var ye=function(we,Ce,Re){var Ft=document.createElement("param");Ft.setAttribute("name",Ce),Ft.setAttribute("value",Re),we.appendChild(Ft)},Ee=function(we){return we&&we!=="false"},tt=function(we,Ce,Re){te(ne)<=4.2&&(Re=!0);var Ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var $e=document.createElement("div");$e.classList.add("appletParameters","notranslate");var St=Ce.width,de=Ce.height;if(Ce.disableAutoScale=Ce.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ce.disableAutoScale,Ce.width!==void 0)if(te(ne)<=4.4)Ee(Ce.showToolBar)&&(Ce.height-=7),Ee(Ce.showAlgebraInput)&&(Ce.height-=37),Ce.width<605&&Ee(Ce.showToolBar)&&(Ce.width=605,St=605);else{var Ye=100;(Ee(Ce.showToolBar)||Ee(Ce.showMenuBar))&&(Ce.hasOwnProperty("customToolBar")&&(Ce.customToolbar=Ce.customToolBar),Ye=Ee(Ce.showMenuBar)?245:155),St<Ye&&(Ce.width=Ye,St=Ye)}$e.style.border="none",$e.style.display="inline-block";for(var xt in Ce)Ce.hasOwnProperty(xt)&&xt!=="appletOnLoad"&&$e.setAttribute("data-param-"+xt,Ce[xt]);z&&$e.setAttribute("data-param-fontscssurl",z),Fe.resize=function(){GGBAppletUtils.responsiveResize(we,Ce)},window.addEventListener("resize",function(en){Fe.resize()});var an=typeof Ce.appletOnLoad=="function"?Ce.appletOnLoad:function(){};if(!Re&&Ce.width!==void 0){Ce.hasOwnProperty("showSplash")||$e.setAttribute("data-param-showSplash","false");var _t=we.querySelector(".applet_scaler.prerender"),Gn=_t!==null;if(Gn)var Tn=_t.querySelector(".ggb_preview");else{var Tn=ct(St,de,Ce.borderColor,!1);_t=document.createElement("div"),_t.className="applet_scaler",_t.style.position="relative",_t.style.display="block",_t.style.width=St+"px",_t.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(_t,"66%"),te(ne)>=5?(Ce.appletOnLoad=function(en){var Nt=we.querySelector(".ggb_preview");Nt&&Nt.parentNode.removeChild(Nt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(_t),window.GGBT_wsf_view&&$(window).trigger("resize"),an(en)},Gn||_t.appendChild(Tn)):$e.appendChild(Tn),_t.appendChild($e),Gn||we.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),we.appendChild($t),Ce.appletOnLoad=function(en){Fe.resize(),an(en)}}function Xn(en,Nt){Nt&&typeof Nt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(en,Nt.appletOnLoad):renderGGBElement(en),Qn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Nt)}function qn(en,Nt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:en,params:Nt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ea){Xn(ea.article,ea.params)}),html5AppletsToProcess=null)},te(ne)<5&&(en.className+=" geogebraweb")):Xn(en,Nt)}if(Ft){scriptLoadStarted=!0;for(var $n=0;$n<$e.childNodes.length;$n++){var Kn=$e.childNodes[$n].tagName;Kn==="TABLE"&&($e.removeChild($e.childNodes[$n]),$n--)}if(ggbHTML5LoadedScript!==null){var On=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');On!=null&&On.parentNode.removeChild(On)}var Xt=document.createElement("script"),Jt=function(){qn($e,Ce)};Xt.src=We+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Xt.src,Qn("GeoGebra HTML5 codebase loaded: '"+We+"'.",Ce),!Se&&(!Ie||Ie=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Jt()):We.requirejs?__webpack_require__.e(7963).then(function(){var en=[__webpack_require__(87963)];Jt.apply(null,en)}.bind(this)).catch(__webpack_require__.oe):(Xt.onload=Jt,we.appendChild(Xt))}else qn($e,Ce);Ce.height=de,Ce.width=St},ut=function(we,Ce,Re){var Ft=ct(Ce.width,Ce.height,Ce.borderColor,Re),$e=document.createElement("div");$e.style.position="relative",$e.style.display="block",$e.style.width=Ce.width+"px",$e.style.height=Ce.height+"px",$e.className="applet_screenshot applet_scaler"+(Re?" applet_screenshot_play":""),$e.appendChild(Ft);var St=GGBAppletUtils.getScale(Ce,we,Re);Re?(we.appendChild(rt()),window.GGBT_wsf_view||(we.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner($e,"66%"),we.appendChild($e),St!==1&&!isNaN(St)&&(GGBAppletUtils.scaleElement($e,St),$e.style.width=Ce.width+"px",$e.style.height=Ce.height+"px",$e.parentNode.style.width=Ce.width*St+"px",$e.parentNode.style.height=Ce.height*St+"px"),Fe.resize=function(){zt(we,Ft,$e,Re)},window.addEventListener("resize",function(de){Fe.resize()}),Fe.resize()};function zt(we,Ce,Re,Ft){if(we.contains(Ce)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(we)}var $e=GGBAppletUtils.getScale(ie,we,Ft);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(we),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Fe.onExitFullscreen=function(we,Ce){Ce.appendChild(we)};var ft=function(we,Ce,Re,Ft){ut(we,Ce,!0);for(var $e=function(){var Ye=[];for(de=0;de<we.childNodes.length;de++)Ye.push(we.childNodes[de]);if(window.GGBT_wsf_view){var xt=window.GGBT_wsf_view.renderFullScreen(we,Ce.id),an=document.getElementById("fullscreencontainer"),_t=jQuery(we).find(".fullscreencontent");_t.length>0?(xt.remove(),_t.attr("id","fullscreencontent").show(),jQuery(an).append(_t),window.dispatchEvent(new Event("resize"))):tt(xt,Ce,!1),window.GGBT_wsf_view.launchFullScreen(an)}else Je=Ft,tt(we,Ce,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ye.length;de++)we.removeChild(Ye[de])},St=we.getElementsByClassName("ggb_preview_play"),de=0;de<St.length;de++)St[de].addEventListener("click",$e,!1),St[de].addEventListener("ontouchstart",$e,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(we),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},rt=function(){var we=document.createElement("div");if(we.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ce='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Re=document.createElement("style");Re.styleSheet?Re.styleSheet.cssText=Ce:Re.appendChild(document.createTextNode(Ce)),document.getElementsByTagName("head")[0].appendChild(Re)}return we},ct=function(we,Ce,Re,Ft){var $e=document.createElement("div");$e.className="ggb_preview",$e.style.position="absolute",$e.style.zIndex="90",$e.style.width=we-2+"px",$e.style.height=Ce-2+"px",$e.style.top="0px",$e.style.left="0px",$e.style.overflow="hidden",$e.style.backgroundColor="white";var St="lightgrey";Re!==void 0&&(Re==="none"?St="transparent":St=Re),$e.style.border="1px solid "+St;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var Ye,xt,an;if(!Ft){Ye=document.createElement("img"),Ye.style.position="absolute",Ye.style.zIndex="1001",Ye.style.opacity=1,de.style.opacity=.3,xt=360,xt>we/4*3&&(xt=we/4*3),an=xt/5.8,Ye.setAttribute("src",b),Ye.setAttribute("width",xt),Ye.setAttribute("height",an);var _t=(we-xt)/2,Gn=(Ce-an)/2;Ye.style.left=_t+"px",Ye.style.top=Gn+"px",$e.appendChild(Ye)}}return $e.appendChild(de),$e},Ln=function(we){return we=we.toLowerCase(),we==="html5"||we==="screenshot"?we:"html5"},pn=["web","webSimple","web3d","tablet","tablet3d","phone"],yn=function(we,Ce){if(ne=we,Ce){wn(ne,!0);return}var Re=!Te;if(Re){var Ft=te(ne);!isNaN(Ft)&&Ft<4.4&&(Re=!1)}var $e,St;window.location.protocol.substr(0,4)==="http"?$e=window.location.protocol:$e="http:";var de=ne.indexOf("//");de>0?St=ne:de===0?St=$e+ne:St="https://www.geogebra.org/apps/5.2.814.0/";for(var Ye in pn)if(ne.slice(pn[Ye].length*-1)===pn[Ye]||ne.slice((pn[Ye].length+1)*-1)===pn[Ye]+"/"){wn(St,!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")?St+="webSimple/":St+="web3d/",wn(St,!1)},wn=function(we,Ce){if(we.requirejs){We=we;return}we.slice(-1)!=="/"&&(we+="/"),We=we,Ce===null&&(Ce=we.indexOf("http")===-1),et=Ce,a="web.nocache.js",y=!1;var Re=We.split("/");Re.length>1&&(!Ce&&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=we.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 Ft=parseFloat(ne);Ft!==NaN&&Ft<5&&we.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ft+" is deprecated. Using version latest instead."),yn("5.0",Ce))},Qn=function(we,Ce){window.console&&window.console.log&&(!Ce||typeof Ce.showLogging=="undefined"||Ce.showLogging&&Ce.showLogging!=="false")&&console.log(we)};ie.material_id!==void 0?re(Un):Un();function Un(){var we=it;Ie!==null?we=Ie:parseFloat(we)<5&&(we="5.0"),yn(we,!1),Se!==null&&wn(Se,et),Le=!0}return Fe},GGBAppletUtils=function(){"use strict";function Fe(){return window.GGBT_wsf_edit!==void 0}function it(Le,Ie){Ie!=1?(Le.style.transformOrigin="0% 0% 0px",Le.style.webkitTransformOrigin="0% 0% 0px",Le.style.transform="scale("+Ie+","+Ie+")",Le.style.webkitTransform="scale("+Ie+","+Ie+")",Le.style.maxWidth="initial",Le.querySelector(".ggb_preview")!==null&&(Le.querySelector(".ggb_preview").style.maxWidth="initial"),Le.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Le.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Le.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Le.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Le.style.transform="none",Le.style.webkitTransform="none")}function ie(Le,Ie,Se,Qe,Oe,je){var We=null;if(je!=null&&je!="")for(var et=Le.parentNode;et!=null;)if((" "+et.className+" ").indexOf(" "+je+" ")>-1){We=et;break}else et=et.parentNode;var Je=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(We)Je=We.offsetWidth,ne=Math.max(Qe?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Je=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Je):(Je=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),Le){var z=Le.getBoundingClientRect();z.left>0&&z.left<=Je&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(x=Je-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(Le&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Le.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return Le&&((Se===void 0||!Se)&&Ie>0&&Ie+y<Je?Je=Ie:Je-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Se===void 0||!Se)&&(ne-=E)),{width:Je,height:ne}}function ae(Le,Ie,Se,Qe,Oe){if(Le.isScreenshoGenerator)return 1;var je=Qe!==void 0&&Qe,We=Le.noScaleMargin!=null&&Le.noScaleMargin,et=function(ee){return ee&&ee!=="false"},Je=et(Le.autoHeight),ne=ie(Ie,Le.width,Se,Je,je&&window.GGBT_wsf_view||We,Oe),a=parseInt(ne.width),y=Le.width,x=Le.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(Le,Ie,Se){var Qe=1,Oe,je=!1;if(Le.hasOwnProperty("allowUpscale")&&(je=Le.allowUpscale),Le.hasOwnProperty("scale")&&(Qe=parseFloat(Le.scale),(isNaN(Qe)||Qe===null||Qe===0)&&(Qe=1),Qe>1&&(je=!0)),Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(je=!0),!(Le.hasOwnProperty("disableAutoScale")&&Le.disableAutoScale))Oe=ae(Le,Ie,je,Se,Le.scaleContainerClass);else return Qe;return je&&(!Le.hasOwnProperty("scale")||Qe===1)?Oe:Math.min(Qe,Oe)}function Ze(Le){var Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),Se=Math.min(window.innerHeight,document.documentElement.clientHeight),Qe=Le.getBoundingClientRect(),Oe=(Ie-Qe.width)/2,je=(Se-Qe.height)/2;je<0&&(je=0),Le.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?Le.style.left="40px":Le.style.left=Oe+"px",Le.style.top=je+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(je<40?Le.style.top="40px":Le.style.top=je+"px",Le.style.left=Oe+"px")}function _e(Le,Ie){var Se=Le.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(Le)}if(Se.parentElement&&/fullscreen/.test(Se.parentElement.className))return;var Qe=Te(Ie,Le);Fe()&&Se.setAttribute("data-param-scale",Qe);for(var Oe=null,je=0;je<Le.childNodes.length;je++)if(Le.childNodes[je].className!==void 0&&Le.childNodes[je].className.match(/^applet_scaler/)){Oe=Le.childNodes[je];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var We=Ie.id!==void 0?Ie.id:"ggbApplet",et=window[We];(et==null||!et.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(Qe)&&Qe!==1?(Oe.parentNode.style.width=Ie.width*Qe+"px",Oe.parentNode.style.height=Ie.height*Qe+"px",it(Oe,Qe)):(it(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(Le),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:it}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Fe=n.location.search;return Fe.indexOf(J)!=-1||Fe.indexOf(K)!=-1}function q(Fe,it){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Fe){var it=s[L].bindings;s[L].bindings=function(){for(var ie=it?it():{},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 it=document.compatMode==U?V:W;t.write(it+X),t.close()}}}function w(Fe){function it(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),Le&&clearInterval(Le)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var Le=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)}it(function(){ie(Fe)})}webModule.__startLoadingFragment=function(Fe){return C(Fe)},webModule.__installRunAsyncCode=function(Fe){var it=u(),ie=it.body,ae=it.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 it=c[Fe];return it==null?null:it},r=d,webModule.__errFn=e}function B(){function Fe(Le){var Ie=Le.lastIndexOf(rb);Ie==-1&&(Ie=Le.length);var Se=Le.indexOf(sb);Se==-1&&(Se=Le.length);var Qe=Le.lastIndexOf(tb,Math.min(Se,Ie));return Qe>=O?Le.substring(O,Qe+P):W}function it(Le){if(!Le.match(/^\w+:\/\//)){var Ie=o.createElement(ub);Ie.src=Le+vb,Le=Fe(Ie.src)}return Le}function ie(){var Le=__gwt_getMetaProperty(wb);return Le!=null?Le:W}function ae(){for(var Le=o.getElementsByTagName(_),Ie=O;Ie<Le.length;++Ie)if(Le[Ie].src.indexOf(xb)!=-1)return Fe(Le[Ie].src);return W}function Te(){var Le=o.getElementsByTagName(yb);return Le.length>O?Le[Le.length-P].href:W}function Ze(){var Le=o.location;return Le.href==Le.protocol+zb+Le.host+Le.pathname+Le.search+Le.hash}var _e=ie();return _e==W&&(_e=ae()),_e==W&&(_e=Te()),_e==W&&Ze()&&(_e=Fe(o.location.href)),_e=it(_e),_e}function C(Fe){return Fe.match(/^\//)||Fe.match(/^[a-zA-Z]+:\/\//)?Fe:webModule.__moduleBase+Fe}function D(){var Fe=[],it=O,ie=[],ae=[];function Te(Le){var Ie=ae[Le](),Se=ie[Le];if(Ie in Se)return Ie;var Qe=[];for(var Oe in Se)Qe[Se[Oe]]=Oe;throw r&&r(Le,Qe,Ie),null}if(__gwt_isKnownPropertyValue=function(Le,Ie){return Ie in ie[Le]},webModule.__getPropMap=function(){var Le={};for(var Ie in ie)ie.hasOwnProperty(Ie)&&(Le[Ie]=Te(Ie));return Le},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&&(it=parseInt(Ze.substring(_e+P),$),Ze=Ze.substring(O,_e))}catch(Le){}return webModule.__softPermutationId=it,C(Ze+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},46699:function(Fe,it,ie){"use strict";ie.d(it,{Ax:function(){return _e},Ds:function(){return Le},KI:function(){return Se},SI:function(){return Ze},f1:function(){return Te}});var ae=ie(346);function Te(Qe){let Oe=!0;if(Qe.length>0){for(let je=0;je<Qe.length;je++)if(Qe[je].compile_success==0||!Qe[je].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function Ze(Qe,Oe=""){let je=[];for(let We=0;We<Qe.length;We++){let et=Qe[We],Je=Oe?`${Oe}/${et.name}`:`${et.name}`;je.push({title:et.name,type:et.type,isLeaf:et.type!=="tree",key:Je})}return je}function _e(Qe,Oe,je){for(let We=0;We<Qe.length;We++){let et=Qe[We];if(et.key===Oe){et.children=je;break}et.children&&_e(et.children,Oe,je)}return Qe}function Le(Qe,Oe,je){let We;return function(){let et=this,Je=arguments,ne=function(){We=null,je||Qe.apply(et,Je)},a=je&&!We;clearTimeout(We),We=setTimeout(ne,Oe),a&&Qe.apply(et,Je)}}const Ie=!0,Se=ae.Z.API_SERVER},9507:function(Fe,it,ie){"use strict";ie.d(it,{Z:function(){return We}});var ae=ie(59301),Te={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=ie(92310),_e=ie.n(Ze),Le=ie(71418),Ie=ie(2859),Se=ie(38986),Qe=ie(51257),Oe=(et,Je,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(et,Je)).next())}),We=({data:et,className:Je,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)),et!=null&&et.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",et!=null&&et.src&&ye()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[et==null?void 0:et.visible]);const ye=()=>Oe(void 0,null,function*(){re(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ft=yield(0,Qe.ZJ)(et==null?void 0:et.src);z.current.src="",z.current.src=ft,z.current.onload=function(){zt()},re(!1),le("")}),Ee=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},tt=ft=>Oe(void 0,null,function*(){re(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const rt=yield(0,Se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:et.title,file:ft.dataUrl}});rt!=null&&rt.id&&!E?(yield(0,Se.ZP)(`/api/attachments/${et.id}/add_subitem.json`,{method:"post",body:{subitem_id:rt==null?void 0:rt.id,settings:JSON.stringify(ft.state)}})).status===0&&x():rt!=null&&rt.id&&x(rt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",re(!1),le("")}),ut=()=>{const ft=document.querySelector('a[href="https://markerjs.com/"]');ft&&ft.parentNode&&(ft.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(ct=>{const Ln=document.querySelector(ct.name);Ln&&Ln.setAttribute("title",ct.title)})},zt=()=>{ee.current=new Ie.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",tt),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(),et!=null&&et.snapshotData&&ee.current.restoreState(et.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ut()},300)};return ae.createElement(ae.Fragment,null,(et==null?void 0:et.visible)&&ae.createElement(Le.Z,{spinning:ge,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:_e()(Te.imageDimensions,Je,ne?Te.fullWidth:""),style:a},ae.createElement("img",{className:Te.img,ref:z}))))}},76562:function(Fe,it,ie){"use strict";var ae=ie(59301),Te=ie(95237),Ze=ie(43604),_e=ie(99313),Le=ie(3113),Ie=ie(91842),Se=ie(99587),Qe=ie(48136),Oe=ie(59301);const je=(0,ae.forwardRef)(({callback:We,showSaveButton:et,value:Je=""},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 We&&We(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}},Je||""),et&&Oe.createElement("div",{className:Se.Z.button},Oe.createElement(Le.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});it.Z=je},69720:function(Fe,it,ie){"use strict";ie.d(it,{h:function(){return ee}});var ae=ie(59301),Te=ie(57809),Ze=ie(78241),_e=ie(3113),Le=ie(89780),Ie=ie.n(Le),Se=ie(8336),Qe=ie(12469),Oe=Object.defineProperty,je=Object.defineProperties,We=Object.getOwnPropertyDescriptors,et=Object.getOwnPropertySymbols,Je=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={}))Je.call(oe,ge)&&a(te,ge,oe[ge]);if(et)for(var ge of et(oe))ne.call(oe,ge)&&a(te,ge,oe[ge]);return te},x=(te,oe)=>je(te,We(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"]};it.Z=({callback:te,onCancel:oe})=>{const[ge,re]=(0,ae.useState)("python");function se(ye){re(z[ye][1])}function le(ye){te(ye)}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:ye=>ye.parentNode,onChange:se},Object.keys(z).map(ye=>ae.createElement(b,{key:ye,value:ye},z[ye][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,ye]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Ee=function(tt){const ut=tt.getValue();oe&&oe(ut)};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));ye(Ee)}},[se.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},39793:function(Fe,it,ie){"use strict";ie.d(it,{Z:function(){return _n}});var ae=ie(59301),Te=ie(89780),Ze=ie.n(Te),_e=ie(76374),Le=ie(8336),Ie=ie(6313),Se=ie(25717),Qe=ie(99498),Oe=ie(25419),je=ie(67549),We=ie(91842),et=({value:ce="",className:Pe,showTextOnly:ue,showLines:ke,style:gt={}})=>{const nt=(0,ae.useMemo)(()=>"",[ce]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:nt}}))},Je=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:nt}){function Ot(){ce(ke)}return Je.createElement("a",{title:Pe,className:gt,onClick:Ot},Je.createElement("i",{className:`${ue}`}),nt)}var re=({watch:ce,showNullButton:Pe,showNullProgramButton:ue,onActionCallback:ke,fullScreen:gt,insertTemp:nt,hidetoolBar:Ot,extraUse:ht})=>{const Et=[...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 Je.createElement("ul",{className:"markdown-toolbar-container"},!Ot&&Et.map((Yt,bn)=>Je.createElement("li",{key:bn},Yt.actionName?Je.createElement(ge,te(ee({},Yt),{onActionCallback:ke})):Je.createElement("span",{className:"v-line"}))),Pe?Je.createElement("li",null,Je.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ke},Je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ue?Je.createElement(Je.Fragment,null,Je.createElement("li",null,Je.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ke},Je.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Je.createElement("li",null,Je.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ke},Je.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,nt&&Je.createElement("li",null,Je.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${nt}`,onActionCallback:ke},Je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ht&&Je.createElement("li",null,ht),Je.createElement("li",{className:"btn-full-screen"},Je.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(91558),le=ie(78241),ye=ie(92832),Ee=ie(3113),tt=Object.defineProperty,ut=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable,Ln=(ce,Pe,ue)=>Pe in ce?tt(ce,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ce[Pe]=ue,pn=(ce,Pe)=>{for(var ue in Pe||(Pe={}))rt.call(Pe,ue)&&Ln(ce,ue,Pe[ue]);if(ft)for(var ue of ft(Pe))ct.call(Pe,ue)&&Ln(ce,ue,Pe[ue]);return ce},yn=(ce,Pe)=>ut(ce,zt(Pe));const wn={labelCol:{span:4},wrapperCol:{span:20}};var Qn=({callback:ce,onCancel:Pe})=>{function ue(ke){ce(ke)}return ae.createElement(le.default,yn(pn({},wn),{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(ye.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(ye.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")))},Un=ie(69720),we=ie(17077),Ce=ie(43418),Re=ie(95237),Ft=ie(9507),$e=ie(59301),St=({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(Ce.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(Ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:gt,visible:!0,title:String(Date.now())},onOk:nt=>{ce({src:nt.url})},onClose:Pe})))},de=ie(12378);function Ye(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ye,go.CommandHandler),Ye.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},Ye.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")},Ye.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")},Ye.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")},Ye.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")},Ye.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")}},Ye.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")}},Ye.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(ht){ht instanceof go.Link||ue.push(ht)});for(var ke=0;ke<ue.length-1;ke++){var gt=ue[ke],nt=gt.actualBounds.y+gt.actualBounds.height+ce,Ot=ue[ke+1];Ot.move(new go.Point(gt.actualBounds.x,nt))}Pe.commitTransaction("align Column")},Ye.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(ht){ht instanceof go.Link||ue.push(ht)});for(var ke=0;ke<ue.length-1;ke++){var gt=ue[ke],nt=gt.actualBounds.x+gt.actualBounds.width+ce,Ot=ue[ke+1];Ot.move(new go.Point(nt,gt.actualBounds.y))}Pe.commitTransaction("align Row")},Ye.prototype.canRotate=function(ce){var Pe=this.diagram;return!(Pe===null||Pe.isReadOnly||Pe.isModelReadOnly||Pe.selection.count<1)},Ye.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())},Ye.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 nt=gt.zOrder;isNaN(nt)?gt.zOrder=0:ke=Math.max(ke,nt)}}),Pe.set(ue,ke)}),ce.selection.each(function(ue){Ye._assignZOrder(ue,Pe.get(ue.layer)+1)}),ce.commitTransaction("pullToFront")},Ye.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 nt=gt.zOrder;isNaN(nt)?gt.zOrder=0:ke=Math.min(ke,nt)}}),Pe.set(ue,ke)}),ce.selection.each(function(ue){Ye._assignZOrder(ue,Pe.get(ue.layer)-1-Ye._findGroupDepth(ue))}),ce.commitTransaction("pushToBack")},Ye._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){Ye._assignZOrder(ke,Pe+1,ue)})},Ye._findGroupDepth=function(ce){if(ce instanceof go.Group){var Pe=0;return ce.memberParts.each(function(ue){Pe=Math.max(Pe,Ye._findGroupDepth(ue))}),Pe+1}else return 0},Ye.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)}},Ye.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},Ye.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(nt){Pe.key==="Up"?nt.move(new go.Point(nt.actualBounds.x,nt.actualBounds.y-ue)):Pe.key==="Down"?nt.move(new go.Point(nt.actualBounds.x,nt.actualBounds.y+ue)):Pe.key==="Left"?nt.move(new go.Point(nt.actualBounds.x-ke,nt.actualBounds.y)):Pe.key==="Right"&&nt.move(new go.Point(nt.actualBounds.x+ke,nt.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},Ye.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))},Ye.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,nt=Pe,Ot=0;Ot<ke.length;Ot++){var ht=ke[Ot];if(ht!==Pe&&ht.canSelect()){var Et=ht.actualBounds.center,Yt=ue.directionPoint(Et),bn=this._angleCloseness(Yt,ce);if(bn<=45){var De=ue.distanceSquaredPoint(Et);De*=1+Math.sin(bn*Math.PI/180),De<gt&&(gt=De,nt=ht)}}}return nt},Ye.prototype._angleCloseness=function(ce,Pe){return Math.min(Math.abs(Pe-ce),Math.min(Math.abs(Pe+360-ce),Math.abs(Pe-360-ce)))},Ye.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 nt=this._sortTreeChildrenByY(gt),Ot=nt.indexOf(Pe);if(Ot>0){for(var ht=nt.elt(Ot-1);ht!==null&&ht.isTreeExpanded&&!ht.isTreeLeaf;){var Et=this._sortTreeChildrenByY(ht);ht=Et.last()}ht!==null&&ce.select(ht)}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 nt=this._sortTreeChildrenByY(gt),Ot=nt.indexOf(Pe);if(Ot<nt.length-1){ce.select(nt.elt(Ot+1));break}else Pe=gt}var Yt=ce.selection.first();Yt!==null&&ce.scrollToRect(Yt.actualBounds)}},Ye.prototype._sortTreeChildrenByY=function(ce){var Pe=new go.List().addAll(ce.findTreeChildrenNodes());return Pe.sort(function(ue,ke){var gt=ue.location,nt=ke.location;return gt.y<nt.y?-1:gt.y>nt.y?1:gt.x<nt.x?-1:gt.x>nt.x?1:0}),Pe},Ye.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},Ye.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(Ye.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(Ye.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 xt=Ye,an=ie(63720),_t=ie(43604),Gn=ie(38986),Tn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},$t=ie(59301),Xn=(ce,Pe,ue)=>new Promise((ke,gt)=>{var nt=Et=>{try{ht(ue.next(Et))}catch(Yt){gt(Yt)}},Ot=Et=>{try{ht(ue.throw(Et))}catch(Yt){gt(Yt)}},ht=Et=>Et.done?ke(Et.value):Promise.resolve(Et.value).then(nt,Ot);ht((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)(),nt=(0,ae.useRef)(!1);const Ot=(0,ae.useRef)(!1),[ht,Et]=(0,ae.useState)(0);function Yt(){const De=de.bx.make,Gt={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:Ne=>{var Ke=Ne.diagram.commandHandler.addTopLevelParts(Ne.diagram.selection,!0);Ke||Ne.diagram.currentTool.doCancel()},commandHandler:De(xt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ne=>{var Ke=Ne.subject;Ke.location=Ke.location.copy().snapToGridPoint(Ne.diagram.grid.gridOrigin,Ne.diagram.grid.gridCellSize),setTimeout(()=>{Ne.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ne=>{var Ke=Ne.subject;setTimeout(()=>{Ne.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ne=>{var Ke=Ne.parameter.part;Ke.invalidateConnectedLinks();var dt=Ne.subject;Ne.diagram.toolManager.linkingTool.isForwards?dt.toNode.invalidateConnectedLinks():dt.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:Gt.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 fn(Ne,Ke){var dt=(Xe,bt)=>{Xe.handled=!0,Xe.diagram.model.commit(Bt=>{var st=bt.part.adornedPart,Wt=new de.E9().setRectSpot(st.actualBounds,Ne);Wt.subtract(st.location),Wt.scale(2,2),Wt.x+=Math.sign(Wt.x)*130,Wt.y+=Math.sign(Wt.y)*130,Wt.add(st.location),Wt.snapToGridPoint(Xe.diagram.grid.gridOrigin,Xe.diagram.grid.gridCellSize);var Zt=Bt.copyNodeData(st.data);Bt.setGroupKeyForNodeData(Zt,Bt.getGroupKeyForNodeData(st.data)),Bt.addNodeData(Zt);var ta={from:st.key,to:Bt.getKeyForNodeData(Zt)};Bt.addLinkData(ta);var jn=Xe.diagram.findNodeForData(Zt);jn.location=Wt,Xe.diagram.select(jn),setTimeout(()=>{Xe.diagram.commandHandler.editTextBlock()},20)})};return De(de.bn,{figure:Ke,alignment:Ne,alignmentFocus:Ne.opposite(),width:Ne.equals(de.z6.Top)||Ne.equals(de.z6.Bottom)?25:18,height:Ne.equals(de.z6.Top)||Ne.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Gt.white,strokeWidth:4,mouseEnter:(Xe,bt)=>bt.fill="dodgerblue",mouseLeave:(Xe,bt)=>bt.fill="orange",isActionable:!0,click:dt,contextClick:dt})}function Nn(Ne){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:(Ke,dt)=>dt.fill="dodgerblue",mouseLeave:(Ke,dt)=>dt.fill="orange",click:(Ke,dt)=>{Ke.diagram.commandHandler.showContextMenu(dt.part.adornedPart)}},Ne||{})}ue.current.nodeTemplate.selectionAdornmentTemplate=De(de.uz,"Spot",De(de.Vm,{padding:10}),fn(de.z6.Top,"TriangleUp"),fn(de.z6.Left,"TriangleLeft"),fn(de.z6.Right,"TriangleRight"),fn(de.z6.Bottom,"TriangleDown"),Nn({alignment:new de.z6(.75,0)}));function tn(Ne,Ke){return(dt,Xe)=>{dt.handled=!0,dt.diagram.model.commit(bt=>{bt.set(Xe.part.adornedPart.data,Ne,Ke)})}}function me(Ne,Ke){return Ke||(Ke="color"),De(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ne,margin:1,background:"transparent",mouseEnter:(dt,Xe)=>Xe.stroke="dodgerblue",mouseLeave:(dt,Xe)=>Xe.stroke="lightgray",click:tn(Ke,Ne),contextClick:tn(Ke,Ne)})}function ve(){return[De("ContextMenuButton",De(de.s_,"Horizontal",me(Gt.white,"fill"),me(Gt.beige,"fill"),me(Gt.extralightblue,"fill"),me(Gt.extralightred,"fill"))),De("ContextMenuButton",De(de.s_,"Horizontal",me(Gt.lightgray,"fill"),me(Gt.lightgreen,"fill"),me(Gt.lightblue,"fill"),me(Gt.lightred,"fill")))]}function pe(){return[De("ContextMenuButton",De(de.s_,"Horizontal",me(Gt.black),me(Gt.green),me(Gt.blue),me(Gt.red))),De("ContextMenuButton",De(de.s_,"Horizontal",me(Gt.white),me(Gt.magenta),me(Gt.purple),me(Gt.orange)))]}function Be(Ne,Ke){return Ke||(Ke="thickness"),De(de.bn,"LineH",{width:16,height:16,strokeWidth:Ne,margin:1,background:"transparent",mouseEnter:(dt,Xe)=>Xe.background="dodgerblue",mouseLeave:(dt,Xe)=>Xe.background="transparent",click:tn(Ke,Ne),contextClick:tn(Ke,Ne)})}function ze(Ne,Ke){return Ke||(Ke="dash"),De(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ne,margin:1,background:"transparent",mouseEnter:(dt,Xe)=>Xe.background="dodgerblue",mouseLeave:(dt,Xe)=>Xe.background="transparent",click:tn(Ke,Ne),contextClick:tn(Ke,Ne)})}function Me(){return[De("ContextMenuButton",De(de.s_,"Horizontal",Be(1),Be(2),Be(3),Be(4))),De("ContextMenuButton",De(de.s_,"Horizontal",ze(null),ze([2,4]),ze([4,4])))]}function Ge(Ne,Ke){return Ke||(Ke="figure"),De(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ne,margin:1,background:"transparent",mouseEnter:(dt,Xe)=>Xe.fill="dodgerblue",mouseLeave:(dt,Xe)=>Xe.fill="lightgray",click:tn(Ke,Ne),contextClick:tn(Ke,Ne)})}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"))),ve(),pe(),Me()),ue.current.groupTemplate=De(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ne,Ke)=>{var dt=Ke.addMembers(Ke.diagram.selection,!0);dt||Ke.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:Gt.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})),Nn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ue.current.groupTemplate.contextMenu=De("ContextMenu",ve(),pe(),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",Ne=>Ne>=1?10:0),new de.KX("toShortLength","dir",Ne=>Ne>=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",Ne=>Ne===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",Ne=>Ne>=1),new de.KX("width","thickness",Ne=>7+3*Ne),new de.KX("height","thickness",Ne=>7+3*Ne),new de.KX("segmentOffset","thickness",Ne=>new de.E9(-15,4+1.5*Ne))),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",Ne=>Ne===2),new de.KX("width","thickness",Ne=>7+3*Ne),new de.KX("height","thickness",Ne=>7+3*Ne),new de.KX("segmentOffset","thickness",Ne=>new de.E9(-15,4+1.5*Ne))),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)),Nn({alignmentFocus:new de.z6(0,0,-6,-4)}));function xe(Ne){return De(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ne+4).toString()+" H3"})}function mt(Ne){var Ke="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ne===0?Ke="M0 0 M16 16 M0 8 L16 8":Ne===2&&(Ke="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),De(de.bn,{geometryString:Ke,margin:2,background:"transparent",mouseEnter:(dt,Xe)=>Xe.background="dodgerblue",mouseLeave:(dt,Xe)=>Xe.background="transparent",click:tn("dir",Ne),contextClick:tn("dir",Ne)})}function lt(Ne){var Ke=(dt,Xe)=>{dt.handled=!0,dt.diagram.model.commit(bt=>{var Bt=Xe.part.adornedPart;bt.set(Bt.data,Ne?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ne?Bt.toNode:Bt.fromNode).invalidateConnectedLinks()})};return De(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(dt,Xe)=>Xe.background="dodgerblue",mouseLeave:(dt,Xe)=>Xe.background="transparent",click:Ke,contextClick:Ke})}function fe(Ne,Ke){var dt=0,Xe=de.z6.RightSide;Ne.equals(de.z6.Top)?(dt=270,Xe=de.z6.TopSide):Ne.equals(de.z6.Left)?(dt=180,Xe=de.z6.LeftSide):Ne.equals(de.z6.Bottom)&&(dt=90,Xe=de.z6.BottomSide),Ke||(dt-=180);var bt=(Bt,st)=>{Bt.handled=!0,Bt.diagram.model.commit(Wt=>{var Zt=st.part.adornedPart;Wt.set(Zt.data,Ke?"toSpot":"fromSpot",de.z6.stringify(Xe)),(Ke?Zt.toNode:Zt.fromNode).invalidateConnectedLinks()})};return De(de.bn,{alignment:Ne,alignmentFocus:Ne.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:dt,background:"transparent",mouseEnter:(Bt,st)=>st.background="dodgerblue",mouseLeave:(Bt,st)=>st.background="transparent",click:bt,contextClick:bt})}ue.current.linkTemplate.contextMenu=De("ContextMenu",pe(),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),fe(de.z6.Top,!1),fe(de.z6.Left,!1),fe(de.z6.Right,!1),fe(de.z6.Bottom,!1)),De(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},lt(!0),fe(de.z6.Top,!0),fe(de.z6.Left,!0),fe(de.z6.Right,!0),fe(de.z6.Bottom,!0)))));const At=`{ "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 Ct=["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 Kt(Ne){return console.log("shapeName:",Ne),Ct.indexOf(Ne)>=0}var nn=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(Ne=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ne.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ue.current.addDiagramListener("TextEdited",function(Ne){var Ke;const dt=Ne.subject.part;var Xe=(Ke=document.activeElement)==null?void 0:Ke.value;typeof Xe=="string"&&Xe.trim()===""&&ue.current.model.commit(function(bt){bt.set(dt.data,"text","\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}),nn.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=()=>Xn(this,null,function*(){var De=ue.current.makeImage();const Gt=yield(0,Gn.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:De.src}});Pe({src:Gt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{Yt()},500),Et(ht+1),()=>{ue.current=null}),[]),$t.createElement("div",{ref:Ot,className:nt.current?`${Tn.maxH60} body-overflow-initial`:"body-overflow-initial"},$t.createElement(Ce.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ht,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,Gt,fn=ue.current.selection.first();if(nt.current=!nt.current,document.activeElement&&fn){let Nn=(Gt=(De=document.activeElement)==null?void 0:De.value)==null?void 0:Gt.trim();typeof Nn=="string"&&ue.current.model.commit(function(tn){tn.set(fn.data,"text",Nn||"\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}Et(ht+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 $n=qn,Kn=ie(5112),On=ie(5871);const Xt=Kn.ZP.Group,Jt={margin:"0 8px"};var en=({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:Jt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Jt},"\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:Jt},"\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:Jt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Xt,null,ae.createElement(Kn.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(Kn.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(Kn.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(Kn.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")))},Nt=ie(78673),ea=ie(43001),aa=ie.n(ea),fa=(0,ae.forwardRef)(({use3d:ce,width:Pe,height:ue,callback:ke,showSaveButton:gt},nt)=>{const Ot=(0,ae.useRef)(),ht=(0,ae.useRef)(),[Et,Yt]=(0,ae.useState)(!1),bn=(0,ae.useRef)({id:Ot,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)(()=>{ht.current=new(aa())(bn.current,!0),window.onload=function(){ht.current.inject("applet_container")}},[]);const De=()=>{var Gt=window.ggbApplet.getPNGBase64(1,!0,72);return ke&&ke(Gt),Gt};return(0,ae.useEffect)(()=>{bn.current.appName=Et?"3D":"graphing",ht.current.inject("applet_container")},[Et]),(0,ae.useEffect)(()=>{Yt(ce)},[ce]),(0,ae.useImperativeHandle)(nt,()=>({getImgData:De})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ot}),ae.createElement(Re.Z,{align:"middle"},ae.createElement(_t.Z,{flex:1},ae.createElement(Nt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Et,onChange:Gt=>Yt(Gt)})),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"))))}),In=ie(76562),he=ie(1012),be=ie(8591);const Ae="link",Ue="upload-image",qe="add-flowchart",pt="draw-image",wt="add-flowchart",Pt="code-block",vt="add-table",Tt="------------",Mt={default:Tt,left:`:${Tt}`,center:`:${Tt}:`,right:`${Tt}:`};var It=ie(37808),on=(ce,Pe,ue)=>new Promise((ke,gt)=>{var nt=Et=>{try{ht(ue.next(Et))}catch(Yt){gt(Yt)}},Ot=Et=>{try{ht(ue.throw(Et))}catch(Yt){gt(Yt)}},ht=Et=>Et.done?ke(Et.value):Promise.resolve(Et.value).then(nt,Ot);ht((ue=ue.apply(ce,Pe)).next())});function cn(){}let Sn=0;const Vt=1e4,jt="\u2581",Fn="@\u2581\u2581@",Pn="@\u2581@",hn=`
|
|
**\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`,Ut=["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 Cn(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const Rn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",zn={[Rn+"-B"]:"bold",[Rn+"-I"]:"italic"},Yn={[Ae]:"\u6DFB\u52A0\u94FE\u63A5",[Pt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ue]:"\u6DFB\u52A0\u56FE\u7247",[pt]:"\u6DFB\u52A0\u753B\u56FE",[qe]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[vt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var _n=({defaultValue:ce="",onChange:Pe,width:ue="100%",height:ke=400,miniToolbar:gt=!1,isFocus:nt=!1,watch:Ot,insertTemp:ht,mode:Et="markdown",id:Yt="markdown-editor-id",showResizeBar:bn=!1,noStorage:De=!1,showNullButton:Gt=!1,showNullProgramButton:fn=!1,hidetoolBar:Nn=!1,fullScreen:tn=!1,onBlur:me,onCMBeforeChange:ve,onFullScreen:pe,className:Be="",disablePaste:ze=!1,disabled:Me=!1,disabledFill:Ge=!1,placeholder:xe="",values:mt="",extraUse:lt})=>{const[fe,At]=(0,ae.useState)(null),[Ct,Kt]=(0,ae.useState)(ce),[nn,Ne]=(0,ae.useState)(Ot),[Ke,dt]=(0,ae.useState)(tn),[Xe,bt]=(0,ae.useState)(""),[Bt,st]=(0,ae.useState)(0),[Wt,Zt]=(0,ae.useState)(ke),[ta,jn]=(0,ae.useState)(!1),Hn=(0,ae.useRef)((0,he.Z)()),ua=(0,ae.useRef)(!1),ca=(0,ae.useRef)(),[Sa,ra]=(0,ae.useState)(0),[kn,gn]=(0,ae.useState)(0),Zn=(0,ae.useRef)(),oa=(0,ae.useRef)(),ga=(0,ae.useRef)(),Jn=(0,ae.useRef)(),Wn=()=>on(void 0,null,function*(){var ot;const He=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Hn.current}});(ot=He==null?void 0:He.attachments)!=null&&ot.length&&(console.log("cm:",fe,Zn),He.attachments.map(Ve=>{Ve.content_type.indexOf("image")>-1?fe.replaceSelection(``):Ve.content_type.indexOf("video")>-1?fe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ve.content_type.indexOf("pdf")>-1?fe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.content_type}&disposition=inline" target="_blank">${Ve.name}</a>`):fe.replaceSelection(`[${Ve.name}](${ENV.API_SERVER}/api/attachments/${Ve.id}?type=${Ve.content_type})`)}))});(0,ae.useEffect)(()=>{const ot=window.scrollY||window.pageYOffset;Kt(mt),fe==null||fe.setValue(mt),window.scrollTo(0,ot)},[mt]),(0,ae.useEffect)(()=>{pe==null||pe(Ke)},[Ke]),(0,ae.useEffect)(()=>{if(Zn.current){let ot=function(Ve,at){var Rt;if(ze){at.preventDefault();return}const mn=at.clipboardData;if(mn){const vn=mn.types.toString(),un=mn.items;if(vn==="Files"||mn.types.indexOf("Files")>-1){if(at.preventDefault(),Et=="stex")return;try{let Bn=un[1];((Rt=un[0])==null?void 0:Rt.kind)==="file"&&(Bn=un[0]);const xn=Bn.getAsFile(),da=xn.name.split(".").pop();(0,we.I)(xn,Dn=>{var yt,kt,Qt;Dn.id?((yt=xn==null?void 0:xn.type)==null?void 0:yt.indexOf("image"))>-1?He.replaceSelection(`<img width="100%" src="/api/attachments/${Dn.id}?type=${Dn.content_type})" alt="" />`):((kt=xn==null?void 0:xn.type)==null?void 0:kt.indexOf("video"))>-1?He.replaceSelection(`<video width="100%" controls src="/api/attachments/${Dn.id}"></video>`):((Qt=xn==null?void 0:xn.type)==null?void 0:Qt.indexOf("pdf"))>-1?He.replaceSelection(`<a href="/api/attachments/${Dn.id}?type=${xn.type}&disposition=inline" target="_blank">${xn.name}</a>`):Ut.includes(da)?He.replaceSelection(`<a href="/api/attachments/${Dn.id}?type=office&disposition=inline" target="_blank">${xn.name}</a>`):He.replaceSelection(`[${xn.name}](/api/attachments/${Dn.id}?type=${Dn.content_type})`):(Dn==null?void 0:Dn.status)===401&&(be.ZP.warning((Dn==null?void 0:Dn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Bn){be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const He=Ze().fromTextArea(Zn.current,{mode:Et,lineNumbers:!gt,lineWrapping:!0,value:ce,autoCloseTags:!fn,autoCloseBrackets:!0});return He.on("keyup",function(Ve,at){at.keyCode===8&&(Ve.getValue()==""?He.setOption("placeholder",xe):He.setOption("placeholder",null))}),He.on("keydown",function(Ve,at){if(at.keyCode===8){var Rt=Lt(Ve);Rt&&at.preventDefault()}}),nt&&He.focus(),He.on("paste",ot),He.on("dragleave",function(Ve,at){oa.current.classList.remove("mouse-hover-md")}),Me&&He.on("beforeChange",function(Ve,at){(at.origin==="paste"||at.origin==="+input")&&at.cancel()}),At(He),()=>{He.off("paste",ot)}}},[]);const Pa=(0,ae.useCallback)(()=>{if(oa.current)try{}catch(ot){console.log(ot,"---- to set md editor body height")}},[Wt,oa,Ke]);(0,ae.useEffect)(()=>{function ot(){let He=new _e.Z(Ve=>{for(let at of Ve)(at.target.offsetHeight>0||at.target.offsetWidth>0)&&(Pa(),fe.setSize("100%","100%"),fe.refresh())});return He.observe(Zn.current.parentElement),He}if(fe){const He=ot();return()=>{var Ve,at;(Ve=Zn.current)!=null&&Ve.parentElement&&He.unobserve((at=Zn.current)==null?void 0:at.parentElement)}}},[fe,Pa]),(0,ae.useEffect)(()=>{if(fe){let ot=[];for(const[He,Ve]of Object.entries(zn)){let at={[He]:()=>{rn(Ve)}};ot.push(at),fe.addKeyMap(at)}return ca.current=setInterval(()=>{ua.current&&Wn()},4e3),()=>{clearInterval(ca.current);for(let He of ot)fe.removeKeyMap(He)}}},[fe]),(0,ae.useEffect)(()=>{tn!==Ke&&dt(tn)},[tn]),(0,It.Z)(()=>{if(!De&&Bt>0){let ot=new Date().getTime(),He=window.sessionStorage.getItem(Yt);ot>=Bt+Vt&&(!He||He!==Ct)&&(window.sessionStorage.setItem(Yt,Ct),jn(!0))}},Vt),(0,ae.useEffect)(()=>{Ne(Ot)},[fe,Ot]),(0,ae.useEffect)(()=>{fe&&nt&&fe.focus()},[fe,nt]),(0,ae.useEffect)(()=>{if(nn&&fe){let ot=function(Ve){let at=Ve.target;if(Jn.current){let Rt=at.scrollTop/at.scrollHeight;Jn.current.scrollTop=Jn.current.scrollHeight*Rt}};const He=fe.getScrollerElement();return He.addEventListener("scroll",ot),()=>{He.removeEventListener("scroll",ot)}}},[fe,nn]),(0,ae.useEffect)(()=>{if(fe&&ve){let ot=function(He,Ve){ve(He,Ve)};return fe.on("beforeChange",ot),()=>{fe.off("beforeChange",ot)}}},[fe,ve]),(0,ae.useEffect)(()=>{if(fe&&me){let ot=function(){me(fe.getValue())};return fe.on("blur",ot),()=>{fe.off("blur",ot)}}},[fe,me]);function Lt(ot,He){var Ve=ot.getDoc(),at=Ve.getCursor(),Rt=Ve.getLine(at.line),mn=Rt.charAt(at.ch-1),vn=Rt.lastIndexOf("@\u2581@",at.ch),un=Rt.lastIndexOf("@\u2581\u2581@",at.ch),Bn=vn>un?vn:un,xn=vn>un?3:4;if(Fn.indexOf(mn)===-1)return null;if(console.log("change1:",He,ot,Rt,at,Bn,vn,un,mn),Bn>=0&&at.ch-Bn<5){var da=Bn+xn;return Ve.replaceRange("",{line:at.line,ch:Bn},{line:at.line,ch:da}),{line:at.line,ch:da}}return null}(0,ae.useEffect)(()=>{if(fe){let ot=function(He,Ve){const at=He.getValue();Kt(at),st(new Date().getTime()),He.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Pe&&(fn?Pe(at,dn(at)):Pe(at))};return fe.on("change",ot),()=>{fe.off("change",ot)}}},[fe,Pe]),(0,ae.useEffect)(()=>{if(fe)if(ce==null)fe.setValue(""),Kt("");else{const ot=window.scrollY||window.pageYOffset;ce!==fe.getValue()&&(fe.setValue(ce),Kt(ce),fe.setCursor(Me?1:fe.lineCount(),0),window.scrollTo(0,ot))}},[fe,ce]);const rn=(0,ae.useCallback)(ot=>{const He=fe.getCursor(),Ve=fe.getSelection();let at=Ve.split(`
|
|
`);switch(ot){case"bold":return fe.replaceSelection("**"+Ve+"**"),Ve===""&&fe.setCursor(He.line,He.ch+2),fe.focus();case"italic":return fe.replaceSelection("*"+Ve+"*"),Ve===""&&fe.setCursor(He.line,He.ch+1),fe.focus();case"code":return fe.replaceSelection("`"+Ve+"`"),Ve===""&&fe.setCursor(He.line,He.ch+1),fe.focus();case"inline-latex":return bt("inline-latex"),fe.focus();case"latex":return fe.replaceSelection("```latex\n"+Ve+"\n```"),fe.setCursor(He.line+1,Ve.length+1),fe.focus();case"line-break":return fe.replaceSelection(`<br/>
|
|
`),fe.focus();case"list-ul":return Ve===""?fe.replaceSelection("- "+Ve):fe.replaceSelection(at.map(Rt=>Rt===""?"":`- ${Rt}`).join(`
|
|
`)),fe.focus();case"list-ol":return Ve===""?fe.replaceSelection("1. "+Ve):fe.replaceSelection(at.map((Rt,mn)=>Rt===""?"":`${mn+1}. ${Rt}`).join(`
|
|
`)),fe.focus();case"add-null-ch":return Ve===""&&fe.setCursor(He.line,He.ch),fe.replaceSelection(jt),fe.focus();case"add-signal":return Ve===""&&fe.setCursor(He.line,He.ch),fe.replaceSelection(Pn),fe.focus();case"add-multiple":return Ve===""&&fe.setCursor(He.line,He.ch),fe.replaceSelection(Fn),fe.focus();case"inster-template-1":return Ve===""&&fe.setCursor(He.line,He.ch),fe.replaceSelection(hn),fe.focus();case"eraser":return fe.setValue(""),fe.focus();case"trigger-watch":return Ne(!nn),fe.focus();case"trigger-full-screen":return dt(!Ke),fe.focus();case Ae:bt(Ae);return;case Pt:bt(Pt);return;case Ue:bt(Ue);return;case pt:bt(pt);return;case"maths-latex":bt("maths-latex");return;case qe:bt(qe);return;case vt:bt(vt);return;default:throw new Error}},[fe,nn,Ke]),ln=(0,ae.useCallback)((ot,He)=>{var Ve,at,Rt,mn,vn,un;switch(bt(""),Xe){case Ae:const{title:yt,link:kt}=ot;return fe.replaceSelection(`[${yt}](${kt})`),fe.focus();case Pt:const{language:Qt,content:Dt}=ot;return fe.replaceSelection(["```"+Qt,Dt,"```"].join(`
|
|
`)),fe.focus();case"maths-latex":for(var Bn=atob(ot),xn=new Uint8Array(Bn.length),da=0;da<Bn.length;da++)xn[da]=Bn.charCodeAt(da);var Dn=new Blob([xn],{type:"image/png"});(0,we.I)(Dn,ma=>{ma.id?fe.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":fe.replaceSelection("`$$"+ot+"$$`");break;case Ue:case pt:case wt:const{src:Ht,alt:En}=ot,qt=He,ha=(Rt=(at=(Ve=qt==null?void 0:qt.name)==null?void 0:Ve.split("."))==null?void 0:at.pop)==null?void 0:Rt.call(at);return((mn=qt==null?void 0:qt.type)==null?void 0:mn.indexOf("image"))>-1||!(qt!=null&&qt.type)?qt.align||qt.width?fe.replaceSelection(`<p style="text-align:${qt.align||"initial"}"><img width="${qt.width?qt.width+"%":"initial"}" src="${Ht}" alt="${En||""}" /></p>`):fe.replaceSelection(`<img width="100%" src="${Ht}" alt="${En||""}" />`):((vn=qt==null?void 0:qt.type)==null?void 0:vn.indexOf("video"))>-1?fe.replaceSelection(`<video width="100%" controls src="${Ht}"></video>`):((un=qt==null?void 0:qt.type)==null?void 0:un.indexOf("pdf"))>-1?fe.replaceSelection(`<a href="${Ht}?type=${qt.type}&disposition=inline" target="_blank">${qt.name}</a>`):Ut.includes(ha)?fe.replaceSelection(`<a href="${Ht}?type=office&disposition=inline" target="_blank">${qt.name}</a>`):fe.replaceSelection(`[${qt.name}](${Ht})`),fe.focus();case vt:const{row:sa,col:Fa,align:Ga}=ot;let ba=`
|
|
`;for(let ma=0;ma<sa;ma++){let Ba=[],xa=[];for(let Ea=0;Ea<Fa;Ea++)ma===1&&xa.push(Mt[Ga]),Ba.push(" ");ma===1&&(ba+=`| ${xa.join(" | ")} |
|
|
`),ba+=`| ${Ba.join(Fa===1?"":" | ")} |
|
|
`}return fe.replaceSelection(ba+`
|
|
`),fe.focus();default:throw new Error}},[fe,Xe]),Mn=(0,ae.useMemo)(()=>{switch(Xe){case Ae:return ae.createElement(Qn,{callback:ln,onCancel:An});case Pt:return ae.createElement(Un.Z,{callback:ln,onCancel:An});case Ue:return ae.createElement(we.Z,{callback:ln,onCancel:An});case qe:return ae.createElement($n,{callback:ln,onCancel:An});case vt:return ae.createElement(en,{callback:ln,onCancel:An});case"maths-latex":return ae.createElement(fa,{showSaveButton:!0,callback:ln});case"inline-latex":return ae.createElement(In.Z,{showSaveButton:!0,callback:ln});default:return null}},[Xe]);function An(){bt("")}(0,ae.useEffect)(()=>{if(ga.current){let ot=function(vn){Rt=!0,mn=vn.pageY},He=function(){Rt=!1},Ve=function(vn){if(Rt){let un=vn.pageY-mn;un<0&&(un=0),un>300&&(un=300);let Bn=ke+un+"px";Zt(Bn)}},at=ga.current,Rt=!1,mn=0;return at.addEventListener("mousedown",ot),document.addEventListener("mousemove",Ve),document.addEventListener("mouseup",He),()=>{at.removeEventListener("mousedown",ot),document.removeEventListener("mousemove",Ve),document.removeEventListener("mouseup",He)}}},[fe,ga]),(0,ae.useEffect)(()=>{Zt(ke)},[ke]);const na=Cn(ue),va=Cn(Wt),pa={width:na,height:va},sn=(0,ae.useMemo)(()=>{if(Bt){let ot=new Date(Bt),He=ot.getHours(),Ve=ot.getMinutes(),at=ot.getSeconds();return He=He<10?"0"+He:He,Ve=Ve<10?"0"+Ve:Ve,at=at<10?"0"+at:at,`${He}:${Ve}:${at}`}return 0},[Bt]),dn=ot=>{const He=[];if(fn){let Ve=-1;ot=ot.replace(/(@▁▁@|@▁@)/g,function(at,Rt,mn){He.push({multiLine:at!==Pn})})}return He};function ia(){window.sessionStorage.removeItem(Yt),jn(!1),st(0)}function La(){jn(!1),st(0),fe.setValue(window.sessionStorage.getItem(Yt))}(0,ae.useEffect)(()=>{Yn[Xe]&&Xe!==pt&&Xe!==qe&&setTimeout(()=>{const ot=document.getElementsByClassName("markdown-popup-form")[0],He=window.innerWidth/2-ot.offsetWidth/2,Ve=window.innerHeight/2-ot.offsetHeight/2;ra(He),gn(Ve)},0)},[Xe]);const ya=ot=>{ot.preventDefault();const He=ot.clientX-Sa,Ve=ot.clientY-kn;document.body.onmousemove=at=>{let Rt=at.clientX-He,mn=at.clientY-Ve;const vn=document.getElementsByClassName("markdown-popup-form")[0],un=window.innerWidth-vn.offsetWidth,Bn=window.innerHeight-vn.offsetHeight;Rt=Math.max(0,Math.min(Rt,un)),mn=Math.max(0,Math.min(mn,Bn)),wa(at.clientX,at.clientY,He,Ve)&&(ra(Rt),gn(mn))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(ot,He,Ve,at)=>{const Rt=document.body.clientHeight,mn=document.body.clientWidth;return ot<20&&Ve>ot||ot>mn-20&&Ve<ot||He<20&&at>He||He>Rt-20&&at<He?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:oa},ae.createElement("div",{className:`markdown-editor-container ${Be} ${nn?"on-preview":""} ${gt?"mini":""} ${Ke?"full-screen":""}`,style:pa},ae.createElement(re,{insertTemp:ht,watch:nn,fullScreen:Ke,showNullButton:Gt,showNullProgramButton:fn,onActionCallback:rn,hidetoolBar:Nn,extraUse:lt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Zn,placeholder:xe})),nn?ae.createElement("div",{ref:Jn,className:"preview-container"},Et==="stex"&&ae.createElement(et,{value:Ct}),Et!=="stex"&&ae.createElement(We.Z,{disabledFill:Ge,showProgramFill:fn,value:Ct})):null))),bn?ae.createElement("a",{ref:ga,className:"editor-resize"}):null,Xe===pt&&ae.createElement(St,{callback:ln,onCancel:An}),Xe===qe&&ae.createElement($n,{callback:ln,onCancel:An}),ae.createElement(se.Z,null,Yn[Xe]&&Xe!==pt&&Xe!==qe?ae.createElement(Ce.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Sa,top:kn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},Yn[Xe]),open:!0,onCancel:An,footer:null,destroyOnClose:!0,width:Xe===qe?"1200px":null,height:Xe===qe?"80vh":null,className:"markdown-popup-form"},Mn):null))}},17077:function(Fe,it,ie){"use strict";ie.d(it,{Z:function(){return ge},I:function(){return se}});var ae=ie(78241),Te=ie(8591),Ze=ie(92832),_e=ie(81327),Le=ie(5871),Ie=ie(5112),Se=ie(3113),Qe=ie(46699),Oe=ie(59301),je=ie(48790),We=ie(59301),et=Object.defineProperty,Je=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(le,ye,Ee)=>ye in le?et(le,ye,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):le[ye]=Ee,E=(le,ye)=>{for(var Ee in ye||(ye={}))y.call(ye,Ee)&&b(le,Ee,ye[Ee]);if(a)for(var Ee of a(ye))x.call(ye,Ee)&&b(le,Ee,ye[Ee]);return le},z=(le,ye)=>Je(le,ne(ye));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:ye})=>{const[Ee]=ee();let tt=(0,Oe.useRef)();function ut(rt){tt.current.width=Ee.getFieldValue("width"),tt.current.align=Ee.getFieldValue("align"),le(rt,tt.current)}function zt(rt,ct){if(rt.status===-1){Te.ZP.error(rt.message);return}Ee.setFieldsValue({src:`/api/attachments/${rt.id}`,type:ct.type})}function ft(rt){let ct=rt.target.files[0];tt.current=ct,se(ct,zt)}return We.createElement(ae.default,z(E({form:Ee},oe),{className:"upload-image-panel",onFinish:ut,style:{width:470,overflow:"hidden"}}),We.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},We.createElement("div",{className:"flex-container"},We.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},We.createElement(Ze.default,{style:te})),We.createElement(re,{onFileChange:ft}))),We.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},We.createElement(Ze.default,{style:{width:264}})),We.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},We.createElement(_e.Z,null,We.createElement(ae.default.Item,{name:"width",style:{margin:0}},We.createElement(Le.Z,{style:{width:264}})),We.createElement("span",{className:"ml8"},"%"))),We.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},We.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"}]})),We.createElement("aside",null,We.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},We.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(Se.ZP,{type:"default",onClick:ye},"\u53D6\u6D88"))))};function re({onFileChange:le}){return We.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",We.createElement("input",{type:"file",onChange:le}))}function se(le,ye){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 tt=new window.XMLHttpRequest;tt.withCredentials=!0,tt.addEventListener("load",function(ut){ye(JSON.parse(ut.target.responseText),le)},!1),tt.addEventListener("error",function(ut){console.error(ut)},!1),tt.open("POST",`${Qe.KI}/api/attachments.json`),tt.send(Ee)}},91558:function(Fe,it,ie){"use strict";ie.d(it,{Z:function(){return Ze}});var ae=ie(59301),Te=ie(4676);class Ze extends ae.Component{constructor(Le){super(Le);const Ie=window.document;this.node=Ie.createElement("div"),Ie.body.appendChild(this.node)}render(){const{children:Le}=this.props;return(0,Te.createPortal)(Le,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},37808:function(Fe,it,ie){"use strict";ie.d(it,{Z:function(){return Te}});var ae=ie(59301);function Te(Ze,_e){const Le=(0,ae.useRef)();(0,ae.useEffect)(()=>{Le.current=Ze}),(0,ae.useEffect)(()=>{function Ie(){Le.current()}if(_e!==null){let Se=setInterval(Ie,_e);return()=>clearInterval(Se)}},[_e])}},22255:function(Fe,it,ie){"use strict";ie.r(it),ie.d(it,{default:function(){return re}});var ae=ie(59301),Te=ie(39793),Ze=ie(8591),_e=ie(92832),Le=ie(3113),Ie=ie(38986),Se=(se,le,ye)=>new Promise((Ee,tt)=>{var ut=rt=>{try{ft(ye.next(rt))}catch(ct){tt(ct)}},zt=rt=>{try{ft(ye.throw(rt))}catch(ct){tt(ct)}},ft=rt=>rt.done?Ee(rt.value):Promise.resolve(rt.value).then(ut,zt);ft((ye=ye.apply(se,le)).next())});function Qe({setIscreate:se,init:le,UpdateItem:ye}){const[Ee,tt]=(0,ae.useState)(""),[ut,zt]=(0,ae.useState)("");(0,ae.useEffect)(()=>{ye&&(tt(ye&&ye.name),zt(ye&&ye.description))},[ye]);function ft(){return Se(this,null,function*(){if(!Ee){Ze.ZP.info("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!ut){Ze.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}if(ye){rt();return}(yield(0,Ie.ZP)("/api/hpc_courses.json",{method:"post",body:{name:Ee,description:ut,container_type:window.location.pathname.split("/")[1]}}))&&(Ze.ZP.info("\u521B\u5EFA\u6210\u529F"),se(!1),le("add"))})}function rt(){return Se(this,null,function*(){(yield(0,Ie.ZP)(`/api/hpc_courses/${ye.id}.json`,{method:"put",body:{name:Ee,description:ut,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:ct=>tt(ct.target.value)}),ae.createElement(Te.Z,{id:"courseContentMD",defaultValue:ut,onChange:ct=>zt(ct)}),ae.createElement("div",{className:"clearfix mt30 mb30"},ae.createElement(Le.ZP,{type:"primary",onClick:()=>ft(),className:"defalutSubmitbtn fl mr20"},"\u63D0\u4EA4"),ae.createElement("a",{className:"defalutCancelbtn fl",onClick:()=>se(!1)},"\u53D6\u6D88")))}var Oe=Qe,je=ie(91842),We=(se,le,ye)=>new Promise((Ee,tt)=>{var ut=rt=>{try{ft(ye.next(rt))}catch(ct){tt(ct)}},zt=rt=>{try{ft(ye.throw(rt))}catch(ct){tt(ct)}},ft=rt=>rt.done?Ee(rt.value):Promise.resolve(rt.value).then(ut,zt);ft((ye=ye.apply(se,le)).next())});function et({CourseItem:se,userId:le,init:ye,ItemUpdate:Ee,setSee:tt,UserInfo:ut}){function zt(){return We(this,null,function*(){(yield(0,Ie.ZP)(`/api/hpc_courses/${se.id}.json`,{method:"delete"}))&&(Ze.ZP.info("\u5220\u9664\u6210\u529F"),ye("delete"),tt(!1))})}function ft(){Ee(se)}return ae.createElement("div",null,le===299635||le===301458||ut!=null&&ut.admin||ut!=null&&ut.business?ae.createElement("div",{style:{textAlign:"right"}},ae.createElement(Le.ZP,{onClick:()=>ft()},"\u7F16\u8F91"),ae.createElement(Le.ZP,{onClick:()=>zt(),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 Je=et,ne=ie(54580),a=ie(346),y=ie(25690),x=Object.defineProperty,b=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(se,le,ye)=>le in se?x(se,le,{enumerable:!0,configurable:!0,writable:!0,value:ye}):se[le]=ye,te=(se,le)=>{for(var ye in le||(le={}))E.call(le,ye)&&ee(se,ye,le[ye]);if(b)for(var ye of b(le))z.call(le,ye)&&ee(se,ye,le[ye]);return se},oe=(se,le,ye)=>new Promise((Ee,tt)=>{var ut=rt=>{try{ft(ye.next(rt))}catch(ct){tt(ct)}},zt=rt=>{try{ft(ye.throw(rt))}catch(ct){tt(ct)}},ft=rt=>rt.done?Ee(rt.value):Promise.resolve(rt.value).then(ut,zt);ft((ye=ye.apply(se,le)).next())});function ge({user:se,dispatch:le}){var ye,Ee,tt,ut,zt,ft,rt,ct,Ln;const[pn,yn]=(0,ae.useState)(1),[wn,Qn]=(0,ae.useState)(100),[Un,we]=(0,ae.useState)([]),[Ce,Re]=(0,ae.useState)(!1),[Ft,$e]=(0,ae.useState)(!1),[St,de]=(0,ae.useState)(""),[Ye,xt]=(0,ae.useState)(""),[an,_t]=(0,ae.useState)("");let{itemname:Gn}=(0,y.useParams)();const[Tn,$t]=(0,ae.useState)("");(0,ae.useEffect)(()=>{le({type:"globalSetting/headerToggle",payload:!1}),pn&&Xn("")},[pn]);function Xn(Xt){return oe(this,null,function*(){var Jt,en;const Nt=yield(0,Ie.ZP)("/api/hpc_courses.json",{method:"get",params:{page:pn,per_page:wn,container_type:window.location.pathname.split("/")[1]}});if(Nt){let ea=Nt.data.hpc_courses.length;if(we(Nt.data.hpc_courses),_t(Nt.data.file_url),xt(""),!ea)return;if(Tn)if(Xt==="delete"){if(ea===0){$e(!1);return}de(Nt.data.hpc_courses[0]),$e(!0),$t(Nt.data.hpc_courses[0].id)}else Xt==="add"?(de(Nt.data.hpc_courses[ea-1]),$e(!0),$t(Nt.data.hpc_courses[ea-1].id)):(de(Nt.data.hpc_courses.filter(aa=>aa.id===Tn)[0]),$e(!0),$t(Tn));else if(Gn){let aa=0;(en=(Jt=Nt==null?void 0:Nt.data)==null?void 0:Jt.hpc_courses)==null||en.map((la,fa)=>{var In;(Gn==null?void 0:Gn.toLocaleLowerCase())===((In=la==null?void 0:la.name)==null?void 0:In.toLocaleLowerCase())&&(aa=fa)}),de(Nt.data.hpc_courses[aa]),$e(!0),$t(Nt.data.hpc_courses[aa].id),(Gn==null?void 0:Gn.toLocaleLowerCase())==="resources"&&(de(Nt.data.hpc_courses.filter(la=>la.id===15)[0]),$e(!0),$t(15))}else de(Nt.data.hpc_courses[0]),$e(!0),$t(Nt.data.hpc_courses[0].id)}})}function qn(Xt){Re(!1),$e(!0),de(Xt),$t(Xt.id)}function $n(Xt){xt(Xt),Re(!0),$e(!1)}function Kn(){xt(""),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(Xt){const{status:Jt}=Xt.file;Jt==="done"?(Ze.ZP.success(`${Xt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`),Xn("")):Jt==="error"&&Ze.ZP.error(`${Xt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:Xt=>{const Jt=Xt.size/1024/1024<150;return Jt||Ze.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),Jt}};return ae.createElement("div",{style:{marginBottom:"40px"}},ae.createElement("div",{className:"bannterdiv",style:{background:`url(${a.Z.IMG_SERVER+`/${an}`})`}}),ae.createElement("img",{style:{width:"100%"},src:a.Z.IMG_SERVER+`/${an}`}),ae.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},ae.createElement("div",{style:{flex:"1",marginTop:"17px"}},Un&&Un.map((Xt,Jt)=>ae.createElement("p",{key:Jt,onClick:()=>qn(Xt),className:Tn===Xt.id?"menuitemselect":"menuitem task-hide"},Xt.name)),((ye=se==null?void 0:se.userInfo)==null?void 0:ye.user_id)===299635||((Ee=se==null?void 0:se.userInfo)==null?void 0:Ee.user_id)===301458||(tt=se==null?void 0:se.userInfo)!=null&&tt.admin||(ut=se==null?void 0:se.userInfo)!=null&&ut.business?ae.createElement("p",{onClick:()=>Kn(),className:"menuadd",style:{fontSize:"24px",paddingLeft:"10px"}},ae.createElement("span",{style:{fontSize:"16px",marginLeft:"5px"}},"Last updated")):null),ae.createElement("div",{className:"rightcount",style:{flex:"6",background:"#ffffff",padding:"20px",marginLeft:"30px",marginTop:"24px"}},Ce?ae.createElement(Oe,{UpdateItem:Ye,setIscreate:Re,init:Xn}):null,Ft?ae.createElement(Je,{UserInfo:se==null?void 0:se.userInfo,setSee:$e,userId:(zt=se==null?void 0:se.userInfo)==null?void 0:zt.user_id,ItemUpdate:$n,CourseItem:St,init:Xn}):null)),((ft=se==null?void 0:se.userInfo)==null?void 0:ft.user_id)===299635||((rt=se==null?void 0:se.userInfo)==null?void 0:rt.user_id)===301458||(ct=se==null?void 0:se.userInfo)!=null&&ct.admin||(Ln=se==null?void 0:se.userInfo)!=null&&Ln.business?ae.createElement(ne.default,te({},On),ae.createElement(Le.ZP,{className:"menuadd",style:{paddingLeft:"10px",marginLeft:"20px"}},"\u4E0A\u4F20\u9996\u9875\u56FE\u7247")):null)}var re=(0,y.connect)(({user:se})=>({user:se}))(ge)},56762:function(Fe,it,ie){"use strict";ie.d(it,{Z:function(){return Te}});var ae=ie(59301);function Te(){const[,Ze]=ae.useReducer(_e=>_e+1,0);return Ze}},93948:function(Fe,it,ie){"use strict";ie.d(it,{Z:function(){return In}});var ae=ie(59301),Te=ie(29679),Ze=ie(40001),_e=ie(19248),Le=ie(99267),Ie=ie(92310),Se=ie.n(Ie),Qe=ie(2738),Oe=ie(36355),je=ie(5016),We=ie(20049),et=ie(5883),Je={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(pt){if(pt){qe=!0;var wt=pt.style;wt.transitionDuration=".3s, .3s, .3s, .06s",Ae.current&&Ue-Ae.current<100&&(wt.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,We.Z)((0,We.Z)({},Je),be),Ue=Ae.className,qe=Ae.percent,pt=Ae.prefixCls,wt=Ae.strokeColor,Pt=Ae.strokeLinecap,vt=Ae.strokeWidth,Tt=Ae.style,Mt=Ae.trailColor,It=Ae.trailWidth,on=Ae.transition,cn=(0,et.Z)(Ae,a);delete cn.gapPosition;var Sn=Array.isArray(qe)?qe:[qe],Vt=Array.isArray(wt)?wt:[wt],jt=ne(),Fn=vt/2,Pn=100-vt/2,hn="M ".concat(Pt==="round"?Fn:0,",").concat(Fn,`
|
|
L `).concat(Pt==="round"?Pn:100,",").concat(Fn),Ut="0 0 100 ".concat(vt),Cn=0;return ae.createElement("svg",(0,je.Z)({className:Se()("".concat(pt,"-line"),Ue),viewBox:Ut,preserveAspectRatio:"none",style:Tt},cn),ae.createElement("path",{className:"".concat(pt,"-line-trail"),d:hn,strokeLinecap:Pt,stroke:Mt,strokeWidth:It||vt,fillOpacity:"0"}),Sn.map(function(Vn,Rn){var zn=1;switch(Pt){case"round":zn=1-vt/100;break;case"square":zn=1-vt/2/100;break;default:zn=1;break}var Yn={strokeDasharray:"".concat(Vn*zn,"px, 100px"),strokeDashoffset:"-".concat(Cn,"px"),transition:on||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},_n=Vt[Rn]||Vt[Vt.length-1];return Cn+=Vn,ae.createElement("path",{key:Rn,className:"".concat(pt,"-line-path"),d:hn,strokeLinecap:Pt,stroke:_n,strokeWidth:vt,fillOpacity:"0",ref:function(Pe){jt[Rn]=Pe},style:Yn})}))},x=y,b=ie(10928),E=ie(52456),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,pt=he.radius,wt=he.style,Pt=he.ptg,vt=he.strokeLinecap,Tt=he.strokeWidth,Mt=he.size,It=he.gapDegree,on=Ue&&(0,b.Z)(Ue)==="object",cn=on?"#FFF":void 0,Sn=Mt/2,Vt=ae.createElement("circle",{className:"".concat(Ae,"-circle-path"),r:pt,cx:Sn,cy:Sn,stroke:cn,strokeLinecap:vt,strokeWidth:Tt,opacity:Pt===0?0:1,style:wt,ref:be});if(!on)return Vt;var jt="".concat(qe,"-conic"),Fn=It?"".concat(180+It/2,"deg"):"0deg",Pn=se(Ue,(360-It)/360),hn=se(Ue,1),Ut="conic-gradient(from ".concat(Fn,", ").concat(Pn.join(", "),")"),Cn="linear-gradient(to ".concat(It?"bottom":"top",", ").concat(hn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:jt},Vt),ae.createElement("foreignObject",{x:0,y:0,width:Mt,height:Mt,mask:"url(#".concat(jt,")")},ae.createElement(re,{bg:Cn},ae.createElement(re,{bg:Ut}))))}),ye=le,Ee=100,tt=function(be,Ae,Ue,qe,pt,wt,Pt,vt,Tt,Mt){var It=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,on=Ue/100*360*((360-wt)/360),cn=wt===0?0:{bottom:0,top:180,left:90,right:-90}[Pt],Sn=(100-qe)/100*Ae;Tt==="round"&&qe!==100&&(Sn+=Mt/2,Sn>=Ae&&(Sn=Ae-.01));var Vt=Ee/2;return{stroke:typeof vt=="string"?vt:void 0,strokeDasharray:"".concat(Ae,"px ").concat(be),strokeDashoffset:Sn+It,transform:"rotate(".concat(pt+on+cn,"deg)"),transformOrigin:"".concat(Vt,"px ").concat(Vt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},ut=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function zt(he){var be=he!=null?he:[];return Array.isArray(be)?be:[be]}var ft=function(be){var Ae=(0,We.Z)((0,We.Z)({},Je),be),Ue=Ae.id,qe=Ae.prefixCls,pt=Ae.steps,wt=Ae.strokeWidth,Pt=Ae.trailWidth,vt=Ae.gapDegree,Tt=vt===void 0?0:vt,Mt=Ae.gapPosition,It=Ae.trailColor,on=Ae.strokeLinecap,cn=Ae.style,Sn=Ae.className,Vt=Ae.strokeColor,jt=Ae.percent,Fn=(0,et.Z)(Ae,ut),Pn=Ee/2,hn=ge(Ue),Ut="".concat(hn,"-gradient"),Cn=Pn-wt/2,Vn=Math.PI*2*Cn,Rn=Tt>0?90+Tt/2:-90,zn=Vn*((360-Tt)/360),Yn=(0,b.Z)(pt)==="object"?pt:{count:pt,space:2},_n=Yn.count,ce=Yn.space,Pe=zt(jt),ue=zt(Vt),ke=ue.find(function(bn){return bn&&(0,b.Z)(bn)==="object"}),gt=ke&&(0,b.Z)(ke)==="object",nt=gt?"butt":on,Ot=tt(Vn,zn,0,100,Rn,Tt,Mt,It,nt,wt),ht=ne(),Et=function(){var De=0;return Pe.map(function(Gt,fn){var Nn=ue[fn]||ue[ue.length-1],tn=tt(Vn,zn,De,Gt,Rn,Tt,Mt,Nn,nt,wt);return De+=Gt,ae.createElement(ye,{key:fn,color:Nn,ptg:Gt,radius:Cn,prefixCls:qe,gradientId:Ut,style:tn,strokeLinecap:nt,strokeWidth:wt,gapDegree:Tt,ref:function(ve){ht[fn]=ve},size:Ee})}).reverse()},Yt=function(){var De=Math.round(_n*(Pe[0]/100)),Gt=100/_n,fn=0;return new Array(_n).fill(null).map(function(Nn,tn){var me=tn<=De-1?ue[0]:It,ve=me&&(0,b.Z)(me)==="object"?"url(#".concat(Ut,")"):void 0,pe=tt(Vn,zn,fn,Gt,Rn,Tt,Mt,me,"butt",wt,ce);return fn+=(zn-pe.strokeDashoffset+ce)*100/zn,ae.createElement("circle",{key:tn,className:"".concat(qe,"-circle-path"),r:Cn,cx:Pn,cy:Pn,stroke:ve,strokeWidth:wt,opacity:1,style:pe,ref:function(ze){ht[tn]=ze}})})};return ae.createElement("svg",(0,je.Z)({className:Se()("".concat(qe,"-circle"),Sn),viewBox:"0 0 ".concat(Ee," ").concat(Ee),style:cn,id:Ue,role:"presentation"},Fn),!_n&&ae.createElement("circle",{className:"".concat(qe,"-circle-trail"),r:Cn,cx:Pn,cy:Pn,stroke:It,strokeLinecap:nt,strokeWidth:Pt||wt,style:Ot}),_n?Yt():Et())},rt=ft,ct={Line:x,Circle:rt},Ln=ie(6848),pn=ie(93398);function yn(he){return!he||he<0?0:he>100?100:he}function wn(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 Qn=he=>{let{percent:be,success:Ae,successPercent:Ue}=he;const qe=yn(wn({success:Ae,successPercent:Ue}));return[qe,yn(yn(be)-qe)]},Un=he=>{let{success:be={},strokeColor:Ae}=he;const{strokeColor:Ue}=be;return[Ue||pn.presetPrimaryColors.green,Ae||null]},we=(he,be,Ae)=>{var Ue,qe,pt,wt;let Pt=-1,vt=-1;if(be==="step"){const Tt=Ae.steps,Mt=Ae.strokeWidth;typeof he=="string"||typeof he=="undefined"?(Pt=he==="small"?2:14,vt=Mt!=null?Mt:8):typeof he=="number"?[Pt,vt]=[he,he]:[Pt=14,vt=8]=he,Pt*=Tt}else if(be==="line"){const Tt=Ae==null?void 0:Ae.strokeWidth;typeof he=="string"||typeof he=="undefined"?vt=Tt||(he==="small"?6:8):typeof he=="number"?[Pt,vt]=[he,he]:[Pt=-1,vt=8]=he}else(be==="circle"||be==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[Pt,vt]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[Pt,vt]=[he,he]:(Pt=(qe=(Ue=he[0])!==null&&Ue!==void 0?Ue:he[1])!==null&&qe!==void 0?qe:120,vt=(wt=(pt=he[0])!==null&&pt!==void 0?pt:he[1])!==null&&wt!==void 0?wt:120));return[Pt,vt]},Ce=3,Re=he=>Ce/he*100;var $e=he=>{const{prefixCls:be,trailColor:Ae=null,strokeLinecap:Ue="round",gapPosition:qe,gapDegree:pt,width:wt=120,type:Pt,children:vt,success:Tt,size:Mt=wt}=he,[It,on]=we(Mt,"circle");let{strokeWidth:cn}=he;cn===void 0&&(cn=Math.max(Re(It),6));const Sn={width:It,height:on,fontSize:It*.15+6},Vt=ae.useMemo(()=>{if(pt||pt===0)return pt;if(Pt==="dashboard")return 75},[pt,Pt]),jt=qe||Pt==="dashboard"&&"bottom"||void 0,Fn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",Pn=Un({success:Tt,strokeColor:he.strokeColor}),hn=Se()(`${be}-inner`,{[`${be}-circle-gradient`]:Fn}),Ut=ae.createElement(rt,{percent:Qn(he),strokeWidth:cn,trailWidth:cn,strokeColor:Pn,strokeLinecap:Ue,trailColor:Ae,prefixCls:be,gapDegree:Vt,gapPosition:jt});return ae.createElement("div",{className:hn,style:Sn},It<=20?ae.createElement(Ln.Z,{title:vt},ae.createElement("span",null,Ut)):ae.createElement(ae.Fragment,null,Ut,vt))},St=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(", ")},Ye=(he,be)=>{const{from:Ae=pn.presetPrimaryColors.blue,to:Ue=pn.presetPrimaryColors.blue,direction:qe=be==="rtl"?"to left":"to right"}=he,pt=St(he,["from","to","direction"]);if(Object.keys(pt).length!==0){const wt=de(pt);return{backgroundImage:`linear-gradient(${qe}, ${wt})`}}return{backgroundImage:`linear-gradient(${qe}, ${Ae}, ${Ue})`}};var an=he=>{const{prefixCls:be,direction:Ae,percent:Ue,size:qe,strokeWidth:pt,strokeColor:wt,strokeLinecap:Pt="round",children:vt,trailColor:Tt=null,success:Mt}=he,It=wt&&typeof wt!="string"?Ye(wt,Ae):{backgroundColor:wt},on=Pt==="square"||Pt==="butt"?0:void 0,cn={backgroundColor:Tt||void 0,borderRadius:on},Sn=qe!=null?qe:[-1,pt||(qe==="small"?6:8)],[Vt,jt]=we(Sn,"line",{strokeWidth:pt}),Fn=Object.assign({width:`${yn(Ue)}%`,height:jt,borderRadius:on},It),Pn=wn(he),hn={width:`${yn(Pn)}%`,height:jt,borderRadius:on,backgroundColor:Mt==null?void 0:Mt.strokeColor},Ut={width:Vt<0?"100%":Vt,height:jt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${be}-outer`,style:Ut},ae.createElement("div",{className:`${be}-inner`,style:cn},ae.createElement("div",{className:`${be}-bg`,style:Fn}),Pn!==void 0?ae.createElement("div",{className:`${be}-success-bg`,style:hn}):null)),vt)},Gn=he=>{const{size:be,steps:Ae,percent:Ue=0,strokeWidth:qe=8,strokeColor:pt,trailColor:wt=null,prefixCls:Pt,children:vt}=he,Tt=Math.round(Ae*(Ue/100)),Mt=be==="small"?2:14,It=be!=null?be:[Mt,qe],[on,cn]=we(It,"step",{steps:Ae,strokeWidth:qe}),Sn=on/Ae,Vt=new Array(Ae);for(let jt=0;jt<Ae;jt++){const Fn=Array.isArray(pt)?pt[jt]:pt;Vt[jt]=ae.createElement("div",{key:jt,className:Se()(`${Pt}-steps-item`,{[`${Pt}-steps-item-active`]:jt<=Tt-1}),style:{backgroundColor:jt<=Tt-1?Fn:wt,width:Sn,height:cn}})}return ae.createElement("div",{className:`${Pt}-steps-outer`},Vt,vt)},Tn=ie(93083),$t=ie(17313),Xn=ie(83116),qn=ie(37613);const $n=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}})},Kn=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:$n(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${be}-rtl${be}-status-active`]:{[`${be}-bg::before`]:{animationName:$n(!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"}}}},Xt=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}}}}}},Jt=he=>{const{componentCls:be,iconCls:Ae}=he;return{[be]:{[`${be}-small&-line, ${be}-small&-line ${be}-text ${Ae}`]:{fontSize:he.fontSizeSM}}}};var en=(0,Xn.Z)("Progress",he=>{const be=he.marginXXS/2,Ae=(0,qn.TS)(he,{progressStepMarginInlineEnd:be,progressStepMinWidth:be,progressActiveMotionDuration:"2.4s"});return[Kn(Ae),On(Ae),Xt(Ae),Jt(Ae)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Nt=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 ea=null,aa=["normal","exception","active","success"];var fa=ae.forwardRef((he,be)=>{const{prefixCls:Ae,className:Ue,rootClassName:qe,steps:pt,strokeColor:wt,percent:Pt=0,size:vt="default",showInfo:Tt=!0,type:Mt="line",status:It,format:on,style:cn}=he,Sn=Nt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Vt=ae.useMemo(()=>{var Pe,ue;const ke=wn(he);return parseInt(ke!==void 0?(Pe=ke!=null?ke:0)===null||Pe===void 0?void 0:Pe.toString():(ue=Pt!=null?Pt:0)===null||ue===void 0?void 0:ue.toString(),10)},[Pt,he.success,he.successPercent]),jt=ae.useMemo(()=>!aa.includes(It)&&Vt>=100?"success":It||"normal",[It,Vt]),{getPrefixCls:Fn,direction:Pn,progress:hn}=ae.useContext(Oe.E_),Ut=Fn("progress",Ae),[Cn,Vn]=en(Ut),Rn=ae.useMemo(()=>{if(!Tt)return null;const Pe=wn(he);let ue;const ke=on||(nt=>`${nt}%`),gt=Mt==="line";return on||jt!=="exception"&&jt!=="success"?ue=ke(yn(Pt),yn(Pe)):jt==="exception"?ue=gt?ae.createElement(_e.Z,null):ae.createElement(Le.Z,null):jt==="success"&&(ue=gt?ae.createElement(Te.Z,null):ae.createElement(Ze.Z,null)),ae.createElement("span",{className:`${Ut}-text`,title:typeof ue=="string"?ue:void 0},ue)},[Tt,Pt,Vt,jt,Mt,Ut,on]),zn=Array.isArray(wt)?wt[0]:wt,Yn=typeof wt=="string"||Array.isArray(wt)?wt:void 0;let _n;Mt==="line"?_n=pt?ae.createElement(Gn,Object.assign({},he,{strokeColor:Yn,prefixCls:Ut,steps:pt}),Rn):ae.createElement(an,Object.assign({},he,{strokeColor:zn,prefixCls:Ut,direction:Pn}),Rn):(Mt==="circle"||Mt==="dashboard")&&(_n=ae.createElement($e,Object.assign({},he,{strokeColor:zn,prefixCls:Ut,progressStatus:jt}),Rn));const ce=Se()(Ut,`${Ut}-status-${jt}`,`${Ut}-${Mt==="dashboard"&&"circle"||pt&&"steps"||Mt}`,{[`${Ut}-inline-circle`]:Mt==="circle"&&we(vt,"circle")[0]<=20,[`${Ut}-show-info`]:Tt,[`${Ut}-${vt}`]:typeof vt=="string",[`${Ut}-rtl`]:Pn==="rtl"},hn==null?void 0:hn.className,Ue,qe,Vn);return Cn(ae.createElement("div",Object.assign({ref:be,style:Object.assign(Object.assign({},hn==null?void 0:hn.style),cn),className:ce,role:"progressbar","aria-valuenow":Vt},(0,Qe.Z)(Sn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),_n))}),In=fa},54580:function(Fe,it,ie){"use strict";ie.d(it,{default:function(){return tn}});var ae=ie(59301),Te=ie(92393),Ze=ie(92310),_e=ie.n(Ze),Le=ie(5016),Ie=ie(6487),Se=ie(56789),Qe=ie(7942),Oe=ie(76773),je=ie(18082),We=ie(5883),et=ie(85444),Je=ie(10928),ne=ie(21566),a=ie(26112);function y(me,ve){var pe="cannot ".concat(me.method," ").concat(me.action," ").concat(ve.status,"'"),Be=new Error(pe);return Be.status=ve.status,Be.method=me.method,Be.url=me.action,Be}function x(me){var ve=me.responseText||me.response;if(!ve)return ve;try{return JSON.parse(ve)}catch(pe){return ve}}function b(me){var ve=new XMLHttpRequest;me.onProgress&&ve.upload&&(ve.upload.onprogress=function(Me){Me.total>0&&(Me.percent=Me.loaded/Me.total*100),me.onProgress(Me)});var pe=new FormData;me.data&&Object.keys(me.data).forEach(function(ze){var Me=me.data[ze];if(Array.isArray(Me)){Me.forEach(function(Ge){pe.append("".concat(ze,"[]"),Ge)});return}pe.append(ze,Me)}),me.file instanceof Blob?pe.append(me.filename,me.file,me.file.name):pe.append(me.filename,me.file),ve.onerror=function(Me){me.onError(Me)},ve.onload=function(){return ve.status<200||ve.status>=300?me.onError(y(me,ve),x(ve)):me.onSuccess(x(ve),ve)},ve.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in ve&&(ve.withCredentials=!0);var Be=me.headers||{};return Be["X-Requested-With"]!==null&&ve.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Be).forEach(function(ze){Be[ze]!==null&&ve.setRequestHeader(ze,Be[ze])}),ve.send(pe),{abort:function(){ve.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=ie(48736),oe=function(me,ve){if(me&&ve){var pe=Array.isArray(ve)?ve:ve.split(","),Be=me.name||"",ze=me.type||"",Me=ze.replace(/\/.*$/,"");return pe.some(function(Ge){var xe=Ge.trim();if(/^\*(\/\*)?$/.test(Ge))return!0;if(xe.charAt(0)==="."){var mt=Be.toLowerCase(),lt=xe.toLowerCase(),fe=[lt];return(lt===".jpg"||lt===".jpeg")&&(fe=[".jpg",".jpeg"]),fe.some(function(At){return mt.endsWith(At)})}return/\/\*$/.test(xe)?Me===xe.replace(/\/.*$/,""):ze===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,ve){var pe=me.createReader(),Be=[];function ze(){pe.readEntries(function(Me){var Ge=Array.prototype.slice.apply(Me);Be=Be.concat(Ge);var xe=!Ge.length;xe?ve(Be):ze()})}ze()}var re=function(ve,pe,Be){var ze=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}})),pe([mt]))}):Ge.isDirectory&&ge(Ge,function(mt){mt.forEach(function(lt){Me(lt,"".concat(xe).concat(Ge.name,"/"))})}))};ve.forEach(function(Me){ze(Me.webkitGetAsEntry())})},se=re,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ye=function(me){(0,Qe.Z)(pe,me);var ve=(0,Oe.Z)(pe);function pe(){var Be;(0,Ie.Z)(this,pe);for(var ze=arguments.length,Me=new Array(ze),Ge=0;Ge<ze;Ge++)Me[Ge]=arguments[Ge];return Be=ve.call.apply(ve,[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,fe=mt.directory,At=xe.target.files,Ct=(0,Te.Z)(At).filter(function(Kt){return!fe||oe(Kt,lt)});Be.uploadFiles(Ct),Be.reset()},Be.onClick=function(xe){var mt=Be.fileInput;if(mt){var lt=xe.target,fe=Be.props.onClick;if(lt&<.tagName==="BUTTON"){var At=mt.parentNode;At.focus(),lt.blur()}mt.click(),fe&&fe(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(fe){return oe(fe,Be.props.accept)});else{var lt=(0,Te.Z)(xe.dataTransfer.files).filter(function(fe){return oe(fe,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(fe){return fe.uid=ee(),Be.processFile(fe,mt)});Promise.all(lt).then(function(fe){var At=Be.props.onBatchStart;At==null||At(fe.map(function(Ct){var Kt=Ct.origin,nn=Ct.parsedFile;return{file:Kt,parsedFile:nn}})),fe.filter(function(Ct){return Ct.parsedFile!==null}).forEach(function(Ct){Be.post(Ct)})})},Be.processFile=function(){var xe=(0,ne.Z)((0,et.Z)().mark(function mt(lt,fe){var At,Ct,Kt,nn,Ne,Ke,dt,Xe,bt;return(0,et.Z)().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(At=Be.props.beforeUpload,Ct=lt,!At){st.next=14;break}return st.prev=3,st.next=6,At(lt,fe);case 6:Ct=st.sent,st.next=12;break;case 9:st.prev=9,st.t0=st.catch(3),Ct=!1;case 12:if(Ct!==!1){st.next=14;break}return st.abrupt("return",{origin:lt,parsedFile:null,action:null,data:null});case 14:if(Kt=Be.props.action,typeof Kt!="function"){st.next=21;break}return st.next=18,Kt(lt);case 18:nn=st.sent,st.next=22;break;case 21:nn=Kt;case 22:if(Ne=Be.props.data,typeof Ne!="function"){st.next=29;break}return st.next=26,Ne(lt);case 26:Ke=st.sent,st.next=30;break;case 29:Ke=Ne;case 30:return dt=((0,Je.Z)(Ct)==="object"||typeof Ct=="string")&&Ct?Ct:lt,dt instanceof File?Xe=dt:Xe=new File([dt],lt.name,{type:lt.type}),bt=Xe,bt.uid=lt.uid,st.abrupt("return",{origin:lt,data:Ke,parsedFile:bt,action:nn});case 35:case"end":return st.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)(pe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ze){var Me=this,Ge=ze.data,xe=ze.origin,mt=ze.action,lt=ze.parsedFile;if(this._isMounted){var fe=this.props,At=fe.onStart,Ct=fe.customRequest,Kt=fe.name,nn=fe.headers,Ne=fe.withCredentials,Ke=fe.method,dt=xe.uid,Xe=Ct||b,bt={action:mt,filename:Kt,data:Ge,file:lt,headers:nn,withCredentials:Ne,method:Ke||"post",onProgress:function(st){var Wt=Me.props.onProgress;Wt==null||Wt(st,lt)},onSuccess:function(st,Wt){var Zt=Me.props.onSuccess;Zt==null||Zt(st,lt,Wt),delete Me.reqs[dt]},onError:function(st,Wt){var Zt=Me.props.onError;Zt==null||Zt(st,Wt,lt),delete Me.reqs[dt]}};At(xe),this.reqs[dt]=Xe(bt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(ze){var Me=this.reqs;if(ze){var Ge=ze.uid?ze.uid:ze;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 ze=this.props,Me=ze.component,Ge=ze.prefixCls,xe=ze.className,mt=ze.disabled,lt=ze.id,fe=ze.style,At=ze.multiple,Ct=ze.accept,Kt=ze.capture,nn=ze.children,Ne=ze.directory,Ke=ze.openFileDialogOnClick,dt=ze.onMouseEnter,Xe=ze.onMouseLeave,bt=(0,We.Z)(ze,le),Bt=_e()((0,je.Z)((0,je.Z)((0,je.Z)({},Ge,!0),"".concat(Ge,"-disabled"),mt),xe,xe)),st=Ne?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Wt=mt?{}:{onClick:Ke?this.onClick:function(){},onKeyDown:Ke?this.onKeyDown:function(){},onMouseEnter:dt,onMouseLeave:Xe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Me,(0,Le.Z)({},Wt,{className:Bt,role:"button",style:fe}),ae.createElement("input",(0,Le.Z)({},(0,a.Z)(bt,{aria:!0,data:!0}),{id:lt,disabled:mt,type:"file",ref:this.saveFileInput,onClick:function(ta){return ta.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ct},st,{multiple:At,onChange:this.onChange},Kt!=null?{capture:Kt}:{})),nn)}}]),pe}(ae.Component),Ee=ye;function tt(){}var ut=function(me){(0,Qe.Z)(pe,me);var ve=(0,Oe.Z)(pe);function pe(){var Be;(0,Ie.Z)(this,pe);for(var ze=arguments.length,Me=new Array(ze),Ge=0;Ge<ze;Ge++)Me[Ge]=arguments[Ge];return Be=ve.call.apply(ve,[this].concat(Me)),Be.uploader=void 0,Be.saveUploader=function(xe){Be.uploader=xe},Be}return(0,Se.Z)(pe,[{key:"abort",value:function(ze){this.uploader.abort(ze)}},{key:"render",value:function(){return ae.createElement(Ee,(0,Le.Z)({},this.props,{ref:this.saveUploader}))}}]),pe}(ae.Component);ut.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:tt,onError:tt,onSuccess:tt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var zt=ut,ft=zt,rt=ie(18929),ct=ie(4676),Ln=ie(36355),pn=ie(1684),yn=ie(9763),wn=ie(31724),Qn={icon:function(ve,pe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:pe}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:ve}}]}},name:"file",theme:"twotone"},Un=Qn,we=ie(7657),Ce=function(ve,pe){return ae.createElement(we.Z,(0,Le.Z)({},ve,{ref:pe,icon:Un}))},Re=ae.forwardRef(Ce),Ft=Re,$e=ie(58617),St={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=St,Ye=function(ve,pe){return ae.createElement(we.Z,(0,Le.Z)({},ve,{ref:pe,icon:de}))},xt=ae.forwardRef(Ye),an=xt,_t={icon:function(ve,pe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:ve}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:pe}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:pe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:pe}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:ve}}]}},name:"picture",theme:"twotone"},Gn=_t,Tn=function(ve,pe){return ae.createElement(we.Z,(0,Le.Z)({},ve,{ref:pe,icon:Gn}))},$t=ae.forwardRef(Tn),Xn=$t,qn=ie(77900),$n=ie(56762),Kn=ie(62892),On=ie(92343),Xt=ie(3113);function Jt(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 en(me,ve){const pe=(0,Te.Z)(ve),Be=pe.findIndex(ze=>{let{uid:Me}=ze;return Me===me.uid});return Be===-1?pe.push(me):pe[Be]=me,pe}function Nt(me,ve){const pe=me.uid!==void 0?"uid":"name";return ve.filter(Be=>Be[pe]===me[pe])[0]}function ea(me,ve){const pe=me.uid!==void 0?"uid":"name",Be=ve.filter(ze=>ze[pe]!==me[pe]);return Be.length===ve.length?null:Be}const aa=function(){const ve=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Be=ve[ve.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Be)||[""])[0]},la=me=>me.indexOf("image/")===0,fa=me=>{if(me.type&&!me.thumbUrl)return la(me.type);const ve=me.thumbUrl||me.url||"",pe=aa(ve);return/^data:image\//.test(ve)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(pe)?!0:!(/^data:/.test(ve)||pe)},In=200;function he(me){return new Promise(ve=>{if(!me.type||!la(me.type)){ve("");return}const pe=document.createElement("canvas");pe.width=In,pe.height=In,pe.style.cssText=`position: fixed; left: 0; top: 0; width: ${In}px; height: ${In}px; z-index: 9999; display: none;`,document.body.appendChild(pe);const Be=pe.getContext("2d"),ze=new Image;if(ze.onload=()=>{const{width:Me,height:Ge}=ze;let xe=In,mt=In,lt=0,fe=0;Me>Ge?(mt=Ge*(In/Me),fe=-(mt-xe)/2):(xe=Me*(In/Ge),lt=-(xe-mt)/2),Be.drawImage(ze,lt,fe,xe,mt);const At=pe.toDataURL();document.body.removeChild(pe),window.URL.revokeObjectURL(ze.src),ve(At)},ze.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Me=new FileReader;Me.onload=()=>{Me.result&&(ze.src=Me.result)},Me.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Me=new FileReader;Me.onload=()=>{Me.result&&ve(Me.result)},Me.readAsDataURL(me)}else ze.src=window.URL.createObjectURL(me)})}var be=ie(26227),Ae=ie(41464),Ue=ie(15277),qe=ie(93948),pt=ie(6848),Pt=ae.forwardRef((me,ve)=>{let{prefixCls:pe,className:Be,style:ze,locale:Me,listType:Ge,file:xe,items:mt,progress:lt,iconRender:fe,actionIconRender:At,itemRender:Ct,isImgUrl:Kt,showPreviewIcon:nn,showRemoveIcon:Ne,showDownloadIcon:Ke,previewIcon:dt,removeIcon:Xe,downloadIcon:bt,onPreview:Bt,onDownload:st,onClose:Wt}=me;var Zt,ta;const{status:jn}=xe,[Hn,ua]=ae.useState(jn);ae.useEffect(()=>{jn!=="removed"&&ua(jn)},[jn]);const[ca,Sa]=ae.useState(!1);ae.useEffect(()=>{const sn=setTimeout(()=>{Sa(!0)},300);return()=>{clearTimeout(sn)}},[]);const ra=fe(xe);let kn=ae.createElement("div",{className:`${pe}-icon`},ra);if(Ge==="picture"||Ge==="picture-card"||Ge==="picture-circle")if(Hn==="uploading"||!xe.thumbUrl&&!xe.url){const sn=_e()(`${pe}-list-item-thumbnail`,{[`${pe}-list-item-file`]:Hn!=="uploading"});kn=ae.createElement("div",{className:sn},ra)}else{const sn=Kt!=null&&Kt(xe)?ae.createElement("img",{src:xe.thumbUrl||xe.url,alt:xe.name,className:`${pe}-list-item-image`,crossOrigin:xe.crossOrigin}):ra,dn=_e()(`${pe}-list-item-thumbnail`,{[`${pe}-list-item-file`]:Kt&&!Kt(xe)});kn=ae.createElement("a",{className:dn,onClick:ia=>Bt(xe,ia),href:xe.url||xe.thumbUrl,target:"_blank",rel:"noopener noreferrer"},sn)}const gn=_e()(`${pe}-list-item`,`${pe}-list-item-${Hn}`),Zn=typeof xe.linkProps=="string"?JSON.parse(xe.linkProps):xe.linkProps,oa=Ne?At((typeof Xe=="function"?Xe(xe):Xe)||ae.createElement(be.Z,null),()=>Wt(xe),pe,Me.removeFile):null,ga=Ke&&Hn==="done"?At((typeof bt=="function"?bt(xe):bt)||ae.createElement(Ae.Z,null),()=>st(xe),pe,Me.downloadFile):null,Jn=Ge!=="picture-card"&&Ge!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:_e()(`${pe}-list-item-actions`,{picture:Ge==="picture"})},ga,oa),Wn=_e()(`${pe}-list-item-name`),Pa=xe.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wn,title:xe.name},Zn,{href:xe.url,onClick:sn=>Bt(xe,sn)}),xe.name),Jn]:[ae.createElement("span",{key:"view",className:Wn,onClick:sn=>Bt(xe,sn),title:xe.name},xe.name),Jn],Lt={pointerEvents:"none",opacity:.5},rn=nn?ae.createElement("a",{href:xe.url||xe.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:xe.url||xe.thumbUrl?void 0:Lt,onClick:sn=>Bt(xe,sn),title:Me.previewFile},typeof dt=="function"?dt(xe):dt||ae.createElement(Ue.Z,null)):null,ln=(Ge==="picture-card"||Ge==="picture-circle")&&Hn!=="uploading"&&ae.createElement("span",{className:`${pe}-list-item-actions`},rn,Hn==="done"&&ga,oa),{getPrefixCls:Mn}=ae.useContext(Ln.E_),An=Mn(),na=ae.createElement("div",{className:gn},kn,Pa,ln,ca&&ae.createElement(qn.default,{motionName:`${An}-fade`,visible:Hn==="uploading",motionDeadline:2e3},sn=>{let{className:dn}=sn;const ia="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()(`${pe}-list-item-progress`,dn)},ia)})),va=xe.response&&typeof xe.response=="string"?xe.response:((Zt=xe.error)===null||Zt===void 0?void 0:Zt.statusText)||((ta=xe.error)===null||ta===void 0?void 0:ta.message)||Me.uploadError,pa=Hn==="error"?ae.createElement(pt.Z,{title:va,getPopupContainer:sn=>sn.parentNode},na):na;return ae.createElement("div",{className:_e()(`${pe}-list-item-container`,Be),style:ze,ref:ve},Ct?Ct(pa,xe,mt,{download:st.bind(null,xe),preview:Bt.bind(null,xe),remove:Wt.bind(null,xe)}):pa)});const vt=(me,ve)=>{const{listType:pe="text",previewFile:Be=he,onPreview:ze,onDownload:Me,onRemove:Ge,locale:xe,iconRender:mt,isImageUrl:lt=fa,prefixCls:fe,items:At=[],showPreviewIcon:Ct=!0,showRemoveIcon:Kt=!0,showDownloadIcon:nn=!1,removeIcon:Ne,previewIcon:Ke,downloadIcon:dt,progress:Xe={size:[-1,2],showInfo:!1},appendAction:bt,appendActionVisible:Bt=!0,itemRender:st,disabled:Wt}=me,Zt=(0,$n.Z)(),[ta,jn]=ae.useState(!1);ae.useEffect(()=>{pe!=="picture"&&pe!=="picture-card"&&pe!=="picture-circle"||(At||[]).forEach(Lt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Lt.originFileObj instanceof File||Lt.originFileObj instanceof Blob)||Lt.thumbUrl!==void 0||(Lt.thumbUrl="",Be&&Be(Lt.originFileObj).then(rn=>{Lt.thumbUrl=rn||"",Zt()}))})},[pe,At,Be]),ae.useEffect(()=>{jn(!0)},[]);const Hn=(Lt,rn)=>{if(ze)return rn==null||rn.preventDefault(),ze(Lt)},ua=Lt=>{typeof Me=="function"?Me(Lt):Lt.url&&window.open(Lt.url)},ca=Lt=>{Ge==null||Ge(Lt)},Sa=Lt=>{if(mt)return mt(Lt,pe);const rn=Lt.status==="uploading",ln=lt&<(Lt)?ae.createElement(Xn,null):ae.createElement(Ft,null);let Mn=rn?ae.createElement($e.Z,null):ae.createElement(an,null);return pe==="picture"?Mn=rn?ae.createElement($e.Z,null):ln:(pe==="picture-card"||pe==="picture-circle")&&(Mn=rn?xe.uploading:ln),Mn},ra=(Lt,rn,ln,Mn)=>{const An={type:"text",size:"small",title:Mn,onClick:na=>{rn(),(0,On.l$)(Lt)&&Lt.props.onClick&&Lt.props.onClick(na)},className:`${ln}-list-item-action`,disabled:Wt};if((0,On.l$)(Lt)){const na=(0,On.Tm)(Lt,Object.assign(Object.assign({},Lt.props),{onClick:()=>{}}));return ae.createElement(Xt.ZP,Object.assign({},An,{icon:na}))}return ae.createElement(Xt.ZP,Object.assign({},An),ae.createElement("span",null,Lt))};ae.useImperativeHandle(ve,()=>({handlePreview:Hn,handleDownload:ua}));const{getPrefixCls:kn}=ae.useContext(Ln.E_),gn=kn("upload",fe),Zn=kn(),oa=_e()(`${gn}-list`,`${gn}-list-${pe}`),ga=(0,Te.Z)(At.map(Lt=>({key:Lt.uid,file:Lt})));let Wn={motionDeadline:2e3,motionName:`${gn}-${pe==="picture-card"||pe==="picture-circle"?"animate-inline":"animate"}`,keys:ga,motionAppear:ta};const Pa=ae.useMemo(()=>{const Lt=Object.assign({},(0,Kn.Z)(Zn));return delete Lt.onAppearEnd,delete Lt.onEnterEnd,delete Lt.onLeaveEnd,Lt},[Zn]);return pe!=="picture-card"&&pe!=="picture-circle"&&(Wn=Object.assign(Object.assign({},Pa),Wn)),ae.createElement("div",{className:oa},ae.createElement(qn.CSSMotionList,Object.assign({},Wn,{component:!1}),Lt=>{let{key:rn,file:ln,className:Mn,style:An}=Lt;return ae.createElement(Pt,{key:rn,locale:xe,prefixCls:gn,className:Mn,style:An,file:ln,items:At,progress:Xe,listType:pe,isImgUrl:lt,showPreviewIcon:Ct,showRemoveIcon:Kt,showDownloadIcon:nn,removeIcon:Ne,previewIcon:Ke,downloadIcon:dt,iconRender:Sa,actionIconRender:ra,itemRender:st,onPreview:Hn,onDownload:ua,onClose:ca})}),bt&&ae.createElement(qn.default,Object.assign({},Wn,{visible:Bt,forceRender:!0}),Lt=>{let{className:rn,style:ln}=Lt;return(0,On.Tm)(bt,Mn=>({className:_e()(Mn.className,rn),style:Object.assign(Object.assign(Object.assign({},ln),{pointerEvents:rn?"none":void 0}),Mn.style)}))}))};var Mt=ae.forwardRef(vt),It=ie(17313),on=ie(8378),cn=ie(83116),Sn=ie(37613),jt=me=>{const{componentCls:ve,iconCls:pe}=me;return{[`${ve}-wrapper`]:{[`${ve}-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}`,[ve]:{padding:`${me.padding}px 0`},[`${ve}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${ve}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${ve}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${ve}-drag-icon`]:{marginBottom:me.margin,[pe]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${ve}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${ve}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${ve}-disabled`]:{cursor:"not-allowed",[`p${ve}-drag-icon ${pe},
|
|
p${ve}-text,
|
|
p${ve}-hint
|
|
`]:{color:me.colorTextDisabled}}}}}},Pn=me=>{const{componentCls:ve,antCls:pe,iconCls:Be,fontSize:ze,lineHeight:Me}=me,Ge=`${ve}-list-item`,xe=`${Ge}-actions`,mt=`${Ge}-action`,lt=Math.round(ze*Me);return{[`${ve}-wrapper`]:{[`${ve}-list`]:Object.assign(Object.assign({},(0,It.dF)()),{lineHeight:me.lineHeight,[Ge]:{position:"relative",height:me.lineHeight*ze,marginTop:me.marginXS,fontSize:ze,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}${pe}-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}},[`${ve}-icon ${Be}`]:{color:me.colorTextDescription,fontSize:ze},[`${Ge}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:ze+me.paddingXS,fontSize:ze,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ge}:hover ${mt}`]:{opacity:1,color:me.colorText},[`${Ge}-error`]:{color:me.colorError,[`${Ge}-name, ${ve}-icon ${Be}`]:{color:me.colorError},[xe]:{[`${Be}, ${Be}:hover`]:{color:me.colorError},[mt]:{opacity:1}}},[`${ve}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},hn=ie(93083),Ut=ie(1950);const Cn=new hn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Vn=new hn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var zn=me=>{const{componentCls:ve}=me,pe=`${ve}-animate-inline`;return[{[`${ve}-wrapper`]:{[`${pe}-appear, ${pe}-enter, ${pe}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${pe}-appear, ${pe}-enter`]:{animationName:Cn},[`${pe}-leave`]:{animationName:Vn}}},{[`${ve}-wrapper`]:(0,Ut.J$)(me)},Cn,Vn]},Yn=ie(93398),_n=ie(64993);const ce=me=>{const{componentCls:ve,iconCls:pe,uploadThumbnailSize:Be,uploadProgressOffset:ze}=me,Me=`${ve}-list`,Ge=`${Me}-item`;return{[`${ve}-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",[pe]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ge}-progress`]:{bottom:ze,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Be+me.paddingXS}},[`${Ge}-error`]:{borderColor:me.colorError,[`${Ge}-thumbnail ${pe}`]:{[`svg path[fill='${Yn.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${Yn.blue.primary}']`]:{fill:me.colorError}}},[`${Ge}-uploading`]:{borderStyle:"dashed",[`${Ge}-name`]:{marginBottom:ze}}},[`${Me}${Me}-picture-circle ${Ge}`]:{[`&, &::before, ${Ge}-thumbnail`]:{borderRadius:"50%"}}}}},Pe=me=>{const{componentCls:ve,iconCls:pe,fontSizeLG:Be,colorTextLightSolid:ze}=me,Me=`${ve}-list`,Ge=`${Me}-item`,xe=me.uploadPicCardSize;return{[`
|
|
${ve}-wrapper${ve}-picture-card-wrapper,
|
|
${ve}-wrapper${ve}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,It.dF)()),{display:"inline-block",width:"100%",[`${ve}${ve}-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}`,[`> ${ve}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ve}-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}`,[`${pe}-eye, ${pe}-download, ${pe}-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`]:{[`${pe}-eye, ${pe}-download, ${pe}-delete`]:{color:new _n.C(ze).setAlpha(.65).toRgbString(),"&:hover":{color:ze}}},[`${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, ${pe}-eye, ${pe}-download, ${pe}-delete`]:{display:"none"}},[`${Ge}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ve}-wrapper${ve}-picture-circle-wrapper`]:{[`${ve}${ve}-select`]:{borderRadius:"50%"}}}};var ke=me=>{const{componentCls:ve}=me;return{[`${ve}-rtl`]:{direction:"rtl"}}};const gt=me=>{const{componentCls:ve,colorTextDisabled:pe}=me;return{[`${ve}-wrapper`]:Object.assign(Object.assign({},(0,It.Wf)(me)),{[ve]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ve}-select`]:{display:"inline-block"},[`${ve}-disabled`]:{color:pe,cursor:"not-allowed"}})}};var nt=(0,cn.Z)("Upload",me=>{const{fontSizeHeading3:ve,fontSize:pe,lineHeight:Be,lineWidth:ze,controlHeightLG:Me}=me,Ge=Math.round(pe*Be),xe=(0,Sn.TS)(me,{uploadThumbnailSize:ve*2,uploadProgressOffset:Ge/2+ze,uploadPicCardSize:Me*2.55});return[gt(xe),jt(xe),ce(xe),Pe(xe),Pn(xe),zn(xe),ke(xe),(0,on.Z)(xe)]},me=>({actionsColor:me.colorTextDescription})),Ot=function(me,ve,pe,Be){function ze(Me){return Me instanceof pe?Me:new pe(function(Ge){Ge(Me)})}return new(pe||(pe=Promise))(function(Me,Ge){function xe(fe){try{lt(Be.next(fe))}catch(At){Ge(At)}}function mt(fe){try{lt(Be.throw(fe))}catch(At){Ge(At)}}function lt(fe){fe.done?Me(fe.value):ze(fe.value).then(xe,mt)}lt((Be=Be.apply(me,ve||[])).next())})};const ht=`__LIST_IGNORE_${Date.now()}__`,Et=(me,ve)=>{const{fileList:pe,defaultFileList:Be,onRemove:ze,showUploadList:Me=!0,listType:Ge="text",onPreview:xe,onDownload:mt,onChange:lt,onDrop:fe,previewFile:At,disabled:Ct,locale:Kt,iconRender:nn,isImageUrl:Ne,progress:Ke,prefixCls:dt,className:Xe,type:bt="select",children:Bt,style:st,itemRender:Wt,maxCount:Zt,data:ta={},multiple:jn=!1,action:Hn="",accept:ua="",supportServerRender:ca=!0,rootClassName:Sa}=me,ra=ae.useContext(pn.Z),kn=Ct!=null?Ct:ra,[gn,Zn]=(0,rt.Z)(Be||[],{value:pe,postState:yt=>yt!=null?yt:[]}),[oa,ga]=ae.useState("drop"),Jn=ae.useRef(null);ae.useMemo(()=>{const yt=Date.now();(pe||[]).forEach((kt,Qt)=>{!kt.uid&&!Object.isFrozen(kt)&&(kt.uid=`__AUTO__${yt}_${Qt}__`)})},[pe]);const Wn=(yt,kt,Qt)=>{let Dt=(0,Te.Z)(kt),Ht=!1;Zt===1?Dt=Dt.slice(-1):Zt&&(Ht=Dt.length>Zt,Dt=Dt.slice(0,Zt)),(0,ct.flushSync)(()=>{Zn(Dt)});const En={file:yt,fileList:Dt};Qt&&(En.event=Qt),(!Ht||Dt.some(qt=>qt.uid===yt.uid))&&(0,ct.flushSync)(()=>{lt==null||lt(En)})},Pa=(yt,kt)=>Ot(void 0,void 0,void 0,function*(){const{beforeUpload:Qt,transformFile:Dt}=me;let Ht=yt;if(Qt){const En=yield Qt(yt,kt);if(En===!1)return!1;if(delete yt[ht],En===ht)return Object.defineProperty(yt,ht,{value:!0,configurable:!0}),!1;typeof En=="object"&&En&&(Ht=En)}return Dt&&(Ht=yield Dt(Ht)),Ht}),Lt=yt=>{const kt=yt.filter(Ht=>!Ht.file[ht]);if(!kt.length)return;const Qt=kt.map(Ht=>Jt(Ht.file));let Dt=(0,Te.Z)(gn);Qt.forEach(Ht=>{Dt=en(Ht,Dt)}),Qt.forEach((Ht,En)=>{let qt=Ht;if(kt[En].parsedFile)Ht.status="uploading";else{const{originFileObj:ha}=Ht;let sa;try{sa=new File([ha],ha.name,{type:ha.type})}catch(Fa){sa=new Blob([ha],{type:ha.type}),sa.name=ha.name,sa.lastModifiedDate=new Date,sa.lastModified=new Date().getTime()}sa.uid=Ht.uid,qt=sa}Wn(qt,Dt)})},rn=(yt,kt,Qt)=>{try{typeof yt=="string"&&(yt=JSON.parse(yt))}catch(En){}if(!Nt(kt,gn))return;const Dt=Jt(kt);Dt.status="done",Dt.percent=100,Dt.response=yt,Dt.xhr=Qt;const Ht=en(Dt,gn);Wn(Dt,Ht)},ln=(yt,kt)=>{if(!Nt(kt,gn))return;const Qt=Jt(kt);Qt.status="uploading",Qt.percent=yt.percent;const Dt=en(Qt,gn);Wn(Qt,Dt,yt)},Mn=(yt,kt,Qt)=>{if(!Nt(Qt,gn))return;const Dt=Jt(Qt);Dt.error=yt,Dt.response=kt,Dt.status="error";const Ht=en(Dt,gn);Wn(Dt,Ht)},An=yt=>{let kt;Promise.resolve(typeof ze=="function"?ze(yt):ze).then(Qt=>{var Dt;if(Qt===!1)return;const Ht=ea(yt,gn);Ht&&(kt=Object.assign(Object.assign({},yt),{status:"removed"}),gn==null||gn.forEach(En=>{const qt=kt.uid!==void 0?"uid":"name";En[qt]===kt[qt]&&!Object.isFrozen(En)&&(En.status="removed")}),(Dt=Jn.current)===null||Dt===void 0||Dt.abort(kt),Wn(kt,Ht))})},na=yt=>{ga(yt.type),yt.type==="drop"&&(fe==null||fe(yt))};ae.useImperativeHandle(ve,()=>({onBatchStart:Lt,onSuccess:rn,onProgress:ln,onError:Mn,fileList:gn,upload:Jn.current}));const{getPrefixCls:va,direction:pa,upload:sn}=ae.useContext(Ln.E_),dn=va("upload",dt),ia=Object.assign(Object.assign({onBatchStart:Lt,onError:Mn,onProgress:ln,onSuccess:rn},me),{data:ta,multiple:jn,action:Hn,accept:ua,supportServerRender:ca,prefixCls:dn,disabled:kn,beforeUpload:Pa,onChange:void 0});delete ia.className,delete ia.style,(!Bt||kn)&&delete ia.id;const[La,ya]=nt(dn),[wa]=(0,yn.Z)("Upload",wn.Z.Upload),{showRemoveIcon:ot,showPreviewIcon:He,showDownloadIcon:Ve,removeIcon:at,previewIcon:Rt,downloadIcon:mn}=typeof Me=="boolean"?{}:Me,vn=(yt,kt)=>Me?ae.createElement(Mt,{prefixCls:dn,listType:Ge,items:gn,previewFile:At,onPreview:xe,onDownload:mt,onRemove:An,showRemoveIcon:!kn&&ot,showPreviewIcon:He,showDownloadIcon:Ve,removeIcon:at,previewIcon:Rt,downloadIcon:mn,iconRender:nn,locale:Object.assign(Object.assign({},wa),Kt),isImageUrl:Ne,progress:Ke,appendAction:yt,appendActionVisible:kt,itemRender:Wt,disabled:kn}):yt,un=_e()(`${dn}-wrapper`,Xe,Sa,ya,sn==null?void 0:sn.className,{[`${dn}-rtl`]:pa==="rtl",[`${dn}-picture-card-wrapper`]:Ge==="picture-card",[`${dn}-picture-circle-wrapper`]:Ge==="picture-circle"}),Bn=Object.assign(Object.assign({},sn==null?void 0:sn.style),st);if(bt==="drag"){const yt=_e()(ya,dn,`${dn}-drag`,{[`${dn}-drag-uploading`]:gn.some(kt=>kt.status==="uploading"),[`${dn}-drag-hover`]:oa==="dragover",[`${dn}-disabled`]:kn,[`${dn}-rtl`]:pa==="rtl"});return La(ae.createElement("span",{className:un},ae.createElement("div",{className:yt,style:Bn,onDrop:na,onDragOver:na,onDragLeave:na},ae.createElement(ft,Object.assign({},ia,{ref:Jn,className:`${dn}-btn`}),ae.createElement("div",{className:`${dn}-drag-container`},Bt))),vn()))}const xn=_e()(dn,`${dn}-select`,{[`${dn}-disabled`]:kn}),Dn=(yt=>ae.createElement("div",{className:xn,style:yt},ae.createElement(ft,Object.assign({},ia,{ref:Jn}))))(Bt?void 0:{display:"none"});return La(Ge==="picture-card"||Ge==="picture-circle"?ae.createElement("span",{className:un},vn(Dn,!!Bt)):ae.createElement("span",{className:un},Dn,vn()))};var bn=ae.forwardRef(Et),De=function(me,ve){var pe={};for(var Be in me)Object.prototype.hasOwnProperty.call(me,Be)&&ve.indexOf(Be)<0&&(pe[Be]=me[Be]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,Be=Object.getOwnPropertySymbols(me);ze<Be.length;ze++)ve.indexOf(Be[ze])<0&&Object.prototype.propertyIsEnumerable.call(me,Be[ze])&&(pe[Be[ze]]=me[Be[ze]]);return pe},fn=ae.forwardRef((me,ve)=>{var{style:pe,height:Be}=me,ze=De(me,["style","height"]);return ae.createElement(bn,Object.assign({ref:ve},ze,{type:"drag",style:Object.assign(Object.assign({},pe),{height:Be})}))});const Nn=bn;Nn.Dragger=fn,Nn.LIST_IGNORE=ht;var tn=Nn}}]);
|