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.
130 lines
342 KiB
130 lines
342 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[1450],{22751:function(we,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return ue}});var ge=ie(87462),fe=ie(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Re=_e,Se=ie(74643),Te=function(Fe,ze){return fe.createElement(Se.Z,(0,ge.Z)({},Fe,{ref:ze,icon:Re}))},ue=fe.forwardRef(Te)},91034:function(we,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return ue}});var ge=ie(87462),fe=ie(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Re=_e,Se=ie(74643),Te=function(Fe,ze){return fe.createElement(Se.Z,(0,ge.Z)({},Fe,{ref:ze,icon:Re}))},ue=fe.forwardRef(Te)},71736:function(we,Qe){"use strict";Qe.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function 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 Qe=[];function ie(ne,a){var y=Qe.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ge(){var ne=Qe.pop();return ne===void 0?new go.Point:ne}function fe(ne){Qe.push(ne)}function _e(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var ae=ne-y,oe=b-z,re=NaN,le=NaN;if(ae===0)if(oe===0)ne===y&&(re=ne,le=a);else{var me=(E-ee)/oe,Ce=E-me*b;re=ne,le=me*re+Ce}else if(oe===0){var xe=(a-x)/ae,et=a-xe*ne;re=b,le=xe*re+et}else{var xe=(a-x)/ae,me=(E-ee)/oe,et=a-xe*ne,Ce=E-me*b;re=(Ce-et)/(xe-me),le=xe*re+et}return te.x=re,te.y=le,te}function Re(ne,a,y,x,b,E,z,ee,te,ae,oe,re,le,me){var Ce=1-te,xe=te,et=ne*Ce+y*xe,St=a*Ce+x*xe,vt=y*Ce+b*xe,Le=x*Ce+E*xe,je=b*Ce+z*xe,Xe=E*Ce+ee*xe,We=et*Ce+vt*xe,Ye=St*Ce+Le*xe,Lt=vt*Ce+je*xe,bt=Le*Ce+Xe*xe,Nt=We*Ce+Lt*xe,At=Ye*Ce+bt*xe;ae.x=et,ae.y=St,oe.x=We,oe.y=Ye,re.x=Nt,re.y=At,le.x=Lt,le.y=bt,me.x=je,me.y=Xe}var Se=new go.Spot(.156,.156),Te=new go.Spot(.844,.844),ue=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*ue,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=Se,b.spot2=Te,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,ue*a,0,a,(1-ue)*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,ue*y,(1-ue)*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,ue*y,ue*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-ue)*a,0,0,(1-ue)*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 Ue=[];function Fe(){var ne=Ue.pop();return ne===void 0?[]:ne}function ze(ne){ne.length=0,Ue.push(ne)}function Me(ne){for(var a=Fe(),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 Ge(ne){var a=Be(ne),y=Fe();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 ze(a),y}function Be(ne){for(var a=Me(ne),y=Fe(),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],ae=a[(x+z-1)%b],oe=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=_e(ee.x,ee.y,ae.x,ae.y,te.x,te.y,oe.x,oe.y,new go.Point)}return y[y.length]=y[0],ze(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=Me(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()),ze(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=Me(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()),ze(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=Me(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()),ze(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=Me(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()),ze(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=Me(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()),ze(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=Me(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()),ze(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=Me(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()),ze(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=Be(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()),ze(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=Be(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()),ze(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=Be(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()),ze(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=Be(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()),ze(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=Be(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()),ze(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=Be(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()),ze(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=Ge(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(),ze(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=Ge(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(),ze(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=Ge(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(),ze(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=Ge(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(),ze(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=Ge(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(),ze(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=Ge(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(),ze(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=Se,E.spot2=Te,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=ue/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),ae=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,oe=new go.PathFigure(te,0,!0);return b.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),oe.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,ae)),oe.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,a,y-ae)),oe.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),oe.add(new go.PathSegment(go.PathSegment.Line,te,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y-ae)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ae).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,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*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*ue;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*ue,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*ue,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=ue*.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=ue*.4;var ae=ge(),oe=ge(),re=ge(),le=ge();Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,ae,oe,re,le,le);var me=ge(),Ce=ge(),xe=ge();Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,le,le,xe,me,Ce);var et=ge(),St=ge(),vt=ge();Re(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,et,St,vt,le,le);var Le=ge(),je=ge(),Xe=ge();return Re(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,le,le,Xe,Le,je),te.add(new go.PathSegment(go.PathSegment.Move,Xe.x*a,Xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Le.x*a,Le.y*y,je.x*a,je.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,ae.x*a,ae.y*y,oe.x*a,oe.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Xe.x*a,Xe.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,vt.x*a,vt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,me.x*a,me.y*y,Ce.x*a,Ce.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,vt.x*a,vt.y*y,et.x*a,et.y*y,St.x*a,St.y*y).close()),fe(ae),fe(oe),fe(re),fe(le),fe(me),fe(Ce),fe(xe),fe(et),fe(St),fe(vt),fe(Le),fe(je),fe(Xe),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=ue*.4,E=.4,z=.5,ee=.5,te=ge(),ae=ge(),oe=ge(),re=ge(),le=new go.PathFigure((z-E)*a,ee*y,!1);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,oe,re,ae,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y));var me=ie(ae.x,ae.y);Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,ae,oe,re);var Ce=ie(ae.x,ae.y);le.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.y*.1*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,0)),le.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,.15*y)),le.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,(Ce.y*.1+.05*.9)*y)),le.add(new go.PathSegment(go.PathSegment.Line,Ce.x*a,Ce.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=ue*.35;var xe=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var et=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(et),fe(te),fe(ae),fe(oe),fe(re),fe(me),fe(Ce),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*ue,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*ue;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,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E,z)),ae.add(new go.PathSegment(go.PathSegment.Line,E,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var oe=_e(0,ee/y,1,ee/y,E/a,1,1,.5,ge());return te.spot2=new go.Spot(oe.x,oe.y),fe(oe),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,ae=new go.PathFigure(0,z,!0);te.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E,z)),ae.add(new go.PathSegment(go.PathSegment.Line,E,0)),ae.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,y)),ae.add(new go.PathSegment(go.PathSegment.Line,E,ee)),ae.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var oe=_e(0,ee/y,1,ee/y,E/a,1,1,.5,ge());return te.spot2=new go.Spot(oe.x,oe.y),fe(oe),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=_e(0,.5,.3,0,0,b/y,.1,b/y,ge());return z.spot1=new go.Spot(te.x,te.y),te=_e(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),fe(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 ae=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ae.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var re=_e(0,.5,.3,ee/y,0,E/y,1,E/y,ge());return ae.spot1=new go.Spot(re.x,re.y),re=_e(.7,te/y,1,.5,0,z/y,1,z/y,re),ae.spot2=new go.Spot(re.x,re.y),fe(re),ae}),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=_e(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),fe(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 ae=new go.Geometry,oe=new go.PathFigure(a,.5*y,!0);ae.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,te)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),oe.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),ae.spot1=new go.Spot(0,E/y);var re=_e(.7,te/y,1,.5,0,z/y,1,z/y,ge());return ae.spot2=new go.Spot(re.x,re.y),fe(re),ae}),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=_e(.2,.65,1,.65,0,1,1,.5,ge());return b.spot2=new go.Spot(z.x,z.y),fe(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=_e(0,.65,1,.65,0,1,1,.5,ge());return b.spot2=new go.Spot(z.x,z.y),fe(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=_e(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),fe(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=_e(.7,1,1,.5,0,E/y,1,E/y,ge());return z.spot2=new go.Spot(te.x,te.y),fe(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=ue*.5,E=ue*.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=ue*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,ue*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-ue*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-ue*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-ue*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-ue*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=ue*.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,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,ue*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-ue*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-ue*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-ue*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-ue*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=ue*.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-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*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+ue*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+ue*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=ue*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*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-ue*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-ue*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=ue*b,ee=ue*E,te=.5,ae=.1,oe=new go.PathFigure(te*a,(ae+E)*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,ae*y,(te-z)*a,(ae+E)*y,(te-b)*a,(ae+ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-E)*y,(te-b)*a,(ae-ee)*y,(te-z)*a,(ae-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,ae*y,(te+z)*a,(ae-E)*y,(te+b)*a,(ae-ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+E)*y,(te+b)*a,(ae+ee)*y,(te+z)*a,(ae+E)*y));var re=.05,le=ue*re;te=.05,ae=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,ae=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(te+re)*a,ae*y,(te+le)*a,(ae-re)*y,(te+re)*a,(ae-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),re=.025,le=ue*re,te=.825,ae=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te+re)*a,(ae-le)*y,(te+le)*a,(ae-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,ae*y,(te-le)*a,(ae-re)*y,(te-re)*a,(ae-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),re=.05,le=ue*re,te=.5,ae=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te+re)*a,(ae-le)*y,(te+le)*a,(ae-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,ae*y,(te-le)*a,(ae-re)*y,(te-re)*a,(ae-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),re=.025,le=ue*re,te=.175,ae=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te+re)*a,(ae-le)*y,(te+le)*a,(ae-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-re)*a,ae*y,(te-le)*a,(ae-re)*y,(te-re)*a,(ae-le)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),re=.05,le=ue*re,te=.05,ae=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-re)*y,(te-re)*a,(ae-le)*y,(te-le)*a,(ae-re)*y)),me.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=ue*.5,E=ue*.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=ue*.5,E=ue*.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=ue*.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=ue*.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 ae=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),ae.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),ae.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=ue*.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=ue*.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=ue*.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=ue*.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=ue*.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 ae=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),ae.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=ue*.5,E=ue*.4,z=ue*.1,ee=.1,te=.9,ae=.5,oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,y)),oe.add(new go.PathSegment(go.PathSegment.Line,0,0)),oe.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),oe.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,ae*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y,(te+z)*a,(ae+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,ae*y,(te-z)*a,(ae+ee)*y,(te-ee)*a,(ae+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y,(te-z)*a,(ae-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,ae*y,(te+z)*a,(ae-ee)*y,(te+ee)*a,(ae-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=ue*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=ue*.1,z=.9,ee=.5;var ae=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.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=ue*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=ue*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 ae=new go.PathFigure(.8*a,.5*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),ae.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=ue*.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(.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=ue*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 ae=new go.PathFigure(.2*a,0,!0);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.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=ue*.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=ue*.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=ue*.8,ee=.8,te=0,ae=.5,oe=(b-a)/2,re=(E-y)/2,le=new go.PathFigure(te*a+oe,(ae+ee)*y+re,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*y+re,(te-z)*a+oe,(ae+ee)*y+re,(te-ee)*a+oe,(ae+z)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+re,(te-ee)*a+oe,(ae-z)*y+re,(te-z)*a+oe,(ae-ee)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+oe,ae*y+re,te*a+oe,(ae-ee)*y+re,(te-ee+z*.5)*a+oe,(ae-z)*y+re)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+re,(te-ee+z*.5)*a+oe,(ae+z)*y+re,te*a+oe,(ae+ee)*y+re).close()),z=ue*.4,ee=.4,te=.2,ae=.5;var me=new go.PathFigure(te*a+oe,(ae+ee)*y+re,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*y+re,(te-z)*a+oe,(ae+ee)*y+re,(te-ee)*a+oe,(ae+z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+re,(te-ee)*a+oe,(ae-z)*y+re,(te-z)*a+oe,(ae-ee)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+oe,ae*y+re,te*a+oe,(ae-ee)*y+re,(te-ee+z*.5)*a+oe,(ae-z)*y+re)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+re,(te-ee+z*.5)*a+oe,(ae+z)*y+re,te*a+oe,(ae+ee)*y+re).close()),z=ue*.2,ee=.2,te=.5,ae=.5;var Ce=new go.PathFigure((te-ee)*a+oe,ae*y+re,!0);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+re,(te-ee)*a+oe,(ae-z)*y+re,(te-z)*a+oe,(ae-ee)*y+re)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*y+re,(te+z)*a+oe,(ae-ee)*y+re,(te+ee)*a+oe,(ae-z)*y+re)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+re,(te+ee)*a+oe,(ae+z)*y+re,(te+z)*a+oe,(ae+ee)*y+re)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+oe,ae*y+re,(te-z)*a+oe,(ae+ee)*y+re,(te-ee)*a+oe,(ae+z)*y+re)),z=ue*.4,ee=.4,te=.8,ae=.5;var xe=new go.PathFigure(te*a+oe,(ae-ee)*y+re,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*y+re,(te+z)*a+oe,(ae-ee)*y+re,(te+ee)*a+oe,(ae-z)*y+re)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+re,(te+ee)*a+oe,(ae+z)*y+re,(te+z)*a+oe,(ae+ee)*y+re)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+oe,ae*y+re,te*a+oe,(ae+ee)*y+re,(te+ee-z*.5)*a+oe,(ae+z)*y+re)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+re,(te+ee-z*.5)*a+oe,(ae-z)*y+re,te*a+oe,(ae-ee)*y+re).close()),z=ue*.8,ee=.8,te=1,ae=.5;var et=new go.PathFigure(te*a+oe,(ae-ee)*y+re,!0);return x.add(et),et.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+oe,ae*y+re,(te+z)*a+oe,(ae-ee)*y+re,(te+ee)*a+oe,(ae-z)*y+re)),et.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae+ee)*y+re,(te+ee)*a+oe,(ae+z)*y+re,(te+z)*a+oe,(ae+ee)*y+re)),et.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+oe,ae*y+re,te*a+oe,(ae+ee)*y+re,(te+ee-z*.5)*a+oe,(ae+z)*y+re)),et.add(new go.PathSegment(go.PathSegment.Bezier,te*a+oe,(ae-ee)*y+re,(te+ee-z*.5)*a+oe,(ae-z)*y+re,te*a+oe,(ae-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=ue*.4,E=.4,z=.5,ee=.5,te=ge(),ae=ge(),oe=ge(),re=ge();Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ae,oe,re);var le=ie(ae.x,ae.y),me=new go.PathFigure(ae.x*a,ae.y*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,oe.x*a,oe.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)),Re(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,oe,re,ae,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),b=ue*.3,E=.3,Re(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,oe,re,ae,te,te),me.add(new go.PathSegment(go.PathSegment.Line,ae.x*a,ae.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,re.x*a,re.y*y,oe.x*a,oe.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)),Re(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,ae,oe,re),me.add(new go.PathSegment(go.PathSegment.Bezier,ae.x*a,ae.y*y,re.x*a,re.y*y,oe.x*a,oe.y*y).close());var me=new go.PathFigure(.45*a,0,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),fe(te),fe(ae),fe(oe),fe(re),fe(le),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*ue,te=.4*Math.SQRT2/2+.5,ae=.5-.5*Math.SQRT2/2,oe=1,re=.5,le=.5,me=0,Ce=new go.PathFigure(te*a,(1-ae)*y,!1);return x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,re*y,oe*a,.7*y,oe*a,re*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(le+E)*a,(me+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Ce.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)),Ce.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)),Ce.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Ce.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,ae=Math.PI/4,oe=4*(1-Math.cos(ae))/(3*Math.sin(ae)),re=oe*.5,le=z,me=z,Ce=oe*le,xe=oe*me;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-le)*a,te*y,(ee-(Ce+le)/2)*a,(te+(me+xe)/2)*y,(ee-le)*a,(te+xe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-me)*y,(ee-le)*a,(te-xe)*y,(ee-Ce)*a,(te-me)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+le)*a,te*y,(ee+Ce)*a,(te-me)*y,(ee+le)*a,(te-xe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+le)*a,(te+xe)*y,(ee+(Ce+le)/2)*a,(te+(me+xe)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var et=new go.PathFigure(.2*a,y,!1);x.add(et),et.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var St=new go.PathFigure(.8*a,y,!1);return x.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.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=ue*.1,te=.2,ae=.9,oe=new go.PathFigure((te-z)*a,ae*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-z)*y,(te-z)*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ae*y,(te+ee)*a,(ae-z)*y,(te+z)*a,(ae-ee)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+z)*y,(te+z)*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ae*y,(te-ee)*a,(ae+z)*y,(te-z)*a,(ae+ee)*y).close()),z=.1,ee=ue*.1,te=.8,ae=.9;var re=new go.PathFigure((te-z)*a,ae*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae-z)*y,(te-z)*a,(ae-ee)*y,(te-ee)*a,(ae-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,ae*y,(te+ee)*a,(ae-z)*y,(te+z)*a,(ae-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(ae+z)*y,(te+z)*a,(ae+ee)*y,(te+ee)*a,(ae+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,ae*y,(te-ee)*a,(ae+z)*y,(te-z)*a,(ae+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,ae=ue*.1,oe=.1,re=.9,le=new go.PathFigure((oe-te)*a,re*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-te)*y,(oe-te)*a,(re-ae)*y,(oe-ae)*a,(re-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*a,re*y,(oe+ae)*a,(re-te)*y,(oe+te)*a,(re-ae)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+te)*y,(oe+te)*a,(re+ae)*y,(oe+ae)*a,(re+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*a,re*y,(oe-ae)*a,(re+te)*y,(oe-te)*a,(re+ae)*y)),te=.1,ae=ue*.1,oe=.4,re=.9;var me=new go.PathFigure((oe-te)*a,re*y,!0);return x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-te)*y,(oe-te)*a,(re-ae)*y,(oe-ae)*a,(re-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(oe+te)*a,re*y,(oe+ae)*a,(re-te)*y,(oe+te)*a,(re-ae)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+te)*y,(oe+te)*a,(re+ae)*y,(oe+ae)*a,(re+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(oe-te)*a,re*y,(oe-ae)*a,(re+te)*y,(oe-te)*a,(re+ae)*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 oe=.05,re=ue*.05,le=.175,me=.95,ee=new go.PathFigure((le-oe)*a,me*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-oe)*y,(le-oe)*a,(me-re)*y,(le-re)*a,(me-oe)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(le+oe)*a,me*y,(le+re)*a,(me-oe)*y,(le+oe)*a,(me-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+oe)*y,(le+oe)*a,(me+re)*y,(le+re)*a,(me+oe)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(le-oe)*a,me*y,(le-re)*a,(me+oe)*y,(le-oe)*a,(me+re)*y));var oe=.05,re=ue*.05,le=.375,me=.95,te=new go.PathFigure((le-oe)*a,me*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-oe)*y,(le-oe)*a,(me-re)*y,(le-re)*a,(me-oe)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(le+oe)*a,me*y,(le+re)*a,(me-oe)*y,(le+oe)*a,(me-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+oe)*y,(le+oe)*a,(me+re)*y,(le+re)*a,(me+oe)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(le-oe)*a,me*y,(le-re)*a,(me+oe)*y,(le-oe)*a,(me+re)*y));var oe=.05,re=ue*.05,le=.625,me=.95,ae=new go.PathFigure((le-oe)*a,me*y,!0);x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-oe)*y,(le-oe)*a,(me-re)*y,(le-re)*a,(me-oe)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(le+oe)*a,me*y,(le+re)*a,(me-oe)*y,(le+oe)*a,(me-re)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+oe)*y,(le+oe)*a,(me+re)*y,(le+re)*a,(me+oe)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(le-oe)*a,me*y,(le-re)*a,(me+oe)*y,(le-oe)*a,(me+re)*y));var oe=.05,re=ue*.05,le=.825,me=.95,Ce=new go.PathFigure((le-oe)*a,me*y,!0);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me-oe)*y,(le-oe)*a,(me-re)*y,(le-re)*a,(me-oe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(le+oe)*a,me*y,(le+re)*a,(me-oe)*y,(le+oe)*a,(me-re)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,le*a,(me+oe)*y,(le+oe)*a,(me+re)*y,(le+re)*a,(me+oe)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(le-oe)*a,me*y,(le-re)*a,(me+oe)*y,(le-oe)*a,(me+re)*y).close());var xe=new go.PathFigure(0,y,!1);return x.add(xe),xe.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=ue*.05,ae=.35,oe=.775,re=new go.PathFigure((ae-ee)*a,oe*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe-ee)*y,(ae-ee)*a,(oe-te)*y,(ae-te)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ae+ee)*a,oe*y,(ae+te)*a,(oe-ee)*y,(ae+ee)*a,(oe-te)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ae*a,(oe+ee)*y,(ae+ee)*a,(oe+te)*y,(ae+te)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ae-ee)*a,oe*y,(ae-te)*a,(oe+ee)*y,(ae-ee)*a,(oe+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=ue*.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 ae=new go.PathFigure(0,.7*y,!1);return x.add(ae),ae.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=ue*.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 ae=new go.PathFigure(.15*a,.5*y,!1);return x.add(ae),ae.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=ue*.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=ue*.05,z=.5,ee=.8;var ae=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ae.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()),ae.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),ae.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),ae.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),ae.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*ue,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 ae=new go.PathFigure(a*.78,y*.05,!1);return x.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),ae.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),ae.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*ue,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*ue,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")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var we={},Qe="5.0",ie={},ge=null,fe=!1,_e=!1,Re=null,Se=!1,Te=null,ue=null,Ue=0;Ue<arguments.length;Ue++){var Fe=arguments[Ue];if(Fe!==null)switch(typeof Fe){case"number":Qe=Fe.toFixed(1);break;case"string":Fe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Qe=Fe:Re=Fe;break;case"object":typeof Fe.is3D!="undefined"?ge=Fe:ie=Fe;break;case"boolean":fe=Fe,_e=!0;break}}ge===null&&(ge={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&&!_e&&(fe=!0)),Re!==null&&ie.id===void 0&&(ie.id=Re);var ze="",Me="",Ge=!1,Be=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,Ee){ue=ye,bt(ye,Ee)},we.setJavaCodebase=we.setJavaCodebaseVersion=we.isCompiledInstalled=we.setPreCompiledScriptPath=we.setPreCompiledResourcePath=function(){},we.setHTML5CodebaseVersion=function(ye,Ee){var De=parseFloat(ye);if(De!==NaN&&De<5){console.log("The GeoGebra HTML5 codebase version "+De+" is deprecated. Using version latest instead.");return}Te=ye,Lt(ye,Ee)},we.getHTML5CodebaseVersion=function(){return ne},we.getParameters=function(){return ie},we.setFontsCSSURL=function(ye){z=ye},we.setGiacJSURL=function(ye){},we.setJNLPFile=function(ye){ze=ye},we.setJNLPBaseDir=function(ye){},we.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ee="auto",De=ie.id,st,Ze=!1,mt=0;mt<arguments.length;mt++){var de=arguments[mt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ee=de:De=arguments[mt]):typeof de=="boolean"?Ze=de:de instanceof HTMLElement&&(st=de)}Ke();function Ke(){if(!Se){setTimeout(Ke,200);return}Ee=We(Ee);var ht=st||document.getElementById(De);if(!ht){console.log("possibly bug on ajax loading? ");return}if(we.removeExistingApplet(ht,!1),ie.width===void 0&&ht.clientWidth&&(ie.width=ht.clientWidth),ie.height===void 0&&ht.clientHeight&&(ie.height=ht.clientHeight),!(ie.width&&ie.height)&&Ee==="html5"&&(delete ie.width,delete ie.height),Be=Ee,Ee==="screenshot")St(ht,ie);else{var Ft=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?Ft=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(Ft=(!ae()||ye())&&oe()),Ft?(Be="screenshot",Le(ht,ie,Ze,Ee)):et(ht,ie,Ze)}}};function ae(){try{return window.self!==window.top}catch(ye){return!0}}function oe(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}we.getViews=function(){return ge},we.isJavaInstalled=function(){return!1};var re=function(ye){var Ee=function(mt){var de=JSON.parse(mt),Ke=function(tt){return tt.type=="G"||tt.type=="E"},ht=de.elements?de.elements.filter(Ke)[0]:de;if(!ht||!ht.url){De();return}ie.fileName=ht.url,le(ht.settings||{}),ge.is3D=!0;var Ft="https://www.geogebra.org/images/";we.setPreviewImage(x||ht.previewUrl,Ft+"GeoGebra_loading.png",Ft+"applet_play.png"),ye()},De=function(){ie.onError&&ie.onError(),Nt("Error: Fetching material (id "+ie.material_id+") failed.",ie)},st=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ze="/materials/"+ie.material_id+"?scope=basic";me("https://"+st+"/api/proxy.php?path="+encodeURIComponent(Ze),Ee,De)};function le(ye){var Ee=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(De){ye[De]=!!ye[De]}),Ee.forEach(function(De){ie[De]===void 0&&ye[De]!==void 0&&(ie[De]=ye[De])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function me(ye,Ee,De){var st=new XMLHttpRequest;st.open("GET",ye),st.onload=function(){Ee(st.responseText)},st.onerror=De,st.send()}we.isHTML5Installed=function(){return!0},we.getLoadedAppletType=function(){return Be},we.setPreviewImage=function(ye,Ee,De){x=ye,b=Ee,E=De},we.removeExistingApplet=function(ye,Ee){var De;typeof ye=="string"&&(ye=document.getElementById(ye)),Be=null;var st=null;for(De=0;De<ye.childNodes.length;De++){var Ze=ye.childNodes[De],mt=Ze.className;mt==="applet_screenshot"?Ee?(Ze.style.display="block",Be="screenshot"):Ze.style.display="none":mt!=="applet_scaler prerender"&&(ye.removeChild(Ze),st=mt&&mt.indexOf("appletParameters")!=-1?Ze.id:null,De--)}var de=ie.id!==void 0?ie.id:st,Ke=window[de];Ke&&typeof Ke.getBase64=="function"&&(Ke.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 Ce=function(ye,Ee,De){var st=document.createElement("param");st.setAttribute("name",Ee),st.setAttribute("value",De),ye.appendChild(st)},xe=function(ye){return ye&&ye!=="false"},et=function(ye,Ee,De){te(ne)<=4.2&&(De=!0);var st=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(st=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ze=document.createElement("div");Ze.classList.add("appletParameters","notranslate");var mt=Ee.width,de=Ee.height;if(Ee.disableAutoScale=Ee.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ee.disableAutoScale,Ee.width!==void 0)if(te(ne)<=4.4)xe(Ee.showToolBar)&&(Ee.height-=7),xe(Ee.showAlgebraInput)&&(Ee.height-=37),Ee.width<605&&xe(Ee.showToolBar)&&(Ee.width=605,mt=605);else{var Ke=100;(xe(Ee.showToolBar)||xe(Ee.showMenuBar))&&(Ee.hasOwnProperty("customToolBar")&&(Ee.customToolbar=Ee.customToolBar),Ke=xe(Ee.showMenuBar)?245:155),mt<Ke&&(Ee.width=Ke,mt=Ke)}Ze.style.border="none",Ze.style.display="inline-block";for(var ht in Ee)Ee.hasOwnProperty(ht)&&ht!=="appletOnLoad"&&Ze.setAttribute("data-param-"+ht,Ee[ht]);z&&Ze.setAttribute("data-param-fontscssurl",z),we.resize=function(){GGBAppletUtils.responsiveResize(ye,Ee)},window.addEventListener("resize",function(ut){we.resize()});var Ft=typeof Ee.appletOnLoad=="function"?Ee.appletOnLoad:function(){};if(!De&&Ee.width!==void 0){Ee.hasOwnProperty("showSplash")||Ze.setAttribute("data-param-showSplash","false");var tt=ye.querySelector(".applet_scaler.prerender"),Oe=tt!==null;if(Oe)var be=tt.querySelector(".ggb_preview");else{var be=Xe(mt,de,Ee.borderColor,!1);tt=document.createElement("div"),tt.className="applet_scaler",tt.style.position="relative",tt.style.display="block",tt.style.width=mt+"px",tt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(tt,"66%"),te(ne)>=5?(Ee.appletOnLoad=function(ut){var ct=ye.querySelector(".ggb_preview");ct&&ct.parentNode.removeChild(ct),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(tt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ft(ut)},Oe||tt.appendChild(be)):Ze.appendChild(be),tt.appendChild(Ze),Oe||ye.appendChild(tt),setTimeout(function(){we.resize()},1)}else{var he=document.createElement("div");he.className="applet_scaler",he.style.position="relative",he.style.display="block",he.appendChild(Ze),ye.appendChild(he),Ee.appletOnLoad=function(ut){we.resize(),Ft(ut)}}function Pe(ut,ct){ct&&typeof ct.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ut,ct.appletOnLoad):renderGGBElement(ut),Nt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ct)}function ve(ut,ct){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ut,params:ct}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(xt){Pe(xt.article,xt.params)}),html5AppletsToProcess=null)},te(ne)<5&&(ut.className+=" geogebraweb")):Pe(ut,ct)}if(st){scriptLoadStarted=!0;for(var Ne=0;Ne<Ze.childNodes.length;Ne++){var He=Ze.childNodes[Ne].tagName;He==="TABLE"&&(Ze.removeChild(Ze.childNodes[Ne]),Ne--)}if(ggbHTML5LoadedScript!==null){var qe=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');qe!=null&&qe.parentNode.removeChild(qe)}var at=document.createElement("script"),it=function(){ve(Ze,Ee)};at.src=Me+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=at.src,Nt("GeoGebra HTML5 codebase loaded: '"+Me+"'.",Ee),!ue&&(!Te||Te=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),it()):Me.requirejs?__webpack_require__.e(12).then(function(){var ut=[__webpack_require__(12)];it.apply(null,ut)}.bind(this)).catch(__webpack_require__.oe):(at.onload=it,ye.appendChild(at))}else ve(Ze,Ee);Ee.height=de,Ee.width=mt},St=function(ye,Ee,De){var st=Xe(Ee.width,Ee.height,Ee.borderColor,De),Ze=document.createElement("div");Ze.style.position="relative",Ze.style.display="block",Ze.style.width=Ee.width+"px",Ze.style.height=Ee.height+"px",Ze.className="applet_screenshot applet_scaler"+(De?" applet_screenshot_play":""),Ze.appendChild(st);var mt=GGBAppletUtils.getScale(Ee,ye,De);De?(ye.appendChild(je()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ze,"66%"),ye.appendChild(Ze),mt!==1&&!isNaN(mt)&&(GGBAppletUtils.scaleElement(Ze,mt),Ze.style.width=Ee.width+"px",Ze.style.height=Ee.height+"px",Ze.parentNode.style.width=Ee.width*mt+"px",Ze.parentNode.style.height=Ee.height*mt+"px"),we.resize=function(){vt(ye,st,Ze,De)},window.addEventListener("resize",function(de){we.resize()}),we.resize()};function vt(ye,Ee,De,st){if(ye.contains(Ee)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var Ze=GGBAppletUtils.getScale(ie,ye,st);De.parentNode!==null&&(!isNaN(Ze)&&Ze!==1?(GGBAppletUtils.scaleElement(De,Ze),De.parentNode.style.width=ie.width*Ze+"px",De.parentNode.style.height=ie.height*Ze+"px"):(GGBAppletUtils.scaleElement(De,1),De.parentNode.style.width=ie.width+"px",De.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,Ee){Ee.appendChild(ye)};var Le=function(ye,Ee,De,st){St(ye,Ee,!0);for(var Ze=function(){var Ke=[];for(de=0;de<ye.childNodes.length;de++)Ke.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var ht=window.GGBT_wsf_view.renderFullScreen(ye,Ee.id),Ft=document.getElementById("fullscreencontainer"),tt=jQuery(ye).find(".fullscreencontent");tt.length>0?(ht.remove(),tt.attr("id","fullscreencontent").show(),jQuery(Ft).append(tt),window.dispatchEvent(new Event("resize"))):et(ht,Ee,!1),window.GGBT_wsf_view.launchFullScreen(Ft)}else Be=st,et(ye,Ee,!1);if(!window.GGBT_wsf_view)for(de=0;de<Ke.length;de++)ye.removeChild(Ke[de])},mt=ye.getElementsByClassName("ggb_preview_play"),de=0;de<mt.length;de++)mt[de].addEventListener("click",Ze,!1),mt[de].addEventListener("ontouchstart",Ze,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),oe()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},je=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ee='.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");}',De=document.createElement("style");De.styleSheet?De.styleSheet.cssText=Ee:De.appendChild(document.createTextNode(Ee)),document.getElementsByTagName("head")[0].appendChild(De)}return ye},Xe=function(ye,Ee,De,st){var Ze=document.createElement("div");Ze.className="ggb_preview",Ze.style.position="absolute",Ze.style.zIndex="90",Ze.style.width=ye-2+"px",Ze.style.height=Ee-2+"px",Ze.style.top="0px",Ze.style.left="0px",Ze.style.overflow="hidden",Ze.style.backgroundColor="white";var mt="lightgrey";De!==void 0&&(De==="none"?mt="transparent":mt=De),Ze.style.border="1px solid "+mt;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 Ke,ht,Ft;if(!st){Ke=document.createElement("img"),Ke.style.position="absolute",Ke.style.zIndex="1001",Ke.style.opacity=1,de.style.opacity=.3,ht=360,ht>ye/4*3&&(ht=ye/4*3),Ft=ht/5.8,Ke.setAttribute("src",b),Ke.setAttribute("width",ht),Ke.setAttribute("height",Ft);var tt=(ye-ht)/2,Oe=(Ee-Ft)/2;Ke.style.left=tt+"px",Ke.style.top=Oe+"px",Ze.appendChild(Ke)}}return Ze.appendChild(de),Ze},We=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},Ye=["web","webSimple","web3d","tablet","tablet3d","phone"],Lt=function(ye,Ee){if(ne=ye,Ee){bt(ne,!0);return}var De=!fe;if(De){var st=te(ne);!isNaN(st)&&st<4.4&&(De=!1)}var Ze,mt;window.location.protocol.substr(0,4)==="http"?Ze=window.location.protocol:Ze="http:";var de=ne.indexOf("//");de>0?mt=ne:de===0?mt=Ze+ne:mt="https://www.geogebra.org/apps/5.2.814.0/";for(var Ke in Ye)if(ne.slice(Ye[Ke].length*-1)===Ye[Ke]||ne.slice((Ye[Ke].length+1)*-1)===Ye[Ke]+"/"){bt(mt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&De&&!ge.is3D&&!ge.AV&&!ge.SV&&!ge.CV&&!ge.EV2&&!ge.CP&&!ge.PC&&!ge.DA&&!ge.FI&&!ge.PV&&!xe(ie.showToolBar)&&!xe(ie.showMenuBar)&&!xe(ie.showAlgebraInput)&&!xe(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?mt+="webSimple/":mt+="web3d/",bt(mt,!1)},bt=function(ye,Ee){if(ye.requirejs){Me=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),Me=ye,Ee===null&&(Ee=ye.indexOf("http")===-1),Ge=Ee,a="web.nocache.js",y=!1;var De=Me.split("/");De.length>1&&(!Ee&&De[De.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):Ye.indexOf(De[De.length-2])>=0&&(a=De[De.length-2]+".nocache.js")),De=ye.split("/"),ne=De[De.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 st=parseFloat(ne);st!==NaN&&st<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+st+" is deprecated. Using version latest instead."),Lt("5.0",Ee))},Nt=function(ye,Ee){window.console&&window.console.log&&(!Ee||typeof Ee.showLogging=="undefined"||Ee.showLogging&&Ee.showLogging!=="false")&&console.log(ye)};ie.material_id!==void 0?re(At):At();function At(){var ye=Qe;Te!==null?ye=Te:parseFloat(ye)<5&&(ye="5.0"),Lt(ye,!1),ue!==null&&bt(ue,Ge),Se=!0}return we},GGBAppletUtils=function(){"use strict";function we(){return window.GGBT_wsf_edit!==void 0}function Qe(Se,Te){Te!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Te+","+Te+")",Se.style.webkitTransform="scale("+Te+","+Te+")",Se.style.maxWidth="initial",Se.querySelector(".ggb_preview")!==null&&(Se.querySelector(".ggb_preview").style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Se.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Se.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Se.style.transform="none",Se.style.webkitTransform="none")}function ie(Se,Te,ue,Ue,Fe,ze){var Me=null;if(ze!=null&&ze!="")for(var Ge=Se.parentNode;Ge!=null;)if((" "+Ge.className+" ").indexOf(" "+ze+" ")>-1){Me=Ge;break}else Ge=Ge.parentNode;var Be=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(Me)Be=Me.offsetWidth,ne=Math.max(Ue?Me.offsetWidth:0,Me.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Be=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Be):(Be=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=Be&&(Fe===void 0||!Fe)&&(document.dir==="rtl"?(x=Be-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=Se.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return Se&&((ue===void 0||!ue)&&Te>0&&Te+y<Be?Be=Te:Be-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ne-=E)),{width:Be,height:ne}}function ge(Se,Te,ue,Ue,Fe){if(Se.isScreenshoGenerator)return 1;var ze=Ue!==void 0&&Ue,Me=Se.noScaleMargin!=null&&Se.noScaleMargin,Ge=function(ee){return ee&&ee!=="false"},Be=Ge(Se.autoHeight),ne=ie(Te,Se.width,ue,Be,ze&&window.GGBT_wsf_view||Me,Fe),a=parseInt(ne.width),y=Se.width,x=Se.height;if(y===void 0){var b=Te.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=ze?1:ne.height/x;return ue!==void 0&&!ue&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function fe(Se,Te,ue){var Ue=1,Fe,ze=!1;if(Se.hasOwnProperty("allowUpscale")&&(ze=Se.allowUpscale),Se.hasOwnProperty("scale")&&(Ue=parseFloat(Se.scale),(isNaN(Ue)||Ue===null||Ue===0)&&(Ue=1),Ue>1&&(ze=!0)),Te&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ze=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Fe=ge(Se,Te,ze,ue,Se.scaleContainerClass);else return Ue;return ze&&(!Se.hasOwnProperty("scale")||Ue===1)?Fe:Math.min(Ue,Fe)}function _e(Se){var Te=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ue=Se.getBoundingClientRect(),Fe=(Te-Ue.width)/2,ze=(ue-Ue.height)/2;ze<0&&(ze=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Fe<40?Se.style.left="40px":Se.style.left=Fe+"px",Se.style.top=ze+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ze<40?Se.style.top="40px":Se.style.top=ze+"px",Se.style.left=Fe+"px")}function Re(Se,Te){var ue=Se.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Te.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ue=fe(Te,Se);we()&&ue.setAttribute("data-param-scale",Ue);for(var Fe=null,ze=0;ze<Se.childNodes.length;ze++)if(Se.childNodes[ze].className!==void 0&&Se.childNodes[ze].className.match(/^applet_scaler/)){Fe=Se.childNodes[ze];break}if(Fe!==null&&Fe.querySelector(".noscale")!==null)return;var Me=Te.id!==void 0?Te.id:"ggbApplet",Ge=window[Me];(Ge==null||!Ge.recalculateEnvironments)&&Fe!==null&&!Fe.className.match(/fullscreen/)&&(Fe.parentNode.style.transform="",!isNaN(Ue)&&Ue!==1?(Fe.parentNode.style.width=Te.width*Ue+"px",Fe.parentNode.style.height=Te.height*Ue+"px",Qe(Fe,Ue)):(Qe(Fe,1),Fe.parentNode.style.width=Te.width+"px",Fe.parentNode.style.height=Te.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&_e(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Re,isFlexibleWorksheetEditor:we,positionCenter:_e,getScale:fe,scaleElement:Qe}}();__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,Qe){}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 Qe=s[L].bindings;s[L].bindings=function(){for(var ie=Qe?Qe():{},ge=we[webModule.__softPermutationId],fe=O;fe<ge.length;fe++){var _e=ge[fe];ie[_e[O]]=_e[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 Qe=document.compatMode==U?V:W;t.write(Qe+X),t.close()}}}function w(we){function Qe(ge){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var _e=fe();if(_e){ge();return}function Re(){if(!_e){if(!fe())return;_e=!0,ge(),o.removeEventListener&&o.removeEventListener(Z,Re,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Re,!1);var Se=setInterval(function(){Re()},$)}function ie(ge){var fe=u(),_e=fe.body,Re=fe.createElement(_);Re.language=ab,Re.crossOrigin=W,Re.src=ge,webModule.__errFn&&(Re.onerror=function(){webModule.__errFn(L,new Error(bb+ge))}),_e.appendChild(Re)}Qe(function(){ie(we)})}webModule.__startLoadingFragment=function(we){return C(we)},webModule.__installRunAsyncCode=function(we){var Qe=u(),ie=Qe.body,ge=Qe.createElement(_);ge.language=ab,ge.text=we,ie.appendChild(ge),ie.removeChild(ge)};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 Qe=c[we];return Qe==null?null:Qe},r=d,webModule.__errFn=e}function B(){function we(Se){var Te=Se.lastIndexOf(rb);Te==-1&&(Te=Se.length);var ue=Se.indexOf(sb);ue==-1&&(ue=Se.length);var Ue=Se.lastIndexOf(tb,Math.min(ue,Te));return Ue>=O?Se.substring(O,Ue+P):W}function Qe(Se){if(!Se.match(/^\w+:\/\//)){var Te=o.createElement(ub);Te.src=Se+vb,Se=we(Te.src)}return Se}function ie(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function ge(){for(var Se=o.getElementsByTagName(_),Te=O;Te<Se.length;++Te)if(Se[Te].src.indexOf(xb)!=-1)return we(Se[Te].src);return W}function fe(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function _e(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Re=ie();return Re==W&&(Re=ge()),Re==W&&(Re=fe()),Re==W&&_e()&&(Re=we(o.location.href)),Re=Qe(Re),Re}function C(we){return we.match(/^\//)||we.match(/^[a-zA-Z]+:\/\//)?we:webModule.__moduleBase+we}function D(){var we=[],Qe=O,ie=[],ge=[];function fe(Se){var Te=ge[Se](),ue=ie[Se];if(Te in ue)return Te;var Ue=[];for(var Fe in ue)Ue[ue[Fe]]=Fe;throw r&&r(Se,Ue,Te),null}if(__gwt_isKnownPropertyValue=function(Se,Te){return Te in ie[Se]},webModule.__getPropMap=function(){var Se={};for(var Te in ie)ie.hasOwnProperty(Te)&&(Se[Te]=fe(Te));return Se},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var _e;try{_e=Cb;var Re=_e.indexOf(Db);Re!=-1&&(Qe=parseInt(_e.substring(Re+P),$),_e=_e.substring(O,Re))}catch(Se){}return webModule.__softPermutationId=Qe,C(_e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(we,Qe,ie){"use strict";ie.d(Qe,{Ax:function(){return Re},Ds:function(){return Se},KI:function(){return ue},SI:function(){return _e},f1:function(){return fe}});var ge=ie(11320);function fe(Ue){let Fe=!0;if(Ue.length>0){for(let ze=0;ze<Ue.length;ze++)if(Ue[ze].compile_success==0||!Ue[ze].compile_success){Fe=!1;break}}else Fe=!1;return Fe}function _e(Ue,Fe=""){let ze=[];for(let Me=0;Me<Ue.length;Me++){let Ge=Ue[Me],Be=Fe?`${Fe}/${Ge.name}`:`${Ge.name}`;ze.push({title:Ge.name,type:Ge.type,isLeaf:Ge.type!=="tree",key:Be})}return ze}function Re(Ue,Fe,ze){for(let Me=0;Me<Ue.length;Me++){let Ge=Ue[Me];if(Ge.key===Fe){Ge.children=ze;break}Ge.children&&Re(Ge.children,Fe,ze)}return Ue}function Se(Ue,Fe,ze){let Me;return function(){let Ge=this,Be=arguments,ne=function(){Me=null,ze||Ue.apply(Ge,Be)},a=ze&&!Me;clearTimeout(Me),Me=setTimeout(ne,Fe),a&&Ue.apply(Ge,Be)}}const Te=!0,ue=ge.Z.API_SERVER},63205:function(we,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return Me}});var ge=ie(67294),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},_e=ie(94184),Re=ie.n(_e),Se=ie(57953),Te=ie(15979),ue=ie(33170),Ue=ie(28706),Fe=(Ge,Be,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(Ge,Be)).next())}),Me=({data:Ge,className:Be,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ge.useRef)(null),ee=(0,ge.useRef)(null),te=(0,ge.useRef)(null),ae=(0,ge.useRef)(null),[oe,re]=(0,ge.useState)(!1),[le,me]=(0,ge.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ge.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Ge!=null&&Ge.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ge!=null&&Ge.src&&Ce()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ge==null?void 0:Ge.visible]);const Ce=()=>Fe(void 0,null,function*(){re(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,Ue.ZJ)(Ge==null?void 0:Ge.src);z.current.src="",z.current.src=Le,z.current.onload=function(){vt()},re(!1),me("")}),xe=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},et=Le=>Fe(void 0,null,function*(){re(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const je=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ge.title,file:Le.dataUrl}});je!=null&&je.id&&!E?(yield(0,ue.ZP)(`/api/attachments/${Ge.id}/add_subitem.json`,{method:"post",body:{subitem_id:je==null?void 0:je.id,settings:JSON.stringify(Le.state)}})).status===0&&x():je!=null&&je.id&&x(je),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",re(!1),me("")}),St=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.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(Xe=>{const We=document.querySelector(Xe.name);We&&We.setAttribute("title",Xe.title)})},vt=()=>{ee.current=new Te.hP(z.current),ee.current.targetRoot=ae.current,ee.current.addEventListener("render",et),ee.current.addEventListener("beforeclose",xe),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(),Ge!=null&&Ge.snapshotData&&ee.current.restoreState(Ge.snapshotData),setTimeout(()=>{window.scrollTo(0,0),St()},300)};return ge.createElement(ge.Fragment,null,(Ge==null?void 0:Ge.visible)&&ge.createElement(Se.Z,{spinning:oe,tip:le,style:{position:"absolute"}},ge.createElement("div",{ref:ae,className:Re()(fe.imageDimensions,Be,ne?fe.fullWidth:""),style:a},ge.createElement("img",{className:fe.img,ref:z}))))}},36527:function(we,Qe,ie){"use strict";var ge=ie(67294),fe=ie(71230),_e=ie(15746),Re=ie(66368),Se=ie(71577),Te=ie(85725),ue=ie(71736),Ue=ie(84279),Fe=ie(67294);const ze=(0,ge.forwardRef)(({callback:Me,showSaveButton:Ge,value:Be=""},ne)=>{const a=(0,ge.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:Fe.createElement(fe.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,te)=>Fe.createElement(_e.Z,{flex:"110px",className:ue.Z.item},Fe.createElement("div",null,Fe.createElement(Te.Z,{value:`$$${ee.value}$$`}),ee.name),Fe.createElement("div",{className:ue.Z.children},ee.children.map((ae,oe)=>Fe.createElement("div",{key:oe},Fe.createElement("h1",null,ae.name),Fe.createElement(fe.Z,{gutter:[10,10]},ae.data.map((re,le)=>Fe.createElement(_e.Z,{key:le,onClick:()=>b(re),className:ue.Z.diamond},Fe.createElement(Te.Z,{value:"`$$"+re.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Fe.createElement(fe.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((ee,te)=>Fe.createElement(_e.Z,{flex:"110px",className:ue.Z.item},Fe.createElement("div",null,Fe.createElement(Te.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Fe.createElement("div",{className:ue.Z.children},ee.children.map((ae,oe)=>Fe.createElement("div",{key:oe},ae.name&&Fe.createElement("h1",null,ae.name),Fe.createElement(fe.Z,{gutter:[10,10]},ae.data.map((re,le)=>Fe.createElement(_e.Z,{key:le,onClick:()=>b(re),className:ue.Z.diamond},Fe.createElement(Te.Z,{value:"`$$"+re.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Me&&Me(te),te};return(0,ge.useImperativeHandle)(ne,()=>({getData:z})),Fe.createElement("div",{className:ue.Z.mathWrap},Fe.createElement(Re.default,{defaultActiveKey:"1",items:E}),Fe.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Be||""),Ge&&Fe.createElement("div",{className:ue.Z.button},Fe.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Qe.Z=ze},57444:function(we,Qe,ie){"use strict";ie.d(Qe,{h:function(){return ee}});var ge=ie(67294),fe=ie(11713),_e=ie(22150),Re=ie(71577),Se=ie(4631),Te=ie.n(Se),ue=ie(71749),Ue=ie(30483),Fe=Object.defineProperty,ze=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,ae,oe)=>ae in te?Fe(te,ae,{enumerable:!0,configurable:!0,writable:!0,value:oe}):te[ae]=oe,y=(te,ae)=>{for(var oe in ae||(ae={}))Be.call(ae,oe)&&a(te,oe,ae[oe]);if(Ge)for(var oe of Ge(ae))ne.call(ae,oe)&&a(te,oe,ae[oe]);return te},x=(te,ae)=>ze(te,Me(ae));const b=fe.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"]};Qe.Z=({callback:te,onCancel:ae})=>{const[oe,re]=(0,ge.useState)("python");function le(Ce){re(z[Ce][1])}function me(Ce){te(Ce)}return ge.createElement(_e.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),ge.createElement(_e.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ge.createElement(fe.default,{getPopupContainer:Ce=>Ce.parentNode,onChange:le},Object.keys(z).map(Ce=>ge.createElement(b,{key:Ce,value:Ce},z[Ce][0])))),ge.createElement(_e.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ge.createElement(ee,{mode:oe})),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(Re.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(Re.ZP,{type:"ghost",onClick:ae},"\u53D6\u6D88")))};function ee({value:te,onChange:ae,mode:oe,options:re={}}){const le=(0,ge.useRef)(),[me,Ce]=(0,ge.useState)();return(0,ge.useEffect)(()=>{if(me){let xe=function(et){const St=et.getValue();ae&&ae(St)};return me.on("change",xe),()=>{me.off("change",xe)}}},[me,ae]),(0,ge.useEffect)(()=>{me&&me.setOption("mode",oe)},[me,oe]),(0,ge.useEffect)(()=>{me&&(te!==me.getValue()||te==="")&&setTimeout(()=>{me.setValue(te||"")},300)},[me,te]),(0,ge.useEffect)(()=>{if(le.current&&!me){const xe=Te().fromTextArea(le.current,y({mode:oe,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},re));Ce(xe)}},[le.current,me]),ge.createElement("div",{className:"my-codemirror-container"},ge.createElement("textarea",{ref:le}))}},35567:function(we,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return Dn}});var ge=ie(67294),fe=ie(4631),_e=ie.n(fe),Re=ie(91033),Se=ie(71749),Te=ie(57341),ue=ie(82801),Ue=ie(88386),Fe=ie(49047),ze=ie(80785),Me=ie(85725),Ge=({value:se="",className:pe,showTextOnly:ce,showLines:ke,style:gt={}})=>{const dt=(0,ge.useMemo)(()=>"",[se]);return ge.createElement(ge.Fragment,null,ge.createElement("div",{dangerouslySetInnerHTML:{__html:dt}}))},Be=ie(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(se,pe,ce)=>pe in se?ne(se,pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):se[pe]=ce,ee=(se,pe)=>{for(var ce in pe||(pe={}))b.call(pe,ce)&&z(se,ce,pe[ce]);if(x)for(var ce of x(pe))E.call(pe,ce)&&z(se,ce,pe[ce]);return se},te=(se,pe)=>a(se,y(pe));let ae=[{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 oe({onActionCallback:se,title:pe,icon:ce,actionName:ke,className:gt="",children:dt}){function Ot(){se(ke)}return Be.createElement("a",{title:pe,className:gt,onClick:Ot},Be.createElement("i",{className:`${ce}`}),dt)}var re=({watch:se,showNullButton:pe,showNullProgramButton:ce,onActionCallback:ke,fullScreen:gt,insertTemp:dt,hidetoolBar:Ot,extraUse:yt})=>{const wt=[...ae,{title:`${se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Be.createElement("ul",{className:"markdown-toolbar-container"},!Ot&&wt.map((It,hn)=>Be.createElement("li",{key:hn},It.actionName?Be.createElement(oe,te(ee({},It),{onActionCallback:ke})):Be.createElement("span",{className:"v-line"}))),pe?Be.createElement("li",null,Be.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:ke},Be.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ce?Be.createElement(Be.Fragment,null,Be.createElement("li",null,Be.createElement(oe,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:ke},Be.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Be.createElement("li",null,Be.createElement(oe,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:ke},Be.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,dt&&Be.createElement("li",null,Be.createElement(oe,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${dt}`,onActionCallback:ke},Be.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),yt&&Be.createElement("li",null,yt),Be.createElement("li",{className:"btn-full-screen"},Be.createElement(oe,{icon:`${gt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:gt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:ke})))},le=ie(76621),me=ie(22150),Ce=ie(69677),xe=ie(71577),et=Object.defineProperty,St=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,Xe=Object.prototype.propertyIsEnumerable,We=(se,pe,ce)=>pe in se?et(se,pe,{enumerable:!0,configurable:!0,writable:!0,value:ce}):se[pe]=ce,Ye=(se,pe)=>{for(var ce in pe||(pe={}))je.call(pe,ce)&&We(se,ce,pe[ce]);if(Le)for(var ce of Le(pe))Xe.call(pe,ce)&&We(se,ce,pe[ce]);return se},Lt=(se,pe)=>St(se,vt(pe));const bt={labelCol:{span:4},wrapperCol:{span:20}};var Nt=({callback:se,onCancel:pe})=>{function ce(ke){se(ke)}return ge.createElement(me.default,Lt(Ye({},bt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ce,style:{width:500}}),ge.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ge.createElement(Ce.default,null)),ge.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ge.createElement(Ce.default,null)),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(xe.ZP,{type:"ghost",onClick:pe},"\u53D6\u6D88")))},At=ie(57444),ye=ie(70859),Ee=ie(14446),De=ie(71230),st=ie(63205),Ze=ie(67294),mt=({callback:se,onCancel:pe})=>{const ce=document.createElement("canvas"),ke=ce.getContext("2d");ce.width=1e3,ce.height=800,ke.fillStyle="#ffffff",ke.fillRect(0,0,ce.width,ce.height);const gt=ce.toDataURL("image/png");return Ze.createElement(Ee.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ze.createElement(De.Z,{style:{height:"100vh"}},Ze.createElement(st.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:gt,visible:!0,title:String(Date.now())},onOk:dt=>{se({src:dt.url})},onClose:pe})))},de=ie(23495);function Ke(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ke,go.CommandHandler),Ke.prototype.canAlignSelection=function(){var se=this.diagram;return!(se===null||se.isReadOnly||se.isModelReadOnly||se.selection.count<2)},Ke.prototype.alignLeft=function(){var se=this.diagram;se.startTransaction("aligning left");var pe=1/0;se.selection.each(function(ce){ce instanceof go.Link||(pe=Math.min(ce.position.x,pe))}),se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(pe,ce.position.y))}),se.commitTransaction("aligning left")},Ke.prototype.alignRight=function(){var se=this.diagram;se.startTransaction("aligning right");var pe=-1/0;se.selection.each(function(ce){if(!(ce instanceof go.Link)){var ke=ce.actualBounds.x+ce.actualBounds.width;pe=Math.max(ke,pe)}}),se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(pe-ce.actualBounds.width,ce.position.y))}),se.commitTransaction("aligning right")},Ke.prototype.alignTop=function(){var se=this.diagram;se.startTransaction("alignTop");var pe=1/0;se.selection.each(function(ce){ce instanceof go.Link||(pe=Math.min(ce.position.y,pe))}),se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.position.x,pe))}),se.commitTransaction("alignTop")},Ke.prototype.alignBottom=function(){var se=this.diagram;se.startTransaction("aligning bottom");var pe=-1/0;se.selection.each(function(ce){if(!(ce instanceof go.Link)){var ke=ce.actualBounds.y+ce.actualBounds.height;pe=Math.max(ke,pe)}}),se.selection.each(function(ce){ce instanceof go.Link||ce.move(new go.Point(ce.actualBounds.x,pe-ce.actualBounds.height))}),se.commitTransaction("aligning bottom")},Ke.prototype.alignCenterX=function(){var se=this.diagram,pe=se.selection.first();if(pe){se.startTransaction("aligning Center X");var ce=pe.actualBounds.x+pe.actualBounds.width/2;se.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ce-ke.actualBounds.width/2,ke.actualBounds.y))}),se.commitTransaction("aligning Center X")}},Ke.prototype.alignCenterY=function(){var se=this.diagram,pe=se.selection.first();if(pe){se.startTransaction("aligning Center Y");var ce=pe.actualBounds.y+pe.actualBounds.height/2;se.selection.each(function(ke){ke instanceof go.Link||ke.move(new go.Point(ke.actualBounds.x,ce-ke.actualBounds.height/2))}),se.commitTransaction("aligning Center Y")}},Ke.prototype.alignColumn=function(se){var pe=this.diagram;pe.startTransaction("align Column"),se===void 0&&(se=0),se=parseFloat(se);var ce=new Array;pe.selection.each(function(yt){yt instanceof go.Link||ce.push(yt)});for(var ke=0;ke<ce.length-1;ke++){var gt=ce[ke],dt=gt.actualBounds.y+gt.actualBounds.height+se,Ot=ce[ke+1];Ot.move(new go.Point(gt.actualBounds.x,dt))}pe.commitTransaction("align Column")},Ke.prototype.alignRow=function(se){se===void 0&&(se=0),se=parseFloat(se);var pe=this.diagram;pe.startTransaction("align Row");var ce=new Array;pe.selection.each(function(yt){yt instanceof go.Link||ce.push(yt)});for(var ke=0;ke<ce.length-1;ke++){var gt=ce[ke],dt=gt.actualBounds.x+gt.actualBounds.width+se,Ot=ce[ke+1];Ot.move(new go.Point(dt,gt.actualBounds.y))}pe.commitTransaction("align Row")},Ke.prototype.canRotate=function(se){var pe=this.diagram;return!(pe===null||pe.isReadOnly||pe.isModelReadOnly||pe.selection.count<1)},Ke.prototype.rotate=function(se){se===void 0&&(se=90);var pe=this.diagram;pe.startTransaction("rotate "+se.toString());var pe=this.diagram;pe.selection.each(function(ce){ce instanceof go.Link||ce instanceof go.Group||(ce.angle+=se)}),pe.commitTransaction("rotate "+se.toString())},Ke.prototype.pullToFront=function(){var se=this.diagram;se.startTransaction("pullToFront");var pe=new go.Map;se.selection.each(function(ce){pe.set(ce.layer,0)}),pe.iteratorKeys.each(function(ce){var ke=0;ce.parts.each(function(gt){if(!gt.isSelected){var dt=gt.zOrder;isNaN(dt)?gt.zOrder=0:ke=Math.max(ke,dt)}}),pe.set(ce,ke)}),se.selection.each(function(ce){Ke._assignZOrder(ce,pe.get(ce.layer)+1)}),se.commitTransaction("pullToFront")},Ke.prototype.pushToBack=function(){var se=this.diagram;se.startTransaction("pushToBack");var pe=new go.Map;se.selection.each(function(ce){pe.set(ce.layer,0)}),pe.iteratorKeys.each(function(ce){var ke=0;ce.parts.each(function(gt){if(!gt.isSelected){var dt=gt.zOrder;isNaN(dt)?gt.zOrder=0:ke=Math.min(ke,dt)}}),pe.set(ce,ke)}),se.selection.each(function(ce){Ke._assignZOrder(ce,pe.get(ce.layer)-1-Ke._findGroupDepth(ce))}),se.commitTransaction("pushToBack")},Ke._assignZOrder=function(se,pe,ce){ce===void 0&&(ce=se),se.layer===ce.layer&&(se.zOrder=pe),se instanceof go.Group&&se.memberParts.each(function(ke){Ke._assignZOrder(ke,pe+1,ce)})},Ke._findGroupDepth=function(se){if(se instanceof go.Group){var pe=0;return se.memberParts.each(function(ce){pe=Math.max(pe,Ke._findGroupDepth(ce))}),pe+1}else return 0},Ke.prototype.doKeyDown=function(){var se=this.diagram;if(se!==null){var pe=se.lastInput;if(pe.key==="Up"||pe.key==="Down"||pe.key==="Left"||pe.key==="Right"){var ce=this.arrowKeyBehavior;if(ce==="none")return;if(ce==="select"){this._arrowKeySelect();return}else if(ce==="move"){this._arrowKeyMove();return}else if(ce==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ke.prototype._getAllParts=function(){var se=new Array;return this.diagram.nodes.each(function(pe){se.push(pe)}),this.diagram.parts.each(function(pe){se.push(pe)}),se},Ke.prototype._arrowKeyMove=function(){var se=this.diagram,pe=se.lastInput,ce=0,ke=0;if(pe.control||pe.meta)ce=1,ke=1;else if(se.grid!==null){var gt=se.grid.gridCellSize;ke=gt.width,ce=gt.height}se.startTransaction("arrowKeyMove"),se.selection.each(function(dt){pe.key==="Up"?dt.move(new go.Point(dt.actualBounds.x,dt.actualBounds.y-ce)):pe.key==="Down"?dt.move(new go.Point(dt.actualBounds.x,dt.actualBounds.y+ce)):pe.key==="Left"?dt.move(new go.Point(dt.actualBounds.x-ke,dt.actualBounds.y)):pe.key==="Right"&&dt.move(new go.Point(dt.actualBounds.x+ke,dt.actualBounds.y))}),se.commitTransaction("arrowKeyMove")},Ke.prototype._arrowKeySelect=function(){var se=this.diagram,pe=se.lastInput,ce=null;pe.key==="Up"?ce=this._findNearestPartTowards(270):pe.key==="Down"?ce=this._findNearestPartTowards(90):pe.key==="Left"?ce=this._findNearestPartTowards(180):pe.key==="Right"&&(ce=this._findNearestPartTowards(0)),ce!==null&&(pe.shift?ce.isSelected=!0:pe.control||pe.meta?ce.isSelected=!ce.isSelected:se.select(ce))},Ke.prototype._findNearestPartTowards=function(se){var pe=this.diagram.selection.first();if(pe===null)return null;for(var ce=pe.actualBounds.center,ke=this._getAllParts(),gt=1/0,dt=pe,Ot=0;Ot<ke.length;Ot++){var yt=ke[Ot];if(yt!==pe&&yt.canSelect()){var wt=yt.actualBounds.center,It=ce.directionPoint(wt),hn=this._angleCloseness(It,se);if(hn<=45){var Ae=ce.distanceSquaredPoint(wt);Ae*=1+Math.sin(hn*Math.PI/180),Ae<gt&&(gt=Ae,dt=yt)}}}return dt},Ke.prototype._angleCloseness=function(se,pe){return Math.min(Math.abs(pe-se),Math.min(Math.abs(pe+360-se),Math.abs(pe-360-se)))},Ke.prototype._arrowKeyTree=function(){var se=this.diagram,pe=se.selection.first();if(pe instanceof go.Node){var ce=se.lastInput;if(ce.key==="Right"){if(!pe.isTreeLeaf)if(!pe.isTreeExpanded)se.commandHandler.canExpandTree(pe)&&se.commandHandler.expandTree(pe);else{var ke=this._sortTreeChildrenByY(pe).first();ke!==null&&se.select(ke)}}else if(ce.key==="Left")if(!pe.isTreeLeaf&&pe.isTreeExpanded)se.commandHandler.canCollapseTree(pe)&&se.commandHandler.collapseTree(pe);else{var gt=pe.findTreeParentNode();gt!==null&&se.select(gt)}else if(ce.key==="Up"){var gt=pe.findTreeParentNode();if(gt!==null){var dt=this._sortTreeChildrenByY(gt),Ot=dt.indexOf(pe);if(Ot>0){for(var yt=dt.elt(Ot-1);yt!==null&&yt.isTreeExpanded&&!yt.isTreeLeaf;){var wt=this._sortTreeChildrenByY(yt);yt=wt.last()}yt!==null&&se.select(yt)}else se.select(gt)}}else if(ce.key==="Down")if(pe.isTreeExpanded&&!pe.isTreeLeaf){var ke=this._sortTreeChildrenByY(pe).first();ke!==null&&se.select(ke)}else for(;pe!==null;){var gt=pe.findTreeParentNode();if(gt===null)break;var dt=this._sortTreeChildrenByY(gt),Ot=dt.indexOf(pe);if(Ot<dt.length-1){se.select(dt.elt(Ot+1));break}else pe=gt}var It=se.selection.first();It!==null&&se.scrollToRect(It.actualBounds)}},Ke.prototype._sortTreeChildrenByY=function(se){var pe=new go.List().addAll(se.findTreeChildrenNodes());return pe.sort(function(ce,ke){var gt=ce.location,dt=ke.location;return gt.y<dt.y?-1:gt.y>dt.y?1:gt.x<dt.x?-1:gt.x>dt.x?1:0}),pe},Ke.prototype.copyToClipboard=function(se){go.CommandHandler.prototype.copyToClipboard.call(this,se),this._lastPasteOffset.set(this.pasteOffset)},Ke.prototype.pasteFromClipboard=function(){var se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),se},Object.defineProperty(Ke.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(se){if(se!=="move"&&se!=="select"&&se!=="scroll"&&se!=="tree"&&se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+se);this._arrowKeyBehavior=se}}),Object.defineProperty(Ke.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(se){if(!(se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+se);this._pasteOffset.set(se)}});var ht=Ke,Ft=ie(18023),tt=ie(15746),Oe=ie(33170),be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},he=ie(67294),Pe=(se,pe,ce)=>new Promise((ke,gt)=>{var dt=wt=>{try{yt(ce.next(wt))}catch(It){gt(It)}},Ot=wt=>{try{yt(ce.throw(wt))}catch(It){gt(It)}},yt=wt=>wt.done?ke(wt.value):Promise.resolve(wt.value).then(dt,Ot);yt((ce=ce.apply(se,pe)).next())});function ve({onCancel:se,callback:pe}){let ce=(0,ge.useRef)(),ke=(0,ge.useRef)(),gt=(0,ge.useRef)(),dt=(0,ge.useRef)(!1);const Ot=(0,ge.useRef)(!1),[yt,wt]=(0,ge.useState)(0);function It(){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"};ce.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:Ie=>{var rt=Ie.diagram.commandHandler.addTopLevelParts(Ie.diagram.selection,!0);rt||Ie.diagram.currentTool.doCancel()},commandHandler:Ae(ht),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ie=>{var rt=Ie.subject;rt.location=rt.location.copy().snapToGridPoint(Ie.diagram.grid.gridOrigin,Ie.diagram.grid.gridCellSize),setTimeout(()=>{Ie.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ie=>{var rt=Ie.subject;setTimeout(()=>{Ie.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ie=>{var rt=Ie.parameter.part;rt.invalidateConnectedLinks();var ft=Ie.subject;Ie.diagram.toolManager.linkingTool.isForwards?ft.toNode.invalidateConnectedLinks():ft.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ce.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"))),ce.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 sn(Ie,rt){var ft=(lt,en)=>{lt.handled=!0,lt.diagram.model.commit(Bt=>{var Ht=en.part.adornedPart,tn=new de.E9().setRectSpot(Ht.actualBounds,Ie);tn.subtract(Ht.location),tn.scale(2,2),tn.x+=Math.sign(tn.x)*130,tn.y+=Math.sign(tn.y)*130,tn.add(Ht.location),tn.snapToGridPoint(lt.diagram.grid.gridOrigin,lt.diagram.grid.gridCellSize);var un=Bt.copyNodeData(Ht.data);Bt.setGroupKeyForNodeData(un,Bt.getGroupKeyForNodeData(Ht.data)),Bt.addNodeData(un);var Wn={from:Ht.key,to:Bt.getKeyForNodeData(un)};Bt.addLinkData(Wn);var _n=lt.diagram.findNodeForData(un);_n.location=tn,lt.diagram.select(_n),setTimeout(()=>{lt.diagram.commandHandler.editTextBlock()},20)})};return Ae(de.bn,{figure:rt,alignment:Ie,alignmentFocus:Ie.opposite(),width:Ie.equals(de.z6.Top)||Ie.equals(de.z6.Bottom)?25:18,height:Ie.equals(de.z6.Top)||Ie.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Ct.white,strokeWidth:4,mouseEnter:(lt,en)=>en.fill="dodgerblue",mouseLeave:(lt,en)=>en.fill="orange",isActionable:!0,click:ft,contextClick:ft})}function wn(Ie){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:(rt,ft)=>ft.fill="dodgerblue",mouseLeave:(rt,ft)=>ft.fill="orange",click:(rt,ft)=>{rt.diagram.commandHandler.showContextMenu(ft.part.adornedPart)}},Ie||{})}ce.current.nodeTemplate.selectionAdornmentTemplate=Ae(de.uz,"Spot",Ae(de.Vm,{padding:10}),sn(de.z6.Top,"TriangleUp"),sn(de.z6.Left,"TriangleLeft"),sn(de.z6.Right,"TriangleRight"),sn(de.z6.Bottom,"TriangleDown"),wn({alignment:new de.z6(.75,0)}));function qt(Ie,rt){return(ft,lt)=>{ft.handled=!0,ft.diagram.model.commit(en=>{en.set(lt.part.adornedPart.data,Ie,rt)})}}function Ut(Ie,rt){return rt||(rt="color"),Ae(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ie,margin:1,background:"transparent",mouseEnter:(ft,lt)=>lt.stroke="dodgerblue",mouseLeave:(ft,lt)=>lt.stroke="lightgray",click:qt(rt,Ie),contextClick:qt(rt,Ie)})}function zn(){return[Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ut(Ct.white,"fill"),Ut(Ct.beige,"fill"),Ut(Ct.extralightblue,"fill"),Ut(Ct.extralightred,"fill"))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ut(Ct.lightgray,"fill"),Ut(Ct.lightgreen,"fill"),Ut(Ct.lightblue,"fill"),Ut(Ct.lightred,"fill")))]}function On(){return[Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ut(Ct.black),Ut(Ct.green),Ut(Ct.blue),Ut(Ct.red))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ut(Ct.white),Ut(Ct.magenta),Ut(Ct.purple),Ut(Ct.orange)))]}function Mn(Ie,rt){return rt||(rt="thickness"),Ae(de.bn,"LineH",{width:16,height:16,strokeWidth:Ie,margin:1,background:"transparent",mouseEnter:(ft,lt)=>lt.background="dodgerblue",mouseLeave:(ft,lt)=>lt.background="transparent",click:qt(rt,Ie),contextClick:qt(rt,Ie)})}function Rn(Ie,rt){return rt||(rt="dash"),Ae(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ie,margin:1,background:"transparent",mouseEnter:(ft,lt)=>lt.background="dodgerblue",mouseLeave:(ft,lt)=>lt.background="transparent",click:qt(rt,Ie),contextClick:qt(rt,Ie)})}function Tn(){return[Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Mn(1),Mn(2),Mn(3),Mn(4))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Rn(null),Rn([2,4]),Rn([4,4])))]}function mn(Ie,rt){return rt||(rt="figure"),Ae(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ie,margin:1,background:"transparent",mouseEnter:(ft,lt)=>lt.fill="dodgerblue",mouseLeave:(ft,lt)=>lt.fill="lightgray",click:qt(rt,Ie),contextClick:qt(rt,Ie)})}ce.current.nodeTemplate.contextMenu=Ae("ContextMenu",Ae("ContextMenuButton",Ae(de.s_,"Horizontal",mn("Rectangle"),mn("RoundedRectangle"),mn("Ellipse"),mn("Diamond"))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",mn("Parallelogram2"),mn("ManualOperation"),mn("Procedure"),mn("Cylinder1"))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",mn("Terminator"),mn("CreateRequest"),mn("Document"),mn("TriangleDown"))),zn(),On(),Tn()),ce.current.groupTemplate=Ae(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ie,rt)=>{var ft=rt.addMembers(rt.diagram.selection,!0);ft||rt.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"))),ce.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})),wn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ce.current.groupTemplate.contextMenu=Ae("ContextMenu",zn(),On(),Tn()),ce.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",Ie=>Ie>=1?10:0),new de.KX("toShortLength","dir",Ie=>Ie>=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",Ie=>Ie===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",Ie=>Ie>=1),new de.KX("width","thickness",Ie=>7+3*Ie),new de.KX("height","thickness",Ie=>7+3*Ie),new de.KX("segmentOffset","thickness",Ie=>new de.E9(-15,4+1.5*Ie))),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",Ie=>Ie===2),new de.KX("width","thickness",Ie=>7+3*Ie),new de.KX("height","thickness",Ie=>7+3*Ie),new de.KX("segmentOffset","thickness",Ie=>new de.E9(-15,4+1.5*Ie))),Ae(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ce.current.linkTemplate.selectionAdornmentTemplate=Ae(de.uz,Ae(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:kn(2)},new de.KX("pathPattern","thickness",kn)),wn({alignmentFocus:new de.z6(0,0,-6,-4)}));function kn(Ie){return Ae(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ie+4).toString()+" H3"})}function Cn(Ie){var rt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ie===0?rt="M0 0 M16 16 M0 8 L16 8":Ie===2&&(rt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ae(de.bn,{geometryString:rt,margin:2,background:"transparent",mouseEnter:(ft,lt)=>lt.background="dodgerblue",mouseLeave:(ft,lt)=>lt.background="transparent",click:qt("dir",Ie),contextClick:qt("dir",Ie)})}function Hn(Ie){var rt=(ft,lt)=>{ft.handled=!0,ft.diagram.model.commit(en=>{var Bt=lt.part.adornedPart;en.set(Bt.data,Ie?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ie?Bt.toNode:Bt.fromNode).invalidateConnectedLinks()})};return Ae(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ft,lt)=>lt.background="dodgerblue",mouseLeave:(ft,lt)=>lt.background="transparent",click:rt,contextClick:rt})}function pn(Ie,rt){var ft=0,lt=de.z6.RightSide;Ie.equals(de.z6.Top)?(ft=270,lt=de.z6.TopSide):Ie.equals(de.z6.Left)?(ft=180,lt=de.z6.LeftSide):Ie.equals(de.z6.Bottom)&&(ft=90,lt=de.z6.BottomSide),rt||(ft-=180);var en=(Bt,Ht)=>{Bt.handled=!0,Bt.diagram.model.commit(tn=>{var un=Ht.part.adornedPart;tn.set(un.data,rt?"toSpot":"fromSpot",de.z6.stringify(lt)),(rt?un.toNode:un.fromNode).invalidateConnectedLinks()})};return Ae(de.bn,{alignment:Ie,alignmentFocus:Ie.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ft,background:"transparent",mouseEnter:(Bt,Ht)=>Ht.background="dodgerblue",mouseLeave:(Bt,Ht)=>Ht.background="transparent",click:en,contextClick:en})}ce.current.linkTemplate.contextMenu=Ae("ContextMenu",On(),Tn(),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Cn(0),Cn(1),Cn(2))),Ae("ContextMenuButton",Ae(de.s_,"Horizontal",Ae(de.s_,"Spot",Hn(!1),pn(de.z6.Top,!1),pn(de.z6.Left,!1),pn(de.z6.Right,!1),pn(de.z6.Bottom,!1)),Ae(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Hn(!0),pn(de.z6.Top,!0),pn(de.z6.Left,!0),pn(de.z6.Right,!0),pn(de.z6.Bottom,!0)))));const jn=`{ "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 $e=["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 ea(Ie){return console.log("shapeName:",Ie),$e.indexOf(Ie)>=0}var $n=new de.YI(gt.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(Ie=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ie.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ce.current.addDiagramListener("TextEdited",function(Ie){var rt;const ft=Ie.subject.part;var lt=(rt=document.activeElement)==null?void 0:rt.value;typeof lt=="string"&<.trim()===""&&ce.current.model.commit(function(en){en.set(ft.data,"text","\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}),$n.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(()=>{ce.current.grid=Ae(de.s_,"Grid",Ae(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ae(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ce.current.grid.visible=!0,ce.current.grid.gridCellStroke="darkgray",ce.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ce.current,ce.current}const hn=()=>Pe(this,null,function*(){var Ae=ce.current.makeImage();const Ct=yield(0,Oe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ae.src}});pe({src:Ct.url})});return(0,ge.useEffect)(()=>(setTimeout(()=>{It()},500),wt(yt+1),()=>{ce.current=null}),[]),he.createElement("div",{ref:Ot,className:dt.current?`${be.maxH60} body-overflow-initial`:"body-overflow-initial"},he.createElement(Ee.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!yt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:he.createElement(De.Z,null,he.createElement(tt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),he.createElement(tt.Z,{onClick:()=>{var Ae,Ct,sn=ce.current.selection.first();if(dt.current=!dt.current,document.activeElement&&sn){let wn=(Ct=(Ae=document.activeElement)==null?void 0:Ae.value)==null?void 0:Ct.trim();typeof wn=="string"&&ce.current.model.commit(function(qt){qt.set(sn.data,"text",wn||"\u672A\u547D\u540D"),ce.current.commandHandler.stopCommand()},"increment")}wt(yt+1)}},he.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:se},he.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:be.flowChartWrp},he.createElement("div",{style:{display:"flex",height:"100%"}},he.createElement("div",{style:{width:"300px",height:"100%"}},he.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),he.createElement("div",{style:{height:"calc(100% - 50px)"},className:be.myPaletteDiv,ref:gt})),he.createElement("div",{style:{flex:1,position:"relative"}},he.createElement("div",{ref:ke,style:{height:"80vh"}}))),he.createElement("div",{className:"tr"},he.createElement(xe.ZP,{size:"large",onClick:hn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ne=ve,He=ie(78045),qe=ie(31795);const at=He.ZP.Group,it={margin:"0 8px"};var ut=({callback:se,onCancel:pe})=>{function ce(ke){se(ke)}return ge.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ce},ge.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ge.createElement("span",{style:it},"\u5355\u5143\u683C\u6570\uFF1A"),ge.createElement("span",{style:it},"\u884C\u6570"),ge.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ge.createElement(qe.Z,null)),ge.createElement("span",{style:it},"\u5217\u6570"),ge.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ge.createElement(qe.Z,null))),ge.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ge.createElement("span",{style:it},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ge.createElement(me.default.Item,{name:"align"},ge.createElement(at,null,ge.createElement(He.ZP,{value:"default"},ge.createElement("i",{className:"fa fa-align-justify"})),ge.createElement(He.ZP,{value:"left"},ge.createElement("i",{className:"fa fa-align-left"})),ge.createElement(He.ZP,{value:"center"},ge.createElement("i",{className:"fa fa-align-center"})),ge.createElement(He.ZP,{value:"right"},ge.createElement("i",{className:"fa fa-align-right"}))))),ge.createElement("div",{className:"flex-container flex-end"},ge.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ge.createElement(xe.ZP,{type:"ghost",onClick:pe},"\u53D6\u6D88")))},ct=ie(47897),xt=ie(61016),zt=ie.n(xt),Pt=(0,ge.forwardRef)(({use3d:se,width:pe,height:ce,callback:ke,showSaveButton:gt},dt)=>{const Ot=(0,ge.useRef)(),yt=(0,ge.useRef)(),[wt,It]=(0,ge.useState)(!1),hn=(0,ge.useRef)({id:Ot,appName:"graphing",width:pe||1e3,height:ce||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ge.useEffect)(()=>{yt.current=new(zt())(hn.current,!0),window.onload=function(){yt.current.inject("applet_container")}},[]);const Ae=()=>{var Ct=window.ggbApplet.getPNGBase64(1,!0,72);return ke&&ke(Ct),Ct};return(0,ge.useEffect)(()=>{hn.current.appName=wt?"3D":"graphing",yt.current.inject("applet_container")},[wt]),(0,ge.useEffect)(()=>{It(se)},[se]),(0,ge.useImperativeHandle)(dt,()=>({getImgData:Ae})),ge.createElement(ge.Fragment,null,ge.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ot}),ge.createElement(De.Z,{align:"middle"},ge.createElement(tt.Z,{flex:1},ge.createElement(ct.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:wt,onChange:Ct=>It(Ct)})),ge.createElement(tt.Z,null,ge.createElement(xe.ZP,{size:"large",onClick:Ae,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Mt=ie(36527),Et=ie(25934),Dt=ie(2453);const kt="link",jt="upload-image",$t="add-flowchart",Rt="draw-image",Zt="add-flowchart",Tt="code-block",_t="add-table",Kt="------------",on={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var Sn=ie(99914),Qt=(se,pe,ce)=>new Promise((ke,gt)=>{var dt=wt=>{try{yt(ce.next(wt))}catch(It){gt(It)}},Ot=wt=>{try{yt(ce.throw(wt))}catch(It){gt(It)}},yt=wt=>wt.done?ke(wt.value):Promise.resolve(wt.value).then(dt,Ot);yt((ce=ce.apply(se,pe)).next())});function fn(){}let Ln=0;const rn=1e4,cn="\u2581",Jt="@\u2581\u2581@",Pn="@\u2581@",yn=`
|
|
**\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`,bn=["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 dn(se){return/^\d+$/.test(se)?`${se}px`:se}const gn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",In={[gn+"-B"]:"bold",[gn+"-I"]:"italic"},En={[kt]:"\u6DFB\u52A0\u94FE\u63A5",[Tt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[jt]:"\u6DFB\u52A0\u56FE\u7247",[Rt]:"\u6DFB\u52A0\u753B\u56FE",[$t]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[_t]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Dn=({defaultValue:se="",onChange:pe,width:ce="100%",height:ke=400,miniToolbar:gt=!1,isFocus:dt=!1,watch:Ot,insertTemp:yt,mode:wt="markdown",id:It="markdown-editor-id",showResizeBar:hn=!1,noStorage:Ae=!1,showNullButton:Ct=!1,showNullProgramButton:sn=!1,hidetoolBar:wn=!1,fullScreen:qt=!1,onBlur:Ut,onCMBeforeChange:zn,onFullScreen:On,className:Mn="",disablePaste:Rn=!1,disabled:Tn=!1,disabledFill:mn=!1,placeholder:kn="",values:Cn="",extraUse:Hn,isShowTool:pn=!0,disableImageUpload:jn=!1})=>{const[$e,ea]=(0,ge.useState)(null),[$n,Ie]=(0,ge.useState)(se),[rt,ft]=(0,ge.useState)(Ot),[lt,en]=(0,ge.useState)(qt),[Bt,Ht]=(0,ge.useState)(""),[tn,un]=(0,ge.useState)(0),[Wn,_n]=(0,ge.useState)(ke),[Ea,Qn]=(0,ge.useState)(!1),Sa=(0,ge.useRef)((0,Et.Z)()),ca=(0,ge.useRef)(!1),ta=(0,ge.useRef)(),[na,aa]=(0,ge.useState)(0),[oa,ga]=(0,ge.useState)(0),Gn=(0,ge.useRef)(),Zn=(0,ge.useRef)(),Un=(0,ge.useRef)(),Xn=(0,ge.useRef)(),Pa=()=>Qt(void 0,null,function*(){var ot;const Ve=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Sa.current}});(ot=Ve==null?void 0:Ve.attachments)!=null&&ot.length&&(console.log("cm:",$e,Gn),Ve.attachments.map(Je=>{Je.content_type.indexOf("image")>-1?$e.replaceSelection(``):Je.content_type.indexOf("video")>-1?$e.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Je.content_type.indexOf("pdf")>-1?$e.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Je.id}?type=${Je.content_type}&disposition=inline" target="_blank">${Je.name}</a>`):$e.replaceSelection(`[${Je.name}](${ENV.API_SERVER}/api/attachments/${Je.id}?type=${Je.content_type})`)}))});(0,ge.useEffect)(()=>{const ot=window.scrollY||window.pageYOffset;Ie(Cn),$e==null||$e.setValue(Cn),window.scrollTo(0,ot)},[Cn]),(0,ge.useEffect)(()=>{On==null||On(lt)},[lt]),(0,ge.useEffect)(()=>{if(Gn.current){let ot=function(Je,nt){var Gt,Xt;if(Rn){nt.preventDefault();return}const Vt=nt.clipboardData;if(Vt){const nn=Vt.types.toString(),an=Vt.items;if(nn==="Files"||Vt.types.indexOf("Files")>-1){if(nt.preventDefault(),wt=="stex")return;try{let xn=an[1];((Gt=an[0])==null?void 0:Gt.kind)==="file"&&(xn=an[0]);const Wt=xn.getAsFile(),Jn=Wt.name.split(".").pop();if(jn&&((Xt=Wt==null?void 0:Wt.type)==null?void 0:Xt.indexOf("image"))>-1)return!0;(0,ye.I)(Wt,ln=>{var Kn,Vn,Yn;ln.id?((Kn=Wt==null?void 0:Wt.type)==null?void 0:Kn.indexOf("image"))>-1?Ve.replaceSelection(`<img width="100%" src="/api/attachments/${ln.id}?type=${ln.content_type})" alt="" />`):((Vn=Wt==null?void 0:Wt.type)==null?void 0:Vn.indexOf("video"))>-1?Ve.replaceSelection(`<video width="100%" controls src="/api/attachments/${ln.id}"></video>`):((Yn=Wt==null?void 0:Wt.type)==null?void 0:Yn.indexOf("pdf"))>-1?Ve.replaceSelection(`<a href="/api/attachments/${ln.id}?type=${Wt.type}&disposition=inline" target="_blank">${Wt.name}</a>`):bn.includes(Jn)?Ve.replaceSelection(`<a href="/api/attachments/${ln.id}?type=office&disposition=inline" target="_blank">${Wt.name}</a>`):Ve.replaceSelection(`[${Wt.name}](/api/attachments/${ln.id}?type=${ln.content_type})`):(ln==null?void 0:ln.status)===401&&(Dt.ZP.warning((ln==null?void 0:ln.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(xn){Dt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ve=_e().fromTextArea(Gn.current,{mode:wt,lineNumbers:!gt,lineWrapping:!0,value:se,autoCloseTags:!sn,autoCloseBrackets:!0});return Ve.on("keyup",function(Je,nt){nt.keyCode===8&&(Je.getValue()==""?Ve.setOption("placeholder",kn):Ve.setOption("placeholder",null))}),Ve.on("keydown",function(Je,nt){if(nt.keyCode===8){var Gt=ha(Je);Gt&&nt.preventDefault()}}),dt&&Ve.focus(),Ve.on("paste",ot),Ve.on("dragleave",function(Je,nt){Zn.current.classList.remove("mouse-hover-md")}),Tn&&Ve.on("beforeChange",function(Je,nt){(nt.origin==="paste"||nt.origin==="+input")&&nt.cancel()}),ea(Ve),()=>{Ve.off("paste",ot)}}},[]);const ra=(0,ge.useCallback)(()=>{if(Zn.current)try{}catch(ot){console.log(ot,"---- to set md editor body height")}},[Wn,Zn,lt]);(0,ge.useEffect)(()=>{function ot(){let Ve=new Re.Z(Je=>{for(let nt of Je)(nt.target.offsetHeight>0||nt.target.offsetWidth>0)&&(ra(),$e.setSize("100%","100%"),$e.refresh())});return Ve.observe(Gn.current.parentElement),Ve}if($e){const Ve=ot();return()=>{var Je,nt;(Je=Gn.current)!=null&&Je.parentElement&&Ve.unobserve((nt=Gn.current)==null?void 0:nt.parentElement)}}},[$e,ra]),(0,ge.useEffect)(()=>{if($e){let ot=[];for(const[Ve,Je]of Object.entries(In)){let nt={[Ve]:()=>{ia(Je)}};ot.push(nt),$e.addKeyMap(nt)}return ta.current=setInterval(()=>{ca.current&&Pa()},4e3),()=>{clearInterval(ta.current);for(let Ve of ot)$e.removeKeyMap(Ve)}}},[$e]),(0,ge.useEffect)(()=>{qt!==lt&&en(qt)},[qt]),(0,Sn.Z)(()=>{if(!Ae&&tn>0){let ot=new Date().getTime(),Ve=window.sessionStorage.getItem(It);ot>=tn+rn&&(!Ve||Ve!==$n)&&(window.sessionStorage.setItem(It,$n),Qn(!0))}},rn),(0,ge.useEffect)(()=>{ft(Ot)},[$e,Ot]),(0,ge.useEffect)(()=>{$e&&dt&&$e.focus()},[$e,dt]),(0,ge.useEffect)(()=>{if(rt&&$e){let ot=function(Je){let nt=Je.target;if(Xn.current){let Gt=nt.scrollTop/nt.scrollHeight;Xn.current.scrollTop=Xn.current.scrollHeight*Gt}};const Ve=$e.getScrollerElement();return Ve.addEventListener("scroll",ot),()=>{Ve.removeEventListener("scroll",ot)}}},[$e,rt]),(0,ge.useEffect)(()=>{if($e&&zn){let ot=function(Ve,Je){zn(Ve,Je)};return $e.on("beforeChange",ot),()=>{$e.off("beforeChange",ot)}}},[$e,zn]),(0,ge.useEffect)(()=>{if($e&&Ut){let ot=function(){Ut($e.getValue())};return $e.on("blur",ot),()=>{$e.off("blur",ot)}}},[$e,Ut]);function ha(ot,Ve){var Je=ot.getDoc(),nt=Je.getCursor(),Gt=Je.getLine(nt.line),Xt=Gt.charAt(nt.ch-1),Vt=Gt.lastIndexOf("@\u2581@",nt.ch),nn=Gt.lastIndexOf("@\u2581\u2581@",nt.ch),an=Vt>nn?Vt:nn,xn=Vt>nn?3:4;if(Jt.indexOf(Xt)===-1)return null;if(console.log("change1:",Ve,ot,Gt,nt,an,Vt,nn,Xt),an>=0&&nt.ch-an<5){var Wt=an+xn;return Je.replaceRange("",{line:nt.line,ch:an},{line:nt.line,ch:Wt}),{line:nt.line,ch:Wt}}return null}(0,ge.useEffect)(()=>{if($e){let ot=function(Ve,Je){const nt=Ve.getValue();Ie(nt),un(new Date().getTime()),Ve.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),pe&&(sn?pe(nt,ya(nt)):pe(nt))};return $e.on("change",ot),()=>{$e.off("change",ot)}}},[$e,pe]),(0,ge.useEffect)(()=>{if($e)if(se==null)$e.setValue(""),Ie("");else{const ot=window.scrollY||window.pageYOffset;se!==$e.getValue()&&($e.setValue(se),Ie(se),$e.setCursor(Tn?1:$e.lineCount(),0),window.scrollTo(0,ot))}},[$e,se]);const ia=(0,ge.useCallback)(ot=>{const Ve=$e.getCursor(),Je=$e.getSelection();let nt=Je.split(`
|
|
`);switch(ot){case"bold":return $e.replaceSelection("**"+Je+"**"),Je===""&&$e.setCursor(Ve.line,Ve.ch+2),$e.focus();case"italic":return $e.replaceSelection("*"+Je+"*"),Je===""&&$e.setCursor(Ve.line,Ve.ch+1),$e.focus();case"code":return $e.replaceSelection("`"+Je+"`"),Je===""&&$e.setCursor(Ve.line,Ve.ch+1),$e.focus();case"inline-latex":return Ht("inline-latex"),$e.focus();case"latex":return $e.replaceSelection("```latex\n"+Je+"\n```"),$e.setCursor(Ve.line+1,Je.length+1),$e.focus();case"line-break":return $e.replaceSelection(`<br/>
|
|
`),$e.focus();case"list-ul":return Je===""?$e.replaceSelection("- "+Je):$e.replaceSelection(nt.map(Gt=>Gt===""?"":`- ${Gt}`).join(`
|
|
`)),$e.focus();case"list-ol":return Je===""?$e.replaceSelection("1. "+Je):$e.replaceSelection(nt.map((Gt,Xt)=>Gt===""?"":`${Xt+1}. ${Gt}`).join(`
|
|
`)),$e.focus();case"add-null-ch":return Je===""&&$e.setCursor(Ve.line,Ve.ch),$e.replaceSelection(cn),$e.focus();case"add-signal":return Je===""&&$e.setCursor(Ve.line,Ve.ch),$e.replaceSelection(Pn),$e.focus();case"add-multiple":return Je===""&&$e.setCursor(Ve.line,Ve.ch),$e.replaceSelection(Jt),$e.focus();case"inster-template-1":return Je===""&&$e.setCursor(Ve.line,Ve.ch),$e.replaceSelection(yn),$e.focus();case"eraser":return $e.setValue(""),$e.focus();case"trigger-watch":return ft(!rt),$e.focus();case"trigger-full-screen":return en(!lt),$e.focus();case kt:Ht(kt);return;case Tt:Ht(Tt);return;case jt:Ht(jt);return;case Rt:Ht(Rt);return;case"maths-latex":Ht("maths-latex");return;case $t:Ht($t);return;case _t:Ht(_t);return;default:throw new Error}},[$e,rt,lt]),Fn=(0,ge.useCallback)((ot,Ve)=>{var Je,nt,Gt,Xt,Vt,nn;if(Ht(""),!(jn&&Bt==jt))switch(Bt){case kt:const{title:ln,link:Kn}=ot;return $e.replaceSelection(`[${ln}](${Kn})`),$e.focus();case Tt:const{language:Vn,content:Yn}=ot;return $e.replaceSelection(["```"+Vn,Yn,"```"].join(`
|
|
`)),$e.focus();case"maths-latex":for(var an=atob(ot),xn=new Uint8Array(an.length),Wt=0;Wt<an.length;Wt++)xn[Wt]=an.charCodeAt(Wt);var Jn=new Blob([xn],{type:"image/png"});(0,ye.I)(Jn,vn=>{vn.id?$e.replaceSelection(``):(vn==null?void 0:vn.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":$e.replaceSelection("`$$"+ot+"$$`");break;case jt:case Rt:case Zt:const{src:An,alt:da}=ot,Yt=Ve,Fa=(Gt=(nt=(Je=Yt==null?void 0:Yt.name)==null?void 0:Je.split("."))==null?void 0:nt.pop)==null?void 0:Gt.call(nt);return((Xt=Yt==null?void 0:Yt.type)==null?void 0:Xt.indexOf("image"))>-1||!(Yt!=null&&Yt.type)?Yt.align||Yt.width?$e.replaceSelection(`<p style="text-align:${Yt.align||"initial"}"><img width="${Yt.width?Yt.width+"%":"initial"}" src="${An}" alt="${da||""}" /></p>`):$e.replaceSelection(`<img width="100%" src="${An}" alt="${da||""}" />`):((Vt=Yt==null?void 0:Yt.type)==null?void 0:Vt.indexOf("video"))>-1?$e.replaceSelection(`<video width="100%" controls src="${An}"></video>`):((nn=Yt==null?void 0:Yt.type)==null?void 0:nn.indexOf("pdf"))>-1?$e.replaceSelection(`<a href="${An}?type=${Yt.type}&disposition=inline" target="_blank">${Yt.name}</a>`):bn.includes(Fa)?$e.replaceSelection(`<a href="${An}?type=office&disposition=inline" target="_blank">${Yt.name}</a>`):$e.replaceSelection(`[${Yt.name}](${An})`),$e.focus();case _t:const{row:Ba,col:ma,align:xa}=ot;let qn=`
|
|
`;for(let vn=0;vn<Ba;vn++){let la=[],sa=[];for(let ua=0;ua<ma;ua++)vn===1&&sa.push(on[xa]),la.push(" ");vn===1&&(qn+=`| ${sa.join(" | ")} |
|
|
`),qn+=`| ${la.join(ma===1?"":" | ")} |
|
|
`}return $e.replaceSelection(qn+`
|
|
`),$e.focus();default:throw new Error}},[$e,Bt,jn]),fa=(0,ge.useMemo)(()=>{switch(Bt){case kt:return ge.createElement(Nt,{callback:Fn,onCancel:Bn});case Tt:return ge.createElement(At.Z,{callback:Fn,onCancel:Bn});case jt:return ge.createElement(ye.Z,{callback:Fn,onCancel:Bn});case $t:return ge.createElement(Ne,{callback:Fn,onCancel:Bn});case _t:return ge.createElement(ut,{callback:Fn,onCancel:Bn});case"maths-latex":return ge.createElement(Pt,{showSaveButton:!0,callback:Fn});case"inline-latex":return ge.createElement(Mt.Z,{showSaveButton:!0,callback:Fn});default:return null}},[Bt]);function Bn(){Ht("")}(0,ge.useEffect)(()=>{if(Un.current){let ot=function(Vt){Gt=!0,Xt=Vt.pageY},Ve=function(){Gt=!1},Je=function(Vt){if(Gt){let nn=Vt.pageY-Xt;nn<0&&(nn=0),nn>300&&(nn=300);let an=ke+nn+"px";_n(an)}},nt=Un.current,Gt=!1,Xt=0;return nt.addEventListener("mousedown",ot),document.addEventListener("mousemove",Je),document.addEventListener("mouseup",Ve),()=>{nt.removeEventListener("mousedown",ot),document.removeEventListener("mousemove",Je),document.removeEventListener("mouseup",Ve)}}},[$e,Un]),(0,ge.useEffect)(()=>{_n(ke)},[ke]);const pa=dn(ce),va=dn(Wn),La={width:pa,height:va},Ca=(0,ge.useMemo)(()=>{if(tn){let ot=new Date(tn),Ve=ot.getHours(),Je=ot.getMinutes(),nt=ot.getSeconds();return Ve=Ve<10?"0"+Ve:Ve,Je=Je<10?"0"+Je:Je,nt=nt<10?"0"+nt:nt,`${Ve}:${Je}:${nt}`}return 0},[tn]),ya=ot=>{const Ve=[];if(sn){let Je=-1;ot=ot.replace(/(@▁▁@|@▁@)/g,function(nt,Gt,Xt){Ve.push({multiLine:nt!==Pn})})}return Ve};function Ga(){window.sessionStorage.removeItem(It),Qn(!1),un(0)}function Na(){Qn(!1),un(0),$e.setValue(window.sessionStorage.getItem(It))}(0,ge.useEffect)(()=>{En[Bt]&&Bt!==Rt&&Bt!==$t&&setTimeout(()=>{const ot=document.getElementsByClassName("markdown-popup-form")[0],Ve=window.innerWidth/2-ot.offsetWidth/2,Je=window.innerHeight/2-ot.offsetHeight/2;aa(Ve),ga(Je)},0)},[Bt]);const ba=ot=>{ot.preventDefault();const Ve=ot.clientX-na,Je=ot.clientY-oa;document.body.onmousemove=nt=>{let Gt=nt.clientX-Ve,Xt=nt.clientY-Je;const Vt=document.getElementsByClassName("markdown-popup-form")[0],nn=window.innerWidth-Vt.offsetWidth,an=window.innerHeight-Vt.offsetHeight;Gt=Math.max(0,Math.min(Gt,nn)),Xt=Math.max(0,Math.min(Xt,an)),wa(nt.clientX,nt.clientY,Ve,Je)&&(aa(Gt),ga(Xt))},document.body.onmouseup=function(){document.body.onmousemove=null}},wa=(ot,Ve,Je,nt)=>{const Gt=document.body.clientHeight,Xt=document.body.clientWidth;return ot<20&&Je>ot||ot>Xt-20&&Je<ot||Ve<20&&nt>Ve||Ve>Gt-20&&nt<Ve?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ge.createElement(ge.Fragment,null,ge.createElement("div",{className:"markdown-editor-wrapper",ref:Zn},ge.createElement("div",{className:`markdown-editor-container ${Mn} ${rt?"on-preview":""} ${gt?"mini":""} ${lt?"full-screen":""}`,style:La},pn&&ge.createElement(re,{insertTemp:yt,watch:rt,fullScreen:lt,showNullButton:Ct,showNullProgramButton:sn,onActionCallback:ia,hidetoolBar:wn,extraUse:Hn}),ge.createElement("div",{className:"markdown-editor-body"},ge.createElement("div",{className:"codemirror-container"},ge.createElement("textarea",{ref:Gn,placeholder:kn})),rt?ge.createElement("div",{ref:Xn,className:"preview-container"},wt==="stex"&&ge.createElement(Ge,{value:$n}),wt!=="stex"&&ge.createElement(Me.Z,{disabledFill:mn,showProgramFill:sn,value:$n})):null))),hn?ge.createElement("a",{ref:Un,className:"editor-resize"}):null,Bt===Rt&&ge.createElement(mt,{callback:Fn,onCancel:Bn}),Bt===$t&&ge.createElement(Ne,{callback:Fn,onCancel:Bn}),ge.createElement(le.Z,null,En[Bt]&&Bt!==Rt&&Bt!==$t?ge.createElement(Ee.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:na,top:oa},title:ge.createElement("div",{style:{cursor:"move"},onMouseDown:ba},En[Bt]),open:!0,onCancel:Bn,footer:null,destroyOnClose:!0,width:Bt===$t?"1200px":null,height:Bt===$t?"80vh":null,className:"markdown-popup-form"},fa):null))}},70859:function(we,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return oe},I:function(){return le}});var ge=ie(22150),fe=ie(2453),_e=ie(69677),Re=ie(93421),Se=ie(31795),Te=ie(78045),ue=ie(71577),Ue=ie(15476),Fe=ie(67294),ze=ie(52262),Me=ie(67294),Ge=Object.defineProperty,Be=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(me,Ce,xe)=>Ce in me?Ge(me,Ce,{enumerable:!0,configurable:!0,writable:!0,value:xe}):me[Ce]=xe,E=(me,Ce)=>{for(var xe in Ce||(Ce={}))y.call(Ce,xe)&&b(me,xe,Ce[xe]);if(a)for(var xe of a(Ce))x.call(Ce,xe)&&b(me,xe,Ce[xe]);return me},z=(me,Ce)=>Be(me,ne(Ce));const{useForm:ee}=ge.default,te={width:280,marginRight:10},ae={labelCol:{span:5},wrapperCol:{span:19}};var oe=({callback:me,onCancel:Ce})=>{const[xe]=ee();let et=(0,Fe.useRef)();function St(je){et.current.width=xe.getFieldValue("width"),et.current.align=xe.getFieldValue("align"),me(je,et.current)}function vt(je,Xe){if(je.status===-1){fe.ZP.error(je.message);return}xe.setFieldsValue({src:`/api/attachments/${je.id}`,type:Xe.type})}function Le(je){let Xe=je.target.files[0];et.current=Xe,le(Xe,vt)}return Me.createElement(ge.default,z(E({form:xe},ae),{className:"upload-image-panel",onFinish:St,style:{width:470,overflow:"hidden"}}),Me.createElement(ge.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Me.createElement("div",{className:"flex-container"},Me.createElement(ge.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Me.createElement(_e.default,{style:te})),Me.createElement(re,{onFileChange:Le}))),Me.createElement(ge.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Me.createElement(_e.default,{style:{width:264}})),Me.createElement(ge.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Me.createElement(Re.Z,null,Me.createElement(ge.default.Item,{name:"width",style:{margin:0}},Me.createElement(Se.Z,{style:{width:264}})),Me.createElement("span",{className:"ml8"},"%"))),Me.createElement(ge.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Me.createElement(Te.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Me.createElement("aside",null,Me.createElement(ge.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Me.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Me.createElement(ue.ZP,{type:"default",onClick:Ce},"\u53D6\u6D88"))))};function re({onFileChange:me}){return Me.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Me.createElement("input",{type:"file",onChange:me}))}function le(me,Ce){if(!me)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,ze.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let xe=new FormData;xe.append("editormd-image-file",me),xe.append("file_param_name","editormd-image-file"),xe.append("byxhr","true");var et=new window.XMLHttpRequest;et.withCredentials=!0,et.addEventListener("load",function(St){Ce(JSON.parse(St.target.responseText),me)},!1),et.addEventListener("error",function(St){console.error(St)},!1),et.open("POST",`${Ue.KI}/api/attachments.json`),et.send(xe)}},76621:function(we,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return _e}});var ge=ie(67294),fe=ie(73935);class _e extends ge.Component{constructor(Se){super(Se);const Te=window.document;this.node=Te.createElement("div"),Te.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,fe.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(we,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return fe}});var ge=ie(67294);function fe(_e,Re){const Se=(0,ge.useRef)();(0,ge.useEffect)(()=>{Se.current=_e}),(0,ge.useEffect)(()=>{function Te(){Se.current()}if(Re!==null){let ue=setInterval(Te,Re);return()=>clearInterval(ue)}},[Re])}},83563:function(we,Qe,ie){"use strict";ie.r(Qe),ie.d(Qe,{default:function(){return b}});var ge=ie(67294),fe=ie(35973),_e=ie(22751),Re=ie(22150),Se=ie(85673),Te=ie(71577),ue=ie(35567),Ue=ie(86763),Fe={flex_box_center:"flex_box_center___SGCnt",flex_space_between:"flex_space_between___FXB9h",flex_box_vertical_center:"flex_box_vertical_center___jslui",flex_box_center_end:"flex_box_center_end___WNIgf",flex_box_column:"flex_box_column___zpYXy",bg:"bg___rSw_d",flexRow:"flexRow___XoLur",flexJustifyCenter:"flexJustifyCenter___pSF0k",flexAlignEnd:"flexAlignEnd___UJpWO",flexAlignCenter:"flexAlignCenter___UtTr5",flexColumn:"flexColumn___cCOhR",formWrap:"formWrap___TnbqC",titleWrap:"titleWrap___KlxcJ",fieldWrap:"fieldWrap___gG_z7",mdWrap:"mdWrap___lxZQe",backgroundFa:"backgroundFa___LV7Gu",button:"button___xLTIU",searchMember:"searchMember___yMVKY"},ze=Object.defineProperty,Me=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,ne=(E,z,ee)=>z in E?ze(E,z,{enumerable:!0,configurable:!0,writable:!0,value:ee}):E[z]=ee,a=(E,z)=>{for(var ee in z||(z={}))Ge.call(z,ee)&&ne(E,ee,z[ee]);if(Me)for(var ee of Me(z))Be.call(z,ee)&&ne(E,ee,z[ee]);return E},y=(E,z,ee)=>new Promise((te,ae)=>{var oe=me=>{try{le(ee.next(me))}catch(Ce){ae(Ce)}},re=me=>{try{le(ee.throw(me))}catch(Ce){ae(Ce)}},le=me=>me.done?te(me.value):Promise.resolve(me.value).then(oe,re);le((ee=ee.apply(E,z)).next())});const x=({shixunHomeworks:E,newCourse:z,globalSetting:ee,loading:te,dispatch:ae,match:oe})=>{const re=(0,fe.useParams)(),[le]=Re.default.useForm(),[me,Ce]=(0,ge.useState)({}),[xe,et]=(0,ge.useState)({});(0,ge.useEffect)(()=>{St()},[]);const St=()=>y(void 0,null,function*(){const Le=yield(0,Ue.wS)({homeworkId:re.homeworkId});et(a({},Le)),Le.description&&le.setFieldsValue({description:Le.description})}),vt=Le=>y(void 0,null,function*(){(yield(0,Ue.pb)({homeworkId:re.homeworkId,description:le.getFieldValue("description")})).status===0&&fe.history.push(`/classrooms/${re.coursesId}/shixun_homework/${re.categoryId}/detail`)});return ge.createElement("section",{className:Fe.bg},xe.course_name&&ge.createElement("section",{className:"animated fadeIn"},ge.createElement("aside",{className:"mt10"},xe.category&&ge.createElement(Se.Z,{separator:">"},ge.createElement(Se.Z.Item,null,ge.createElement(fe.Link,{to:`/classrooms/${xe.course_id}/shixun_homework`},xe.course_name)),ge.createElement(Se.Z.Item,null,ge.createElement(fe.Link,{to:`/classrooms/${xe.course_id}/shixun_homework`},xe.category.category_name)),ge.createElement(Se.Z.Item,null,"\u4F5C\u4E1A\u8BE6\u60C5")))),ge.createElement("aside",{className:"font24 bold mt20 mb20"},ge.createElement(_e.Z,{className:"current mr10 font16",onClick:()=>fe.history.push(`/classrooms/${re.coursesId}/shixun_homework/${re.categoryId}/detail`)}),xe!=null&&xe.description?"\u4FEE\u6539\u603B\u7ED3":"\u63D0\u4EA4\u603B\u7ED3"),ge.createElement(Re.default,{form:le,className:Fe.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{Ce(a({},le.getFieldsValue()))},onFinish:vt},ge.createElement("div",{className:Fe.mdWrap},ge.createElement(Re.default.Item,{name:"description",label:"\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u603B\u7ED3\u5185\u5BB9"},{max:5e3,message:"\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ge.createElement(ue.Z,{id:"commit-summary-id",placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u603B\u7ED3\u5185\u5BB9,\u6700\u591A5000\u4E2A\u5B57\u7B26",watch:!0,defaultValue:xe.description}))),ge.createElement("div",{className:Fe.backgroundFa},ge.createElement("div",{className:"pt40 mb30"},ge.createElement(Re.default.Item,null,ge.createElement(Te.ZP,{size:"middle",type:"primary",className:`${Fe.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),ge.createElement(Te.ZP,{size:"middle",type:"primary",ghost:!0,className:Fe.button,onClick:()=>fe.history.push(`/classrooms/${re.coursesId}/shixun_homework/${re.categoryId}/detail`)},"\u53D6\u6D88"))))))};var b=(0,fe.connect)(({shixunHomeworks:E,newCourse:z,loading:ee,globalSetting:te})=>({shixunHomeworks:E,newCourse:z,globalSetting:te,loading:ee.effects}))(x)},85673:function(we,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return vt}});var ge=ie(94184),fe=ie.n(ge),_e=ie(37419),Re=ie(1337),Se=ie(67294),Te=ie(96159),ue=ie(53124),Ue=ie(42922),Fe=ie(35874);const ze=Le=>{let{children:je}=Le;const{getPrefixCls:Xe}=Se.useContext(ue.E_),We=Xe("breadcrumb");return Se.createElement("li",{className:`${We}-separator`,"aria-hidden":"true"},je===""?je:je||"/")};ze.__ANT_BREADCRUMB_SEPARATOR=!0;var Me=ze,Ge=function(Le,je){var Xe={};for(var We in Le)Object.prototype.hasOwnProperty.call(Le,We)&&je.indexOf(We)<0&&(Xe[We]=Le[We]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,We=Object.getOwnPropertySymbols(Le);Ye<We.length;Ye++)je.indexOf(We[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Le,We[Ye])&&(Xe[We[Ye]]=Le[We[Ye]]);return Xe};function Be(Le,je){if(Le.title===void 0||Le.title===null)return null;const Xe=Object.keys(je).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${Xe})`,"g"),(We,Ye)=>je[Ye]||We)}function ne(Le,je,Xe,We){if(Xe==null)return null;const{className:Ye,onClick:Lt}=je,bt=Ge(je,["className","onClick"]),Nt=Object.assign(Object.assign({},(0,Re.Z)(bt,{data:!0,aria:!0})),{onClick:Lt});return We!==void 0?Se.createElement("a",Object.assign({},Nt,{className:fe()(`${Le}-link`,Ye),href:We}),Xe):Se.createElement("span",Object.assign({},Nt,{className:fe()(`${Le}-link`,Ye)}),Xe)}function a(Le,je){return(We,Ye,Lt,bt,Nt)=>{if(je)return je(We,Ye,Lt,bt);const At=Be(We,Ye);return ne(Le,We,At,Nt)}}var y=function(Le,je){var Xe={};for(var We in Le)Object.prototype.hasOwnProperty.call(Le,We)&&je.indexOf(We)<0&&(Xe[We]=Le[We]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,We=Object.getOwnPropertySymbols(Le);Ye<We.length;Ye++)je.indexOf(We[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Le,We[Ye])&&(Xe[We[Ye]]=Le[We[Ye]]);return Xe};const x=Le=>{const{prefixCls:je,separator:Xe="/",children:We,menu:Ye,overlay:Lt,dropdownProps:bt,href:Nt}=Le,ye=(Ee=>{if(Ye||Lt){const De=Object.assign({},bt);if(Ye){const st=Ye||{},{items:Ze}=st,mt=y(st,["items"]);De.menu=Object.assign(Object.assign({},mt),{items:Ze==null?void 0:Ze.map((de,Ke)=>{var{key:ht,title:Ft,label:tt,path:Oe}=de,be=y(de,["key","title","label","path"]);let he=tt!=null?tt:Ft;return Oe&&(he=Se.createElement("a",{href:`${Nt}${Oe}`},he)),Object.assign(Object.assign({},be),{key:ht!=null?ht:Ke,label:he})})})}else Lt&&(De.overlay=Lt);return Se.createElement(Fe.Z,Object.assign({placement:"bottom"},De),Se.createElement("span",{className:`${je}-overlay-link`},Ee,Se.createElement(Ue.Z,null)))}return Ee})(We);return ye!=null?Se.createElement(Se.Fragment,null,Se.createElement("li",null,ye),Xe&&Se.createElement(Me,null,Xe)):null},b=Le=>{const{prefixCls:je,children:Xe,href:We}=Le,Ye=y(Le,["prefixCls","children","href"]),{getPrefixCls:Lt}=Se.useContext(ue.E_),bt=Lt("breadcrumb",je);return Se.createElement(x,Object.assign({},Ye,{prefixCls:bt}),ne(bt,Ye,Xe,We))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ie(14747),ee=ie(67968),te=ie(45503);const ae=Le=>{const{componentCls:je,iconCls:Xe}=Le;return{[je]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[Xe]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${je}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${je}-link`]:{[`
|
|
> ${Xe} + span,
|
|
> ${Xe} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${je}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${Xe}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var oe=(0,ee.Z)("Breadcrumb",Le=>{const je=(0,te.TS)(Le,{});return[ae(je)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),re=function(Le,je){var Xe={};for(var We in Le)Object.prototype.hasOwnProperty.call(Le,We)&&je.indexOf(We)<0&&(Xe[We]=Le[We]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,We=Object.getOwnPropertySymbols(Le);Ye<We.length;Ye++)je.indexOf(We[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Le,We[Ye])&&(Xe[We[Ye]]=Le[We[Ye]]);return Xe};function le(Le){const{breadcrumbName:je,children:Xe}=Le,We=re(Le,["breadcrumbName","children"]),Ye=Object.assign({title:je},We);return Xe&&(Ye.menu={items:Xe.map(Lt=>{var{breadcrumbName:bt}=Lt,Nt=re(Lt,["breadcrumbName"]);return Object.assign(Object.assign({},Nt),{title:bt})})}),Ye}function me(Le,je){return(0,Se.useMemo)(()=>Le||(je?je.map(le):null),[Le,je])}var Ce=function(Le,je){var Xe={};for(var We in Le)Object.prototype.hasOwnProperty.call(Le,We)&&je.indexOf(We)<0&&(Xe[We]=Le[We]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ye=0,We=Object.getOwnPropertySymbols(Le);Ye<We.length;Ye++)je.indexOf(We[Ye])<0&&Object.prototype.propertyIsEnumerable.call(Le,We[Ye])&&(Xe[We[Ye]]=Le[We[Ye]]);return Xe};const xe=(Le,je)=>{if(je===void 0)return je;let Xe=(je||"").replace(/^\//,"");return Object.keys(Le).forEach(We=>{Xe=Xe.replace(`:${We}`,Le[We])}),Xe},et=Le=>{const{prefixCls:je,separator:Xe="/",style:We,className:Ye,rootClassName:Lt,routes:bt,items:Nt,children:At,itemRender:ye,params:Ee={}}=Le,De=Ce(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:st,direction:Ze,breadcrumb:mt}=Se.useContext(ue.E_);let de;const Ke=st("breadcrumb",je),[ht,Ft]=oe(Ke),tt=me(Nt,bt),Oe=a(Ke,ye);if(tt&&tt.length>0){const Pe=[],ve=Nt||bt;de=tt.map((Ne,He)=>{const{path:qe,key:at,type:it,menu:ut,overlay:ct,onClick:xt,className:zt,separator:pt,dropdownProps:Pt}=Ne,Mt=xe(Ee,qe);Mt!==void 0&&Pe.push(Mt);const Et=at!=null?at:He;if(it==="separator")return Se.createElement(Me,{key:Et},pt);const Dt={},kt=He===tt.length-1;ut?Dt.menu=ut:ct&&(Dt.overlay=ct);let{href:jt}=Ne;return Pe.length&&Mt!==void 0&&(jt=`#/${Pe.join("/")}`),Se.createElement(x,Object.assign({key:Et},Dt,(0,Re.Z)(Ne,{data:!0,aria:!0}),{className:zt,dropdownProps:Pt,href:jt,separator:kt?"":Xe,onClick:xt,prefixCls:Ke}),Oe(Ne,Ee,ve,Pe,jt))})}else if(At){const Pe=(0,_e.Z)(At).length;de=(0,_e.Z)(At).map((ve,Ne)=>{if(!ve)return ve;const He=Ne===Pe-1;return(0,Te.Tm)(ve,{separator:He?"":Xe,key:Ne})})}const be=fe()(Ke,mt==null?void 0:mt.className,{[`${Ke}-rtl`]:Ze==="rtl"},Ye,Lt,Ft),he=Object.assign(Object.assign({},mt==null?void 0:mt.style),We);return ht(Se.createElement("nav",Object.assign({className:be,style:he},De),Se.createElement("ol",null,de)))};et.Item=E,et.Separator=Me;var St=et,vt=St},35874:function(we,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return he}});var ge=ie(67294),fe=ie(91034),_e=ie(94184),Re=ie.n(_e),Se=ie(87462),Te=ie(4942),ue=ie(97685),Ue=ie(45987),Fe=ie(62709),ze=ie(71002),Me=ie(12060);function Ge(Pe,ve,Ne){var He=React.useRef({});return(!("value"in He.current)||Ne(He.current.condition,ve))&&(He.current.value=Pe(),He.current.condition=ve),He.current.value}function Be(Pe,ve){typeof Pe=="function"?Pe(ve):(0,ze.Z)(Pe)==="object"&&Pe&&"current"in Pe&&(Pe.current=ve)}function ne(){for(var Pe=arguments.length,ve=new Array(Pe),Ne=0;Ne<Pe;Ne++)ve[Ne]=arguments[Ne];var He=ve.filter(function(qe){return qe});return He.length<=1?He[0]:function(qe){ve.forEach(function(at){Be(at,qe)})}}function a(){for(var Pe=arguments.length,ve=new Array(Pe),Ne=0;Ne<Pe;Ne++)ve[Ne]=arguments[Ne];return useMemo(function(){return ne.apply(void 0,ve)},ve,function(He,qe){return He.length===qe.length&&He.every(function(at,it){return at===qe[it]})})}function y(Pe){var ve,Ne,He=(0,Me.isMemo)(Pe)?Pe.type.type:Pe.type;return!(typeof He=="function"&&!((ve=He.prototype)!==null&&ve!==void 0&&ve.render)||typeof Pe=="function"&&!((Ne=Pe.prototype)!==null&&Ne!==void 0&&Ne.render))}var x={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(ve){var Ne=ve.keyCode;if(ve.altKey&&!ve.ctrlKey||ve.metaKey||Ne>=x.F1&&Ne<=x.F12)return!1;switch(Ne){case x.ALT:case x.CAPS_LOCK:case x.CONTEXT_MENU:case x.CTRL:case x.DOWN:case x.END:case x.ESC:case x.HOME:case x.INSERT:case x.LEFT:case x.MAC_FF_META:case x.META:case x.NUMLOCK:case x.NUM_CENTER:case x.PAGE_DOWN:case x.PAGE_UP:case x.PAUSE:case x.PRINT_SCREEN:case x.RIGHT:case x.SHIFT:case x.UP:case x.WIN_KEY:case x.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(ve){if(ve>=x.ZERO&&ve<=x.NINE||ve>=x.NUM_ZERO&&ve<=x.NUM_MULTIPLY||ve>=x.A&&ve<=x.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ve===0)return!0;switch(ve){case x.SPACE:case x.QUESTION_MARK:case x.NUM_PLUS:case x.NUM_MINUS:case x.NUM_PERIOD:case x.NUM_DIVISION:case x.SEMICOLON:case x.DASH:case x.EQUALS:case x.COMMA:case x.PERIOD:case x.SLASH:case x.APOSTROPHE:case x.SINGLE_QUOTE:case x.OPEN_SQUARE_BRACKET:case x.BACKSLASH:case x.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=x,E=function(ve){return+setTimeout(ve,16)},z=function(ve){return clearTimeout(ve)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(E=function(ve){return window.requestAnimationFrame(ve)},z=function(ve){return window.cancelAnimationFrame(ve)});var ee=0,te=new Map;function ae(Pe){te.delete(Pe)}var oe=function(ve){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var He=ee;function qe(at){if(at===0)ae(He),ve();else{var it=E(function(){qe(at-1)});te.set(He,it)}}return qe(Ne),He};oe.cancel=function(Pe){var ve=te.get(Pe);return ae(ve),z(ve)};var re=oe,le=b.ESC,me=b.TAB;function Ce(Pe){var ve=Pe.visible,Ne=Pe.triggerRef,He=Pe.onVisibleChange,qe=Pe.autoFocus,at=Pe.overlayRef,it=ge.useRef(!1),ut=function(){if(ve){var pt,Pt;(pt=Ne.current)===null||pt===void 0||(Pt=pt.focus)===null||Pt===void 0||Pt.call(pt),He==null||He(!1)}},ct=function(){var pt;return(pt=at.current)!==null&&pt!==void 0&&pt.focus?(at.current.focus(),it.current=!0,!0):!1},xt=function(pt){switch(pt.keyCode){case le:ut();break;case me:{var Pt=!1;it.current||(Pt=ct()),Pt?pt.preventDefault():ut();break}}};ge.useEffect(function(){return ve?(window.addEventListener("keydown",xt),qe&&re(ct,3),function(){window.removeEventListener("keydown",xt),it.current=!1}):function(){it.current=!1}},[ve])}var xe=(0,ge.forwardRef)(function(Pe,ve){var Ne=Pe.overlay,He=Pe.arrow,qe=Pe.prefixCls,at=(0,ge.useMemo)(function(){var ut;return typeof Ne=="function"?ut=Ne():ut=Ne,ut},[Ne]),it=ne(ve,at==null?void 0:at.ref);return ge.createElement(ge.Fragment,null,He&&ge.createElement("div",{className:"".concat(qe,"-arrow")}),ge.cloneElement(at,{ref:y(at)?it:void 0}))}),et=xe,St={adjustX:1,adjustY:1},vt=[0,0],Le={topLeft:{points:["bl","tl"],overflow:St,offset:[0,-4],targetOffset:vt},top:{points:["bc","tc"],overflow:St,offset:[0,-4],targetOffset:vt},topRight:{points:["br","tr"],overflow:St,offset:[0,-4],targetOffset:vt},bottomLeft:{points:["tl","bl"],overflow:St,offset:[0,4],targetOffset:vt},bottom:{points:["tc","bc"],overflow:St,offset:[0,4],targetOffset:vt},bottomRight:{points:["tr","br"],overflow:St,offset:[0,4],targetOffset:vt}},je=Le,Xe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function We(Pe,ve){var Ne,He=Pe.arrow,qe=He===void 0?!1:He,at=Pe.prefixCls,it=at===void 0?"rc-dropdown":at,ut=Pe.transitionName,ct=Pe.animation,xt=Pe.align,zt=Pe.placement,pt=zt===void 0?"bottomLeft":zt,Pt=Pe.placements,Mt=Pt===void 0?je:Pt,Et=Pe.getPopupContainer,Dt=Pe.showAction,kt=Pe.hideAction,jt=Pe.overlayClassName,$t=Pe.overlayStyle,Rt=Pe.visible,Zt=Pe.trigger,Tt=Zt===void 0?["hover"]:Zt,_t=Pe.autoFocus,Kt=Pe.overlay,on=Pe.children,Sn=Pe.onVisibleChange,Qt=(0,Ue.Z)(Pe,Xe),fn=ge.useState(),Ln=(0,ue.Z)(fn,2),rn=Ln[0],cn=Ln[1],Jt="visible"in Pe?Rt:rn,Pn=ge.useRef(null),yn=ge.useRef(null),bn=ge.useRef(null);ge.useImperativeHandle(ve,function(){return Pn.current});var dn=function(ke){cn(ke),Sn==null||Sn(ke)};Ce({visible:Jt,triggerRef:bn,onVisibleChange:dn,autoFocus:_t,overlayRef:yn});var Nn=function(ke){var gt=Pe.onOverlayClick;cn(!1),gt&>(ke)},gn=function(){return ge.createElement(et,{ref:yn,overlay:Kt,prefixCls:it,arrow:qe})},In=function(){return typeof Kt=="function"?gn:gn()},En=function(){var ke=Pe.minOverlayWidthMatchTrigger,gt=Pe.alignPoint;return"minOverlayWidthMatchTrigger"in Pe?ke:!gt},Dn=function(){var ke=Pe.openClassName;return ke!==void 0?ke:"".concat(it,"-open")},se=ge.cloneElement(on,{className:Re()((Ne=on.props)===null||Ne===void 0?void 0:Ne.className,Jt&&Dn()),ref:y(on)?ne(bn,on.ref):void 0}),pe=kt;return!pe&&Tt.indexOf("contextMenu")!==-1&&(pe=["click"]),ge.createElement(Fe.Z,(0,Se.Z)({builtinPlacements:Mt},Qt,{prefixCls:it,ref:Pn,popupClassName:Re()(jt,(0,Te.Z)({},"".concat(it,"-show-arrow"),qe)),popupStyle:$t,action:Tt,showAction:Dt,hideAction:pe,popupPlacement:pt,popupAlign:xt,popupTransitionName:ut,popupAnimation:ct,popupVisible:Jt,stretch:En()?"minWidth":"",popup:In(),onPopupVisibleChange:dn,onPopupClick:Nn,getPopupContainer:Et}),se)}var Ye=ge.forwardRef(We),Lt=Ye,bt=ie(60276),Nt=ie(5663),At=ie(10366),ye=ie(80636),Ee=ie(8745),De=ie(96159),st=ie(53124),Ze=ie(68508),mt=ie(76529),de=ie(46605),Ke=ie(66748);const ht=null,Ft=Pe=>{const{menu:ve,arrow:Ne,prefixCls:He,children:qe,trigger:at,disabled:it,dropdownRender:ut,getPopupContainer:ct,overlayClassName:xt,rootClassName:zt,open:pt,onOpenChange:Pt,visible:Mt,onVisibleChange:Et,mouseEnterDelay:Dt=.15,mouseLeaveDelay:kt=.1,autoAdjustOverflow:jt=!0,placement:$t="",overlay:Rt,transitionName:Zt}=Pe,{getPopupContainer:Tt,getPrefixCls:_t,direction:Kt}=ge.useContext(st.E_),on=ge.useMemo(()=>{const se=_t();return Zt!==void 0?Zt:$t.includes("top")?`${se}-slide-down`:`${se}-slide-up`},[_t,$t,Zt]),Sn=ge.useMemo(()=>$t?$t.includes("Center")?$t.slice(0,$t.indexOf("Center")):$t:Kt==="rtl"?"bottomRight":"bottomLeft",[$t,Kt]),Qt=_t("dropdown",He),[fn,Ln]=(0,Ke.Z)(Qt),[,rn]=(0,de.Z)(),cn=ge.Children.only(qe),Jt=(0,De.Tm)(cn,{className:Re()(`${Qt}-trigger`,{[`${Qt}-rtl`]:Kt==="rtl"},cn.props.className),disabled:it}),Pn=it?[]:at;let yn;Pn&&Pn.includes("contextMenu")&&(yn=!0);const[bn,dn]=(0,Nt.Z)(!1,{value:pt!=null?pt:Mt}),Nn=(0,bt.useEvent)(se=>{Pt==null||Pt(se),Et==null||Et(se),dn(se)}),gn=Re()(xt,zt,Ln,{[`${Qt}-rtl`]:Kt==="rtl"}),In=(0,ye.Z)({arrowPointAtCenter:typeof Ne=="object"&&Ne.pointAtCenter,autoAdjustOverflow:jt,offset:rn.marginXXS,arrowWidth:Ne?rn.sizePopupArrow:0,borderRadius:rn.borderRadius}),En=ge.useCallback(()=>{dn(!1)},[]),Dn=()=>{let se;return ve!=null&&ve.items?se=ge.createElement(Ze.default,Object.assign({},ve)):typeof Rt=="function"?se=Rt():se=Rt,ut&&(se=ut(se)),se=ge.Children.only(typeof se=="string"?ge.createElement("span",null,se):se),ge.createElement(mt.J,{prefixCls:`${Qt}-menu`,expandIcon:ge.createElement("span",{className:`${Qt}-menu-submenu-arrow`},ge.createElement(fe.Z,{className:`${Qt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:En,validator:pe=>{let{mode:ce}=pe}},se)};return fn(ge.createElement(Lt,Object.assign({alignPoint:yn},(0,At.Z)(Pe,["rootClassName"]),{mouseEnterDelay:Dt,mouseLeaveDelay:kt,visible:bn,builtinPlacements:In,arrow:!!Ne,overlayClassName:gn,prefixCls:Qt,getPopupContainer:ct||Tt,transitionName:on,trigger:Pn,overlay:Dn,placement:Sn,onVisibleChange:Nn}),Jt))};function tt(Pe){return Object.assign(Object.assign({},Pe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Oe=(0,Ee.Z)(Ft,"dropdown",Pe=>Pe,tt),be=Pe=>ge.createElement(Oe,Object.assign({},Pe),ge.createElement("span",null));Ft._InternalPanelDoNotUseOrYouWillBeFired=be;var he=Ft},66748:function(we,Qe,ie){"use strict";ie.d(Qe,{Z:function(){return Me}});var ge=ie(14747),fe=ie(67771),_e=ie(33297),Re=ie(50438),Se=ie(97414),Te=ie(67968),ue=ie(45503),Fe=Ge=>{const{componentCls:Be,menuCls:ne,colorError:a,colorTextLightSolid:y}=Ge,x=`${ne}-item`;return{[`${Be}, ${Be}-menu-submenu`]:{[`${ne} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const ze=Ge=>{const{componentCls:Be,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:ae,colorTextDisabled:oe,fontSizeIcon:re,controlPaddingHorizontal:le,colorBgElevated:me}=Ge;return[{[Be]:Object.assign(Object.assign({},(0,ge.Wf)(Ge)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:re}},[`${Be}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:re},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Be}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Be}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Be}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Be}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Be}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Be}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Be}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Be}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Be}-placement-topRight`]:{animationName:fe.ly}})},(0,Se.ZP)(Ge,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Be} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Be}, ${Be}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:ae,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:Ge.borderRadiusLG,outline:"none",boxShadow:Ge.boxShadowSecondary},(0,ge.Qy)(Ge)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${le}px`,color:Ge.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Ge.marginXS,fontSize:Ge.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${le}px`,color:Ge.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ge.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ge.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ge.controlItemBgHover}},(0,ge.Qy)(Ge)),{"&-selected":{color:Ge.colorPrimary,backgroundColor:Ge.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ge.controlItemBgActiveHover}},"&-disabled":{color:oe,cursor:"not-allowed","&:hover":{color:oe,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ge.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ge.colorSplit},[`${Be}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingXS,[`${Be}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ge.colorTextDescription,fontSize:re,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Ge.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:le+Ge.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Be}-menu-submenu-title`]:{[`&, ${Be}-menu-submenu-arrow-icon`]:{color:oe,backgroundColor:me,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Be}-menu-submenu-title`]:{color:Ge.colorPrimary}})}},[(0,fe.oN)(Ge,"slide-up"),(0,fe.oN)(Ge,"slide-down"),(0,_e.Fm)(Ge,"move-up"),(0,_e.Fm)(Ge,"move-down"),(0,Re._y)(Ge,"zoom-big")]]};var Me=(0,Te.Z)("Dropdown",(Ge,Be)=>{let{rootPrefixCls:ne}=Be;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Ge,ae=(x-b*E)/2,{dropdownArrowOffset:oe}=(0,Se.fS)({contentRadius:te}),re=(0,ue.TS)(Ge,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:oe,dropdownPaddingVertical:ae,dropdownEdgeChildPadding:z});return[ze(re),Fe(re)]},Ge=>({zIndexPopup:Ge.zIndexPopupBase+50}))},71322:function(we,Qe,ie){"use strict";ie.d(Qe,{D:function(){return E},Z:function(){return te}});var ge=ie(87462),fe=ie(67294),_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Re=_e,Se=ie(74643),Te=function(oe,re){return fe.createElement(Se.Z,(0,ge.Z)({},oe,{ref:re,icon:Re}))},ue=fe.forwardRef(Te),Ue=ie(22751),Fe=ie(91034),ze=ie(94184),Me=ie.n(ze),Ge=ie(10366),ne=ae=>!isNaN(parseFloat(ae))&&isFinite(ae),a=ie(53124),y=ie(84321),x=function(ae,oe){var re={};for(var le in ae)Object.prototype.hasOwnProperty.call(ae,le)&&oe.indexOf(le)<0&&(re[le]=ae[le]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,le=Object.getOwnPropertySymbols(ae);me<le.length;me++)oe.indexOf(le[me])<0&&Object.prototype.propertyIsEnumerable.call(ae,le[me])&&(re[le[me]]=ae[le[me]]);return re};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},E=fe.createContext({}),z=(()=>{let ae=0;return function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ae+=1,`${oe}${ae}`}})();var te=fe.forwardRef((ae,oe)=>{const{prefixCls:re,className:le,trigger:me,children:Ce,defaultCollapsed:xe=!1,theme:et="dark",style:St={},collapsible:vt=!1,reverseArrow:Le=!1,width:je=200,collapsedWidth:Xe=80,zeroWidthTriggerStyle:We,breakpoint:Ye,onCollapse:Lt,onBreakpoint:bt}=ae,Nt=x(ae,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:At}=(0,fe.useContext)(y.Gs),[ye,Ee]=(0,fe.useState)("collapsed"in ae?ae.collapsed:xe),[De,st]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ae&&Ee(ae.collapsed)},[ae.collapsed]);const Ze=(tt,Oe)=>{"collapsed"in ae||Ee(tt),Lt==null||Lt(tt,Oe)},mt=(0,fe.useRef)();mt.current=tt=>{st(tt.matches),bt==null||bt(tt.matches),ye!==tt.matches&&Ze(tt.matches,"responsive")},(0,fe.useEffect)(()=>{function tt(be){return mt.current(be)}let Oe;if(typeof window!="undefined"){const{matchMedia:be}=window;if(be&&Ye&&Ye in b){Oe=be(`(max-width: ${b[Ye]})`);try{Oe.addEventListener("change",tt)}catch(he){Oe.addListener(tt)}tt(Oe)}}return()=>{try{Oe==null||Oe.removeEventListener("change",tt)}catch(be){Oe==null||Oe.removeListener(tt)}}},[Ye]),(0,fe.useEffect)(()=>{const tt=z("ant-sider-");return At.addSider(tt),()=>At.removeSider(tt)},[]);const de=()=>{Ze(!ye,"clickTrigger")},{getPrefixCls:Ke}=(0,fe.useContext)(a.E_),ht=()=>{const tt=Ke("layout-sider",re),Oe=(0,Ge.Z)(Nt,["collapsed"]),be=ye?Xe:je,he=ne(be)?`${be}px`:String(be),Pe=parseFloat(String(Xe||0))===0?fe.createElement("span",{onClick:de,className:Me()(`${tt}-zero-width-trigger`,`${tt}-zero-width-trigger-${Le?"right":"left"}`),style:We},me||fe.createElement(ue,null)):null,He={expanded:Le?fe.createElement(Fe.Z,null):fe.createElement(Ue.Z,null),collapsed:Le?fe.createElement(Ue.Z,null):fe.createElement(Fe.Z,null)}[ye?"collapsed":"expanded"],qe=me!==null?Pe||fe.createElement("div",{className:`${tt}-trigger`,onClick:de,style:{width:he}},me||He):null,at=Object.assign(Object.assign({},St),{flex:`0 0 ${he}`,maxWidth:he,minWidth:he,width:he}),it=Me()(tt,`${tt}-${et}`,{[`${tt}-collapsed`]:!!ye,[`${tt}-has-trigger`]:vt&&me!==null&&!Pe,[`${tt}-below`]:!!De,[`${tt}-zero-width`]:parseFloat(he)===0},le);return fe.createElement("aside",Object.assign({className:it},Oe,{style:at,ref:oe}),fe.createElement("div",{className:`${tt}-children`},Ce),vt||De&&Pe?qe:null)},Ft=fe.useMemo(()=>({siderCollapsed:ye}),[ye]);return fe.createElement(E.Provider,{value:Ft},ht())})},84321:function(we,Qe,ie){"use strict";ie.d(Qe,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Be},ZP:function(){return ee}});var ge=ie(74902),fe=ie(94184),_e=ie.n(fe),Re=ie(10366),Se=ie(67294),Te=ie(53124),ue=ie(67968),Fe=te=>{const{componentCls:ae,bodyBg:oe,lightSiderBg:re,lightTriggerBg:le,lightTriggerColor:me}=te;return{[`${ae}-sider-light`]:{background:re,[`${ae}-sider-trigger`]:{color:me,background:le},[`${ae}-sider-zero-width-trigger`]:{color:me,background:le,border:`1px solid ${oe}`,borderInlineStart:0}}}};const ze=te=>{const{antCls:ae,componentCls:oe,colorText:re,triggerColor:le,footerBg:me,triggerBg:Ce,headerHeight:xe,headerPadding:et,headerColor:St,footerPadding:vt,triggerHeight:Le,zeroTriggerHeight:je,zeroTriggerWidth:Xe,motionDurationMid:We,motionDurationSlow:Ye,fontSize:Lt,borderRadius:bt,bodyBg:Nt,headerBg:At,siderBg:ye}=te;return{[oe]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Nt,"&, *":{boxSizing:"border-box"},[`&${oe}-has-sider`]:{flexDirection:"row",[`> ${oe}, > ${oe}-content`]:{width:0}},[`${oe}-header, &${oe}-footer`]:{flex:"0 0 auto"},[`${oe}-sider`]:{position:"relative",minWidth:0,background:ye,transition:`all ${We}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${ae}-menu${ae}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:le,lineHeight:`${Le}px`,textAlign:"center",background:Ce,cursor:"pointer",transition:`all ${We}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:xe,insetInlineEnd:-Xe,zIndex:1,width:Xe,height:je,color:le,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:bt,borderEndEndRadius:bt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ye} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ye}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Xe,borderStartStartRadius:bt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:bt}}}}},Fe(te)),{"&-rtl":{direction:"rtl"}}),[`${oe}-header`]:{height:xe,padding:et,color:St,lineHeight:`${xe}px`,background:At,[`${ae}-menu`]:{lineHeight:"inherit"}},[`${oe}-footer`]:{padding:vt,color:re,fontSize:Lt,background:me},[`${oe}-content`]:{flex:"auto",minHeight:0}}};var Me=(0,ue.Z)("Layout",te=>[ze(te)],te=>{const{colorBgLayout:ae,controlHeight:oe,controlHeightLG:re,colorText:le,controlHeightSM:me,marginXXS:Ce,colorTextLightSolid:xe,colorBgContainer:et}=te,St=re*1.25;return{colorBgHeader:"#001529",colorBgBody:ae,colorBgTrigger:"#002140",bodyBg:ae,headerBg:"#001529",headerHeight:oe*2,headerPadding:`0 ${St}px`,headerColor:le,footerPadding:`${me}px ${St}px`,footerBg:ae,siderBg:"#001529",triggerHeight:re+Ce*2,triggerBg:"#002140",triggerColor:xe,zeroTriggerWidth:re,zeroTriggerHeight:re,lightSiderBg:et,lightTriggerBg:et,lightTriggerColor:le}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ge=function(te,ae){var oe={};for(var re in te)Object.prototype.hasOwnProperty.call(te,re)&&ae.indexOf(re)<0&&(oe[re]=te[re]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,re=Object.getOwnPropertySymbols(te);le<re.length;le++)ae.indexOf(re[le])<0&&Object.prototype.propertyIsEnumerable.call(te,re[le])&&(oe[re[le]]=te[re[le]]);return oe};const Be=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:ae,tagName:oe,displayName:re}=te;return le=>Se.forwardRef((Ce,xe)=>Se.createElement(le,Object.assign({ref:xe,suffixCls:ae,tagName:oe},Ce)))}const a=Se.forwardRef((te,ae)=>{const{prefixCls:oe,suffixCls:re,className:le,tagName:me}=te,Ce=Ge(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:xe}=Se.useContext(Te.E_),et=xe("layout",oe),[St,vt]=Me(et),Le=re?`${et}-${re}`:et;return St(Se.createElement(me,Object.assign({className:_e()(oe||Le,le,vt),ref:ae},Ce)))}),y=Se.forwardRef((te,ae)=>{const{direction:oe}=Se.useContext(Te.E_),[re,le]=Se.useState([]),{prefixCls:me,className:Ce,rootClassName:xe,children:et,hasSider:St,tagName:vt,style:Le}=te,je=Ge(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Xe=(0,Re.Z)(je,["suffixCls"]),{getPrefixCls:We,layout:Ye}=Se.useContext(Te.E_),Lt=We("layout",me),[bt,Nt]=Me(Lt),At=_e()(Lt,{[`${Lt}-has-sider`]:typeof St=="boolean"?St:re.length>0,[`${Lt}-rtl`]:oe==="rtl"},Ye==null?void 0:Ye.className,Ce,xe,Nt),ye=Se.useMemo(()=>({siderHook:{addSider:Ee=>{le(De=>[].concat((0,ge.Z)(De),[Ee]))},removeSider:Ee=>{le(De=>De.filter(st=>st!==Ee))}}}),[]);return bt(Se.createElement(Be.Provider,{value:ye},Se.createElement(vt,Object.assign({ref:ae,className:At,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),Le)},Xe),et)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},76529:function(we,Qe,ie){"use strict";ie.d(Qe,{J:function(){return Te}});var ge=ie(67294),fe=ie(4173),_e=ie(60276),Re=function(ue,Ue){var Fe={};for(var ze in ue)Object.prototype.hasOwnProperty.call(ue,ze)&&Ue.indexOf(ze)<0&&(Fe[ze]=ue[ze]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,ze=Object.getOwnPropertySymbols(ue);Me<ze.length;Me++)Ue.indexOf(ze[Me])<0&&Object.prototype.propertyIsEnumerable.call(ue,ze[Me])&&(Fe[ze[Me]]=ue[ze[Me]]);return Fe};const Se=ge.createContext(null),Te=ge.forwardRef((ue,Ue)=>{const{children:Fe}=ue,ze=Re(ue,["children"]),Me=ge.useContext(Se),Ge=ge.useMemo(()=>Object.assign(Object.assign({},Me),ze),[Me,ze.prefixCls,ze.mode,ze.selectable]);return ge.createElement(Se.Provider,{value:Ge},ge.createElement(fe.BR,null,(0,_e.supportNodeRef)(Fe)?ge.cloneElement(Fe,{ref:Ue}):Fe))});Qe.Z=Se},68508:function(we,Qe,ie){"use strict";ie.d(Qe,{default:function(){return tt}});var ge=ie(78595),fe=ie(67294),_e=ie(71322),Re=ie(94184),Se=ie.n(Re),Te=ie(53124),ue=function(Oe,be){var he={};for(var Pe in Oe)Object.prototype.hasOwnProperty.call(Oe,Pe)&&be.indexOf(Pe)<0&&(he[Pe]=Oe[Pe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Pe=Object.getOwnPropertySymbols(Oe);ve<Pe.length;ve++)be.indexOf(Pe[ve])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Pe[ve])&&(he[Pe[ve]]=Oe[Pe[ve]]);return he},Fe=Oe=>{const{prefixCls:be,className:he,dashed:Pe}=Oe,ve=ue(Oe,["prefixCls","className","dashed"]),{getPrefixCls:Ne}=fe.useContext(Te.E_),He=Ne("menu",be),qe=Se()({[`${He}-item-divider-dashed`]:!!Pe},he);return fe.createElement(ge.iz,Object.assign({className:qe},ve))},ze=ie(37419),Me=ie(10366),Ge=ie(83062),Be=ie(96159),a=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Oe=>{var be;const{className:he,children:Pe,icon:ve,title:Ne,danger:He}=Oe,{prefixCls:qe,firstLevel:at,direction:it,disableMenuItemTitleTooltip:ut,inlineCollapsed:ct}=fe.useContext(a),xt=Dt=>{const kt=fe.createElement("span",{className:`${qe}-title-content`},Pe);return(!ve||(0,Be.l$)(Pe)&&Pe.type==="span")&&Pe&&Dt&&at&&typeof Pe=="string"?fe.createElement("div",{className:`${qe}-inline-collapsed-noicon`},Pe.charAt(0)):kt},{siderCollapsed:zt}=fe.useContext(_e.D);let pt=Ne;typeof Ne=="undefined"?pt=at?Pe:"":Ne===!1&&(pt="");const Pt={title:pt};!zt&&!ct&&(Pt.title=null,Pt.open=!1);const Mt=(0,ze.Z)(Pe).length;let Et=fe.createElement(ge.ck,Object.assign({},(0,Me.Z)(Oe,["title","icon","danger"]),{className:Se()({[`${qe}-item-danger`]:He,[`${qe}-item-only-child`]:(ve?Mt+1:Mt)===1},he),title:typeof Ne=="string"?Ne:void 0}),(0,Be.Tm)(ve,{className:Se()((0,Be.l$)(ve)?(be=ve.props)===null||be===void 0?void 0:be.className:"",`${qe}-item-icon`)}),xt(ct));return ut||(Et=fe.createElement(Ge.Z,Object.assign({},Pt,{placement:it==="rtl"?"left":"right",overlayClassName:`${qe}-inline-collapsed-tooltip`}),Et)),Et},E=Oe=>{var be;const{popupClassName:he,icon:Pe,title:ve,theme:Ne}=Oe,He=fe.useContext(a),{prefixCls:qe,inlineCollapsed:at,theme:it}=He,ut=(0,ge.Xl)();let ct;if(!Pe)ct=at&&!ut.length&&ve&&typeof ve=="string"?fe.createElement("div",{className:`${qe}-inline-collapsed-noicon`},ve.charAt(0)):fe.createElement("span",{className:`${qe}-title-content`},ve);else{const zt=(0,Be.l$)(ve)&&ve.type==="span";ct=fe.createElement(fe.Fragment,null,(0,Be.Tm)(Pe,{className:Se()((0,Be.l$)(Pe)?(be=Pe.props)===null||be===void 0?void 0:be.className:"",`${qe}-item-icon`)}),zt?ve:fe.createElement("span",{className:`${qe}-title-content`},ve))}const xt=fe.useMemo(()=>Object.assign(Object.assign({},He),{firstLevel:!1}),[He]);return fe.createElement(a.Provider,{value:xt},fe.createElement(ge.Wd,Object.assign({},(0,Me.Z)(Oe,["icon"]),{title:ct,popupClassName:Se()(qe,he,`${qe}-${Ne||it}`)})))},z=ie(25877),ee=ie(60276),te=ie(33603),ae=ie(76529),oe=function(Oe,be){var he={};for(var Pe in Oe)Object.prototype.hasOwnProperty.call(Oe,Pe)&&be.indexOf(Pe)<0&&(he[Pe]=Oe[Pe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Pe=Object.getOwnPropertySymbols(Oe);ve<Pe.length;ve++)be.indexOf(Pe[ve])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Pe[ve])&&(he[Pe[ve]]=Oe[Pe[ve]]);return he};function re(Oe){return(Oe||[]).map((be,he)=>{if(be&&typeof be=="object"){const Pe=be,{label:ve,children:Ne,key:He,type:qe}=Pe,at=oe(Pe,["label","children","key","type"]),it=He!=null?He:`tmp-${he}`;return Ne||qe==="group"?qe==="group"?fe.createElement(ge.BW,Object.assign({key:it},at,{title:ve}),re(Ne)):fe.createElement(E,Object.assign({key:it},at,{title:ve}),re(Ne)):qe==="divider"?fe.createElement(Fe,Object.assign({key:it},at)):fe.createElement(x,Object.assign({key:it},at),ve)}return null}).filter(be=>be)}function le(Oe){return fe.useMemo(()=>Oe&&re(Oe),[Oe])}var me=ie(84780),Ce=ie(14747),xe=ie(33507),et=ie(67771),St=ie(50438),vt=ie(67968),Le=ie(45503),Xe=Oe=>{const{componentCls:be,motionDurationSlow:he,horizontalLineHeight:Pe,colorSplit:ve,lineWidth:Ne,lineType:He,itemPaddingInline:qe}=Oe;return{[`${be}-horizontal`]:{lineHeight:Pe,border:0,borderBottom:`${Ne}px ${He} ${ve}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${be}-item, ${be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:qe},[`> ${be}-item:hover,
|
|
> ${be}-item-active,
|
|
> ${be}-submenu ${be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${be}-item, ${be}-submenu-title`]:{transition:[`border-color ${he}`,`background ${he}`].join(",")},[`${be}-submenu-arrow`]:{display:"none"}}}},Ye=Oe=>{let{componentCls:be,menuArrowOffset:he}=Oe;return{[`${be}-rtl`]:{direction:"rtl"},[`${be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${be}-rtl${be}-vertical,
|
|
${be}-submenu-rtl ${be}-vertical`]:{[`${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${he})`},"&::after":{transform:`rotate(45deg) translateY(${he})`}}}}};const Lt=Oe=>Object.assign({},(0,Ce.oN)(Oe));var Nt=(Oe,be)=>{const{componentCls:he,itemColor:Pe,itemSelectedColor:ve,groupTitleColor:Ne,itemBg:He,subMenuItemBg:qe,itemSelectedBg:at,activeBarHeight:it,activeBarWidth:ut,activeBarBorderWidth:ct,motionDurationSlow:xt,motionEaseInOut:zt,motionEaseOut:pt,itemPaddingInline:Pt,motionDurationMid:Mt,itemHoverColor:Et,lineType:Dt,colorSplit:kt,itemDisabledColor:jt,dangerItemColor:$t,dangerItemHoverColor:Rt,dangerItemSelectedColor:Zt,dangerItemActiveBg:Tt,dangerItemSelectedBg:_t,itemHoverBg:Kt,itemActiveBg:on,menuSubMenuBg:Sn,horizontalItemSelectedColor:Qt,horizontalItemSelectedBg:fn,horizontalItemBorderRadius:Ln,horizontalItemHoverBg:rn,popupBg:cn}=Oe;return{[`${he}-${be}, ${he}-${be} > ${he}`]:{color:Pe,background:He,[`&${he}-root:focus-visible`]:Object.assign({},Lt(Oe)),[`${he}-item-group-title`]:{color:Ne},[`${he}-submenu-selected`]:{[`> ${he}-submenu-title`]:{color:ve}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{color:`${jt} !important`},[`${he}-item:not(${he}-item-selected):not(${he}-submenu-selected)`]:{[`&:hover, > ${he}-submenu-title:hover`]:{color:Et}},[`&:not(${he}-horizontal)`]:{[`${he}-item:not(${he}-item-selected)`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:on}},[`${he}-submenu-title`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:on}}},[`${he}-item-danger`]:{color:$t,[`&${he}-item:hover`]:{[`&:not(${he}-item-selected):not(${he}-submenu-selected)`]:{color:Rt}},[`&${he}-item:active`]:{background:Tt}},[`${he}-item a`]:{"&, &:hover":{color:"inherit"}},[`${he}-item-selected`]:{color:ve,[`&${he}-item-danger`]:{color:Zt},"a, a:hover":{color:"inherit"}},[`& ${he}-item-selected`]:{backgroundColor:at,[`&${he}-item-danger`]:{backgroundColor:_t}},[`${he}-item, ${he}-submenu-title`]:{[`&:not(${he}-item-disabled):focus-visible`]:Object.assign({},Lt(Oe))},[`&${he}-submenu > ${he}`]:{backgroundColor:Sn},[`&${he}-popup > ${he}`]:{backgroundColor:cn},[`&${he}-horizontal`]:Object.assign(Object.assign({},be==="dark"?{borderBottom:0}:{}),{[`> ${he}-item, > ${he}-submenu`]:{top:ct,marginTop:-ct,marginBottom:0,borderRadius:Ln,"&::after":{position:"absolute",insetInline:Pt,bottom:0,borderBottom:`${it}px solid transparent`,transition:`border-color ${xt} ${zt}`,content:'""'},"&:hover, &-active, &-open":{background:rn,"&::after":{borderBottomWidth:it,borderBottomColor:Qt}},"&-selected":{color:Qt,backgroundColor:fn,"&:hover":{backgroundColor:fn},"&::after":{borderBottomWidth:it,borderBottomColor:Qt}}}}),[`&${he}-root`]:{[`&${he}-inline, &${he}-vertical`]:{borderInlineEnd:`${ct}px ${Dt} ${kt}`}},[`&${he}-inline`]:{[`${he}-sub${he}-inline`]:{background:qe},[`${he}-item, ${he}-submenu-title`]:ct&&ut?{width:`calc(100% + ${ct}px)`}:{},[`${he}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ut}px solid ${ve}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Mt} ${pt}`,`opacity ${Mt} ${pt}`].join(","),content:'""'},[`&${he}-item-danger`]:{"&::after":{borderInlineEndColor:Zt}}},[`${he}-selected, ${he}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Mt} ${zt}`,`opacity ${Mt} ${zt}`].join(",")}}}}}};const At=Oe=>{const{componentCls:be,itemHeight:he,itemMarginInline:Pe,padding:ve,menuArrowSize:Ne,marginXS:He,itemMarginBlock:qe}=Oe,at=ve+Ne+He;return{[`${be}-item`]:{position:"relative",overflow:"hidden"},[`${be}-item, ${be}-submenu-title`]:{height:he,lineHeight:`${he}px`,paddingInline:ve,overflow:"hidden",textOverflow:"ellipsis",marginInline:Pe,marginBlock:qe,width:`calc(100% - ${Pe*2}px)`},[`> ${be}-item,
|
|
> ${be}-submenu > ${be}-submenu-title`]:{height:he,lineHeight:`${he}px`},[`${be}-item-group-list ${be}-submenu-title,
|
|
${be}-submenu-title`]:{paddingInlineEnd:at}}};var Ee=Oe=>{const{componentCls:be,iconCls:he,itemHeight:Pe,colorTextLightSolid:ve,dropdownWidth:Ne,controlHeightLG:He,motionDurationMid:qe,motionEaseOut:at,paddingXL:it,itemMarginInline:ut,fontSizeLG:ct,motionDurationSlow:xt,paddingXS:zt,boxShadowSecondary:pt,collapsedWidth:Pt,collapsedIconSize:Mt}=Oe,Et={height:Pe,lineHeight:`${Pe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[be]:{"&-inline, &-vertical":Object.assign({[`&${be}-root`]:{boxShadow:"none"}},At(Oe))},[`${be}-submenu-popup`]:{[`${be}-vertical`]:Object.assign(Object.assign({},At(Oe)),{boxShadow:pt})}},{[`${be}-submenu-popup ${be}-vertical${be}-sub`]:{minWidth:Ne,maxHeight:`calc(100vh - ${He*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${be}-inline`]:{width:"100%",[`&${be}-root`]:{[`${be}-item, ${be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${xt}`,`background ${xt}`,`padding ${qe} ${at}`].join(","),[`> ${be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${be}-sub${be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${be}-submenu > ${be}-submenu-title`]:Et,[`& ${be}-item-group-title`]:{paddingInlineStart:it}},[`${be}-item`]:Et}},{[`${be}-inline-collapsed`]:{width:Pt,[`&${be}-root`]:{[`${be}-item, ${be}-submenu ${be}-submenu-title`]:{[`> ${be}-inline-collapsed-noicon`]:{fontSize:ct,textAlign:"center"}}},[`> ${be}-item,
|
|
> ${be}-item-group > ${be}-item-group-list > ${be}-item,
|
|
> ${be}-item-group > ${be}-item-group-list > ${be}-submenu > ${be}-submenu-title,
|
|
> ${be}-submenu > ${be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ct/2}px - ${ut}px)`,textOverflow:"clip",[`
|
|
${be}-submenu-arrow,
|
|
${be}-submenu-expand-icon
|
|
`]:{opacity:0},[`${be}-item-icon, ${he}`]:{margin:0,fontSize:Mt,lineHeight:`${Pe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${be}-item-icon, ${he}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${be}-item-icon, ${he}`]:{display:"none"},"a, a:hover":{color:ve}},[`${be}-item-group-title`]:Object.assign(Object.assign({},Ce.vS),{paddingInline:zt})}}]};const De=Oe=>{const{componentCls:be,motionDurationSlow:he,motionDurationMid:Pe,motionEaseInOut:ve,motionEaseOut:Ne,iconCls:He,iconSize:qe,iconMarginInlineEnd:at}=Oe;return{[`${be}-item, ${be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${he}`,`background ${he}`,`padding ${he} ${ve}`].join(","),[`${be}-item-icon, ${He}`]:{minWidth:qe,fontSize:qe,transition:[`font-size ${Pe} ${Ne}`,`margin ${he} ${ve}`,`color ${he}`].join(","),"+ span":{marginInlineStart:at,opacity:1,transition:[`opacity ${he} ${ve}`,`margin ${he}`,`color ${he}`].join(",")}},[`${be}-item-icon`]:Object.assign({},(0,Ce.Ro)()),[`&${be}-item-only-child`]:{[`> ${He}, > ${be}-item-icon`]:{marginInlineEnd:0}}},[`${be}-item-disabled, ${be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},st=Oe=>{const{componentCls:be,motionDurationSlow:he,motionEaseInOut:Pe,borderRadius:ve,menuArrowSize:Ne,menuArrowOffset:He}=Oe;return{[`${be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Oe.margin,width:Ne,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${he} ${Pe}, opacity ${he}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ne*.6,height:Ne*.15,backgroundColor:"currentcolor",borderRadius:ve,transition:[`background ${he} ${Pe}`,`transform ${he} ${Pe}`,`top ${he} ${Pe}`,`color ${he} ${Pe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${He})`},"&::after":{transform:`rotate(-45deg) translateY(${He})`}}}}},Ze=Oe=>{const{antCls:be,componentCls:he,fontSize:Pe,motionDurationSlow:ve,motionDurationMid:Ne,motionEaseInOut:He,paddingXS:qe,padding:at,colorSplit:it,lineWidth:ut,zIndexPopup:ct,borderRadiusLG:xt,subMenuItemBorderRadius:zt,menuArrowSize:pt,menuArrowOffset:Pt,lineType:Mt,menuPanelMaskInset:Et,groupTitleLineHeight:Dt,groupTitleFontSize:kt}=Oe;return[{"":{[`${he}`]:Object.assign(Object.assign({},(0,Ce.dF)()),{"&-hidden":{display:"none"}})},[`${he}-submenu-hidden`]:{display:"none"}},{[he]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)(Oe)),(0,Ce.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Pe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ve} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${he}-item`]:{flex:"none"}},[`${he}-item, ${he}-submenu, ${he}-submenu-title`]:{borderRadius:Oe.itemBorderRadius},[`${he}-item-group-title`]:{padding:`${qe}px ${at}px`,fontSize:kt,lineHeight:Dt,transition:`all ${ve}`},[`&-horizontal ${he}-submenu`]:{transition:[`border-color ${ve} ${He}`,`background ${ve} ${He}`].join(",")},[`${he}-submenu, ${he}-submenu-inline`]:{transition:[`border-color ${ve} ${He}`,`background ${ve} ${He}`,`padding ${Ne} ${He}`].join(",")},[`${he}-submenu ${he}-sub`]:{cursor:"initial",transition:[`background ${ve} ${He}`,`padding ${ve} ${He}`].join(",")},[`${he}-title-content`]:{transition:`color ${ve}`},[`${he}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${he}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:it,borderStyle:Mt,borderWidth:0,borderTopWidth:ut,marginBlock:ut,padding:0,"&-dashed":{borderStyle:"dashed"}}}),De(Oe)),{[`${he}-item-group`]:{[`${he}-item-group-list`]:{margin:0,padding:0,[`${he}-item, ${he}-submenu-title`]:{paddingInline:`${Pe*2}px ${at}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ct,borderRadius:xt,boxShadow:"none",transformOrigin:"0 0",[`&${he}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Et}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Et},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Oe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Oe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Oe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Oe.paddingXS},[`> ${he}`]:Object.assign(Object.assign(Object.assign({borderRadius:xt},De(Oe)),st(Oe)),{[`${he}-item, ${he}-submenu > ${he}-submenu-title`]:{borderRadius:zt},[`${he}-submenu-title::after`]:{transition:`transform ${ve} ${He}`}})}}),st(Oe)),{[`&-inline-collapsed ${he}-submenu-arrow,
|
|
&-inline ${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Pt})`},"&::after":{transform:`rotate(45deg) translateX(-${Pt})`}},[`${he}-submenu-open${he}-submenu-inline > ${he}-submenu-title > ${he}-submenu-arrow`]:{transform:`translateY(-${pt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Pt})`},"&::before":{transform:`rotate(45deg) translateX(${Pt})`}}})},{[`${be}-layout-header`]:{[he]:{lineHeight:"inherit"}}}]};var mt=(Oe,be)=>(0,vt.Z)("Menu",Pe=>{if(be===!1)return[];const{colorBgElevated:ve,colorPrimary:Ne,colorTextLightSolid:He,controlHeightLG:qe,fontSize:at,darkItemColor:it,darkDangerItemColor:ut,darkItemBg:ct,darkSubMenuItemBg:xt,darkItemSelectedColor:zt,darkItemSelectedBg:pt,darkDangerItemSelectedBg:Pt,darkItemHoverBg:Mt,darkGroupTitleColor:Et,darkItemHoverColor:Dt,darkItemDisabledColor:kt,darkDangerItemHoverColor:jt,darkDangerItemSelectedColor:$t,darkDangerItemActiveBg:Rt}=Pe,Zt=at/7*5,Tt=(0,Le.TS)(Pe,{menuArrowSize:Zt,menuHorizontalHeight:qe*1.15,menuArrowOffset:`${Zt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ve}),_t=(0,Le.TS)(Tt,{itemColor:it,itemHoverColor:Dt,groupTitleColor:Et,itemSelectedColor:zt,itemBg:ct,popupBg:ct,subMenuItemBg:xt,itemActiveBg:"transparent",itemSelectedBg:pt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Mt,itemDisabledColor:kt,dangerItemColor:ut,dangerItemHoverColor:jt,dangerItemSelectedColor:$t,dangerItemActiveBg:Rt,dangerItemSelectedBg:Pt,menuSubMenuBg:xt,horizontalItemSelectedColor:He,horizontalItemSelectedBg:Ne});return[Ze(Tt),Xe(Tt),Ee(Tt),Nt(Tt,"light"),Nt(_t,"dark"),Ye(Tt),(0,xe.Z)(Tt),(0,et.oN)(Tt,"slide-up"),(0,et.oN)(Tt,"slide-down"),(0,St._y)(Tt,"zoom-big")]},Pe=>{const{colorPrimary:ve,colorError:Ne,colorTextDisabled:He,colorErrorBg:qe,colorText:at,colorTextDescription:it,colorBgContainer:ut,colorFillAlter:ct,colorFillContent:xt,lineWidth:zt,lineWidthBold:pt,controlItemBgActive:Pt,colorBgTextHover:Mt,controlHeightLG:Et,lineHeight:Dt,colorBgElevated:kt,marginXXS:jt,padding:$t,fontSize:Rt,controlHeightSM:Zt,fontSizeLG:Tt,colorTextLightSolid:_t,colorErrorHover:Kt}=Pe,on=new me.C(_t).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Pe.zIndexPopupBase+50,radiusItem:Pe.borderRadiusLG,itemBorderRadius:Pe.borderRadiusLG,radiusSubMenuItem:Pe.borderRadiusSM,subMenuItemBorderRadius:Pe.borderRadiusSM,colorItemText:at,itemColor:at,colorItemTextHover:at,itemHoverColor:at,colorItemTextHoverHorizontal:ve,horizontalItemHoverColor:ve,colorGroupTitle:it,groupTitleColor:it,colorItemTextSelected:ve,itemSelectedColor:ve,colorItemTextSelectedHorizontal:ve,horizontalItemSelectedColor:ve,colorItemBg:ut,itemBg:ut,colorItemBgHover:Mt,itemHoverBg:Mt,colorItemBgActive:xt,itemActiveBg:Pt,colorSubItemBg:ct,subMenuItemBg:ct,colorItemBgSelected:Pt,itemSelectedBg:Pt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:pt,activeBarHeight:pt,colorActiveBarBorderSize:zt,activeBarBorderWidth:zt,colorItemTextDisabled:He,itemDisabledColor:He,colorDangerItemText:Ne,dangerItemColor:Ne,colorDangerItemTextHover:Ne,dangerItemHoverColor:Ne,colorDangerItemTextSelected:Ne,dangerItemSelectedColor:Ne,colorDangerItemBgActive:qe,dangerItemActiveBg:qe,colorDangerItemBgSelected:qe,dangerItemSelectedBg:qe,itemMarginInline:Pe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Et,groupTitleLineHeight:Dt,collapsedWidth:Et*2,popupBg:kt,itemMarginBlock:jt,itemPaddingInline:$t,horizontalLineHeight:`${Et*1.15}px`,iconSize:Rt,iconMarginInlineEnd:Zt-Rt,collapsedIconSize:Tt,groupTitleFontSize:Rt,darkItemDisabledColor:new me.C(_t).setAlpha(.25).toRgbString(),darkItemColor:on,darkDangerItemColor:Ne,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_t,darkItemSelectedBg:ve,darkDangerItemSelectedBg:Ne,darkItemHoverBg:"transparent",darkGroupTitleColor:on,darkItemHoverColor:_t,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:_t,darkDangerItemActiveBg:Ne}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Oe),de=function(Oe,be){var he={};for(var Pe in Oe)Object.prototype.hasOwnProperty.call(Oe,Pe)&&be.indexOf(Pe)<0&&(he[Pe]=Oe[Pe]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Pe=Object.getOwnPropertySymbols(Oe);ve<Pe.length;ve++)be.indexOf(Pe[ve])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Pe[ve])&&(he[Pe[ve]]=Oe[Pe[ve]]);return he},ht=(0,fe.forwardRef)((Oe,be)=>{var he,Pe;const ve=fe.useContext(ae.Z),Ne=ve||{},{getPrefixCls:He,getPopupContainer:qe,direction:at,menu:it}=fe.useContext(Te.E_),ut=He(),{prefixCls:ct,className:xt,style:zt,theme:pt="light",expandIcon:Pt,_internalDisableMenuItemTitleTooltip:Mt,inlineCollapsed:Et,siderCollapsed:Dt,items:kt,children:jt,rootClassName:$t,mode:Rt,selectable:Zt,onClick:Tt,overflowedIndicatorPopupClassName:_t}=Oe,Kt=de(Oe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),on=(0,Me.Z)(Kt,["collapsedWidth"]),Sn=le(kt)||jt;(he=Ne.validator)===null||he===void 0||he.call(Ne,{mode:Rt});const Qt=(0,ee.useEvent)(function(){var gn;Tt==null||Tt.apply(void 0,arguments),(gn=Ne.onClick)===null||gn===void 0||gn.call(Ne)}),fn=Ne.mode||Rt,Ln=Zt!=null?Zt:Ne.selectable,rn=fe.useMemo(()=>Dt!==void 0?Dt:Et,[Et,Dt]),cn={horizontal:{motionName:`${ut}-slide-up`},inline:(0,te.Z)(ut),other:{motionName:`${ut}-zoom-big`}},Jt=He("menu",ct||Ne.prefixCls),[Pn,yn]=mt(Jt,!ve),bn=Se()(`${Jt}-${pt}`,it==null?void 0:it.className,xt);let dn;if(typeof Pt=="function")dn=Pt;else if(Pt===null||Pt===!1)dn=null;else if(Ne.expandIcon===null||Ne.expandIcon===!1)dn=null;else{const gn=Pt!=null?Pt:Ne.expandIcon;dn=(0,Be.Tm)(gn,{className:Se()(`${Jt}-submenu-expand-icon`,(0,Be.l$)(gn)?(Pe=gn.props)===null||Pe===void 0?void 0:Pe.className:"")})}const Nn=fe.useMemo(()=>({prefixCls:Jt,inlineCollapsed:rn||!1,direction:at,firstLevel:!0,theme:pt,mode:fn,disableMenuItemTitleTooltip:Mt}),[Jt,rn,at,Mt,pt]);return Pn(fe.createElement(ae.Z.Provider,{value:null},fe.createElement(a.Provider,{value:Nn},fe.createElement(ge.ZP,Object.assign({getPopupContainer:qe,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(Jt,`${Jt}-${pt}`,_t),mode:fn,selectable:Ln,onClick:Qt},on,{inlineCollapsed:rn,style:Object.assign(Object.assign({},it==null?void 0:it.style),zt),className:bn,prefixCls:Jt,direction:at,defaultMotions:cn,expandIcon:dn,ref:be,rootClassName:Se()($t,yn)}),Sn))))});const Ft=(0,fe.forwardRef)((Oe,be)=>{const he=(0,fe.useRef)(null),Pe=fe.useContext(_e.D);return(0,fe.useImperativeHandle)(be,()=>({menu:he.current,focus:ve=>{var Ne;(Ne=he.current)===null||Ne===void 0||Ne.focus(ve)}})),fe.createElement(ht,Object.assign({ref:he},Oe,Pe))});Ft.Item=x,Ft.SubMenu=E,Ft.Divider=Fe,Ft.ItemGroup=ge.BW;var tt=Ft},72665:function(we,Qe){"use strict";var ie;var ge=typeof Symbol=="function"&&Symbol.for,fe=ge?Symbol.for("react.element"):60103,_e=ge?Symbol.for("react.portal"):60106,Re=ge?Symbol.for("react.fragment"):60107,Se=ge?Symbol.for("react.strict_mode"):60108,Te=ge?Symbol.for("react.profiler"):60114,ue=ge?Symbol.for("react.provider"):60109,Ue=ge?Symbol.for("react.context"):60110,Fe=ge?Symbol.for("react.async_mode"):60111,ze=ge?Symbol.for("react.concurrent_mode"):60111,Me=ge?Symbol.for("react.forward_ref"):60112,Ge=ge?Symbol.for("react.suspense"):60113,Be=ge?Symbol.for("react.suspense_list"):60120,ne=ge?Symbol.for("react.memo"):60115,a=ge?Symbol.for("react.lazy"):60116,y=ge?Symbol.for("react.block"):60121,x=ge?Symbol.for("react.fundamental"):60117,b=ge?Symbol.for("react.responder"):60118,E=ge?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var ae=te.$$typeof;switch(ae){case fe:switch(te=te.type,te){case Fe:case ze:case Re:case Te:case Se:case Ge:return te;default:switch(te=te&&te.$$typeof,te){case Ue:case Me:case a:case ne:case ue:return te;default:return ae}}case _e:return ae}}}function ee(te){return z(te)===ze}ie=Fe,ie=ze,ie=Ue,ie=ue,ie=fe,ie=Me,ie=Re,ie=a,ie=ne,ie=_e,ie=Te,ie=Se,ie=Ge,ie=function(te){return ee(te)||z(te)===Fe},ie=ee,ie=function(te){return z(te)===Ue},ie=function(te){return z(te)===ue},ie=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===fe},ie=function(te){return z(te)===Me},ie=function(te){return z(te)===Re},ie=function(te){return z(te)===a},Qe.isMemo=function(te){return z(te)===ne},ie=function(te){return z(te)===_e},ie=function(te){return z(te)===Te},ie=function(te){return z(te)===Se},ie=function(te){return z(te)===Ge},ie=function(te){return typeof te=="string"||typeof te=="function"||te===Re||te===ze||te===Te||te===Se||te===Ge||te===Be||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ne||te.$$typeof===ue||te.$$typeof===Ue||te.$$typeof===Me||te.$$typeof===x||te.$$typeof===b||te.$$typeof===E||te.$$typeof===y)},ie=z},12060:function(we,Qe,ie){"use strict";we.exports=ie(72665)}}]);
|