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
337 KiB
115 lines
337 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4496],{26227:function(we,ot,ie){"use strict";ie.d(ot,{Z:function(){return We}});var ae=ie(16378),De=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,gt){return De.createElement(Le.Z,(0,ae.Z)({},je,{ref:gt,icon:_e}))},Pe=De.forwardRef(Ie),We=Pe},41464:function(we,ot,ie){"use strict";ie.d(ot,{Z:function(){return We}});var ae=ie(16378),De=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,gt){return De.createElement(Le.Z,(0,ae.Z)({},je,{ref:gt,icon:_e}))},Pe=De.forwardRef(Ie),We=Pe},93938:function(we,ot){"use strict";ot.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function we(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(we.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(we.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(we.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(we.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 we))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 ot=[];function ie(ne,a){var y=ot.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=ot.pop();return ne===void 0?new go.Point:ne}function De(ne){ot.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,me=NaN;if(oe===0)if(ge===0)ne===y&&(re=ne,me=a);else{var se=(E-ee)/ge,xe=E-se*b;re=ne,me=se*re+xe}else if(ge===0){var Oe=(a-x)/oe,it=a-Oe*ne;re=b,me=Oe*re+it}else{var Oe=(a-x)/oe,se=(E-ee)/ge,it=a-Oe*ne,xe=E-se*b;re=(xe-it)/(Oe-se),me=Oe*re+it}return te.x=re,te.y=me,te}function _e(ne,a,y,x,b,E,z,ee,te,oe,ge,re,me,se){var xe=1-te,Oe=te,it=ne*xe+y*Oe,st=a*xe+x*Oe,ft=y*xe+b*Oe,pt=x*xe+E*Oe,ut=b*xe+z*Oe,bt=E*xe+ee*Oe,Dn=it*xe+ft*Oe,pn=st*xe+pt*Oe,Ln=ft*xe+ut*Oe,yn=pt*xe+bt*Oe,Qn=Dn*xe+Ln*Oe,Un=pn*xe+yn*Oe;oe.x=it,oe.y=st,ge.x=Dn,ge.y=pn,re.x=Qn,re.y=Un,me.x=Ln,me.y=yn,se.x=ut,se.y=bt}var Le=new go.Spot(.156,.156),Ie=new go.Spot(.844,.844),Pe=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new we("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*Pe,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,Pe*a,0,a,(1-Pe)*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,Pe*y,(1-Pe)*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,Pe*y,Pe*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-Pe)*a,0,0,(1-Pe)*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 we("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 we("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 we("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 we("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 we("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 We=[];function Te(){var ne=We.pop();return ne===void 0?[]:ne}function je(ne){ne.length=0,We.push(ne)}function gt(ne){for(var a=Te(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function Qe(ne){var a=Je(ne),y=Te();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=gt(ne),y=Te(),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=gt(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=gt(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=gt(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=gt(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=gt(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=gt(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=gt(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=Qe(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=Qe(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=Qe(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=Qe(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=Qe(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=Qe(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),je(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new we("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new we("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 we("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 we("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new we("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=Pe/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 we("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 we("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 we("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 we("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 we("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 we("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,Pe*a,0,a,(.5-Pe/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+Pe/2)*y,Pe*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*Pe;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*Pe,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*Pe,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=Pe*.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=Pe*.4;var oe=ae(),ge=ae(),re=ae(),me=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,ge,re,me,me);var se=ae(),xe=ae(),Oe=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,me,me,Oe,se,xe);var it=ae(),st=ae(),ft=ae();_e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,it,st,ft,me,me);var pt=ae(),ut=ae(),bt=ae();return _e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,me,me,bt,pt,ut),te.add(new go.PathSegment(go.PathSegment.Move,bt.x*a,bt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,pt.x*a,pt.y*y,ut.x*a,ut.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,bt.x*a,bt.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,ft.x*a,ft.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Oe.x*a,Oe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,se.x*a,se.y*y,xe.x*a,xe.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,ft.x*a,ft.y*y,it.x*a,it.y*y,st.x*a,st.y*y).close()),De(oe),De(ge),De(re),De(me),De(se),De(xe),De(Oe),De(it),De(st),De(ft),De(pt),De(ut),De(bt),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 we("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=Pe*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),re=ae(),me=new go.PathFigure((z-E)*a,ee*y,!1);x.add(me),me.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),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,re.x*a,re.y*y));var se=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 xe=ie(oe.x,oe.y);me.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,(xe.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ge.x*a,ge.y*y,re.x*a,re.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.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=Pe*.35;var Oe=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Oe),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)),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));var it=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(it),De(te),De(oe),De(ge),De(re),De(se),De(xe),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*Pe,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*Pe;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 we("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new we("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),De(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new we("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new we("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),De(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 we("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),De(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new we("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new we("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),De(re),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new we("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),De(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new we("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new we("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),De(re),oe}),go.Shape.setFigureParameter("Pointer",0,new we("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),De(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new we("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),De(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new we("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),De(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new we("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),De(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new we("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=Pe*.5,E=Pe*.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=Pe*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,Pe*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,Pe*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-Pe*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-Pe*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-Pe*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-Pe*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=Pe*.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,Pe*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,Pe*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-Pe*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-Pe*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-Pe*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-Pe*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=Pe*.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-Pe*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-Pe*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Pe*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,Pe*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+Pe*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+Pe*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=Pe*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-Pe*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-Pe*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,Pe*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,Pe*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-Pe*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-Pe*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=Pe*b,ee=Pe*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,me=Pe*re;te=.05,oe=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+re)*a,oe*y,(te+me)*a,(oe-re)*y,(te+re)*a,(oe-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),re=.025,me=Pe*re,te=.825,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-me)*y,(te+me)*a,(oe-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-me)*a,(oe-re)*y,(te-re)*a,(oe-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),re=.05,me=Pe*re,te=.5,oe=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-me)*y,(te+me)*a,(oe-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-me)*a,(oe-re)*y,(te-re)*a,(oe-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),re=.025,me=Pe*re,te=.175,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te+re)*a,(oe-me)*y,(te+me)*a,(oe-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,oe*y,(te-me)*a,(oe-re)*y,(te-re)*a,(oe-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),re=.05,me=Pe*re,te=.05,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-re)*y,(te-re)*a,(oe-me)*y,(te-me)*a,(oe-re)*y)),se.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 we("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=Pe*.5,E=Pe*.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=Pe*.5,E=Pe*.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=Pe*.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=Pe*.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=Pe*.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=Pe*.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=Pe*.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=Pe*.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=Pe*.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=Pe*.5,E=Pe*.4,z=Pe*.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=Pe*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=Pe*.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=Pe*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=Pe*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=Pe*.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=Pe*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=Pe*.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=Pe*.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=Pe*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,re=(E-y)/2,me=new go.PathFigure(te*a+ge,(oe+ee)*y+re,!0);x.add(me),me.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)),me.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)),me.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)),me.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=Pe*.4,ee=.4,te=.2,oe=.5;var 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=Pe*.2,ee=.2,te=.5,oe=.5;var xe=new go.PathFigure((te-ee)*a+ge,oe*y+re,!0);x.add(xe),xe.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)),xe.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)),xe.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)),xe.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=Pe*.4,ee=.4,te=.8,oe=.5;var Oe=new go.PathFigure(te*a+ge,(oe-ee)*y+re,!0);x.add(Oe),Oe.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)),Oe.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)),Oe.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)),Oe.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=Pe*.8,ee=.8,te=1,oe=.5;var it=new go.PathFigure(te*a+ge,(oe-ee)*y+re,!0);return x.add(it),it.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)),it.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)),it.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)),it.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=Pe*.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 me=ie(oe.x,oe.y),se=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(se),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(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,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)),b=Pe*.3,E=.3,_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,re,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,re.x*a,re.y*y,ge.x*a,ge.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(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ge,re),se.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 se=new go.PathFigure(.45*a,0,!0);return x.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),De(te),De(oe),De(ge),De(re),De(me),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*Pe,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,re=.5,me=.5,se=0,xe=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,re*y,ge*a,.7*y,ge*a,re*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+E)*a,(se+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),xe.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)),xe.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)),xe.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),xe.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,me=z,se=z,xe=ge*me,Oe=ge*se;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(xe+me)/2)*a,(te+(se+Oe)/2)*y,(ee-me)*a,(te+Oe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-me)*a,(te-Oe)*y,(ee-xe)*a,(te-se)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+xe)*a,(te-se)*y,(ee+me)*a,(te-Oe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Oe)*y,(ee+(xe+me)/2)*a,(te+(se+Oe)/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 it=new go.PathFigure(.2*a,y,!1);x.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var st=new go.PathFigure(.8*a,y,!1);return x.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=Pe*.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=Pe*.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=Pe*.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=Pe*.1,ge=.1,re=.9,me=new go.PathFigure((ge-te)*a,re*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re-te)*y,(ge-te)*a,(re-oe)*y,(ge-oe)*a,(re-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,re*y,(ge+oe)*a,(re-te)*y,(ge+te)*a,(re-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(re+te)*y,(ge+te)*a,(re+oe)*y,(ge+oe)*a,(re+te)*y)),me.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=Pe*.1,ge=.4,re=.9;var se=new go.PathFigure((ge-te)*a,re*y,!0);return 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)),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=Pe*.05,me=.175,se=.95,ee=new go.PathFigure((me-ge)*a,se*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-re)*y,(me-re)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+re)*a,(se-ge)*y,(me+ge)*a,(se-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+re)*y,(me+re)*a,(se+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-re)*a,(se+ge)*y,(me-ge)*a,(se+re)*y));var ge=.05,re=Pe*.05,me=.375,se=.95,te=new go.PathFigure((me-ge)*a,se*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-re)*y,(me-re)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+re)*a,(se-ge)*y,(me+ge)*a,(se-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+re)*y,(me+re)*a,(se+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-re)*a,(se+ge)*y,(me-ge)*a,(se+re)*y));var ge=.05,re=Pe*.05,me=.625,se=.95,oe=new go.PathFigure((me-ge)*a,se*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-re)*y,(me-re)*a,(se-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+re)*a,(se-ge)*y,(me+ge)*a,(se-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+re)*y,(me+re)*a,(se+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-re)*a,(se+ge)*y,(me-ge)*a,(se+re)*y));var ge=.05,re=Pe*.05,me=.825,se=.95,xe=new go.PathFigure((me-ge)*a,se*y,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-re)*y,(me-re)*a,(se-ge)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+re)*a,(se-ge)*y,(me+ge)*a,(se-re)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+re)*y,(me+re)*a,(se+ge)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-re)*a,(se+ge)*y,(me-ge)*a,(se+re)*y).close());var Oe=new go.PathFigure(0,y,!1);return x.add(Oe),Oe.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=Pe*.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=Pe*.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=Pe*.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=Pe*.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=Pe*.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*Pe,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*Pe,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*Pe,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")},98598: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 we={},ot="5.0",ie={},ae=null,De=!1,Ze=!1,_e=null,Le=!1,Ie=null,Pe=null,We=0;We<arguments.length;We++){var Te=arguments[We];if(Te!==null)switch(typeof Te){case"number":ot=Te.toFixed(1);break;case"string":Te.match(new RegExp("^[0-9]\\.[0-9]+$"))?ot=Te:_e=Te;break;case"object":typeof Te.is3D!="undefined"?ae=Te:ie=Te;break;case"boolean":De=Te,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&&(De=!0)),_e!==null&&ie.id===void 0&&(ie.id=_e);var je="",gt="",Qe=!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(ye){return parseFloat(ye)>4?parseFloat(ye):5};we.setHTML5Codebase=function(ye,Ge){Pe=ye,yn(ye,Ge)},we.setJavaCodebase=we.setJavaCodebaseVersion=we.isCompiledInstalled=we.setPreCompiledScriptPath=we.setPreCompiledResourcePath=function(){},we.setHTML5CodebaseVersion=function(ye,Ge){var Re=parseFloat(ye);if(Re!==NaN&&Re<5){console.log("The GeoGebra HTML5 codebase version "+Re+" is deprecated. Using version latest instead.");return}Ie=ye,Ln(ye,Ge)},we.getHTML5CodebaseVersion=function(){return ne},we.getParameters=function(){return ie},we.setFontsCSSURL=function(ye){z=ye},we.setGiacJSURL=function(ye){},we.setJNLPFile=function(ye){je=ye},we.setJNLPBaseDir=function(ye){},we.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ge="auto",Re=ie.id,Ft,$e=!1,ct=0;ct<arguments.length;ct++){var de=arguments[ct];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ge=de:Re=arguments[ct]):typeof de=="boolean"?$e=de:de instanceof HTMLElement&&(Ft=de)}Ye();function Ye(){if(!Le){setTimeout(Ye,200);return}Ge=Dn(Ge);var Et=Ft||document.getElementById(Re);if(!Et){console.log("possibly bug on ajax loading? ");return}if(we.removeExistingApplet(Et,!1),ie.width===void 0&&Et.clientWidth&&(ie.width=Et.clientWidth),ie.height===void 0&&Et.clientHeight&&(ie.height=Et.clientHeight),!(ie.width&&ie.height)&&Ge==="html5"&&(delete ie.width,delete ie.height),Je=Ge,Ge==="screenshot")st(Et,ie);else{var nn=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?nn=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(nn=(!oe()||ye())&&ge()),nn?(Je="screenshot",pt(Et,ie,$e,Ge)):it(Et,ie,$e)}}};function oe(){try{return window.self!==window.top}catch(ye){return!0}}function ge(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}we.getViews=function(){return ae},we.isJavaInstalled=function(){return!1};var re=function(ye){var Ge=function(ct){var de=JSON.parse(ct),Ye=function(Rt){return Rt.type=="G"||Rt.type=="E"},Et=de.elements?de.elements.filter(Ye)[0]:de;if(!Et||!Et.url){Re();return}ie.fileName=Et.url,me(Et.settings||{}),ae.is3D=!0;var nn="https://www.geogebra.org/images/";we.setPreviewImage(x||Et.previewUrl,nn+"GeoGebra_loading.png",nn+"applet_play.png"),ye()},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";se("https://"+Ft+"/api/proxy.php?path="+encodeURIComponent($e),Ge,Re)};function me(ye){var Ge=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Re){ye[Re]=!!ye[Re]}),Ge.forEach(function(Re){ie[Re]===void 0&&ye[Re]!==void 0&&(ie[Re]=ye[Re])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function se(ye,Ge,Re){var Ft=new XMLHttpRequest;Ft.open("GET",ye),Ft.onload=function(){Ge(Ft.responseText)},Ft.onerror=Re,Ft.send()}we.isHTML5Installed=function(){return!0},we.getLoadedAppletType=function(){return Je},we.setPreviewImage=function(ye,Ge,Re){x=ye,b=Ge,E=Re},we.removeExistingApplet=function(ye,Ge){var Re;typeof ye=="string"&&(ye=document.getElementById(ye)),Je=null;var Ft=null;for(Re=0;Re<ye.childNodes.length;Re++){var $e=ye.childNodes[Re],ct=$e.className;ct==="applet_screenshot"?Ge?($e.style.display="block",Je="screenshot"):$e.style.display="none":ct!=="applet_scaler prerender"&&(ye.removeChild($e),Ft=ct&&ct.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)},we.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=we.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},we.startAnimation=function(){var ye=we.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},we.stopAnimation=function(){var ye=we.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},we.getAppletObject=function(){var ye=ie.id!==void 0?ie.id:"ggbApplet";return window[ye]},we.resize=function(){};var xe=function(ye,Ge,Re){var Ft=document.createElement("param");Ft.setAttribute("name",Ge),Ft.setAttribute("value",Re),ye.appendChild(Ft)},Oe=function(ye){return ye&&ye!=="false"},it=function(ye,Ge,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 ct=Ge.width,de=Ge.height;if(Ge.disableAutoScale=Ge.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ge.disableAutoScale,Ge.width!==void 0)if(te(ne)<=4.4)Oe(Ge.showToolBar)&&(Ge.height-=7),Oe(Ge.showAlgebraInput)&&(Ge.height-=37),Ge.width<605&&Oe(Ge.showToolBar)&&(Ge.width=605,ct=605);else{var Ye=100;(Oe(Ge.showToolBar)||Oe(Ge.showMenuBar))&&(Ge.hasOwnProperty("customToolBar")&&(Ge.customToolbar=Ge.customToolBar),Ye=Oe(Ge.showMenuBar)?245:155),ct<Ye&&(Ge.width=Ye,ct=Ye)}$e.style.border="none",$e.style.display="inline-block";for(var Et in Ge)Ge.hasOwnProperty(Et)&&Et!=="appletOnLoad"&&$e.setAttribute("data-param-"+Et,Ge[Et]);z&&$e.setAttribute("data-param-fontscssurl",z),we.resize=function(){GGBAppletUtils.responsiveResize(ye,Ge)},window.addEventListener("resize",function(qt){we.resize()});var nn=typeof Ge.appletOnLoad=="function"?Ge.appletOnLoad:function(){};if(!Re&&Ge.width!==void 0){Ge.hasOwnProperty("showSplash")||$e.setAttribute("data-param-showSplash","false");var Rt=ye.querySelector(".applet_scaler.prerender"),En=Rt!==null;if(En)var Tn=Rt.querySelector(".ggb_preview");else{var Tn=bt(ct,de,Ge.borderColor,!1);Rt=document.createElement("div"),Rt.className="applet_scaler",Rt.style.position="relative",Rt.style.display="block",Rt.style.width=ct+"px",Rt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Rt,"66%"),te(ne)>=5?(Ge.appletOnLoad=function(qt){var Nt=ye.querySelector(".ggb_preview");Nt&&Nt.parentNode.removeChild(Nt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Rt),window.GGBT_wsf_view&&$(window).trigger("resize"),nn(qt)},En||Rt.appendChild(Tn)):$e.appendChild(Tn),Rt.appendChild($e),En||ye.appendChild(Rt),setTimeout(function(){we.resize()},1)}else{var $t=document.createElement("div");$t.className="applet_scaler",$t.style.position="relative",$t.style.display="block",$t.appendChild($e),ye.appendChild($t),Ge.appletOnLoad=function(qt){we.resize(),nn(qt)}}function Xn(qt,Nt){Nt&&typeof Nt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(qt,Nt.appletOnLoad):renderGGBElement(qt),Qn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Nt)}function qn(qt,Nt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:qt,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&&(qt.className+=" geogebraweb")):Xn(qt,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,Ge)};Xt.src=gt+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Xt.src,Qn("GeoGebra HTML5 codebase loaded: '"+gt+"'.",Ge),!Pe&&(!Ie||Ie=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Jt()):gt.requirejs?__webpack_require__.e(7374).then(function(){var qt=[__webpack_require__(97374)];Jt.apply(null,qt)}.bind(this)).catch(__webpack_require__.oe):(Xt.onload=Jt,ye.appendChild(Xt))}else qn($e,Ge);Ge.height=de,Ge.width=ct},st=function(ye,Ge,Re){var Ft=bt(Ge.width,Ge.height,Ge.borderColor,Re),$e=document.createElement("div");$e.style.position="relative",$e.style.display="block",$e.style.width=Ge.width+"px",$e.style.height=Ge.height+"px",$e.className="applet_screenshot applet_scaler"+(Re?" applet_screenshot_play":""),$e.appendChild(Ft);var ct=GGBAppletUtils.getScale(Ge,ye,Re);Re?(ye.appendChild(ut()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner($e,"66%"),ye.appendChild($e),ct!==1&&!isNaN(ct)&&(GGBAppletUtils.scaleElement($e,ct),$e.style.width=Ge.width+"px",$e.style.height=Ge.height+"px",$e.parentNode.style.width=Ge.width*ct+"px",$e.parentNode.style.height=Ge.height*ct+"px"),we.resize=function(){ft(ye,Ft,$e,Re)},window.addEventListener("resize",function(de){we.resize()}),we.resize()};function ft(ye,Ge,Re,Ft){if(ye.contains(Ge)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var $e=GGBAppletUtils.getScale(ie,ye,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(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}we.onExitFullscreen=function(ye,Ge){Ge.appendChild(ye)};var pt=function(ye,Ge,Re,Ft){st(ye,Ge,!0);for(var $e=function(){var Ye=[];for(de=0;de<ye.childNodes.length;de++)Ye.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var Et=window.GGBT_wsf_view.renderFullScreen(ye,Ge.id),nn=document.getElementById("fullscreencontainer"),Rt=jQuery(ye).find(".fullscreencontent");Rt.length>0?(Et.remove(),Rt.attr("id","fullscreencontent").show(),jQuery(nn).append(Rt),window.dispatchEvent(new Event("resize"))):it(Et,Ge,!1),window.GGBT_wsf_view.launchFullScreen(nn)}else Je=Ft,it(ye,Ge,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ye.length;de++)ye.removeChild(Ye[de])},ct=ye.getElementsByClassName("ggb_preview_play"),de=0;de<ct.length;de++)ct[de].addEventListener("click",$e,!1),ct[de].addEventListener("ontouchstart",$e,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},ut=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ge='.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=Ge:Re.appendChild(document.createTextNode(Ge)),document.getElementsByTagName("head")[0].appendChild(Re)}return ye},bt=function(ye,Ge,Re,Ft){var $e=document.createElement("div");$e.className="ggb_preview",$e.style.position="absolute",$e.style.zIndex="90",$e.style.width=ye-2+"px",$e.style.height=Ge-2+"px",$e.style.top="0px",$e.style.left="0px",$e.style.overflow="hidden",$e.style.backgroundColor="white";var ct="lightgrey";Re!==void 0&&(Re==="none"?ct="transparent":ct=Re),$e.style.border="1px solid "+ct;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,Et,nn;if(!Ft){Ye=document.createElement("img"),Ye.style.position="absolute",Ye.style.zIndex="1001",Ye.style.opacity=1,de.style.opacity=.3,Et=360,Et>ye/4*3&&(Et=ye/4*3),nn=Et/5.8,Ye.setAttribute("src",b),Ye.setAttribute("width",Et),Ye.setAttribute("height",nn);var Rt=(ye-Et)/2,En=(Ge-nn)/2;Ye.style.left=Rt+"px",Ye.style.top=En+"px",$e.appendChild(Ye)}}return $e.appendChild(de),$e},Dn=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},pn=["web","webSimple","web3d","tablet","tablet3d","phone"],Ln=function(ye,Ge){if(ne=ye,Ge){yn(ne,!0);return}var Re=!De;if(Re){var Ft=te(ne);!isNaN(Ft)&&Ft<4.4&&(Re=!1)}var $e,ct;window.location.protocol.substr(0,4)==="http"?$e=window.location.protocol:$e="http:";var de=ne.indexOf("//");de>0?ct=ne:de===0?ct=$e+ne:ct="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]+"/"){yn(ct,!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&&!Oe(ie.showToolBar)&&!Oe(ie.showMenuBar)&&!Oe(ie.showAlgebraInput)&&!Oe(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?ct+="webSimple/":ct+="web3d/",yn(ct,!1)},yn=function(ye,Ge){if(ye.requirejs){gt=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),gt=ye,Ge===null&&(Ge=ye.indexOf("http")===-1),Qe=Ge,a="web.nocache.js",y=!1;var Re=gt.split("/");Re.length>1&&(!Ge&&Re[Re.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):pn.indexOf(Re[Re.length-2])>=0&&(a=Re[Re.length-2]+".nocache.js")),Re=ye.split("/"),ne=Re[Re.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Ft=parseFloat(ne);Ft!==NaN&&Ft<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ft+" is deprecated. Using version latest instead."),Ln("5.0",Ge))},Qn=function(ye,Ge){window.console&&window.console.log&&(!Ge||typeof Ge.showLogging=="undefined"||Ge.showLogging&&Ge.showLogging!=="false")&&console.log(ye)};ie.material_id!==void 0?re(Un):Un();function Un(){var ye=ot;Ie!==null?ye=Ie:parseFloat(ye)<5&&(ye="5.0"),Ln(ye,!1),Pe!==null&&yn(Pe,Qe),Le=!0}return we},GGBAppletUtils=function(){"use strict";function we(){return window.GGBT_wsf_edit!==void 0}function ot(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,Pe,We,Te,je){var gt=null;if(je!=null&&je!="")for(var Qe=Le.parentNode;Qe!=null;)if((" "+Qe.className+" ").indexOf(" "+je+" ")>-1){gt=Qe;break}else Qe=Qe.parentNode;var Je=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(gt)Je=gt.offsetWidth,ne=Math.max(We?gt.offsetWidth:0,gt.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&&(Te===void 0||!Te)&&(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&&((Pe===void 0||!Pe)&&Ie>0&&Ie+y<Je?Je=Ie:Je-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Pe===void 0||!Pe)&&(ne-=E)),{width:Je,height:ne}}function ae(Le,Ie,Pe,We,Te){if(Le.isScreenshoGenerator)return 1;var je=We!==void 0&&We,gt=Le.noScaleMargin!=null&&Le.noScaleMargin,Qe=function(ee){return ee&&ee!=="false"},Je=Qe(Le.autoHeight),ne=ie(Ie,Le.width,Pe,Je,je&&window.GGBT_wsf_view||gt,Te),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 Pe!==void 0&&!Pe&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function De(Le,Ie,Pe){var We=1,Te,je=!1;if(Le.hasOwnProperty("allowUpscale")&&(je=Le.allowUpscale),Le.hasOwnProperty("scale")&&(We=parseFloat(Le.scale),(isNaN(We)||We===null||We===0)&&(We=1),We>1&&(je=!0)),Ie&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(je=!0),!(Le.hasOwnProperty("disableAutoScale")&&Le.disableAutoScale))Te=ae(Le,Ie,je,Pe,Le.scaleContainerClass);else return We;return je&&(!Le.hasOwnProperty("scale")||We===1)?Te:Math.min(We,Te)}function Ze(Le){var Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),Pe=Math.min(window.innerHeight,document.documentElement.clientHeight),We=Le.getBoundingClientRect(),Te=(Ie-We.width)/2,je=(Pe-We.height)/2;je<0&&(je=0),Le.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Te<40?Le.style.left="40px":Le.style.left=Te+"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=Te+"px")}function _e(Le,Ie){var Pe=Le.querySelector(".appletParameters");if(Pe){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ie.id!==Pe.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}if(Pe.parentElement&&/fullscreen/.test(Pe.parentElement.className))return;var We=De(Ie,Le);we()&&Pe.setAttribute("data-param-scale",We);for(var Te=null,je=0;je<Le.childNodes.length;je++)if(Le.childNodes[je].className!==void 0&&Le.childNodes[je].className.match(/^applet_scaler/)){Te=Le.childNodes[je];break}if(Te!==null&&Te.querySelector(".noscale")!==null)return;var gt=Ie.id!==void 0?Ie.id:"ggbApplet",Qe=window[gt];(Qe==null||!Qe.recalculateEnvironments)&&Te!==null&&!Te.className.match(/fullscreen/)&&(Te.parentNode.style.transform="",!isNaN(We)&&We!==1?(Te.parentNode.style.width=Ie.width*We+"px",Te.parentNode.style.height=Ie.height*We+"px",ot(Te,We)):(ot(Te,1),Te.parentNode.style.width=Ie.width+"px",Te.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($(Pe).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:we,positionCenter:Ze,getScale:De,scaleElement:ot}}();__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 we=n.location.search;return we.indexOf(J)!=-1||we.indexOf(K)!=-1}function q(we,ot){}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(we){var ot=s[L].bindings;s[L].bindings=function(){for(var ie=ot?ot():{},ae=we[webModule.__softPermutationId],De=O;De<ae.length;De++){var Ze=ae[De];ie[Ze[O]]=Ze[P]}return ie}};var t;function u(){return v(),t}function v(){if(!t){var we=o.createElement(Q);if(we.id=L,we.style.cssText=R+S,we.tabIndex=-1,o.body.appendChild(we),t=we.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ot=document.compatMode==U?V:W;t.write(ot+X),t.close()}}}function w(we){function ot(ae){function De(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ze=De();if(Ze){ae();return}function _e(){if(!Ze){if(!De())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 De=u(),Ze=De.body,_e=De.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)}ot(function(){ie(we)})}webModule.__startLoadingFragment=function(we){return C(we)},webModule.__installRunAsyncCode=function(we){var ot=u(),ie=ot.body,ae=ot.createElement(_);ae.language=ab,ae.text=we,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(we){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(we){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(we){var ot=c[we];return ot==null?null:ot},r=d,webModule.__errFn=e}function B(){function we(Le){var Ie=Le.lastIndexOf(rb);Ie==-1&&(Ie=Le.length);var Pe=Le.indexOf(sb);Pe==-1&&(Pe=Le.length);var We=Le.lastIndexOf(tb,Math.min(Pe,Ie));return We>=O?Le.substring(O,We+P):W}function ot(Le){if(!Le.match(/^\w+:\/\//)){var Ie=o.createElement(ub);Ie.src=Le+vb,Le=we(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 we(Le[Ie].src);return W}function De(){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=De()),_e==W&&Ze()&&(_e=we(o.location.href)),_e=ot(_e),_e}function C(we){return we.match(/^\//)||we.match(/^[a-zA-Z]+:\/\//)?we:webModule.__moduleBase+we}function D(){var we=[],ot=O,ie=[],ae=[];function De(Le){var Ie=ae[Le](),Pe=ie[Le];if(Ie in Pe)return Ie;var We=[];for(var Te in Pe)We[Pe[Te]]=Te;throw r&&r(Le,We,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]=De(Ie));return Le},webModule.__computePropValue=De,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ze;try{Ze=Cb;var _e=Ze.indexOf(Db);_e!=-1&&(ot=parseInt(Ze.substring(_e+P),$),Ze=Ze.substring(O,_e))}catch(Le){}return webModule.__softPermutationId=ot,C(Ze+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/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})()},58788:function(we,ot,ie){"use strict";ie.d(ot,{Ax:function(){return _e},Ds:function(){return Le},KI:function(){return Pe},SI:function(){return Ze},f1:function(){return De}});var ae=ie(10148);function De(We){let Te=!0;if(We.length>0){for(let je=0;je<We.length;je++)if(We[je].compile_success==0||!We[je].compile_success){Te=!1;break}}else Te=!1;return Te}function Ze(We,Te=""){let je=[];for(let gt=0;gt<We.length;gt++){let Qe=We[gt],Je=Te?`${Te}/${Qe.name}`:`${Qe.name}`;je.push({title:Qe.name,type:Qe.type,isLeaf:Qe.type!=="tree",key:Je})}return je}function _e(We,Te,je){for(let gt=0;gt<We.length;gt++){let Qe=We[gt];if(Qe.key===Te){Qe.children=je;break}Qe.children&&_e(Qe.children,Te,je)}return We}function Le(We,Te,je){let gt;return function(){let Qe=this,Je=arguments,ne=function(){gt=null,je||We.apply(Qe,Je)},a=je&&!gt;clearTimeout(gt),gt=setTimeout(ne,Te),a&&We.apply(Qe,Je)}}const Ie=!0,Pe=ae.Z.API_SERVER},12963:function(we,ot,ie){"use strict";ie.d(ot,{Z:function(){return gt}});var ae=ie(59301),De={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ze=ie(92310),_e=ie.n(Ze),Le=ie(71418),Ie=ie(2859),Pe=ie(70635),We=ie(58130),Te=(Qe,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(Qe,Je)).next())}),gt=({data:Qe,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),[me,se]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Qe!=null&&Qe.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Qe!=null&&Qe.src&&xe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Qe==null?void 0:Qe.visible]);const xe=()=>Te(void 0,null,function*(){re(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ft=yield(0,We.ZJ)(Qe==null?void 0:Qe.src);z.current.src="",z.current.src=ft,z.current.onload=function(){st()},re(!1),se("")}),Oe=ft=>Te(void 0,null,function*(){re(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const pt=yield(0,Pe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Qe.title,file:ft.dataUrl}});pt!=null&&pt.id&&!E?(yield(0,Pe.ZP)(`/api/attachments/${Qe.id}/add_subitem.json`,{method:"post",body:{subitem_id:pt==null?void 0:pt.id,settings:JSON.stringify(ft.state)}})).status===0&&x():pt!=null&&pt.id&&x(pt),re(!1),se("")}),it=()=>{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(ut=>{const bt=document.querySelector(ut.name);bt&&bt.setAttribute("title",ut.title)})},st=()=>{ee.current=new Ie.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",Oe),ee.current.addEventListener("beforeclose",y),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),Qe!=null&&Qe.snapshotData&&ee.current.restoreState(Qe.snapshotData),setTimeout(()=>{window.scrollTo(0,0),it()},300)};return ae.createElement(ae.Fragment,null,(Qe==null?void 0:Qe.visible)&&ae.createElement(Le.Z,{spinning:ge,tip:me,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:_e()(De.imageDimensions,Je,ne?De.fullWidth:""),style:a},ae.createElement("img",{className:De.img,ref:z}))))}},75890:function(we,ot,ie){"use strict";var ae=ie(59301),De=ie(95237),Ze=ie(43604),_e=ie(99313),Le=ie(3113),Ie=ie(25711),Pe=ie(93938),We=ie(48136),Te=ie(59301);const je=(0,ae.forwardRef)(({callback:gt,showSaveButton:Qe,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:Te.createElement(De.Z,{className:Pe.Z.lists,gutter:[10,10]},y.map((ee,te)=>Te.createElement(Ze.Z,{flex:"110px",className:Pe.Z.item},Te.createElement("div",null,Te.createElement(Ie.Z,{value:`$$${ee.value}$$`}),ee.name),Te.createElement("div",{className:Pe.Z.children},ee.children.map((oe,ge)=>Te.createElement("div",{key:ge},Te.createElement("h1",null,oe.name),Te.createElement(De.Z,{gutter:[10,10]},oe.data.map((re,me)=>Te.createElement(Ze.Z,{key:me,onClick:()=>b(re),className:Pe.Z.diamond},Te.createElement(Ie.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Te.createElement(De.Z,{className:Pe.Z.lists,gutter:[10,10]},x.map((ee,te)=>Te.createElement(Ze.Z,{flex:"110px",className:Pe.Z.item},Te.createElement("div",null,Te.createElement(Ie.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Te.createElement("div",{className:Pe.Z.children},ee.children.map((oe,ge)=>Te.createElement("div",{key:ge},oe.name&&Te.createElement("h1",null,oe.name),Te.createElement(De.Z,{gutter:[10,10]},oe.data.map((re,me)=>Te.createElement(Ze.Z,{key:me,onClick:()=>b(re),className:Pe.Z.diamond},Te.createElement(Ie.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return gt&>(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Te.createElement("div",{className:Pe.Z.mathWrap},Te.createElement(_e.default,{defaultActiveKey:"1",items:E}),Te.createElement("math-field",{locale:"zh_cn",className:Pe.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Je||""),Qe&&Te.createElement("div",{className:Pe.Z.button},Te.createElement(Le.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ot.Z=je},1568:function(we,ot,ie){"use strict";ie.d(ot,{h:function(){return ee}});var ae=ie(59301),De=ie(57809),Ze=ie(78241),_e=ie(3113),Le=ie(89780),Ie=ie.n(Le),Pe=ie(79906),We=ie(44383),Te=Object.defineProperty,je=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?Te(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(Qe)for(var ge of Qe(oe))ne.call(oe,ge)&&a(te,ge,oe[ge]);return te},x=(te,oe)=>je(te,gt(oe));const b=De.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"]};ot.Z=({callback:te,onCancel:oe})=>{const[ge,re]=(0,ae.useState)("python");function me(xe){re(z[xe][1])}function se(xe){te(xe)}return ae.createElement(Ze.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ae.createElement(Ze.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(De.default,{getPopupContainer:xe=>xe.parentNode,onChange:me},Object.keys(z).map(xe=>ae.createElement(b,{key:xe,value:xe},z[xe][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 me=(0,ae.useRef)(),[se,xe]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(se){let Oe=function(it){const st=it.getValue();oe&&oe(st)};return se.on("change",Oe),()=>{se.off("change",Oe)}}},[se,oe]),(0,ae.useEffect)(()=>{se&&se.setOption("mode",ge)},[se,ge]),(0,ae.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ae.useEffect)(()=>{if(me.current&&!se){const Oe=Ie().fromTextArea(me.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));xe(Oe)}},[me.current,se]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:me}))}},23469:function(we,ot,ie){"use strict";ie.d(ot,{Z:function(){return Rn}});var ae=ie(59301),De=ie(89780),Ze=ie.n(De),_e=ie(76374),Le=ie(79906),Ie=ie(6313),Pe=ie(25717),We=ie(99498),Te=ie(25419),je=ie(67549),gt=ie(25711),Qe=({value:ce="",className:Se,showTextOnly:ue,showLines:ke,style:at={}})=>{const et=(0,ae.useMemo)(()=>"",[ce]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:et}}))},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,Se,ue)=>Se in ce?ne(ce,Se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ce[Se]=ue,ee=(ce,Se)=>{for(var ue in Se||(Se={}))b.call(Se,ue)&&z(ce,ue,Se[ue]);if(x)for(var ue of x(Se))E.call(Se,ue)&&z(ce,ue,Se[ue]);return ce},te=(ce,Se)=>a(ce,y(Se));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:Se,icon:ue,actionName:ke,className:at="",children:et}){function Ot(){ce(ke)}return Je.createElement("a",{title:Se,className:at,onClick:Ot},Je.createElement("i",{className:`${ue}`}),et)}var re=({watch:ce,showNullButton:Se,showNullProgramButton:ue,onActionCallback:ke,fullScreen:at,insertTemp:et,hidetoolBar:Ot,extraUse:Pt})=>{const Gt=[...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&&Gt.map((Yt,Fn)=>Je.createElement("li",{key:Fn},Yt.actionName?Je.createElement(ge,te(ee({},Yt),{onActionCallback:ke})):Je.createElement("span",{className:"v-line"}))),Se?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,et&&Je.createElement("li",null,Je.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${et}`,onActionCallback:ke},Je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Pt&&Je.createElement("li",null,Pt),Je.createElement("li",{className:"btn-full-screen"},Je.createElement(ge,{icon:`${at?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:at?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ke})))},me=ie(50474),se=ie(78241),xe=ie(92832),Oe=ie(3113),it=Object.defineProperty,st=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,pt=Object.getOwnPropertySymbols,ut=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Dn=(ce,Se,ue)=>Se in ce?it(ce,Se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):ce[Se]=ue,pn=(ce,Se)=>{for(var ue in Se||(Se={}))ut.call(Se,ue)&&Dn(ce,ue,Se[ue]);if(pt)for(var ue of pt(Se))bt.call(Se,ue)&&Dn(ce,ue,Se[ue]);return ce},Ln=(ce,Se)=>st(ce,ft(Se));const yn={labelCol:{span:4},wrapperCol:{span:20}};var Qn=({callback:ce,onCancel:Se})=>{function ue(ke){ce(ke)}return ae.createElement(se.default,Ln(pn({},yn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ue,style:{width:500}}),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(xe.default,null)),ae.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(xe.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Oe.ZP,{type:"ghost",onClick:Se},"\u53D6\u6D88")))},Un=ie(1568),ye=ie(56701),Ge=ie(43418),Re=ie(95237),Ft=ie(12963),$e=ie(59301),ct=({callback:ce,onCancel:Se})=>{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 at=ue.toDataURL("image/png");return $e.createElement(Ge.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:at,visible:!0,title:String(Date.now())},onOk:et=>{ce({src:et.url})},onClose:Se})))},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 Se=1/0;ce.selection.each(function(ue){ue instanceof go.Link||(Se=Math.min(ue.position.x,Se))}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Se,ue.position.y))}),ce.commitTransaction("aligning left")},Ye.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var Se=-1/0;ce.selection.each(function(ue){if(!(ue instanceof go.Link)){var ke=ue.actualBounds.x+ue.actualBounds.width;Se=Math.max(ke,Se)}}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(Se-ue.actualBounds.width,ue.position.y))}),ce.commitTransaction("aligning right")},Ye.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var Se=1/0;ce.selection.each(function(ue){ue instanceof go.Link||(Se=Math.min(ue.position.y,Se))}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.position.x,Se))}),ce.commitTransaction("alignTop")},Ye.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var Se=-1/0;ce.selection.each(function(ue){if(!(ue instanceof go.Link)){var ke=ue.actualBounds.y+ue.actualBounds.height;Se=Math.max(ke,Se)}}),ce.selection.each(function(ue){ue instanceof go.Link||ue.move(new go.Point(ue.actualBounds.x,Se-ue.actualBounds.height))}),ce.commitTransaction("aligning bottom")},Ye.prototype.alignCenterX=function(){var ce=this.diagram,Se=ce.selection.first();if(Se){ce.startTransaction("aligning Center X");var ue=Se.actualBounds.x+Se.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,Se=ce.selection.first();if(Se){ce.startTransaction("aligning Center Y");var ue=Se.actualBounds.y+Se.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 Se=this.diagram;Se.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var ue=new Array;Se.selection.each(function(Pt){Pt instanceof go.Link||ue.push(Pt)});for(var ke=0;ke<ue.length-1;ke++){var at=ue[ke],et=at.actualBounds.y+at.actualBounds.height+ce,Ot=ue[ke+1];Ot.move(new go.Point(at.actualBounds.x,et))}Se.commitTransaction("align Column")},Ye.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var Se=this.diagram;Se.startTransaction("align Row");var ue=new Array;Se.selection.each(function(Pt){Pt instanceof go.Link||ue.push(Pt)});for(var ke=0;ke<ue.length-1;ke++){var at=ue[ke],et=at.actualBounds.x+at.actualBounds.width+ce,Ot=ue[ke+1];Ot.move(new go.Point(et,at.actualBounds.y))}Se.commitTransaction("align Row")},Ye.prototype.canRotate=function(ce){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<1)},Ye.prototype.rotate=function(ce){ce===void 0&&(ce=90);var Se=this.diagram;Se.startTransaction("rotate "+ce.toString());var Se=this.diagram;Se.selection.each(function(ue){ue instanceof go.Link||ue instanceof go.Group||(ue.angle+=ce)}),Se.commitTransaction("rotate "+ce.toString())},Ye.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var Se=new go.Map;ce.selection.each(function(ue){Se.set(ue.layer,0)}),Se.iteratorKeys.each(function(ue){var ke=0;ue.parts.each(function(at){if(!at.isSelected){var et=at.zOrder;isNaN(et)?at.zOrder=0:ke=Math.max(ke,et)}}),Se.set(ue,ke)}),ce.selection.each(function(ue){Ye._assignZOrder(ue,Se.get(ue.layer)+1)}),ce.commitTransaction("pullToFront")},Ye.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var Se=new go.Map;ce.selection.each(function(ue){Se.set(ue.layer,0)}),Se.iteratorKeys.each(function(ue){var ke=0;ue.parts.each(function(at){if(!at.isSelected){var et=at.zOrder;isNaN(et)?at.zOrder=0:ke=Math.min(ke,et)}}),Se.set(ue,ke)}),ce.selection.each(function(ue){Ye._assignZOrder(ue,Se.get(ue.layer)-1-Ye._findGroupDepth(ue))}),ce.commitTransaction("pushToBack")},Ye._assignZOrder=function(ce,Se,ue){ue===void 0&&(ue=ce),ce.layer===ue.layer&&(ce.zOrder=Se),ce instanceof go.Group&&ce.memberParts.each(function(ke){Ye._assignZOrder(ke,Se+1,ue)})},Ye._findGroupDepth=function(ce){if(ce instanceof go.Group){var Se=0;return ce.memberParts.each(function(ue){Se=Math.max(Se,Ye._findGroupDepth(ue))}),Se+1}else return 0},Ye.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var Se=ce.lastInput;if(Se.key==="Up"||Se.key==="Down"||Se.key==="Left"||Se.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(Se){ce.push(Se)}),this.diagram.parts.each(function(Se){ce.push(Se)}),ce},Ye.prototype._arrowKeyMove=function(){var ce=this.diagram,Se=ce.lastInput,ue=0,ke=0;if(Se.control||Se.meta)ue=1,ke=1;else if(ce.grid!==null){var at=ce.grid.gridCellSize;ke=at.width,ue=at.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(et){Se.key==="Up"?et.move(new go.Point(et.actualBounds.x,et.actualBounds.y-ue)):Se.key==="Down"?et.move(new go.Point(et.actualBounds.x,et.actualBounds.y+ue)):Se.key==="Left"?et.move(new go.Point(et.actualBounds.x-ke,et.actualBounds.y)):Se.key==="Right"&&et.move(new go.Point(et.actualBounds.x+ke,et.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},Ye.prototype._arrowKeySelect=function(){var ce=this.diagram,Se=ce.lastInput,ue=null;Se.key==="Up"?ue=this._findNearestPartTowards(270):Se.key==="Down"?ue=this._findNearestPartTowards(90):Se.key==="Left"?ue=this._findNearestPartTowards(180):Se.key==="Right"&&(ue=this._findNearestPartTowards(0)),ue!==null&&(Se.shift?ue.isSelected=!0:Se.control||Se.meta?ue.isSelected=!ue.isSelected:ce.select(ue))},Ye.prototype._findNearestPartTowards=function(ce){var Se=this.diagram.selection.first();if(Se===null)return null;for(var ue=Se.actualBounds.center,ke=this._getAllParts(),at=1/0,et=Se,Ot=0;Ot<ke.length;Ot++){var Pt=ke[Ot];if(Pt!==Se&&Pt.canSelect()){var Gt=Pt.actualBounds.center,Yt=ue.directionPoint(Gt),Fn=this._angleCloseness(Yt,ce);if(Fn<=45){var Ae=ue.distanceSquaredPoint(Gt);Ae*=1+Math.sin(Fn*Math.PI/180),Ae<at&&(at=Ae,et=Pt)}}}return et},Ye.prototype._angleCloseness=function(ce,Se){return Math.min(Math.abs(Se-ce),Math.min(Math.abs(Se+360-ce),Math.abs(Se-360-ce)))},Ye.prototype._arrowKeyTree=function(){var ce=this.diagram,Se=ce.selection.first();if(Se instanceof go.Node){var ue=ce.lastInput;if(ue.key==="Right"){if(!Se.isTreeLeaf)if(!Se.isTreeExpanded)ce.commandHandler.canExpandTree(Se)&&ce.commandHandler.expandTree(Se);else{var ke=this._sortTreeChildrenByY(Se).first();ke!==null&&ce.select(ke)}}else if(ue.key==="Left")if(!Se.isTreeLeaf&&Se.isTreeExpanded)ce.commandHandler.canCollapseTree(Se)&&ce.commandHandler.collapseTree(Se);else{var at=Se.findTreeParentNode();at!==null&&ce.select(at)}else if(ue.key==="Up"){var at=Se.findTreeParentNode();if(at!==null){var et=this._sortTreeChildrenByY(at),Ot=et.indexOf(Se);if(Ot>0){for(var Pt=et.elt(Ot-1);Pt!==null&&Pt.isTreeExpanded&&!Pt.isTreeLeaf;){var Gt=this._sortTreeChildrenByY(Pt);Pt=Gt.last()}Pt!==null&&ce.select(Pt)}else ce.select(at)}}else if(ue.key==="Down")if(Se.isTreeExpanded&&!Se.isTreeLeaf){var ke=this._sortTreeChildrenByY(Se).first();ke!==null&&ce.select(ke)}else for(;Se!==null;){var at=Se.findTreeParentNode();if(at===null)break;var et=this._sortTreeChildrenByY(at),Ot=et.indexOf(Se);if(Ot<et.length-1){ce.select(et.elt(Ot+1));break}else Se=at}var Yt=ce.selection.first();Yt!==null&&ce.scrollToRect(Yt.actualBounds)}},Ye.prototype._sortTreeChildrenByY=function(ce){var Se=new go.List().addAll(ce.findTreeChildrenNodes());return Se.sort(function(ue,ke){var at=ue.location,et=ke.location;return at.y<et.y?-1:at.y>et.y?1:at.x<et.x?-1:at.x>et.x?1:0}),Se},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 Et=Ye,nn=ie(37404),Rt=ie(43604),En=ie(70635),Tn={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},$t=ie(59301),Xn=(ce,Se,ue)=>new Promise((ke,at)=>{var et=Gt=>{try{Pt(ue.next(Gt))}catch(Yt){at(Yt)}},Ot=Gt=>{try{Pt(ue.throw(Gt))}catch(Yt){at(Yt)}},Pt=Gt=>Gt.done?ke(Gt.value):Promise.resolve(Gt.value).then(et,Ot);Pt((ue=ue.apply(ce,Se)).next())});function qn({onCancel:ce,callback:Se}){let ue=(0,ae.useRef)(),ke=(0,ae.useRef)(),at=(0,ae.useRef)(),et=(0,ae.useRef)(!1);const Ot=(0,ae.useRef)(!1),[Pt,Gt]=(0,ae.useState)(0);function Yt(){const Ae=de.bx.make,Ct={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:Ae(de.s_,"Grid",Ae(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ae(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ze=>{var Ke=ze.diagram.commandHandler.addTopLevelParts(ze.diagram.selection,!0);Ke||ze.diagram.currentTool.doCancel()},commandHandler:Ae(Et),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ze=>{var Ke=ze.subject;Ke.location=Ke.location.copy().snapToGridPoint(ze.diagram.grid.gridOrigin,ze.diagram.grid.gridCellSize),setTimeout(()=>{ze.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ze=>{var Ke=ze.subject;setTimeout(()=>{ze.diagram.commandHandler.editTextBlock()})},LinkRelinked:ze=>{var Ke=ze.parameter.part;Ke.invalidateConnectedLinks();var rt=ze.subject;ze.diagram.toolManager.linkingTool.isForwards?rt.toNode.invalidateConnectedLinks():rt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ue.current.nodeTemplate=Ae(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),Ae(de.bn,{name:"SHAPE",fill:Ct.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")),Ae(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ae(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=Ae("ToolTip",Ae(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Ae(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Ae(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function hn(ze,Ke){var rt=(Xe,Bt)=>{Xe.handled=!0,Xe.diagram.model.commit(xt=>{var lt=Bt.part.adornedPart,Wt=new de.E9().setRectSpot(lt.actualBounds,ze);Wt.subtract(lt.location),Wt.scale(2,2),Wt.x+=Math.sign(Wt.x)*130,Wt.y+=Math.sign(Wt.y)*130,Wt.add(lt.location),Wt.snapToGridPoint(Xe.diagram.grid.gridOrigin,Xe.diagram.grid.gridCellSize);var Zt=xt.copyNodeData(lt.data);xt.setGroupKeyForNodeData(Zt,xt.getGroupKeyForNodeData(lt.data)),xt.addNodeData(Zt);var ta={from:lt.key,to:xt.getKeyForNodeData(Zt)};xt.addLinkData(ta);var jn=Xe.diagram.findNodeForData(Zt);jn.location=Wt,Xe.diagram.select(jn),setTimeout(()=>{Xe.diagram.commandHandler.editTextBlock()},20)})};return Ae(de.bn,{figure:Ke,alignment:ze,alignmentFocus:ze.opposite(),width:ze.equals(de.z6.Top)||ze.equals(de.z6.Bottom)?25:18,height:ze.equals(de.z6.Top)||ze.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Ct.white,strokeWidth:4,mouseEnter:(Xe,Bt)=>Bt.fill="dodgerblue",mouseLeave:(Xe,Bt)=>Bt.fill="orange",isActionable:!0,click:rt,contextClick:rt})}function zn(ze){return Ae(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,rt)=>rt.fill="dodgerblue",mouseLeave:(Ke,rt)=>rt.fill="orange",click:(Ke,rt)=>{Ke.diagram.commandHandler.showContextMenu(rt.part.adornedPart)}},ze||{})}ue.current.nodeTemplate.selectionAdornmentTemplate=Ae(de.uz,"Spot",Ae(de.Vm,{padding:10}),hn(de.z6.Top,"TriangleUp"),hn(de.z6.Left,"TriangleLeft"),hn(de.z6.Right,"TriangleRight"),hn(de.z6.Bottom,"TriangleDown"),zn({alignment:new de.z6(.75,0)}));function en(ze,Ke){return(rt,Xe)=>{rt.handled=!0,rt.diagram.model.commit(Bt=>{Bt.set(Xe.part.adornedPart.data,ze,Ke)})}}function le(ze,Ke){return Ke||(Ke="color"),Ae(de.bn,{width:16,height:16,stroke:"lightgray",fill:ze,margin:1,background:"transparent",mouseEnter:(rt,Xe)=>Xe.stroke="dodgerblue",mouseLeave:(rt,Xe)=>Xe.stroke="lightgray",click:en(Ke,ze),contextClick:en(Ke,ze)})}function ve(){return[Ae("ContextMenuButton",Ae(de.s_,"Horizontal",le(Ct.white,"fill"),le(Ct.beige,"fill"),le(Ct.extralightblue,"fill"),le(Ct.extralightred,"fill"))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",le(Ct.lightgray,"fill"),le(Ct.lightgreen,"fill"),le(Ct.lightblue,"fill"),le(Ct.lightred,"fill")))]}function pe(){return[Ae("ContextMenuButton",Ae(de.s_,"Horizontal",le(Ct.black),le(Ct.green),le(Ct.blue),le(Ct.red))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",le(Ct.white),le(Ct.magenta),le(Ct.purple),le(Ct.orange)))]}function be(ze,Ke){return Ke||(Ke="thickness"),Ae(de.bn,"LineH",{width:16,height:16,strokeWidth:ze,margin:1,background:"transparent",mouseEnter:(rt,Xe)=>Xe.background="dodgerblue",mouseLeave:(rt,Xe)=>Xe.background="transparent",click:en(Ke,ze),contextClick:en(Ke,ze)})}function Ce(ze,Ke){return Ke||(Ke="dash"),Ae(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ze,margin:1,background:"transparent",mouseEnter:(rt,Xe)=>Xe.background="dodgerblue",mouseLeave:(rt,Xe)=>Xe.background="transparent",click:en(Ke,ze),contextClick:en(Ke,ze)})}function Ne(){return[Ae("ContextMenuButton",Ae(de.s_,"Horizontal",be(1),be(2),be(3),be(4))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ce(null),Ce([2,4]),Ce([4,4])))]}function Ee(ze,Ke){return Ke||(Ke="figure"),Ae(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ze,margin:1,background:"transparent",mouseEnter:(rt,Xe)=>Xe.fill="dodgerblue",mouseLeave:(rt,Xe)=>Xe.fill="lightgray",click:en(Ke,ze),contextClick:en(Ke,ze)})}ue.current.nodeTemplate.contextMenu=Ae("ContextMenu",Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ee("Rectangle"),Ee("RoundedRectangle"),Ee("Ellipse"),Ee("Diamond"))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ee("Parallelogram2"),Ee("ManualOperation"),Ee("Procedure"),Ee("Cylinder1"))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ee("Terminator"),Ee("CreateRequest"),Ee("Document"),Ee("TriangleDown"))),ve(),pe(),Ne()),ue.current.groupTemplate=Ae(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ze,Ke)=>{var rt=Ke.addMembers(Ke.diagram.selection,!0);rt||Ke.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Ae(de.s_,"Auto",{name:"BODY"},Ae(de.bn,{parameter1:10,fill:Ct.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")),Ae(de.Vm,{background:"transparent",margin:20})),Ae(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=Ae(de.uz,"Spot",Ae(de.s_,"Auto",Ae(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ae(de.Vm,{margin:1.5})),zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ue.current.groupTemplate.contextMenu=Ae("ContextMenu",ve(),pe(),Ne()),ue.current.linkTemplate=Ae(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",ze=>ze>=1?10:0),new de.KX("toShortLength","dir",ze=>ze>=1?10:0),new de.KX("points").makeTwoWay(),Ae(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ae(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",ze=>ze===1)),Ae(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",ze=>ze>=1),new de.KX("width","thickness",ze=>7+3*ze),new de.KX("height","thickness",ze=>7+3*ze),new de.KX("segmentOffset","thickness",ze=>new de.E9(-15,4+1.5*ze))),Ae(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",ze=>ze===2),new de.KX("width","thickness",ze=>7+3*ze),new de.KX("height","thickness",ze=>7+3*ze),new de.KX("segmentOffset","thickness",ze=>new de.E9(-15,4+1.5*ze))),Ae(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=Ae(de.uz,Ae(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Be(2)},new de.KX("pathPattern","thickness",Be)),zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Be(ze){return Ae(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ze+4).toString()+" H3"})}function dt(ze){var Ke="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ze===0?Ke="M0 0 M16 16 M0 8 L16 8":ze===2&&(Ke="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ae(de.bn,{geometryString:Ke,margin:2,background:"transparent",mouseEnter:(rt,Xe)=>Xe.background="dodgerblue",mouseLeave:(rt,Xe)=>Xe.background="transparent",click:en("dir",ze),contextClick:en("dir",ze)})}function mt(ze){var Ke=(rt,Xe)=>{rt.handled=!0,rt.diagram.model.commit(Bt=>{var xt=Xe.part.adornedPart;Bt.set(xt.data,ze?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(ze?xt.toNode:xt.fromNode).invalidateConnectedLinks()})};return Ae(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(rt,Xe)=>Xe.background="dodgerblue",mouseLeave:(rt,Xe)=>Xe.background="transparent",click:Ke,contextClick:Ke})}function fe(ze,Ke){var rt=0,Xe=de.z6.RightSide;ze.equals(de.z6.Top)?(rt=270,Xe=de.z6.TopSide):ze.equals(de.z6.Left)?(rt=180,Xe=de.z6.LeftSide):ze.equals(de.z6.Bottom)&&(rt=90,Xe=de.z6.BottomSide),Ke||(rt-=180);var Bt=(xt,lt)=>{xt.handled=!0,xt.diagram.model.commit(Wt=>{var Zt=lt.part.adornedPart;Wt.set(Zt.data,Ke?"toSpot":"fromSpot",de.z6.stringify(Xe)),(Ke?Zt.toNode:Zt.fromNode).invalidateConnectedLinks()})};return Ae(de.bn,{alignment:ze,alignmentFocus:ze.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:rt,background:"transparent",mouseEnter:(xt,lt)=>lt.background="dodgerblue",mouseLeave:(xt,lt)=>lt.background="transparent",click:Bt,contextClick:Bt})}ue.current.linkTemplate.contextMenu=Ae("ContextMenu",pe(),Ne(),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",dt(0),dt(1),dt(2))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ae(de.s_,"Spot",mt(!1),fe(de.z6.Top,!1),fe(de.z6.Left,!1),fe(de.z6.Right,!1),fe(de.z6.Bottom,!1)),Ae(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},mt(!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 zt=["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(ze){return console.log("shapeName:",ze),zt.indexOf(ze)>=0}var tn=new de.YI(at.current,{maxSelectionCount:1,linkTemplate:Ae(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Ae(de.uz,"Link",{locationSpot:de.z6.Center},Ae(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ae(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Ae(de.bn,{isPanelMain:!0,strokeWidth:2}),Ae(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(ze=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ze.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ue.current.addDiagramListener("TextEdited",function(ze){var Ke;const rt=ze.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(rt.data,"text","\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}),tn.nodeTemplate=Ae(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Ae(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")),Ae(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=Ae(de.s_,"Grid",Ae(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ae(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 Fn=()=>Xn(this,null,function*(){var Ae=ue.current.makeImage();const Ct=yield(0,En.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ae.src}});Se({src:Ct.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{Yt()},500),Gt(Pt+1),()=>{ue.current=null}),[]),$t.createElement("div",{ref:Ot,className:et.current?`${Tn.maxH60} body-overflow-initial`:"body-overflow-initial"},$t.createElement(Ge.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Pt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:$t.createElement(Re.Z,null,$t.createElement(Rt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),$t.createElement(Rt.Z,{onClick:()=>{var Ae,Ct,hn=ue.current.selection.first();if(et.current=!et.current,document.activeElement&&hn){let zn=(Ct=(Ae=document.activeElement)==null?void 0:Ae.value)==null?void 0:Ct.trim();typeof zn=="string"&&ue.current.model.commit(function(en){en.set(hn.data,"text",zn||"\u672A\u547D\u540D"),ue.current.commandHandler.stopCommand()},"increment")}Gt(Pt+1)}},$t.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},$t.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Tn.flowChartWrp},$t.createElement("div",{style:{display:"flex",height:"100%"}},$t.createElement("div",{style:{width:"300px",height:"100%"}},$t.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),$t.createElement("div",{style:{height:"calc(100% - 50px)"},className:Tn.myPaletteDiv,ref:at})),$t.createElement("div",{style:{flex:1,position:"relative"}},$t.createElement("div",{ref:ke,style:{height:"80vh"}}))),$t.createElement("div",{className:"tr"},$t.createElement(Oe.ZP,{size:"large",onClick:Fn,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 qt=({callback:ce,onCancel:Se})=>{function ue(ke){ce(ke)}return ae.createElement(se.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(se.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(se.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(se.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(Oe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Oe.ZP,{type:"ghost",onClick:Se},"\u53D6\u6D88")))},Nt=ie(78673),ea=ie(98598),aa=ie.n(ea),fa=(0,ae.forwardRef)(({use3d:ce,width:Se,height:ue,callback:ke,showSaveButton:at},et)=>{const Ot=(0,ae.useRef)(),Pt=(0,ae.useRef)(),[Gt,Yt]=(0,ae.useState)(!1),Fn=(0,ae.useRef)({id:Ot,appName:"graphing",width:Se||1e3,height:ue||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Pt.current=new(aa())(Fn.current,!0),window.onload=function(){Pt.current.inject("applet_container")}},[]);const Ae=()=>{var Ct=window.ggbApplet.getPNGBase64(1,!0,72);return ke&&ke(Ct),Ct};return(0,ae.useEffect)(()=>{Fn.current.appName=Gt?"3D":"graphing",Pt.current.inject("applet_container")},[Gt]),(0,ae.useEffect)(()=>{Yt(ce)},[ce]),(0,ae.useImperativeHandle)(et,()=>({getImgData:Ae})),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(Rt.Z,{flex:1},ae.createElement(Nt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Gt,onChange:Ct=>Yt(Ct)})),ae.createElement(Rt.Z,null,ae.createElement(Oe.ZP,{size:"large",onClick:Ae,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),In=ie(75890),he=ie(1012),Fe=ie(8591);const Me="link",Ue="upload-image",qe="add-flowchart",ht="draw-image",wt="add-flowchart",St="code-block",vt="add-table",Tt="------------",Mt={default:Tt,left:`:${Tt}`,center:`:${Tt}:`,right:`${Tt}:`};var It=ie(91300),an=(ce,Se,ue)=>new Promise((ke,at)=>{var et=Gt=>{try{Pt(ue.next(Gt))}catch(Yt){at(Yt)}},Ot=Gt=>{try{Pt(ue.throw(Gt))}catch(Yt){at(Yt)}},Pt=Gt=>Gt.done?ke(Gt.value):Promise.resolve(Gt.value).then(et,Ot);Pt((ue=ue.apply(ce,Se)).next())});function un(){}let cn=0;const Vt=1e4,jt="\u2581",wn="@\u2581\u2581@",Sn="@\u2581@",Pn=`
|
|
**\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 Gn(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const _n=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Cn={[_n+"-B"]:"bold",[_n+"-I"]:"italic"},Yn={[Me]:"\u6DFB\u52A0\u94FE\u63A5",[St]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Ue]:"\u6DFB\u52A0\u56FE\u7247",[ht]:"\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 Rn=({defaultValue:ce="",onChange:Se,width:ue="100%",height:ke=400,miniToolbar:at=!1,isFocus:et=!1,watch:Ot,insertTemp:Pt,mode:Gt="markdown",id:Yt="markdown-editor-id",showResizeBar:Fn=!1,noStorage:Ae=!1,showNullButton:Ct=!1,showNullProgramButton:hn=!1,hidetoolBar:zn=!1,fullScreen:en=!1,onBlur:le,onCMBeforeChange:ve,onFullScreen:pe,className:be="",disablePaste:Ce=!1,disabled:Ne=!1,disabledFill:Ee=!1,placeholder:Be="",values:dt="",extraUse:mt})=>{const[fe,At]=(0,ae.useState)(null),[zt,Kt]=(0,ae.useState)(ce),[tn,ze]=(0,ae.useState)(Ot),[Ke,rt]=(0,ae.useState)(en),[Xe,Bt]=(0,ae.useState)(""),[xt,lt]=(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,on]=(0,ae.useState)(0),Zn=(0,ae.useRef)(),oa=(0,ae.useRef)(),ga=(0,ae.useRef)(),Jn=(0,ae.useRef)(),Wn=()=>an(void 0,null,function*(){var nt;const He=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Hn.current}});(nt=He==null?void 0:He.attachments)!=null&&nt.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 nt=window.scrollY||window.pageYOffset;Kt(dt),fe==null||fe.setValue(dt),window.scrollTo(0,nt)},[dt]),(0,ae.useEffect)(()=>{pe==null||pe(Ke)},[Ke]),(0,ae.useEffect)(()=>{if(Zn.current){let nt=function(Ve,tt){var _t;if(Ce){tt.preventDefault();return}const dn=tt.clipboardData;if(dn){const vn=dn.types.toString(),sn=dn.items;if(vn==="Files"||dn.types.indexOf("Files")>-1){if(tt.preventDefault(),Gt=="stex")return;try{let bn=sn[1];((_t=sn[0])==null?void 0:_t.kind)==="file"&&(bn=sn[0]);const Bn=bn.getAsFile(),da=Bn.name.split(".").pop();(0,ye.I)(Bn,An=>{var yt,kt,Qt;An.id?((yt=Bn==null?void 0:Bn.type)==null?void 0:yt.indexOf("image"))>-1?He.replaceSelection(``):((kt=Bn==null?void 0:Bn.type)==null?void 0:kt.indexOf("video"))>-1?He.replaceSelection(`<video width="100%" controls src="/api/attachments/${An.id}"></video>`):((Qt=Bn==null?void 0:Bn.type)==null?void 0:Qt.indexOf("pdf"))>-1?He.replaceSelection(`<a href="/api/attachments/${An.id}?type=${Bn.type}&disposition=inline" target="_blank">${Bn.name}</a>`):Ut.includes(da)?He.replaceSelection(`<a href="/api/attachments/${An.id}?type=office&disposition=inline" target="_blank">${Bn.name}</a>`):He.replaceSelection(`[${Bn.name}](/api/attachments/${An.id}?type=${An.content_type})`):(An==null?void 0:An.status)===401&&(Fe.ZP.warning((An==null?void 0:An.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(bn){Fe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const He=Ze().fromTextArea(Zn.current,{mode:Gt,lineNumbers:!at,lineWrapping:!0,value:ce,autoCloseTags:!hn,autoCloseBrackets:!0});return He.on("keyup",function(Ve,tt){tt.keyCode===8&&(Ve.getValue()==""?He.setOption("placeholder",Be):He.setOption("placeholder",null))}),He.on("keydown",function(Ve,tt){if(tt.keyCode===8){var _t=Lt(Ve);_t&&tt.preventDefault()}}),et&&He.focus(),He.on("paste",nt),He.on("dragleave",function(Ve,tt){oa.current.classList.remove("mouse-hover-md")}),Ne&&He.on("beforeChange",function(Ve,tt){(tt.origin==="paste"||tt.origin==="+input")&&tt.cancel()}),At(He),()=>{He.off("paste",nt)}}},[]);const Pa=(0,ae.useCallback)(()=>{if(oa.current)try{}catch(nt){console.log(nt,"---- to set md editor body height")}},[Wt,oa,Ke]);(0,ae.useEffect)(()=>{function nt(){let He=new _e.Z(Ve=>{for(let tt of Ve)(tt.target.offsetHeight>0||tt.target.offsetWidth>0)&&(Pa(),fe.setSize("100%","100%"),fe.refresh())});return He.observe(Zn.current.parentElement),He}if(fe){const He=nt();return()=>{var Ve,tt;(Ve=Zn.current)!=null&&Ve.parentElement&&He.unobserve((tt=Zn.current)==null?void 0:tt.parentElement)}}},[fe,Pa]),(0,ae.useEffect)(()=>{if(fe){let nt=[];for(const[He,Ve]of Object.entries(Cn)){let tt={[He]:()=>{gn(Ve)}};nt.push(tt),fe.addKeyMap(tt)}return ca.current=setInterval(()=>{ua.current&&Wn()},4e3),()=>{clearInterval(ca.current);for(let He of nt)fe.removeKeyMap(He)}}},[fe]),(0,ae.useEffect)(()=>{en!==Ke&&rt(en)},[en]),(0,It.Z)(()=>{if(!Ae&&xt>0){let nt=new Date().getTime(),He=window.sessionStorage.getItem(Yt);nt>=xt+Vt&&(!He||He!==zt)&&(window.sessionStorage.setItem(Yt,zt),jn(!0))}},Vt),(0,ae.useEffect)(()=>{ze(Ot)},[fe,Ot]),(0,ae.useEffect)(()=>{fe&&et&&fe.focus()},[fe,et]),(0,ae.useEffect)(()=>{if(tn&&fe){let nt=function(Ve){let tt=Ve.target;if(Jn.current){let _t=tt.scrollTop/tt.scrollHeight;Jn.current.scrollTop=Jn.current.scrollHeight*_t}};const He=fe.getScrollerElement();return He.addEventListener("scroll",nt),()=>{He.removeEventListener("scroll",nt)}}},[fe,tn]),(0,ae.useEffect)(()=>{if(fe&&ve){let nt=function(He,Ve){ve(He,Ve)};return fe.on("beforeChange",nt),()=>{fe.off("beforeChange",nt)}}},[fe,ve]),(0,ae.useEffect)(()=>{if(fe&&le){let nt=function(){le(fe.getValue())};return fe.on("blur",nt),()=>{fe.off("blur",nt)}}},[fe,le]);function Lt(nt,He){var Ve=nt.getDoc(),tt=Ve.getCursor(),_t=Ve.getLine(tt.line),dn=_t.charAt(tt.ch-1),vn=_t.lastIndexOf("@\u2581@",tt.ch),sn=_t.lastIndexOf("@\u2581\u2581@",tt.ch),bn=vn>sn?vn:sn,Bn=vn>sn?3:4;if(wn.indexOf(dn)===-1)return null;if(console.log("change1:",He,nt,_t,tt,bn,vn,sn,dn),bn>=0&&tt.ch-bn<5){var da=bn+Bn;return Ve.replaceRange("",{line:tt.line,ch:bn},{line:tt.line,ch:da}),{line:tt.line,ch:da}}return null}(0,ae.useEffect)(()=>{if(fe){let nt=function(He,Ve){const tt=He.getValue();Kt(tt),lt(new Date().getTime()),He.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Se&&(hn?Se(tt,rn(tt)):Se(tt))};return fe.on("change",nt),()=>{fe.off("change",nt)}}},[fe,Se]),(0,ae.useEffect)(()=>{if(fe)if(ce==null)fe.setValue(""),Kt("");else{const nt=window.scrollY||window.pageYOffset;ce!==fe.getValue()&&(fe.setValue(ce),Kt(ce),fe.setCursor(Ne?1:fe.lineCount(),0),window.scrollTo(0,nt))}},[fe,ce]);const gn=(0,ae.useCallback)(nt=>{const He=fe.getCursor(),Ve=fe.getSelection();let tt=Ve.split(`
|
|
`);switch(nt){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(tt.map(_t=>_t===""?"":`- ${_t}`).join(`
|
|
`)),fe.focus();case"list-ol":return Ve===""?fe.replaceSelection("1. "+Ve):fe.replaceSelection(tt.map((_t,dn)=>_t===""?"":`${dn+1}. ${_t}`).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(Sn),fe.focus();case"add-multiple":return Ve===""&&fe.setCursor(He.line,He.ch),fe.replaceSelection(wn),fe.focus();case"inster-template-1":return Ve===""&&fe.setCursor(He.line,He.ch),fe.replaceSelection(Pn),fe.focus();case"eraser":return fe.setValue(""),fe.focus();case"trigger-watch":return ze(!tn),fe.focus();case"trigger-full-screen":return rt(!Ke),fe.focus();case Me:Bt(Me);return;case St:Bt(St);return;case Ue:Bt(Ue);return;case ht:Bt(ht);return;case"maths-latex":Bt("maths-latex");return;case qe:Bt(qe);return;case vt:Bt(vt);return;default:throw new Error}},[fe,tn,Ke]),mn=(0,ae.useCallback)((nt,He)=>{var Ve,tt,_t,dn,vn,sn;switch(Bt(""),Xe){case Me:const{title:yt,link:kt}=nt;return fe.replaceSelection(`[${yt}](${kt})`),fe.focus();case St:const{language:Qt,content:Dt}=nt;return fe.replaceSelection(["```"+Qt,Dt,"```"].join(`
|
|
`)),fe.focus();case"maths-latex":for(var bn=atob(nt),Bn=new Uint8Array(bn.length),da=0;da<bn.length;da++)Bn[da]=bn.charCodeAt(da);var An=new Blob([Bn],{type:"image/png"});(0,ye.I)(An,ma=>{ma.id?fe.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":fe.replaceSelection("`$$"+nt+"$$`");break;case Ue:case ht:case wt:const{src:Ht,alt:xn}=nt,fn=He,ha=(_t=(tt=(Ve=fn==null?void 0:fn.name)==null?void 0:Ve.split("."))==null?void 0:tt.pop)==null?void 0:_t.call(tt);return((dn=fn==null?void 0:fn.type)==null?void 0:dn.indexOf("image"))>-1||!(fn!=null&&fn.type)?xn?fe.replaceSelection(``):fe.replaceSelection(``):((vn=fn==null?void 0:fn.type)==null?void 0:vn.indexOf("video"))>-1?fe.replaceSelection(`<video width="100%" controls src="${Ht}"></video>`):((sn=fn==null?void 0:fn.type)==null?void 0:sn.indexOf("pdf"))>-1?fe.replaceSelection(`<a href="${Ht}?type=${fn.type}&disposition=inline" target="_blank">${fn.name}</a>`):Ut.includes(ha)?fe.replaceSelection(`<a href="${Ht}?type=office&disposition=inline" target="_blank">${fn.name}</a>`):fe.replaceSelection(`[${fn.name}](${Ht})`),fe.focus();case vt:const{row:sa,col:Fa,align:Ga}=nt;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]),Nn=(0,ae.useMemo)(()=>{switch(Xe){case Me:return ae.createElement(Qn,{callback:mn,onCancel:Mn});case St:return ae.createElement(Un.Z,{callback:mn,onCancel:Mn});case Ue:return ae.createElement(ye.Z,{callback:mn,onCancel:Mn});case qe:return ae.createElement($n,{callback:mn,onCancel:Mn});case vt:return ae.createElement(qt,{callback:mn,onCancel:Mn});case"maths-latex":return ae.createElement(fa,{showSaveButton:!0,callback:mn});case"inline-latex":return ae.createElement(In.Z,{showSaveButton:!0,callback:mn});default:return null}},[Xe]);function Mn(){Bt("")}(0,ae.useEffect)(()=>{if(ga.current){let nt=function(vn){_t=!0,dn=vn.pageY},He=function(){_t=!1},Ve=function(vn){if(_t){let sn=vn.pageY-dn;sn<0&&(sn=0),sn>300&&(sn=300);let bn=ke+sn+"px";Zt(bn)}},tt=ga.current,_t=!1,dn=0;return tt.addEventListener("mousedown",nt),document.addEventListener("mousemove",Ve),document.addEventListener("mouseup",He),()=>{tt.removeEventListener("mousedown",nt),document.removeEventListener("mousemove",Ve),document.removeEventListener("mouseup",He)}}},[fe,ga]),(0,ae.useEffect)(()=>{Zt(ke)},[ke]);const na=Gn(ue),va=Gn(Wt),pa={width:na,height:va},ln=(0,ae.useMemo)(()=>{if(xt){let nt=new Date(xt),He=nt.getHours(),Ve=nt.getMinutes(),tt=nt.getSeconds();return He=He<10?"0"+He:He,Ve=Ve<10?"0"+Ve:Ve,tt=tt<10?"0"+tt:tt,`${He}:${Ve}:${tt}`}return 0},[xt]),rn=nt=>{const He=[];if(hn){let Ve=-1;nt=nt.replace(/(@▁▁@|@▁@)/g,function(tt,_t,dn){He.push({multiLine:tt!==Sn})})}return He};function ia(){window.sessionStorage.removeItem(Yt),jn(!1),lt(0)}function La(){jn(!1),lt(0),fe.setValue(window.sessionStorage.getItem(Yt))}(0,ae.useEffect)(()=>{Yn[Xe]&&Xe!==ht&&Xe!==qe&&setTimeout(()=>{const nt=document.getElementsByClassName("markdown-popup-form")[0],He=window.innerWidth/2-nt.offsetWidth/2,Ve=window.innerHeight/2-nt.offsetHeight/2;ra(He),on(Ve)},0)},[Xe]);const ya=nt=>{nt.preventDefault();const He=nt.clientX-Sa,Ve=nt.clientY-kn;document.body.onmousemove=tt=>{let _t=tt.clientX-He,dn=tt.clientY-Ve;const vn=document.getElementsByClassName("markdown-popup-form")[0],sn=window.innerWidth-vn.offsetWidth,bn=window.innerHeight-vn.offsetHeight;_t=Math.max(0,Math.min(_t,sn)),dn=Math.max(0,Math.min(dn,bn)),wa(tt.clientX,tt.clientY,He,Ve)&&(ra(_t),on(dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(nt,He,Ve,tt)=>{const _t=document.body.clientHeight,dn=document.body.clientWidth;return nt<20&&Ve>nt||nt>dn-20&&Ve<nt||He<20&&tt>He||He>_t-20&&tt<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} ${tn?"on-preview":""} ${at?"mini":""} ${Ke?"full-screen":""}`,style:pa},ae.createElement(re,{insertTemp:Pt,watch:tn,fullScreen:Ke,showNullButton:Ct,showNullProgramButton:hn,onActionCallback:gn,hidetoolBar:zn,extraUse:mt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Zn,placeholder:Be})),tn?ae.createElement("div",{ref:Jn,className:"preview-container"},Gt==="stex"&&ae.createElement(Qe,{value:zt}),Gt!=="stex"&&ae.createElement(gt.Z,{disabledFill:Ee,showProgramFill:hn,value:zt})):null))),Fn?ae.createElement("a",{ref:ga,className:"editor-resize"}):null,Xe===ht&&ae.createElement(ct,{callback:mn,onCancel:Mn}),Xe===qe&&ae.createElement($n,{callback:mn,onCancel:Mn}),ae.createElement(me.Z,null,Yn[Xe]&&Xe!==ht&&Xe!==qe?ae.createElement(Ge.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:Mn,footer:null,destroyOnClose:!0,width:Xe===qe?"1200px":null,height:Xe===qe?"80vh":null,className:"markdown-popup-form"},Nn):null))}},56701:function(we,ot,ie){"use strict";ie.d(ot,{Z:function(){return ee},I:function(){return oe}});var ae=ie(78241),De=ie(8591),Ze=ie(92832),_e=ie(3113),Le=ie(58788),Ie=ie(59301),Pe=ie(2119),We=ie(59301),Te=Object.defineProperty,je=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,Je=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(ge,re,me)=>re in ge?Te(ge,re,{enumerable:!0,configurable:!0,writable:!0,value:me}):ge[re]=me,y=(ge,re)=>{for(var me in re||(re={}))Je.call(re,me)&&a(ge,me,re[me]);if(Qe)for(var me of Qe(re))ne.call(re,me)&&a(ge,me,re[me]);return ge},x=(ge,re)=>je(ge,gt(re));const{useForm:b}=ae.default,E={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:ge,onCancel:re})=>{const[me]=b();let se=(0,Ie.useRef)();function xe(st){ge(st,se.current)}function Oe(st,ft){if(st.status===-1){De.ZP.error(st.message);return}me.setFieldsValue({src:`/api/attachments/${st.id}`,type:ft.type})}function it(st){let ft=st.target.files[0];se.current=ft,oe(ft,Oe)}return We.createElement(ae.default,x(y({form:me},z),{className:"upload-image-panel",onFinish:xe,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:E})),We.createElement(te,{onFileChange:it}))),We.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},We.createElement(Ze.default,{style:{width:264}})),We.createElement(ae.default.Item,{style:{textAlign:"right"}},We.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(_e.ZP,{type:"default",onClick:re},"\u53D6\u6D88")))};function te({onFileChange:ge}){return We.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",We.createElement("input",{type:"file",onChange:ge}))}function oe(ge,re){if(!ge)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Pe.bg)())throw De.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let me=new FormData;me.append("editormd-image-file",ge),me.append("file_param_name","editormd-image-file"),me.append("byxhr","true");var se=new window.XMLHttpRequest;se.withCredentials=!0,se.addEventListener("load",function(xe){re(JSON.parse(xe.target.responseText),ge)},!1),se.addEventListener("error",function(xe){console.error(xe)},!1),se.open("POST",`${Le.KI}/api/attachments.json`),se.send(me)}},50474:function(we,ot,ie){"use strict";ie.d(ot,{Z:function(){return Ze}});var ae=ie(59301),De=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,De.createPortal)(Le,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},91300:function(we,ot,ie){"use strict";ie.d(ot,{Z:function(){return De}});var ae=ie(59301);function De(Ze,_e){const Le=(0,ae.useRef)();(0,ae.useEffect)(()=>{Le.current=Ze}),(0,ae.useEffect)(()=>{function Ie(){Le.current()}if(_e!==null){let Pe=setInterval(Ie,_e);return()=>clearInterval(Pe)}},[_e])}},4883:function(we,ot,ie){"use strict";ie.r(ot),ie.d(ot,{default:function(){return re}});var ae=ie(59301),De=ie(23469),Ze=ie(8591),_e=ie(92832),Le=ie(3113),Ie=ie(70635),Pe=(me,se,xe)=>new Promise((Oe,it)=>{var st=ut=>{try{pt(xe.next(ut))}catch(bt){it(bt)}},ft=ut=>{try{pt(xe.throw(ut))}catch(bt){it(bt)}},pt=ut=>ut.done?Oe(ut.value):Promise.resolve(ut.value).then(st,ft);pt((xe=xe.apply(me,se)).next())});function We({setIscreate:me,init:se,UpdateItem:xe}){const[Oe,it]=(0,ae.useState)(""),[st,ft]=(0,ae.useState)("");(0,ae.useEffect)(()=>{xe&&(it(xe&&xe.name),ft(xe&&xe.description))},[xe]);function pt(){return Pe(this,null,function*(){if(!Oe){Ze.ZP.info("\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}if(!st){Ze.ZP.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A");return}if(xe){ut();return}(yield(0,Ie.ZP)("/api/hpc_courses.json",{method:"post",body:{name:Oe,description:st,container_type:window.location.pathname.split("/")[1]}}))&&(Ze.ZP.info("\u521B\u5EFA\u6210\u529F"),me(!1),se("add"))})}function ut(){return Pe(this,null,function*(){(yield(0,Ie.ZP)(`/api/hpc_courses/${xe.id}.json`,{method:"put",body:{name:Oe,description:st,container_type:window.location.pathname.split("/")[1]}}))&&(Ze.ZP.info("\u7F16\u8F91\u6210\u529F"),me(!1),se(""))})}return ae.createElement("div",null,ae.createElement(_e.default,{style:{marginBottom:"20px"},placeholder:"\u8BF7\u8F93\u5165\u6807\u9898",value:Oe,maxLength:60,addonAfter:String(Oe.length)+"/60",onChange:bt=>it(bt.target.value)}),ae.createElement(De.Z,{id:"courseContentMD",defaultValue:st,onChange:bt=>ft(bt)}),ae.createElement("div",{className:"clearfix mt30 mb30"},ae.createElement(Le.ZP,{type:"primary",onClick:()=>pt(),className:"defalutSubmitbtn fl mr20"},"\u63D0\u4EA4"),ae.createElement("a",{className:"defalutCancelbtn fl",onClick:()=>me(!1)},"\u53D6\u6D88")))}var Te=We,je=ie(25711),gt=(me,se,xe)=>new Promise((Oe,it)=>{var st=ut=>{try{pt(xe.next(ut))}catch(bt){it(bt)}},ft=ut=>{try{pt(xe.throw(ut))}catch(bt){it(bt)}},pt=ut=>ut.done?Oe(ut.value):Promise.resolve(ut.value).then(st,ft);pt((xe=xe.apply(me,se)).next())});function Qe({CourseItem:me,userId:se,init:xe,ItemUpdate:Oe,setSee:it,UserInfo:st}){function ft(){return gt(this,null,function*(){(yield(0,Ie.ZP)(`/api/hpc_courses/${me.id}.json`,{method:"delete"}))&&(Ze.ZP.info("\u5220\u9664\u6210\u529F"),xe("delete"),it(!1))})}function pt(){Oe(me)}return ae.createElement("div",null,se===299635||se===301458||st!=null&&st.admin||st!=null&&st.business?ae.createElement("div",{style:{textAlign:"right"}},ae.createElement(Le.ZP,{onClick:()=>pt()},"\u7F16\u8F91"),ae.createElement(Le.ZP,{onClick:()=>ft(),style:{marginLeft:"30px"}},"\u5220\u9664")):null,ae.createElement("h1",null,me==null?void 0:me.name),ae.createElement(je.Z,{value:me==null?void 0:me.description}))}var Je=Qe,ne=ie(54580),a=ie(10148),y=ie(42203),x=Object.defineProperty,b=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ee=(me,se,xe)=>se in me?x(me,se,{enumerable:!0,configurable:!0,writable:!0,value:xe}):me[se]=xe,te=(me,se)=>{for(var xe in se||(se={}))E.call(se,xe)&&ee(me,xe,se[xe]);if(b)for(var xe of b(se))z.call(se,xe)&&ee(me,xe,se[xe]);return me},oe=(me,se,xe)=>new Promise((Oe,it)=>{var st=ut=>{try{pt(xe.next(ut))}catch(bt){it(bt)}},ft=ut=>{try{pt(xe.throw(ut))}catch(bt){it(bt)}},pt=ut=>ut.done?Oe(ut.value):Promise.resolve(ut.value).then(st,ft);pt((xe=xe.apply(me,se)).next())});function ge({user:me,dispatch:se}){var xe,Oe,it,st,ft,pt,ut,bt,Dn;const[pn,Ln]=(0,ae.useState)(1),[yn,Qn]=(0,ae.useState)(100),[Un,ye]=(0,ae.useState)([]),[Ge,Re]=(0,ae.useState)(!1),[Ft,$e]=(0,ae.useState)(!1),[ct,de]=(0,ae.useState)(""),[Ye,Et]=(0,ae.useState)(""),[nn,Rt]=(0,ae.useState)("");let{itemname:En}=(0,y.useParams)();const[Tn,$t]=(0,ae.useState)("");(0,ae.useEffect)(()=>{se({type:"globalSetting/headerToggle",payload:!1}),pn&&Xn("")},[pn]);function Xn(Xt){return oe(this,null,function*(){var Jt,qt;const Nt=yield(0,Ie.ZP)("/api/hpc_courses.json",{method:"get",params:{page:pn,per_page:yn,container_type:window.location.pathname.split("/")[1]}});if(Nt){let ea=Nt.data.hpc_courses.length;if(ye(Nt.data.hpc_courses),Rt(Nt.data.file_url),Et(""),!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(En){let aa=0;(qt=(Jt=Nt==null?void 0:Nt.data)==null?void 0:Jt.hpc_courses)==null||qt.map((la,fa)=>{var In;(En==null?void 0:En.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),(En==null?void 0:En.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){Et(Xt),Re(!0),$e(!1)}function Kn(){Et(""),Re(!0),$e(!1)}const On={name:"file",multiple:!0,action:"https://www.educoder.net/api/hpc_courses/upload_file.json",data:{container_type:window.location.pathname.split("/")[1]},onChange(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+`/${nn}`})`}}),ae.createElement("img",{style:{width:"100%"},src:a.Z.IMG_SERVER+`/${nn}`}),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)),((xe=me==null?void 0:me.userInfo)==null?void 0:xe.user_id)===299635||((Oe=me==null?void 0:me.userInfo)==null?void 0:Oe.user_id)===301458||(it=me==null?void 0:me.userInfo)!=null&&it.admin||(st=me==null?void 0:me.userInfo)!=null&&st.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"}},Ge?ae.createElement(Te,{UpdateItem:Ye,setIscreate:Re,init:Xn}):null,Ft?ae.createElement(Je,{UserInfo:me==null?void 0:me.userInfo,setSee:$e,userId:(ft=me==null?void 0:me.userInfo)==null?void 0:ft.user_id,ItemUpdate:$n,CourseItem:ct,init:Xn}):null)),((pt=me==null?void 0:me.userInfo)==null?void 0:pt.user_id)===299635||((ut=me==null?void 0:me.userInfo)==null?void 0:ut.user_id)===301458||(bt=me==null?void 0:me.userInfo)!=null&&bt.admin||(Dn=me==null?void 0:me.userInfo)!=null&&Dn.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:me})=>({user:me}))(ge)},56762:function(we,ot,ie){"use strict";ie.d(ot,{Z:function(){return De}});var ae=ie(59301);function De(){const[,Ze]=ae.useReducer(_e=>_e+1,0);return Ze}},93948:function(we,ot,ie){"use strict";ie.d(ot,{Z:function(){return In}});var ae=ie(59301),De=ie(29679),Ze=ie(40001),_e=ie(19248),Le=ie(99267),Ie=ie(92310),Pe=ie.n(Ie),We=ie(2738),Te=ie(36355),je=ie(16378),gt=ie(35227),Qe=ie(61206),Je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Fe=(0,ae.useRef)([]),Me=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var Ue=Date.now(),qe=!1;Fe.current.forEach(function(ht){if(ht){qe=!0;var wt=ht.style;wt.transitionDuration=".3s, .3s, .3s, .06s",Me.current&&Ue-Me.current<100&&(wt.transitionDuration="0s, 0s")}}),qe&&(Me.current=Date.now())}),Fe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Fe){var Me=(0,gt.Z)((0,gt.Z)({},Je),Fe),Ue=Me.className,qe=Me.percent,ht=Me.prefixCls,wt=Me.strokeColor,St=Me.strokeLinecap,vt=Me.strokeWidth,Tt=Me.style,Mt=Me.trailColor,It=Me.trailWidth,an=Me.transition,un=(0,Qe.Z)(Me,a);delete un.gapPosition;var cn=Array.isArray(qe)?qe:[qe],Vt=Array.isArray(wt)?wt:[wt],jt=ne(),wn=vt/2,Sn=100-vt/2,Pn="M ".concat(St==="round"?wn:0,",").concat(wn,`
|
|
L `).concat(St==="round"?Sn:100,",").concat(wn),Ut="0 0 100 ".concat(vt),Gn=0;return ae.createElement("svg",(0,je.Z)({className:Pe()("".concat(ht,"-line"),Ue),viewBox:Ut,preserveAspectRatio:"none",style:Tt},un),ae.createElement("path",{className:"".concat(ht,"-line-trail"),d:Pn,strokeLinecap:St,stroke:Mt,strokeWidth:It||vt,fillOpacity:"0"}),cn.map(function(Vn,_n){var Cn=1;switch(St){case"round":Cn=1-vt/100;break;case"square":Cn=1-vt/2/100;break;default:Cn=1;break}var Yn={strokeDasharray:"".concat(Vn*Cn,"px, 100px"),strokeDashoffset:"-".concat(Gn,"px"),transition:an||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Rn=Vt[_n]||Vt[Vt.length-1];return Gn+=Vn,ae.createElement("path",{key:_n,className:"".concat(ht,"-line-path"),d:Pn,strokeLinecap:St,stroke:Rn,strokeWidth:vt,fillOpacity:"0",ref:function(Se){jt[_n]=Se},style:Yn})}))},x=y,b=ie(42066),E=ie(10859),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 Fe=ae.useState(),Me=(0,E.Z)(Fe,2),Ue=Me[0],qe=Me[1];return ae.useEffect(function(){qe("rc_progress_".concat(oe()))},[]),he||Ue},re=function(Fe){var Me=Fe.bg,Ue=Fe.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Me}},Ue)};function me(he,Fe){return Object.keys(he).map(function(Me){var Ue=parseFloat(Me),qe="".concat(Math.floor(Ue*Fe),"%");return"".concat(he[Me]," ").concat(qe)})}var se=ae.forwardRef(function(he,Fe){var Me=he.prefixCls,Ue=he.color,qe=he.gradientId,ht=he.radius,wt=he.style,St=he.ptg,vt=he.strokeLinecap,Tt=he.strokeWidth,Mt=he.size,It=he.gapDegree,an=Ue&&(0,b.Z)(Ue)==="object",un=an?"#FFF":void 0,cn=Mt/2,Vt=ae.createElement("circle",{className:"".concat(Me,"-circle-path"),r:ht,cx:cn,cy:cn,stroke:un,strokeLinecap:vt,strokeWidth:Tt,opacity:St===0?0:1,style:wt,ref:Fe});if(!an)return Vt;var jt="".concat(qe,"-conic"),wn=It?"".concat(180+It/2,"deg"):"0deg",Sn=me(Ue,(360-It)/360),Pn=me(Ue,1),Ut="conic-gradient(from ".concat(wn,", ").concat(Sn.join(", "),")"),Gn="linear-gradient(to ".concat(It?"bottom":"top",", ").concat(Pn.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:Gn},ae.createElement(re,{bg:Ut}))))}),xe=se,Oe=100,it=function(Fe,Me,Ue,qe,ht,wt,St,vt,Tt,Mt){var It=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,an=Ue/100*360*((360-wt)/360),un=wt===0?0:{bottom:0,top:180,left:90,right:-90}[St],cn=(100-qe)/100*Me;Tt==="round"&&qe!==100&&(cn+=Mt/2,cn>=Me&&(cn=Me-.01));var Vt=Oe/2;return{stroke:typeof vt=="string"?vt:void 0,strokeDasharray:"".concat(Me,"px ").concat(Fe),strokeDashoffset:cn+It,transform:"rotate(".concat(ht+an+un,"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}},st=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ft(he){var Fe=he!=null?he:[];return Array.isArray(Fe)?Fe:[Fe]}var pt=function(Fe){var Me=(0,gt.Z)((0,gt.Z)({},Je),Fe),Ue=Me.id,qe=Me.prefixCls,ht=Me.steps,wt=Me.strokeWidth,St=Me.trailWidth,vt=Me.gapDegree,Tt=vt===void 0?0:vt,Mt=Me.gapPosition,It=Me.trailColor,an=Me.strokeLinecap,un=Me.style,cn=Me.className,Vt=Me.strokeColor,jt=Me.percent,wn=(0,Qe.Z)(Me,st),Sn=Oe/2,Pn=ge(Ue),Ut="".concat(Pn,"-gradient"),Gn=Sn-wt/2,Vn=Math.PI*2*Gn,_n=Tt>0?90+Tt/2:-90,Cn=Vn*((360-Tt)/360),Yn=(0,b.Z)(ht)==="object"?ht:{count:ht,space:2},Rn=Yn.count,ce=Yn.space,Se=ft(jt),ue=ft(Vt),ke=ue.find(function(Fn){return Fn&&(0,b.Z)(Fn)==="object"}),at=ke&&(0,b.Z)(ke)==="object",et=at?"butt":an,Ot=it(Vn,Cn,0,100,_n,Tt,Mt,It,et,wt),Pt=ne(),Gt=function(){var Ae=0;return Se.map(function(Ct,hn){var zn=ue[hn]||ue[ue.length-1],en=it(Vn,Cn,Ae,Ct,_n,Tt,Mt,zn,et,wt);return Ae+=Ct,ae.createElement(xe,{key:hn,color:zn,ptg:Ct,radius:Gn,prefixCls:qe,gradientId:Ut,style:en,strokeLinecap:et,strokeWidth:wt,gapDegree:Tt,ref:function(ve){Pt[hn]=ve},size:Oe})}).reverse()},Yt=function(){var Ae=Math.round(Rn*(Se[0]/100)),Ct=100/Rn,hn=0;return new Array(Rn).fill(null).map(function(zn,en){var le=en<=Ae-1?ue[0]:It,ve=le&&(0,b.Z)(le)==="object"?"url(#".concat(Ut,")"):void 0,pe=it(Vn,Cn,hn,Ct,_n,Tt,Mt,le,"butt",wt,ce);return hn+=(Cn-pe.strokeDashoffset+ce)*100/Cn,ae.createElement("circle",{key:en,className:"".concat(qe,"-circle-path"),r:Gn,cx:Sn,cy:Sn,stroke:ve,strokeWidth:wt,opacity:1,style:pe,ref:function(Ce){Pt[en]=Ce}})})};return ae.createElement("svg",(0,je.Z)({className:Pe()("".concat(qe,"-circle"),cn),viewBox:"0 0 ".concat(Oe," ").concat(Oe),style:un,id:Ue,role:"presentation"},wn),!Rn&&ae.createElement("circle",{className:"".concat(qe,"-circle-trail"),r:Gn,cx:Sn,cy:Sn,stroke:It,strokeLinecap:et,strokeWidth:St||wt,style:Ot}),Rn?Yt():Gt())},ut=pt,bt={Line:x,Circle:ut},Dn=ie(6848),pn=ie(93398);function Ln(he){return!he||he<0?0:he>100?100:he}function yn(he){let{success:Fe,successPercent:Me}=he,Ue=Me;return Fe&&"progress"in Fe&&(Ue=Fe.progress),Fe&&"percent"in Fe&&(Ue=Fe.percent),Ue}const Qn=he=>{let{percent:Fe,success:Me,successPercent:Ue}=he;const qe=Ln(yn({success:Me,successPercent:Ue}));return[qe,Ln(Ln(Fe)-qe)]},Un=he=>{let{success:Fe={},strokeColor:Me}=he;const{strokeColor:Ue}=Fe;return[Ue||pn.presetPrimaryColors.green,Me||null]},ye=(he,Fe,Me)=>{var Ue,qe,ht,wt;let St=-1,vt=-1;if(Fe==="step"){const Tt=Me.steps,Mt=Me.strokeWidth;typeof he=="string"||typeof he=="undefined"?(St=he==="small"?2:14,vt=Mt!=null?Mt:8):typeof he=="number"?[St,vt]=[he,he]:[St=14,vt=8]=he,St*=Tt}else if(Fe==="line"){const Tt=Me==null?void 0:Me.strokeWidth;typeof he=="string"||typeof he=="undefined"?vt=Tt||(he==="small"?6:8):typeof he=="number"?[St,vt]=[he,he]:[St=-1,vt=8]=he}else(Fe==="circle"||Fe==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[St,vt]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[St,vt]=[he,he]:(St=(qe=(Ue=he[0])!==null&&Ue!==void 0?Ue:he[1])!==null&&qe!==void 0?qe:120,vt=(wt=(ht=he[0])!==null&&ht!==void 0?ht:he[1])!==null&&wt!==void 0?wt:120));return[St,vt]},Ge=3,Re=he=>Ge/he*100;var $e=he=>{const{prefixCls:Fe,trailColor:Me=null,strokeLinecap:Ue="round",gapPosition:qe,gapDegree:ht,width:wt=120,type:St,children:vt,success:Tt,size:Mt=wt}=he,[It,an]=ye(Mt,"circle");let{strokeWidth:un}=he;un===void 0&&(un=Math.max(Re(It),6));const cn={width:It,height:an,fontSize:It*.15+6},Vt=ae.useMemo(()=>{if(ht||ht===0)return ht;if(St==="dashboard")return 75},[ht,St]),jt=qe||St==="dashboard"&&"bottom"||void 0,wn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",Sn=Un({success:Tt,strokeColor:he.strokeColor}),Pn=Pe()(`${Fe}-inner`,{[`${Fe}-circle-gradient`]:wn}),Ut=ae.createElement(ut,{percent:Qn(he),strokeWidth:un,trailWidth:un,strokeColor:Sn,strokeLinecap:Ue,trailColor:Me,prefixCls:Fe,gapDegree:Vt,gapPosition:jt});return ae.createElement("div",{className:Pn,style:cn},It<=20?ae.createElement(Dn.Z,{title:vt},ae.createElement("span",null,Ut)):ae.createElement(ae.Fragment,null,Ut,vt))},ct=function(he,Fe){var Me={};for(var Ue in he)Object.prototype.hasOwnProperty.call(he,Ue)&&Fe.indexOf(Ue)<0&&(Me[Ue]=he[Ue]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ue=Object.getOwnPropertySymbols(he);qe<Ue.length;qe++)Fe.indexOf(Ue[qe])<0&&Object.prototype.propertyIsEnumerable.call(he,Ue[qe])&&(Me[Ue[qe]]=he[Ue[qe]]);return Me};const de=he=>{let Fe=[];return Object.keys(he).forEach(Me=>{const Ue=parseFloat(Me.replace(/%/g,""));isNaN(Ue)||Fe.push({key:Ue,value:he[Me]})}),Fe=Fe.sort((Me,Ue)=>Me.key-Ue.key),Fe.map(Me=>{let{key:Ue,value:qe}=Me;return`${qe} ${Ue}%`}).join(", ")},Ye=(he,Fe)=>{const{from:Me=pn.presetPrimaryColors.blue,to:Ue=pn.presetPrimaryColors.blue,direction:qe=Fe==="rtl"?"to left":"to right"}=he,ht=ct(he,["from","to","direction"]);if(Object.keys(ht).length!==0){const wt=de(ht);return{backgroundImage:`linear-gradient(${qe}, ${wt})`}}return{backgroundImage:`linear-gradient(${qe}, ${Me}, ${Ue})`}};var nn=he=>{const{prefixCls:Fe,direction:Me,percent:Ue,size:qe,strokeWidth:ht,strokeColor:wt,strokeLinecap:St="round",children:vt,trailColor:Tt=null,success:Mt}=he,It=wt&&typeof wt!="string"?Ye(wt,Me):{backgroundColor:wt},an=St==="square"||St==="butt"?0:void 0,un={backgroundColor:Tt||void 0,borderRadius:an},cn=qe!=null?qe:[-1,ht||(qe==="small"?6:8)],[Vt,jt]=ye(cn,"line",{strokeWidth:ht}),wn=Object.assign({width:`${Ln(Ue)}%`,height:jt,borderRadius:an},It),Sn=yn(he),Pn={width:`${Ln(Sn)}%`,height:jt,borderRadius:an,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:`${Fe}-outer`,style:Ut},ae.createElement("div",{className:`${Fe}-inner`,style:un},ae.createElement("div",{className:`${Fe}-bg`,style:wn}),Sn!==void 0?ae.createElement("div",{className:`${Fe}-success-bg`,style:Pn}):null)),vt)},En=he=>{const{size:Fe,steps:Me,percent:Ue=0,strokeWidth:qe=8,strokeColor:ht,trailColor:wt=null,prefixCls:St,children:vt}=he,Tt=Math.round(Me*(Ue/100)),Mt=Fe==="small"?2:14,It=Fe!=null?Fe:[Mt,qe],[an,un]=ye(It,"step",{steps:Me,strokeWidth:qe}),cn=an/Me,Vt=new Array(Me);for(let jt=0;jt<Me;jt++){const wn=Array.isArray(ht)?ht[jt]:ht;Vt[jt]=ae.createElement("div",{key:jt,className:Pe()(`${St}-steps-item`,{[`${St}-steps-item-active`]:jt<=Tt-1}),style:{backgroundColor:jt<=Tt-1?wn:wt,width:cn,height:un}})}return ae.createElement("div",{className:`${St}-steps-outer`},Vt,vt)},Tn=ie(93083),$t=ie(17313),Xn=ie(83116),qn=ie(37613);const $n=he=>{const Fe=he?"100%":"-100%";return new Tn.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Kn=he=>{const{componentCls:Fe,iconCls:Me}=he;return{[Fe]: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},[`${Fe}-outer`]:{display:"inline-block",width:"100%"},[`&${Fe}-show-info`]:{[`${Fe}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${Fe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:he.defaultColor}},[`${Fe}-success-bg, ${Fe}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${Fe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${Fe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Me]:{fontSize:he.fontSize}},[`&${Fe}-status-active`]:{[`${Fe}-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:'""'}},[`&${Fe}-rtl${Fe}-status-active`]:{[`${Fe}-bg::before`]:{animationName:$n(!0)}},[`&${Fe}-status-exception`]:{[`${Fe}-bg`]:{backgroundColor:he.colorError},[`${Fe}-text`]:{color:he.colorError}},[`&${Fe}-status-exception ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:he.colorError}},[`&${Fe}-status-success`]:{[`${Fe}-bg`]:{backgroundColor:he.colorSuccess},[`${Fe}-text`]:{color:he.colorSuccess}},[`&${Fe}-status-success ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:he.colorSuccess}}})}},On=he=>{const{componentCls:Fe,iconCls:Me}=he;return{[Fe]:{[`${Fe}-circle-trail`]:{stroke:he.remainingColor},[`&${Fe}-circle ${Fe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Fe}-circle ${Fe}-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%)",[Me]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${Fe}-circle&-status-exception`]:{[`${Fe}-text`]:{color:he.colorError}},[`${Fe}-circle&-status-success`]:{[`${Fe}-text`]:{color:he.colorSuccess}}},[`${Fe}-inline-circle`]:{lineHeight:1,[`${Fe}-inner`]:{verticalAlign:"bottom"}}}},Xt=he=>{const{componentCls:Fe}=he;return{[Fe]:{[`${Fe}-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:Fe,iconCls:Me}=he;return{[Fe]:{[`${Fe}-small&-line, ${Fe}-small&-line ${Fe}-text ${Me}`]:{fontSize:he.fontSizeSM}}}};var qt=(0,Xn.Z)("Progress",he=>{const Fe=he.marginXXS/2,Me=(0,qn.TS)(he,{progressStepMarginInlineEnd:Fe,progressStepMinWidth:Fe,progressActiveMotionDuration:"2.4s"});return[Kn(Me),On(Me),Xt(Me),Jt(Me)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Nt=function(he,Fe){var Me={};for(var Ue in he)Object.prototype.hasOwnProperty.call(he,Ue)&&Fe.indexOf(Ue)<0&&(Me[Ue]=he[Ue]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,Ue=Object.getOwnPropertySymbols(he);qe<Ue.length;qe++)Fe.indexOf(Ue[qe])<0&&Object.prototype.propertyIsEnumerable.call(he,Ue[qe])&&(Me[Ue[qe]]=he[Ue[qe]]);return Me};const ea=null,aa=["normal","exception","active","success"];var fa=ae.forwardRef((he,Fe)=>{const{prefixCls:Me,className:Ue,rootClassName:qe,steps:ht,strokeColor:wt,percent:St=0,size:vt="default",showInfo:Tt=!0,type:Mt="line",status:It,format:an,style:un}=he,cn=Nt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Vt=ae.useMemo(()=>{var Se,ue;const ke=yn(he);return parseInt(ke!==void 0?(Se=ke!=null?ke:0)===null||Se===void 0?void 0:Se.toString():(ue=St!=null?St:0)===null||ue===void 0?void 0:ue.toString(),10)},[St,he.success,he.successPercent]),jt=ae.useMemo(()=>!aa.includes(It)&&Vt>=100?"success":It||"normal",[It,Vt]),{getPrefixCls:wn,direction:Sn,progress:Pn}=ae.useContext(Te.E_),Ut=wn("progress",Me),[Gn,Vn]=qt(Ut),_n=ae.useMemo(()=>{if(!Tt)return null;const Se=yn(he);let ue;const ke=an||(et=>`${et}%`),at=Mt==="line";return an||jt!=="exception"&&jt!=="success"?ue=ke(Ln(St),Ln(Se)):jt==="exception"?ue=at?ae.createElement(_e.Z,null):ae.createElement(Le.Z,null):jt==="success"&&(ue=at?ae.createElement(De.Z,null):ae.createElement(Ze.Z,null)),ae.createElement("span",{className:`${Ut}-text`,title:typeof ue=="string"?ue:void 0},ue)},[Tt,St,Vt,jt,Mt,Ut,an]),Cn=Array.isArray(wt)?wt[0]:wt,Yn=typeof wt=="string"||Array.isArray(wt)?wt:void 0;let Rn;Mt==="line"?Rn=ht?ae.createElement(En,Object.assign({},he,{strokeColor:Yn,prefixCls:Ut,steps:ht}),_n):ae.createElement(nn,Object.assign({},he,{strokeColor:Cn,prefixCls:Ut,direction:Sn}),_n):(Mt==="circle"||Mt==="dashboard")&&(Rn=ae.createElement($e,Object.assign({},he,{strokeColor:Cn,prefixCls:Ut,progressStatus:jt}),_n));const ce=Pe()(Ut,`${Ut}-status-${jt}`,`${Ut}-${Mt==="dashboard"&&"circle"||ht&&"steps"||Mt}`,{[`${Ut}-inline-circle`]:Mt==="circle"&&ye(vt,"circle")[0]<=20,[`${Ut}-show-info`]:Tt,[`${Ut}-${vt}`]:typeof vt=="string",[`${Ut}-rtl`]:Sn==="rtl"},Pn==null?void 0:Pn.className,Ue,qe,Vn);return Gn(ae.createElement("div",Object.assign({ref:Fe,style:Object.assign(Object.assign({},Pn==null?void 0:Pn.style),un),className:ce,role:"progressbar","aria-valuenow":Vt},(0,We.Z)(cn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Rn))}),In=fa},54580:function(we,ot,ie){"use strict";ie.d(ot,{default:function(){return en}});var ae=ie(59301),De=ie(65093),Ze=ie(92310),_e=ie.n(Ze),Le=ie(16378),Ie=ie(44202),Pe=ie(86773),We=ie(82412),Te=ie(60845),je=ie(78772),gt=ie(61206),Qe=ie(62907),Je=ie(42066),ne=ie(3872),a=ie(26112);function y(le,ve){var pe="cannot ".concat(le.method," ").concat(le.action," ").concat(ve.status,"'"),be=new Error(pe);return be.status=ve.status,be.method=le.method,be.url=le.action,be}function x(le){var ve=le.responseText||le.response;if(!ve)return ve;try{return JSON.parse(ve)}catch(pe){return ve}}function b(le){var ve=new XMLHttpRequest;le.onProgress&&ve.upload&&(ve.upload.onprogress=function(Ne){Ne.total>0&&(Ne.percent=Ne.loaded/Ne.total*100),le.onProgress(Ne)});var pe=new FormData;le.data&&Object.keys(le.data).forEach(function(Ce){var Ne=le.data[Ce];if(Array.isArray(Ne)){Ne.forEach(function(Ee){pe.append("".concat(Ce,"[]"),Ee)});return}pe.append(Ce,Ne)}),le.file instanceof Blob?pe.append(le.filename,le.file,le.file.name):pe.append(le.filename,le.file),ve.onerror=function(Ne){le.onError(Ne)},ve.onload=function(){return ve.status<200||ve.status>=300?le.onError(y(le,ve),x(ve)):le.onSuccess(x(ve),ve)},ve.open(le.method,le.action,!0),le.withCredentials&&"withCredentials"in ve&&(ve.withCredentials=!0);var be=le.headers||{};return be["X-Requested-With"]!==null&&ve.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(be).forEach(function(Ce){be[Ce]!==null&&ve.setRequestHeader(Ce,be[Ce])}),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(le,ve){if(le&&ve){var pe=Array.isArray(ve)?ve:ve.split(","),be=le.name||"",Ce=le.type||"",Ne=Ce.replace(/\/.*$/,"");return pe.some(function(Ee){var Be=Ee.trim();if(/^\*(\/\*)?$/.test(Ee))return!0;if(Be.charAt(0)==="."){var dt=be.toLowerCase(),mt=Be.toLowerCase(),fe=[mt];return(mt===".jpg"||mt===".jpeg")&&(fe=[".jpg",".jpeg"]),fe.some(function(At){return dt.endsWith(At)})}return/\/\*$/.test(Be)?Ne===Be.replace(/\/.*$/,""):Ce===Be?!0:/^\w+$/.test(Be)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Be,"'.Skip for check.")),!0):!1})}return!0};function ge(le,ve){var pe=le.createReader(),be=[];function Ce(){pe.readEntries(function(Ne){var Ee=Array.prototype.slice.apply(Ne);be=be.concat(Ee);var Be=!Ee.length;Be?ve(be):Ce()})}Ce()}var re=function(ve,pe,be){var Ce=function Ne(Ee,Be){Ee&&(Ee.path=Be||"",Ee.isFile?Ee.file(function(dt){be(dt)&&(Ee.fullPath&&!dt.webkitRelativePath&&(Object.defineProperties(dt,{webkitRelativePath:{writable:!0}}),dt.webkitRelativePath=Ee.fullPath.replace(/^\//,""),Object.defineProperties(dt,{webkitRelativePath:{writable:!1}})),pe([dt]))}):Ee.isDirectory&&ge(Ee,function(dt){dt.forEach(function(mt){Ne(mt,"".concat(Be).concat(Ee.name,"/"))})}))};ve.forEach(function(Ne){Ce(Ne.webkitGetAsEntry())})},me=re,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],xe=function(le){(0,We.Z)(pe,le);var ve=(0,Te.Z)(pe);function pe(){var be;(0,Ie.Z)(this,pe);for(var Ce=arguments.length,Ne=new Array(Ce),Ee=0;Ee<Ce;Ee++)Ne[Ee]=arguments[Ee];return be=ve.call.apply(ve,[this].concat(Ne)),be.state={uid:ee()},be.reqs={},be.fileInput=void 0,be._isMounted=void 0,be.onChange=function(Be){var dt=be.props,mt=dt.accept,fe=dt.directory,At=Be.target.files,zt=(0,De.Z)(At).filter(function(Kt){return!fe||oe(Kt,mt)});be.uploadFiles(zt),be.reset()},be.onClick=function(Be){var dt=be.fileInput;if(dt){var mt=Be.target,fe=be.props.onClick;if(mt&&mt.tagName==="BUTTON"){var At=dt.parentNode;At.focus(),mt.blur()}dt.click(),fe&&fe(Be)}},be.onKeyDown=function(Be){Be.key==="Enter"&&be.onClick(Be)},be.onFileDrop=function(Be){var dt=be.props.multiple;if(Be.preventDefault(),Be.type!=="dragover")if(be.props.directory)me(Array.prototype.slice.call(Be.dataTransfer.items),be.uploadFiles,function(fe){return oe(fe,be.props.accept)});else{var mt=(0,De.Z)(Be.dataTransfer.files).filter(function(fe){return oe(fe,be.props.accept)});dt===!1&&(mt=mt.slice(0,1)),be.uploadFiles(mt)}},be.uploadFiles=function(Be){var dt=(0,De.Z)(Be),mt=dt.map(function(fe){return fe.uid=ee(),be.processFile(fe,dt)});Promise.all(mt).then(function(fe){var At=be.props.onBatchStart;At==null||At(fe.map(function(zt){var Kt=zt.origin,tn=zt.parsedFile;return{file:Kt,parsedFile:tn}})),fe.filter(function(zt){return zt.parsedFile!==null}).forEach(function(zt){be.post(zt)})})},be.processFile=function(){var Be=(0,ne.Z)((0,Qe.Z)().mark(function dt(mt,fe){var At,zt,Kt,tn,ze,Ke,rt,Xe,Bt;return(0,Qe.Z)().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(At=be.props.beforeUpload,zt=mt,!At){lt.next=14;break}return lt.prev=3,lt.next=6,At(mt,fe);case 6:zt=lt.sent,lt.next=12;break;case 9:lt.prev=9,lt.t0=lt.catch(3),zt=!1;case 12:if(zt!==!1){lt.next=14;break}return lt.abrupt("return",{origin:mt,parsedFile:null,action:null,data:null});case 14:if(Kt=be.props.action,typeof Kt!="function"){lt.next=21;break}return lt.next=18,Kt(mt);case 18:tn=lt.sent,lt.next=22;break;case 21:tn=Kt;case 22:if(ze=be.props.data,typeof ze!="function"){lt.next=29;break}return lt.next=26,ze(mt);case 26:Ke=lt.sent,lt.next=30;break;case 29:Ke=ze;case 30:return rt=((0,Je.Z)(zt)==="object"||typeof zt=="string")&&zt?zt:mt,rt instanceof File?Xe=rt:Xe=new File([rt],mt.name,{type:mt.type}),Bt=Xe,Bt.uid=mt.uid,lt.abrupt("return",{origin:mt,data:Ke,parsedFile:Bt,action:tn});case 35:case"end":return lt.stop()}},dt,null,[[3,9]])}));return function(dt,mt){return Be.apply(this,arguments)}}(),be.saveFileInput=function(Be){be.fileInput=Be},be}return(0,Pe.Z)(pe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ce){var Ne=this,Ee=Ce.data,Be=Ce.origin,dt=Ce.action,mt=Ce.parsedFile;if(this._isMounted){var fe=this.props,At=fe.onStart,zt=fe.customRequest,Kt=fe.name,tn=fe.headers,ze=fe.withCredentials,Ke=fe.method,rt=Be.uid,Xe=zt||b,Bt={action:dt,filename:Kt,data:Ee,file:mt,headers:tn,withCredentials:ze,method:Ke||"post",onProgress:function(lt){var Wt=Ne.props.onProgress;Wt==null||Wt(lt,mt)},onSuccess:function(lt,Wt){var Zt=Ne.props.onSuccess;Zt==null||Zt(lt,mt,Wt),delete Ne.reqs[rt]},onError:function(lt,Wt){var Zt=Ne.props.onError;Zt==null||Zt(lt,Wt,mt),delete Ne.reqs[rt]}};At(Be),this.reqs[rt]=Xe(Bt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Ce){var Ne=this.reqs;if(Ce){var Ee=Ce.uid?Ce.uid:Ce;Ne[Ee]&&Ne[Ee].abort&&Ne[Ee].abort(),delete Ne[Ee]}else Object.keys(Ne).forEach(function(Be){Ne[Be]&&Ne[Be].abort&&Ne[Be].abort(),delete Ne[Be]})}},{key:"render",value:function(){var Ce=this.props,Ne=Ce.component,Ee=Ce.prefixCls,Be=Ce.className,dt=Ce.disabled,mt=Ce.id,fe=Ce.style,At=Ce.multiple,zt=Ce.accept,Kt=Ce.capture,tn=Ce.children,ze=Ce.directory,Ke=Ce.openFileDialogOnClick,rt=Ce.onMouseEnter,Xe=Ce.onMouseLeave,Bt=(0,gt.Z)(Ce,se),xt=_e()((0,je.Z)((0,je.Z)((0,je.Z)({},Ee,!0),"".concat(Ee,"-disabled"),dt),Be,Be)),lt=ze?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Wt=dt?{}:{onClick:Ke?this.onClick:function(){},onKeyDown:Ke?this.onKeyDown:function(){},onMouseEnter:rt,onMouseLeave:Xe,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ne,(0,Le.Z)({},Wt,{className:xt,role:"button",style:fe}),ae.createElement("input",(0,Le.Z)({},(0,a.Z)(Bt,{aria:!0,data:!0}),{id:mt,disabled:dt,type:"file",ref:this.saveFileInput,onClick:function(ta){return ta.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:zt},lt,{multiple:At,onChange:this.onChange},Kt!=null?{capture:Kt}:{})),tn)}}]),pe}(ae.Component),Oe=xe;function it(){}var st=function(le){(0,We.Z)(pe,le);var ve=(0,Te.Z)(pe);function pe(){var be;(0,Ie.Z)(this,pe);for(var Ce=arguments.length,Ne=new Array(Ce),Ee=0;Ee<Ce;Ee++)Ne[Ee]=arguments[Ee];return be=ve.call.apply(ve,[this].concat(Ne)),be.uploader=void 0,be.saveUploader=function(Be){be.uploader=Be},be}return(0,Pe.Z)(pe,[{key:"abort",value:function(Ce){this.uploader.abort(Ce)}},{key:"render",value:function(){return ae.createElement(Oe,(0,Le.Z)({},this.props,{ref:this.saveUploader}))}}]),pe}(ae.Component);st.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:it,onError:it,onSuccess:it,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var ft=st,pt=ft,ut=ie(18929),bt=ie(4676),Dn=ie(36355),pn=ie(1684),Ln=ie(9763),yn=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,ye=ie(7657),Ge=function(ve,pe){return ae.createElement(ye.Z,(0,Le.Z)({},ve,{ref:pe,icon:Un}))},Re=ae.forwardRef(Ge),Ft=Re,$e=ie(58617),ct={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=ct,Ye=function(ve,pe){return ae.createElement(ye.Z,(0,Le.Z)({},ve,{ref:pe,icon:de}))},Et=ae.forwardRef(Ye),nn=Et,Rt={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"},En=Rt,Tn=function(ve,pe){return ae.createElement(ye.Z,(0,Le.Z)({},ve,{ref:pe,icon:En}))},$t=ae.forwardRef(Tn),Xn=$t,qn=ie(77900),$n=ie(56762),Kn=ie(62892),On=ie(92343),Xt=ie(3113);function Jt(le){return Object.assign(Object.assign({},le),{lastModified:le.lastModified,lastModifiedDate:le.lastModifiedDate,name:le.name,size:le.size,type:le.type,uid:le.uid,percent:0,originFileObj:le})}function qt(le,ve){const pe=(0,De.Z)(ve),be=pe.findIndex(Ce=>{let{uid:Ne}=Ce;return Ne===le.uid});return be===-1?pe.push(le):pe[be]=le,pe}function Nt(le,ve){const pe=le.uid!==void 0?"uid":"name";return ve.filter(be=>be[pe]===le[pe])[0]}function ea(le,ve){const pe=le.uid!==void 0?"uid":"name",be=ve.filter(Ce=>Ce[pe]!==le[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=le=>le.indexOf("image/")===0,fa=le=>{if(le.type&&!le.thumbUrl)return la(le.type);const ve=le.thumbUrl||le.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(le){return new Promise(ve=>{if(!le.type||!la(le.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"),Ce=new Image;if(Ce.onload=()=>{const{width:Ne,height:Ee}=Ce;let Be=In,dt=In,mt=0,fe=0;Ne>Ee?(dt=Ee*(In/Ne),fe=-(dt-Be)/2):(Be=Ne*(In/Ee),mt=-(Be-dt)/2),be.drawImage(Ce,mt,fe,Be,dt);const At=pe.toDataURL();document.body.removeChild(pe),window.URL.revokeObjectURL(Ce.src),ve(At)},Ce.crossOrigin="anonymous",le.type.startsWith("image/svg+xml")){const Ne=new FileReader;Ne.onload=()=>{Ne.result&&(Ce.src=Ne.result)},Ne.readAsDataURL(le)}else if(le.type.startsWith("image/gif")){const Ne=new FileReader;Ne.onload=()=>{Ne.result&&ve(Ne.result)},Ne.readAsDataURL(le)}else Ce.src=window.URL.createObjectURL(le)})}var Fe=ie(26227),Me=ie(41464),Ue=ie(15277),qe=ie(93948),ht=ie(6848),St=ae.forwardRef((le,ve)=>{let{prefixCls:pe,className:be,style:Ce,locale:Ne,listType:Ee,file:Be,items:dt,progress:mt,iconRender:fe,actionIconRender:At,itemRender:zt,isImgUrl:Kt,showPreviewIcon:tn,showRemoveIcon:ze,showDownloadIcon:Ke,previewIcon:rt,removeIcon:Xe,downloadIcon:Bt,onPreview:xt,onDownload:lt,onClose:Wt}=le;var Zt,ta;const{status:jn}=Be,[Hn,ua]=ae.useState(jn);ae.useEffect(()=>{jn!=="removed"&&ua(jn)},[jn]);const[ca,Sa]=ae.useState(!1);ae.useEffect(()=>{const ln=setTimeout(()=>{Sa(!0)},300);return()=>{clearTimeout(ln)}},[]);const ra=fe(Be);let kn=ae.createElement("div",{className:`${pe}-icon`},ra);if(Ee==="picture"||Ee==="picture-card"||Ee==="picture-circle")if(Hn==="uploading"||!Be.thumbUrl&&!Be.url){const ln=_e()(`${pe}-list-item-thumbnail`,{[`${pe}-list-item-file`]:Hn!=="uploading"});kn=ae.createElement("div",{className:ln},ra)}else{const ln=Kt!=null&&Kt(Be)?ae.createElement("img",{src:Be.thumbUrl||Be.url,alt:Be.name,className:`${pe}-list-item-image`,crossOrigin:Be.crossOrigin}):ra,rn=_e()(`${pe}-list-item-thumbnail`,{[`${pe}-list-item-file`]:Kt&&!Kt(Be)});kn=ae.createElement("a",{className:rn,onClick:ia=>xt(Be,ia),href:Be.url||Be.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ln)}const on=_e()(`${pe}-list-item`,`${pe}-list-item-${Hn}`),Zn=typeof Be.linkProps=="string"?JSON.parse(Be.linkProps):Be.linkProps,oa=ze?At((typeof Xe=="function"?Xe(Be):Xe)||ae.createElement(Fe.Z,null),()=>Wt(Be),pe,Ne.removeFile):null,ga=Ke&&Hn==="done"?At((typeof Bt=="function"?Bt(Be):Bt)||ae.createElement(Me.Z,null),()=>lt(Be),pe,Ne.downloadFile):null,Jn=Ee!=="picture-card"&&Ee!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:_e()(`${pe}-list-item-actions`,{picture:Ee==="picture"})},ga,oa),Wn=_e()(`${pe}-list-item-name`),Pa=Be.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wn,title:Be.name},Zn,{href:Be.url,onClick:ln=>xt(Be,ln)}),Be.name),Jn]:[ae.createElement("span",{key:"view",className:Wn,onClick:ln=>xt(Be,ln),title:Be.name},Be.name),Jn],Lt={pointerEvents:"none",opacity:.5},gn=tn?ae.createElement("a",{href:Be.url||Be.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Be.url||Be.thumbUrl?void 0:Lt,onClick:ln=>xt(Be,ln),title:Ne.previewFile},typeof rt=="function"?rt(Be):rt||ae.createElement(Ue.Z,null)):null,mn=(Ee==="picture-card"||Ee==="picture-circle")&&Hn!=="uploading"&&ae.createElement("span",{className:`${pe}-list-item-actions`},gn,Hn==="done"&&ga,oa),{getPrefixCls:Nn}=ae.useContext(Dn.E_),Mn=Nn(),na=ae.createElement("div",{className:on},kn,Pa,mn,ca&&ae.createElement(qn.default,{motionName:`${Mn}-fade`,visible:Hn==="uploading",motionDeadline:2e3},ln=>{let{className:rn}=ln;const ia="percent"in Be?ae.createElement(qe.Z,Object.assign({},mt,{type:"line",percent:Be.percent,"aria-label":Be["aria-label"],"aria-labelledby":Be["aria-labelledby"]})):null;return ae.createElement("div",{className:_e()(`${pe}-list-item-progress`,rn)},ia)})),va=Be.response&&typeof Be.response=="string"?Be.response:((Zt=Be.error)===null||Zt===void 0?void 0:Zt.statusText)||((ta=Be.error)===null||ta===void 0?void 0:ta.message)||Ne.uploadError,pa=Hn==="error"?ae.createElement(ht.Z,{title:va,getPopupContainer:ln=>ln.parentNode},na):na;return ae.createElement("div",{className:_e()(`${pe}-list-item-container`,be),style:Ce,ref:ve},zt?zt(pa,Be,dt,{download:lt.bind(null,Be),preview:xt.bind(null,Be),remove:Wt.bind(null,Be)}):pa)});const vt=(le,ve)=>{const{listType:pe="text",previewFile:be=he,onPreview:Ce,onDownload:Ne,onRemove:Ee,locale:Be,iconRender:dt,isImageUrl:mt=fa,prefixCls:fe,items:At=[],showPreviewIcon:zt=!0,showRemoveIcon:Kt=!0,showDownloadIcon:tn=!1,removeIcon:ze,previewIcon:Ke,downloadIcon:rt,progress:Xe={size:[-1,2],showInfo:!1},appendAction:Bt,appendActionVisible:xt=!0,itemRender:lt,disabled:Wt}=le,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(gn=>{Lt.thumbUrl=gn||"",Zt()}))})},[pe,At,be]),ae.useEffect(()=>{jn(!0)},[]);const Hn=(Lt,gn)=>{if(Ce)return gn==null||gn.preventDefault(),Ce(Lt)},ua=Lt=>{typeof Ne=="function"?Ne(Lt):Lt.url&&window.open(Lt.url)},ca=Lt=>{Ee==null||Ee(Lt)},Sa=Lt=>{if(dt)return dt(Lt,pe);const gn=Lt.status==="uploading",mn=mt&&mt(Lt)?ae.createElement(Xn,null):ae.createElement(Ft,null);let Nn=gn?ae.createElement($e.Z,null):ae.createElement(nn,null);return pe==="picture"?Nn=gn?ae.createElement($e.Z,null):mn:(pe==="picture-card"||pe==="picture-circle")&&(Nn=gn?Be.uploading:mn),Nn},ra=(Lt,gn,mn,Nn)=>{const Mn={type:"text",size:"small",title:Nn,onClick:na=>{gn(),(0,On.l$)(Lt)&&Lt.props.onClick&&Lt.props.onClick(na)},className:`${mn}-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({},Mn,{icon:na}))}return ae.createElement(Xt.ZP,Object.assign({},Mn),ae.createElement("span",null,Lt))};ae.useImperativeHandle(ve,()=>({handlePreview:Hn,handleDownload:ua}));const{getPrefixCls:kn}=ae.useContext(Dn.E_),on=kn("upload",fe),Zn=kn(),oa=_e()(`${on}-list`,`${on}-list-${pe}`),ga=(0,De.Z)(At.map(Lt=>({key:Lt.uid,file:Lt})));let Wn={motionDeadline:2e3,motionName:`${on}-${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:gn,file:mn,className:Nn,style:Mn}=Lt;return ae.createElement(St,{key:gn,locale:Be,prefixCls:on,className:Nn,style:Mn,file:mn,items:At,progress:Xe,listType:pe,isImgUrl:mt,showPreviewIcon:zt,showRemoveIcon:Kt,showDownloadIcon:tn,removeIcon:ze,previewIcon:Ke,downloadIcon:rt,iconRender:Sa,actionIconRender:ra,itemRender:lt,onPreview:Hn,onDownload:ua,onClose:ca})}),Bt&&ae.createElement(qn.default,Object.assign({},Wn,{visible:xt,forceRender:!0}),Lt=>{let{className:gn,style:mn}=Lt;return(0,On.Tm)(Bt,Nn=>({className:_e()(Nn.className,gn),style:Object.assign(Object.assign(Object.assign({},mn),{pointerEvents:gn?"none":void 0}),Nn.style)}))}))};var Mt=ae.forwardRef(vt),It=ie(17313),an=ie(8378),un=ie(83116),cn=ie(37613),jt=le=>{const{componentCls:ve,iconCls:pe}=le;return{[`${ve}-wrapper`]:{[`${ve}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:le.colorFillAlter,border:`${le.lineWidth}px dashed ${le.colorBorder}`,borderRadius:le.borderRadiusLG,cursor:"pointer",transition:`border-color ${le.motionDurationSlow}`,[ve]:{padding:`${le.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:le.colorPrimaryHover},[`p${ve}-drag-icon`]:{marginBottom:le.margin,[pe]:{color:le.colorPrimary,fontSize:le.uploadThumbnailSize}},[`p${ve}-text`]:{margin:`0 0 ${le.marginXXS}px`,color:le.colorTextHeading,fontSize:le.fontSizeLG},[`p${ve}-hint`]:{color:le.colorTextDescription,fontSize:le.fontSize},[`&${ve}-disabled`]:{cursor:"not-allowed",[`p${ve}-drag-icon ${pe},
|
|
p${ve}-text,
|
|
p${ve}-hint
|
|
`]:{color:le.colorTextDisabled}}}}}},Sn=le=>{const{componentCls:ve,antCls:pe,iconCls:be,fontSize:Ce,lineHeight:Ne}=le,Ee=`${ve}-list-item`,Be=`${Ee}-actions`,dt=`${Ee}-action`,mt=Math.round(Ce*Ne);return{[`${ve}-wrapper`]:{[`${ve}-list`]:Object.assign(Object.assign({},(0,It.dF)()),{lineHeight:le.lineHeight,[Ee]:{position:"relative",height:le.lineHeight*Ce,marginTop:le.marginXS,fontSize:Ce,display:"flex",alignItems:"center",transition:`background-color ${le.motionDurationSlow}`,"&:hover":{backgroundColor:le.controlItemBgHover},[`${Ee}-name`]:Object.assign(Object.assign({},It.vS),{padding:`0 ${le.paddingXS}px`,lineHeight:Ne,flex:"auto",transition:`all ${le.motionDurationSlow}`}),[Be]:{[dt]:{opacity:0},[`${dt}${pe}-btn-sm`]:{height:mt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${dt}:focus-visible,
|
|
&.picture ${dt}
|
|
`]:{opacity:1},[be]:{color:le.actionsColor,transition:`all ${le.motionDurationSlow}`},[`&:hover ${be}`]:{color:le.colorText}},[`${ve}-icon ${be}`]:{color:le.colorTextDescription,fontSize:Ce},[`${Ee}-progress`]:{position:"absolute",bottom:-le.uploadProgressOffset,width:"100%",paddingInlineStart:Ce+le.paddingXS,fontSize:Ce,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ee}:hover ${dt}`]:{opacity:1,color:le.colorText},[`${Ee}-error`]:{color:le.colorError,[`${Ee}-name, ${ve}-icon ${be}`]:{color:le.colorError},[Be]:{[`${be}, ${be}:hover`]:{color:le.colorError},[dt]:{opacity:1}}},[`${ve}-list-item-container`]:{transition:`opacity ${le.motionDurationSlow}, height ${le.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Pn=ie(93083),Ut=ie(1950);const Gn=new Pn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Vn=new Pn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Cn=le=>{const{componentCls:ve}=le,pe=`${ve}-animate-inline`;return[{[`${ve}-wrapper`]:{[`${pe}-appear, ${pe}-enter, ${pe}-leave`]:{animationDuration:le.motionDurationSlow,animationTimingFunction:le.motionEaseInOutCirc,animationFillMode:"forwards"},[`${pe}-appear, ${pe}-enter`]:{animationName:Gn},[`${pe}-leave`]:{animationName:Vn}}},{[`${ve}-wrapper`]:(0,Ut.J$)(le)},Gn,Vn]},Yn=ie(93398),Rn=ie(64993);const ce=le=>{const{componentCls:ve,iconCls:pe,uploadThumbnailSize:be,uploadProgressOffset:Ce}=le,Ne=`${ve}-list`,Ee=`${Ne}-item`;return{[`${ve}-wrapper`]:{[`
|
|
${Ne}${Ne}-picture,
|
|
${Ne}${Ne}-picture-card,
|
|
${Ne}${Ne}-picture-circle
|
|
`]:{[Ee]:{position:"relative",height:be+le.lineWidth*2+le.paddingXS*2,padding:le.paddingXS,border:`${le.lineWidth}px ${le.lineType} ${le.colorBorder}`,borderRadius:le.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ee}-thumbnail`]:Object.assign(Object.assign({},It.vS),{width:be,height:be,lineHeight:`${be+le.paddingSM}px`,textAlign:"center",flex:"none",[pe]:{fontSize:le.fontSizeHeading2,color:le.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ee}-progress`]:{bottom:Ce,width:`calc(100% - ${le.paddingSM*2}px)`,marginTop:0,paddingInlineStart:be+le.paddingXS}},[`${Ee}-error`]:{borderColor:le.colorError,[`${Ee}-thumbnail ${pe}`]:{[`svg path[fill='${Yn.blue[0]}']`]:{fill:le.colorErrorBg},[`svg path[fill='${Yn.blue.primary}']`]:{fill:le.colorError}}},[`${Ee}-uploading`]:{borderStyle:"dashed",[`${Ee}-name`]:{marginBottom:Ce}}},[`${Ne}${Ne}-picture-circle ${Ee}`]:{[`&, &::before, ${Ee}-thumbnail`]:{borderRadius:"50%"}}}}},Se=le=>{const{componentCls:ve,iconCls:pe,fontSizeLG:be,colorTextLightSolid:Ce}=le,Ne=`${ve}-list`,Ee=`${Ne}-item`,Be=le.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:Be,height:Be,marginInlineEnd:le.marginXS,marginBottom:le.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:le.colorFillAlter,border:`${le.lineWidth}px dashed ${le.colorBorder}`,borderRadius:le.borderRadiusLG,cursor:"pointer",transition:`border-color ${le.motionDurationSlow}`,[`> ${ve}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${ve}-disabled):hover`]:{borderColor:le.colorPrimary}},[`${Ne}${Ne}-picture-card, ${Ne}${Ne}-picture-circle`]:{[`${Ne}-item-container`]:{display:"inline-block",width:Be,height:Be,marginBlock:`0 ${le.marginXS}px`,marginInline:`0 ${le.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ee]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${le.paddingXS*2}px)`,height:`calc(100% - ${le.paddingXS*2}px)`,backgroundColor:le.colorBgMask,opacity:0,transition:`all ${le.motionDurationSlow}`,content:'" "'}},[`${Ee}:hover`]:{[`&::before, ${Ee}-actions`]:{opacity:1}},[`${Ee}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${le.motionDurationSlow}`,[`${pe}-eye, ${pe}-download, ${pe}-delete`]:{zIndex:10,width:be,margin:`0 ${le.marginXXS}px`,fontSize:be,cursor:"pointer",transition:`all ${le.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ee}-actions, ${Ee}-actions:hover`]:{[`${pe}-eye, ${pe}-download, ${pe}-delete`]:{color:new Rn.C(Ce).setAlpha(.65).toRgbString(),"&:hover":{color:Ce}}},[`${Ee}-thumbnail, ${Ee}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ee}-name`]:{display:"none",textAlign:"center"},[`${Ee}-file + ${Ee}-name`]:{position:"absolute",bottom:le.margin,display:"block",width:`calc(100% - ${le.paddingXS*2}px)`},[`${Ee}-uploading`]:{[`&${Ee}`]:{backgroundColor:le.colorFillAlter},[`&::before, ${pe}-eye, ${pe}-download, ${pe}-delete`]:{display:"none"}},[`${Ee}-progress`]:{bottom:le.marginXL,width:`calc(100% - ${le.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${ve}-wrapper${ve}-picture-circle-wrapper`]:{[`${ve}${ve}-select`]:{borderRadius:"50%"}}}};var ke=le=>{const{componentCls:ve}=le;return{[`${ve}-rtl`]:{direction:"rtl"}}};const at=le=>{const{componentCls:ve,colorTextDisabled:pe}=le;return{[`${ve}-wrapper`]:Object.assign(Object.assign({},(0,It.Wf)(le)),{[ve]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${ve}-select`]:{display:"inline-block"},[`${ve}-disabled`]:{color:pe,cursor:"not-allowed"}})}};var et=(0,un.Z)("Upload",le=>{const{fontSizeHeading3:ve,fontSize:pe,lineHeight:be,lineWidth:Ce,controlHeightLG:Ne}=le,Ee=Math.round(pe*be),Be=(0,cn.TS)(le,{uploadThumbnailSize:ve*2,uploadProgressOffset:Ee/2+Ce,uploadPicCardSize:Ne*2.55});return[at(Be),jt(Be),ce(Be),Se(Be),Sn(Be),Cn(Be),ke(Be),(0,an.Z)(Be)]},le=>({actionsColor:le.colorTextDescription})),Ot=function(le,ve,pe,be){function Ce(Ne){return Ne instanceof pe?Ne:new pe(function(Ee){Ee(Ne)})}return new(pe||(pe=Promise))(function(Ne,Ee){function Be(fe){try{mt(be.next(fe))}catch(At){Ee(At)}}function dt(fe){try{mt(be.throw(fe))}catch(At){Ee(At)}}function mt(fe){fe.done?Ne(fe.value):Ce(fe.value).then(Be,dt)}mt((be=be.apply(le,ve||[])).next())})};const Pt=`__LIST_IGNORE_${Date.now()}__`,Gt=(le,ve)=>{const{fileList:pe,defaultFileList:be,onRemove:Ce,showUploadList:Ne=!0,listType:Ee="text",onPreview:Be,onDownload:dt,onChange:mt,onDrop:fe,previewFile:At,disabled:zt,locale:Kt,iconRender:tn,isImageUrl:ze,progress:Ke,prefixCls:rt,className:Xe,type:Bt="select",children:xt,style:lt,itemRender:Wt,maxCount:Zt,data:ta={},multiple:jn=!1,action:Hn="",accept:ua="",supportServerRender:ca=!0,rootClassName:Sa}=le,ra=ae.useContext(pn.Z),kn=zt!=null?zt:ra,[on,Zn]=(0,ut.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,De.Z)(kt),Ht=!1;Zt===1?Dt=Dt.slice(-1):Zt&&(Ht=Dt.length>Zt,Dt=Dt.slice(0,Zt)),(0,bt.flushSync)(()=>{Zn(Dt)});const xn={file:yt,fileList:Dt};Qt&&(xn.event=Qt),(!Ht||Dt.some(fn=>fn.uid===yt.uid))&&(0,bt.flushSync)(()=>{mt==null||mt(xn)})},Pa=(yt,kt)=>Ot(void 0,void 0,void 0,function*(){const{beforeUpload:Qt,transformFile:Dt}=le;let Ht=yt;if(Qt){const xn=yield Qt(yt,kt);if(xn===!1)return!1;if(delete yt[Pt],xn===Pt)return Object.defineProperty(yt,Pt,{value:!0,configurable:!0}),!1;typeof xn=="object"&&xn&&(Ht=xn)}return Dt&&(Ht=yield Dt(Ht)),Ht}),Lt=yt=>{const kt=yt.filter(Ht=>!Ht.file[Pt]);if(!kt.length)return;const Qt=kt.map(Ht=>Jt(Ht.file));let Dt=(0,De.Z)(on);Qt.forEach(Ht=>{Dt=qt(Ht,Dt)}),Qt.forEach((Ht,xn)=>{let fn=Ht;if(kt[xn].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,fn=sa}Wn(fn,Dt)})},gn=(yt,kt,Qt)=>{try{typeof yt=="string"&&(yt=JSON.parse(yt))}catch(xn){}if(!Nt(kt,on))return;const Dt=Jt(kt);Dt.status="done",Dt.percent=100,Dt.response=yt,Dt.xhr=Qt;const Ht=qt(Dt,on);Wn(Dt,Ht)},mn=(yt,kt)=>{if(!Nt(kt,on))return;const Qt=Jt(kt);Qt.status="uploading",Qt.percent=yt.percent;const Dt=qt(Qt,on);Wn(Qt,Dt,yt)},Nn=(yt,kt,Qt)=>{if(!Nt(Qt,on))return;const Dt=Jt(Qt);Dt.error=yt,Dt.response=kt,Dt.status="error";const Ht=qt(Dt,on);Wn(Dt,Ht)},Mn=yt=>{let kt;Promise.resolve(typeof Ce=="function"?Ce(yt):Ce).then(Qt=>{var Dt;if(Qt===!1)return;const Ht=ea(yt,on);Ht&&(kt=Object.assign(Object.assign({},yt),{status:"removed"}),on==null||on.forEach(xn=>{const fn=kt.uid!==void 0?"uid":"name";xn[fn]===kt[fn]&&!Object.isFrozen(xn)&&(xn.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:gn,onProgress:mn,onError:Nn,fileList:on,upload:Jn.current}));const{getPrefixCls:va,direction:pa,upload:ln}=ae.useContext(Dn.E_),rn=va("upload",rt),ia=Object.assign(Object.assign({onBatchStart:Lt,onError:Nn,onProgress:mn,onSuccess:gn},le),{data:ta,multiple:jn,action:Hn,accept:ua,supportServerRender:ca,prefixCls:rn,disabled:kn,beforeUpload:Pa,onChange:void 0});delete ia.className,delete ia.style,(!xt||kn)&&delete ia.id;const[La,ya]=et(rn),[wa]=(0,Ln.Z)("Upload",yn.Z.Upload),{showRemoveIcon:nt,showPreviewIcon:He,showDownloadIcon:Ve,removeIcon:tt,previewIcon:_t,downloadIcon:dn}=typeof Ne=="boolean"?{}:Ne,vn=(yt,kt)=>Ne?ae.createElement(Mt,{prefixCls:rn,listType:Ee,items:on,previewFile:At,onPreview:Be,onDownload:dt,onRemove:Mn,showRemoveIcon:!kn&&nt,showPreviewIcon:He,showDownloadIcon:Ve,removeIcon:tt,previewIcon:_t,downloadIcon:dn,iconRender:tn,locale:Object.assign(Object.assign({},wa),Kt),isImageUrl:ze,progress:Ke,appendAction:yt,appendActionVisible:kt,itemRender:Wt,disabled:kn}):yt,sn=_e()(`${rn}-wrapper`,Xe,Sa,ya,ln==null?void 0:ln.className,{[`${rn}-rtl`]:pa==="rtl",[`${rn}-picture-card-wrapper`]:Ee==="picture-card",[`${rn}-picture-circle-wrapper`]:Ee==="picture-circle"}),bn=Object.assign(Object.assign({},ln==null?void 0:ln.style),lt);if(Bt==="drag"){const yt=_e()(ya,rn,`${rn}-drag`,{[`${rn}-drag-uploading`]:on.some(kt=>kt.status==="uploading"),[`${rn}-drag-hover`]:oa==="dragover",[`${rn}-disabled`]:kn,[`${rn}-rtl`]:pa==="rtl"});return La(ae.createElement("span",{className:sn},ae.createElement("div",{className:yt,style:bn,onDrop:na,onDragOver:na,onDragLeave:na},ae.createElement(pt,Object.assign({},ia,{ref:Jn,className:`${rn}-btn`}),ae.createElement("div",{className:`${rn}-drag-container`},xt))),vn()))}const Bn=_e()(rn,`${rn}-select`,{[`${rn}-disabled`]:kn}),An=(yt=>ae.createElement("div",{className:Bn,style:yt},ae.createElement(pt,Object.assign({},ia,{ref:Jn}))))(xt?void 0:{display:"none"});return La(Ee==="picture-card"||Ee==="picture-circle"?ae.createElement("span",{className:sn},vn(An,!!xt)):ae.createElement("span",{className:sn},An,vn()))};var Fn=ae.forwardRef(Gt),Ae=function(le,ve){var pe={};for(var be in le)Object.prototype.hasOwnProperty.call(le,be)&&ve.indexOf(be)<0&&(pe[be]=le[be]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,be=Object.getOwnPropertySymbols(le);Ce<be.length;Ce++)ve.indexOf(be[Ce])<0&&Object.prototype.propertyIsEnumerable.call(le,be[Ce])&&(pe[be[Ce]]=le[be[Ce]]);return pe},hn=ae.forwardRef((le,ve)=>{var{style:pe,height:be}=le,Ce=Ae(le,["style","height"]);return ae.createElement(Fn,Object.assign({ref:ve},Ce,{type:"drag",style:Object.assign(Object.assign({},pe),{height:be})}))});const zn=Fn;zn.Dragger=hn,zn.LIST_IGNORE=Pt;var en=zn}}]);
|