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.
161 lines
398 KiB
161 lines
398 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6820],{84249:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return me}});var ae=re(87462),he=re(67294),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ue=Ve,Se=re(74643),Ze=function(Ne,Te){return he.createElement(Se.Z,(0,ae.Z)({},Ne,{ref:Te,icon:Ue}))},me=he.forwardRef(Ze)},90674:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return me}});var ae=re(87462),he=re(67294),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ue=Ve,Se=re(74643),Ze=function(Ne,Te){return he.createElement(Se.Z,(0,ae.Z)({},Ne,{ref:Te,icon:Ue}))},me=he.forwardRef(Ze)},22751:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return me}});var ae=re(87462),he=re(67294),Ve={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"},Ue=Ve,Se=re(74643),Ze=function(Ne,Te){return he.createElement(Se.Z,(0,ae.Z)({},Ne,{ref:Te,icon:Ue}))},me=he.forwardRef(Ze)},91034:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return me}});var ae=re(87462),he=re(67294),Ve={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"},Ue=Ve,Se=re(74643),Ze=function(Ne,Te){return he.createElement(Se.Z,(0,ae.Z)({},Ne,{ref:Te,icon:Ue}))},me=he.forwardRef(Ze)},71736:function($e,lt){"use strict";lt.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 $e(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty($e.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($e.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($e.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($e.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 $e))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var lt=[];function re(ne,a){var y=lt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=lt.pop();return ne===void 0?new go.Point:ne}function he(ne){lt.push(ne)}function Ve(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ne-y,ge=b-z,ie=NaN,se=NaN;if(oe===0)if(ge===0)ne===y&&(ie=ne,se=a);else{var le=(x-ee)/ge,ke=x-le*b;ie=ne,se=le*ie+ke}else if(ge===0){var Ae=(a-E)/oe,St=a-Ae*ne;ie=b,se=Ae*ie+St}else{var Ae=(a-E)/oe,le=(x-ee)/ge,St=a-Ae*ne,ke=x-le*b;ie=(ke-St)/(Ae-le),se=Ae*ie+St}return te.x=ie,te.y=se,te}function Ue(ne,a,y,E,b,x,z,ee,te,oe,ge,ie,se,le){var ke=1-te,Ae=te,St=ne*ke+y*Ae,Ot=a*ke+E*Ae,xt=y*ke+b*Ae,Le=E*ke+x*Ae,et=b*ke+z*Ae,it=x*ke+ee*Ae,tt=St*ke+xt*Ae,st=Ot*ke+Le*Ae,Rt=xt*ke+et*Ae,Zt=Le*ke+it*Ae,ln=tt*ke+Rt*Ae,pn=st*ke+Zt*Ae;oe.x=St,oe.y=Ot,ge.x=tt,ge.y=st,ie.x=ln,ie.y=pn,se.x=Rt,se.y=Zt,le.x=et,le.y=it}var Se=new go.Spot(.156,.156),Ze=new go.Spot(.844,.844),me=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new $e("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=Se,b.spot2=Ze,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,me*a,0,a,(1-me)*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,me*y,(1-me)*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,me*y,me*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-me)*a,0,0,(1-me)*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 $e("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new $e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new $e("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new $e("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new $e("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var at=[];function Ne(){var ne=at.pop();return ne===void 0?[]:ne}function Te(ne){ne.length=0,at.push(ne)}function He(ne){for(var a=Ne(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Ge(ne){var a=Oe(ne),y=Ne();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return Te(a),y}function Oe(ne){for(var a=He(ne),y=Ne(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ve(ee.x,ee.y,oe.x,oe.y,te.x,te.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Te(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var E=He(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var E=He(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var E=He(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var E=He(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var E=He(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var E=He(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var E=He(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var E=Oe(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var E=Oe(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var E=Oe(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var E=Oe(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var E=Oe(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var E=Oe(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var E=Ge(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var E=Ge(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var E=Ge(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var E=Ge(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var E=Ge(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var E=Ge(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new $e("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new $e("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new $e("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=Se,x.spot2=Ze,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new $e("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new $e("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var E=me/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new $e("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new $e("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new $e("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(te,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new $e("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new $e("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new $e("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,me*a,0,a,(.5-me/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+me/2)*y,me*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*me;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*me,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=me*.4;var oe=ae(),ge=ae(),ie=ae(),se=ae();Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,ie,se,se);var le=ae(),ke=ae(),Ae=ae();Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,se,se,Ae,le,ke);var St=ae(),Ot=ae(),xt=ae();Ue(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,St,Ot,xt,se,se);var Le=ae(),et=ae(),it=ae();return Ue(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,se,se,it,Le,et),te.add(new go.PathSegment(go.PathSegment.Move,it.x*a,it.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Le.x*a,Le.y*y,et.x*a,et.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,it.x*a,it.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,xt.x*a,xt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ae.x*a,Ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,le.x*a,le.y*y,ke.x*a,ke.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,xt.x*a,xt.y*y,St.x*a,St.y*y,Ot.x*a,Ot.y*y).close()),he(oe),he(ge),he(ie),he(se),he(le),he(ke),he(Ae),he(St),he(Ot),he(xt),he(Le),he(et),he(it),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new $e("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae(),se=new go.PathFigure((z-x)*a,ee*y,!1);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y));var le=re(oe.x,oe.y);Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,ge,ie);var ke=re(oe.x,oe.y);se.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,0)),se.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ke.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(ke.x*.1+.9)*a,(ke.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,ke.x*a,ke.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=me*.35;var Ae=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var St=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(St),he(te),he(oe),he(ge),he(ie),he(le),he(ke),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*me,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*me;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var E=ne?ne.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new $e("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new $e("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ve(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),he(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new $e("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new $e("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ve(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),he(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new $e("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Ve(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ve(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new $e("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new $e("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Ve(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ve(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new $e("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Ve(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new $e("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new $e("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var ie=Ve(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new $e("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ve(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new $e("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ve(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new $e("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Ve(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new $e("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Ve(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new $e("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-me*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-me*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-me*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-me*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,me*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,me*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-me*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-me*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-me*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-me*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+me*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+me*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=me*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-me*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-me*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,me*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,me*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-me*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-me*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=me*b,ee=me*x,te=.5,oe=.1,ge=new go.PathFigure(te*a,(oe+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+x)*y,(te-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-x)*y,(te+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+x)*y));var ie=.05,se=me*ie;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+se)*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,se=me*ie,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,se=me*ie,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,se=me*ie,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-se)*y,(te+se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-se)*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,se=me*ie,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-se)*y,(te-se)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new $e("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=me*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=me*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=me*.4,z=me*.1,ee=.1,te=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=me*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var E=new go.Geometry,b=me*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var E=new go.Geometry,b=me*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=me*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,ie=(x-y)/2,se=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=me*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=me*.2,ee=.2,te=.5,oe=.5;var ke=new go.PathFigure((te-ee)*a+ge,oe*y+ie,!0);E.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),ke.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),z=me*.4,ee=.4,te=.8,oe=.5;var Ae=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),Ae.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),z=me*.8,ee=.8,te=1,oe=.5;var St=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);return E.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),St.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),St.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),St.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var E=new go.Geometry,b=me*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae();Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,ie);var se=re(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ue(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),b=me*.3,x=.3,Ue(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ue(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,ie),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y).close());var le=new go.PathFigure(.45*a,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),he(te),he(oe),he(ge),he(ie),he(se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*me,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,ie=.5,se=.5,le=0,ke=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(se+x)*a,(le+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),ke.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ke.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ke.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=ge*.5,se=z,le=z,ke=ge*se,Ae=ge*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(ke+se)/2)*a,(te+(le+Ae)/2)*y,(ee-se)*a,(te+Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-se)*a,(te-Ae)*y,(ee-ke)*a,(te-le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+ke)*a,(te-le)*y,(ee+se)*a,(te-Ae)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+Ae)*y,(ee+(ke+se)/2)*a,(te+(le+Ae)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var St=new go.PathFigure(.2*a,y,!1);E.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Ot=new go.PathFigure(.8*a,y,!1);return E.add(Ot),Ot.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=me*.1,te=.2,oe=.9,ge=new go.PathFigure((te-z)*a,oe*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=me*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=me*.1,ge=.1,ie=.9,se=new go.PathFigure((ge-te)*a,ie*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),te=.1,oe=me*.1,ge=.4,ie=.9;var le=new go.PathFigure((ge-te)*a,ie*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,ie=me*.05,se=.175,le=.95,ee=new go.PathFigure((se-ge)*a,le*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=me*.05,se=.375,le=.95,te=new go.PathFigure((se-ge)*a,le*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=me*.05,se=.625,le=.95,oe=new go.PathFigure((se-ge)*a,le*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y));var ge=.05,ie=me*.05,se=.825,le=.95,ke=new go.PathFigure((se-ge)*a,le*y,!0);E.add(ke),ke.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le-ge)*y,(se-ge)*a,(le-ie)*y,(se-ie)*a,(le-ge)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,le*y,(se+ie)*a,(le-ge)*y,(se+ge)*a,(le-ie)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(le+ge)*y,(se+ge)*a,(le+ie)*y,(se+ie)*a,(le+ge)*y)),ke.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,le*y,(se-ie)*a,(le+ge)*y,(se-ge)*a,(le+ie)*y).close());var Ae=new go.PathFigure(0,y,!1);return E.add(Ae),Ae.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=me*.05,oe=.35,ge=.775,ie=new go.PathFigure((oe-ee)*a,ge*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-te)*y,(oe-te)*a,(ge-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+te)*a,(ge-ee)*y,(oe+ee)*a,(ge-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+te)*y,(oe+te)*a,(ge+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-te)*a,(ge+ee)*y,(oe-ee)*a,(ge+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var E=new go.Geometry,b=.3,x=me*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var E=new go.Geometry,b=.5,x=me*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=me*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var E=new go.Geometry,b=8,x=b*me,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*me,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var E=new go.Geometry,b=15,x=b*me,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var $e={},lt="5.0",re={},ae=null,he=!1,Ve=!1,Ue=null,Se=!1,Ze=null,me=null,at=0;at<arguments.length;at++){var Ne=arguments[at];if(Ne!==null)switch(typeof Ne){case"number":lt=Ne.toFixed(1);break;case"string":Ne.match(new RegExp("^[0-9]\\.[0-9]+$"))?lt=Ne:Ue=Ne;break;case"object":typeof Ne.is3D!="undefined"?ae=Ne:re=Ne;break;case"boolean":he=Ne,Ve=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!Ve&&(he=!0)),Ue!==null&&re.id===void 0&&(re.id=Ue);var Te="",He="",Ge=!1,Oe=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var te=function(Fe){return parseFloat(Fe)>4?parseFloat(Fe):5};$e.setHTML5Codebase=function(Fe,Ie){me=Fe,Zt(Fe,Ie)},$e.setJavaCodebase=$e.setJavaCodebaseVersion=$e.isCompiledInstalled=$e.setPreCompiledScriptPath=$e.setPreCompiledResourcePath=function(){},$e.setHTML5CodebaseVersion=function(Fe,Ie){var Je=parseFloat(Fe);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}Ze=Fe,Rt(Fe,Ie)},$e.getHTML5CodebaseVersion=function(){return ne},$e.getParameters=function(){return re},$e.setFontsCSSURL=function(Fe){z=Fe},$e.setGiacJSURL=function(Fe){},$e.setJNLPFile=function(Fe){Te=Fe},$e.setJNLPBaseDir=function(Fe){},$e.inject=function(){function Fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ie="auto",Je=re.id,Gt,rt=!1,Pt=0;Pt<arguments.length;Pt++){var de=arguments[Pt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ie=de:Je=arguments[Pt]):typeof de=="boolean"?rt=de:de instanceof HTMLElement&&(Gt=de)}dt();function dt(){if(!Se){setTimeout(dt,200);return}Ie=tt(Ie);var Tt=Gt||document.getElementById(Je);if(!Tt){console.log("possibly bug on ajax loading? ");return}if($e.removeExistingApplet(Tt,!1),re.width===void 0&&Tt.clientWidth&&(re.width=Tt.clientWidth),re.height===void 0&&Tt.clientHeight&&(re.height=Tt.clientHeight),!(re.width&&re.height)&&Ie==="html5"&&(delete re.width,delete re.height),Oe=Ie,Ie==="screenshot")Ot(Tt,re);else{var on=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?on=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(on=(!oe()||Fe())&&ge()),on?(Oe="screenshot",Le(Tt,re,rt,Ie)):St(Tt,re,rt)}}};function oe(){try{return window.self!==window.top}catch(Fe){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}$e.getViews=function(){return ae},$e.isJavaInstalled=function(){return!1};var ie=function(Fe){var Ie=function(Pt){var de=JSON.parse(Pt),dt=function(ft){return ft.type=="G"||ft.type=="E"},Tt=de.elements?de.elements.filter(dt)[0]:de;if(!Tt||!Tt.url){Je();return}re.fileName=Tt.url,se(Tt.settings||{}),ae.is3D=!0;var on="https://www.geogebra.org/images/";$e.setPreviewImage(E||Tt.previewUrl,on+"GeoGebra_loading.png",on+"applet_play.png"),Fe()},Je=function(){re.onError&&re.onError(),ln("Error: Fetching material (id "+re.material_id+") failed.",re)},Gt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",rt="/materials/"+re.material_id+"?scope=basic";le("https://"+Gt+"/api/proxy.php?path="+encodeURIComponent(rt),Ie,Je)};function se(Fe){var Ie=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Je){Fe[Je]=!!Fe[Je]}),Ie.forEach(function(Je){re[Je]===void 0&&Fe[Je]!==void 0&&(re[Je]=Fe[Je])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(Fe,Ie,Je){var Gt=new XMLHttpRequest;Gt.open("GET",Fe),Gt.onload=function(){Ie(Gt.responseText)},Gt.onerror=Je,Gt.send()}$e.isHTML5Installed=function(){return!0},$e.getLoadedAppletType=function(){return Oe},$e.setPreviewImage=function(Fe,Ie,Je){E=Fe,b=Ie,x=Je},$e.removeExistingApplet=function(Fe,Ie){var Je;typeof Fe=="string"&&(Fe=document.getElementById(Fe)),Oe=null;var Gt=null;for(Je=0;Je<Fe.childNodes.length;Je++){var rt=Fe.childNodes[Je],Pt=rt.className;Pt==="applet_screenshot"?Ie?(rt.style.display="block",Oe="screenshot"):rt.style.display="none":Pt!=="applet_scaler prerender"&&(Fe.removeChild(rt),Gt=Pt&&Pt.indexOf("appletParameters")!=-1?rt.id:null,Je--)}var de=re.id!==void 0?re.id:Gt,dt=window[de];dt&&typeof dt.getBase64=="function"&&(dt.remove(),window[de]=null)},$e.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Fe=$e.getAppletObject();return Fe&&typeof Fe.recalculateEnvironments=="function"?(Fe.recalculateEnvironments(),!0):!1},$e.startAnimation=function(){var Fe=$e.getAppletObject();return Fe&&typeof Fe.startAnimation=="function"?(Fe.startAnimation(),!0):!1},$e.stopAnimation=function(){var Fe=$e.getAppletObject();return Fe&&typeof Fe.stopAnimation=="function"?(Fe.stopAnimation(),!0):!1},$e.getAppletObject=function(){var Fe=re.id!==void 0?re.id:"ggbApplet";return window[Fe]},$e.resize=function(){};var ke=function(Fe,Ie,Je){var Gt=document.createElement("param");Gt.setAttribute("name",Ie),Gt.setAttribute("value",Je),Fe.appendChild(Gt)},Ae=function(Fe){return Fe&&Fe!=="false"},St=function(Fe,Ie,Je){te(ne)<=4.2&&(Je=!0);var Gt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Gt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var rt=document.createElement("div");rt.classList.add("appletParameters","notranslate");var Pt=Ie.width,de=Ie.height;if(Ie.disableAutoScale=Ie.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ie.disableAutoScale,Ie.width!==void 0)if(te(ne)<=4.4)Ae(Ie.showToolBar)&&(Ie.height-=7),Ae(Ie.showAlgebraInput)&&(Ie.height-=37),Ie.width<605&&Ae(Ie.showToolBar)&&(Ie.width=605,Pt=605);else{var dt=100;(Ae(Ie.showToolBar)||Ae(Ie.showMenuBar))&&(Ie.hasOwnProperty("customToolBar")&&(Ie.customToolbar=Ie.customToolBar),dt=Ae(Ie.showMenuBar)?245:155),Pt<dt&&(Ie.width=dt,Pt=dt)}rt.style.border="none",rt.style.display="inline-block";for(var Tt in Ie)Ie.hasOwnProperty(Tt)&&Tt!=="appletOnLoad"&&rt.setAttribute("data-param-"+Tt,Ie[Tt]);z&&rt.setAttribute("data-param-fontscssurl",z),$e.resize=function(){GGBAppletUtils.responsiveResize(Fe,Ie)},window.addEventListener("resize",function(It){$e.resize()});var on=typeof Ie.appletOnLoad=="function"?Ie.appletOnLoad:function(){};if(!Je&&Ie.width!==void 0){Ie.hasOwnProperty("showSplash")||rt.setAttribute("data-param-showSplash","false");var ft=Fe.querySelector(".applet_scaler.prerender"),je=ft!==null;if(je)var Be=ft.querySelector(".ggb_preview");else{var Be=it(Pt,de,Ie.borderColor,!1);ft=document.createElement("div"),ft.className="applet_scaler",ft.style.position="relative",ft.style.display="block",ft.style.width=Pt+"px",ft.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(ft,"66%"),te(ne)>=5?(Ie.appletOnLoad=function(It){var At=Fe.querySelector(".ggb_preview");At&&At.parentNode.removeChild(At),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ft),window.GGBT_wsf_view&&$(window).trigger("resize"),on(It)},je||ft.appendChild(Be)):rt.appendChild(Be),ft.appendChild(rt),je||Fe.appendChild(ft),setTimeout(function(){$e.resize()},1)}else{var ye=document.createElement("div");ye.className="applet_scaler",ye.style.position="relative",ye.style.display="block",ye.appendChild(rt),Fe.appendChild(ye),Ie.appletOnLoad=function(It){$e.resize(),on(It)}}function pe(It,At){At&&typeof At.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(It,At.appletOnLoad):renderGGBElement(It),ln("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",At)}function be(It,At){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:It,params:At}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(mn){pe(mn.article,mn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(It.className+=" geogebraweb")):pe(It,At)}if(Gt){scriptLoadStarted=!0;for(var We=0;We<rt.childNodes.length;We++){var nt=rt.childNodes[We].tagName;nt==="TABLE"&&(rt.removeChild(rt.childNodes[We]),We--)}if(ggbHTML5LoadedScript!==null){var ut=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ut!=null&&ut.parentNode.removeChild(ut)}var yt=document.createElement("script"),Bt=function(){be(rt,Ie)};yt.src=He+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=yt.src,ln("GeoGebra HTML5 codebase loaded: '"+He+"'.",Ie),!me&&(!Ze||Ze=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Bt()):He.requirejs?__webpack_require__.e(12).then(function(){var It=[__webpack_require__(12)];Bt.apply(null,It)}.bind(this)).catch(__webpack_require__.oe):(yt.onload=Bt,Fe.appendChild(yt))}else be(rt,Ie);Ie.height=de,Ie.width=Pt},Ot=function(Fe,Ie,Je){var Gt=it(Ie.width,Ie.height,Ie.borderColor,Je),rt=document.createElement("div");rt.style.position="relative",rt.style.display="block",rt.style.width=Ie.width+"px",rt.style.height=Ie.height+"px",rt.className="applet_screenshot applet_scaler"+(Je?" applet_screenshot_play":""),rt.appendChild(Gt);var Pt=GGBAppletUtils.getScale(Ie,Fe,Je);Je?(Fe.appendChild(et()),window.GGBT_wsf_view||(Fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(rt,"66%"),Fe.appendChild(rt),Pt!==1&&!isNaN(Pt)&&(GGBAppletUtils.scaleElement(rt,Pt),rt.style.width=Ie.width+"px",rt.style.height=Ie.height+"px",rt.parentNode.style.width=Ie.width*Pt+"px",rt.parentNode.style.height=Ie.height*Pt+"px"),$e.resize=function(){xt(Fe,Gt,rt,Je)},window.addEventListener("resize",function(de){$e.resize()}),$e.resize()};function xt(Fe,Ie,Je,Gt){if(Fe.contains(Ie)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Fe)}var rt=GGBAppletUtils.getScale(re,Fe,Gt);Je.parentNode!==null&&(!isNaN(rt)&&rt!==1?(GGBAppletUtils.scaleElement(Je,rt),Je.parentNode.style.width=re.width*rt+"px",Je.parentNode.style.height=re.height*rt+"px"):(GGBAppletUtils.scaleElement(Je,1),Je.parentNode.style.width=re.width+"px",Je.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}$e.onExitFullscreen=function(Fe,Ie){Ie.appendChild(Fe)};var Le=function(Fe,Ie,Je,Gt){Ot(Fe,Ie,!0);for(var rt=function(){var dt=[];for(de=0;de<Fe.childNodes.length;de++)dt.push(Fe.childNodes[de]);if(window.GGBT_wsf_view){var Tt=window.GGBT_wsf_view.renderFullScreen(Fe,Ie.id),on=document.getElementById("fullscreencontainer"),ft=jQuery(Fe).find(".fullscreencontent");ft.length>0?(Tt.remove(),ft.attr("id","fullscreencontent").show(),jQuery(on).append(ft),window.dispatchEvent(new Event("resize"))):St(Tt,Ie,!1),window.GGBT_wsf_view.launchFullScreen(on)}else Oe=Gt,St(Fe,Ie,!1);if(!window.GGBT_wsf_view)for(de=0;de<dt.length;de++)Fe.removeChild(dt[de])},Pt=Fe.getElementsByClassName("ggb_preview_play"),de=0;de<Pt.length;de++)Pt[de].addEventListener("click",rt,!1),Pt[de].addEventListener("ontouchstart",rt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Fe),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},et=function(){var Fe=document.createElement("div");if(Fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ie='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Je=document.createElement("style");Je.styleSheet?Je.styleSheet.cssText=Ie:Je.appendChild(document.createTextNode(Ie)),document.getElementsByTagName("head")[0].appendChild(Je)}return Fe},it=function(Fe,Ie,Je,Gt){var rt=document.createElement("div");rt.className="ggb_preview",rt.style.position="absolute",rt.style.zIndex="90",rt.style.width=Fe-2+"px",rt.style.height=Ie-2+"px",rt.style.top="0px",rt.style.left="0px",rt.style.overflow="hidden",rt.style.backgroundColor="white";var Pt="lightgrey";Je!==void 0&&(Je==="none"?Pt="transparent":Pt=Je),rt.style.border="1px solid "+Pt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var dt,Tt,on;if(!Gt){dt=document.createElement("img"),dt.style.position="absolute",dt.style.zIndex="1001",dt.style.opacity=1,de.style.opacity=.3,Tt=360,Tt>Fe/4*3&&(Tt=Fe/4*3),on=Tt/5.8,dt.setAttribute("src",b),dt.setAttribute("width",Tt),dt.setAttribute("height",on);var ft=(Fe-Tt)/2,je=(Ie-on)/2;dt.style.left=ft+"px",dt.style.top=je+"px",rt.appendChild(dt)}}return rt.appendChild(de),rt},tt=function(Fe){return Fe=Fe.toLowerCase(),Fe==="html5"||Fe==="screenshot"?Fe:"html5"},st=["web","webSimple","web3d","tablet","tablet3d","phone"],Rt=function(Fe,Ie){if(ne=Fe,Ie){Zt(ne,!0);return}var Je=!he;if(Je){var Gt=te(ne);!isNaN(Gt)&&Gt<4.4&&(Je=!1)}var rt,Pt;window.location.protocol.substr(0,4)==="http"?rt=window.location.protocol:rt="http:";var de=ne.indexOf("//");de>0?Pt=ne:de===0?Pt=rt+ne:Pt="https://www.geogebra.org/apps/5.2.814.0/";for(var dt in st)if(ne.slice(st[dt].length*-1)===st[dt]||ne.slice((st[dt].length+1)*-1)===st[dt]+"/"){Zt(Pt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Ae(re.showToolBar)&&!Ae(re.showMenuBar)&&!Ae(re.showAlgebraInput)&&!Ae(re.enableRightClick)&&(!re.appName||re.appName=="classic")?Pt+="webSimple/":Pt+="web3d/",Zt(Pt,!1)},Zt=function(Fe,Ie){if(Fe.requirejs){He=Fe;return}Fe.slice(-1)!=="/"&&(Fe+="/"),He=Fe,Ie===null&&(Ie=Fe.indexOf("http")===-1),Ge=Ie,a="web.nocache.js",y=!1;var Je=He.split("/");Je.length>1&&(!Ie&&Je[Je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):st.indexOf(Je[Je.length-2])>=0&&(a=Je[Je.length-2]+".nocache.js")),Je=Fe.split("/"),ne=Je[Je.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Gt=parseFloat(ne);Gt!==NaN&&Gt<5&&Fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Gt+" is deprecated. Using version latest instead."),Rt("5.0",Ie))},ln=function(Fe,Ie){window.console&&window.console.log&&(!Ie||typeof Ie.showLogging=="undefined"||Ie.showLogging&&Ie.showLogging!=="false")&&console.log(Fe)};re.material_id!==void 0?ie(pn):pn();function pn(){var Fe=lt;Ze!==null?Fe=Ze:parseFloat(Fe)<5&&(Fe="5.0"),Rt(Fe,!1),me!==null&&Zt(me,Ge),Se=!0}return $e},GGBAppletUtils=function(){"use strict";function $e(){return window.GGBT_wsf_edit!==void 0}function lt(Se,Ze){Ze!=1?(Se.style.transformOrigin="0% 0% 0px",Se.style.webkitTransformOrigin="0% 0% 0px",Se.style.transform="scale("+Ze+","+Ze+")",Se.style.webkitTransform="scale("+Ze+","+Ze+")",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 re(Se,Ze,me,at,Ne,Te){var He=null;if(Te!=null&&Te!="")for(var Ge=Se.parentNode;Ge!=null;)if((" "+Ge.className+" ").indexOf(" "+Te+" ")>-1){He=Ge;break}else Ge=Ge.parentNode;var Oe=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(He)Oe=He.offsetWidth,ne=Math.max(at?He.offsetWidth:0,He.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Oe=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Oe):(Oe=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),Se){var z=Se.getBoundingClientRect();z.left>0&&z.left<=Oe&&(Ne===void 0||!Ne)&&(document.dir==="rtl"?(E=Oe-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}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,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return Se&&((me===void 0||!me)&&Ze>0&&Ze+y<Oe?Oe=Ze:Oe-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(me===void 0||!me)&&(ne-=x)),{width:Oe,height:ne}}function ae(Se,Ze,me,at,Ne){if(Se.isScreenshoGenerator)return 1;var Te=at!==void 0&&at,He=Se.noScaleMargin!=null&&Se.noScaleMargin,Ge=function(ee){return ee&&ee!=="false"},Oe=Ge(Se.autoHeight),ne=re(Ze,Se.width,me,Oe,Te&&window.GGBT_wsf_view||He,Ne),a=parseInt(ne.width),y=Se.width,E=Se.height;if(y===void 0){var b=Ze.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Te?1:ne.height/E;return me!==void 0&&!me&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function he(Se,Ze,me){var at=1,Ne,Te=!1;if(Se.hasOwnProperty("allowUpscale")&&(Te=Se.allowUpscale),Se.hasOwnProperty("scale")&&(at=parseFloat(Se.scale),(isNaN(at)||at===null||at===0)&&(at=1),at>1&&(Te=!0)),Ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(Se.hasOwnProperty("disableAutoScale")&&Se.disableAutoScale))Ne=ae(Se,Ze,Te,me,Se.scaleContainerClass);else return at;return Te&&(!Se.hasOwnProperty("scale")||at===1)?Ne:Math.min(at,Ne)}function Ve(Se){var Ze=Math.min(window.innerWidth,document.documentElement.clientWidth),me=Math.min(window.innerHeight,document.documentElement.clientHeight),at=Se.getBoundingClientRect(),Ne=(Ze-at.width)/2,Te=(me-at.height)/2;Te<0&&(Te=0),Se.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ne<40?Se.style.left="40px":Se.style.left=Ne+"px",Se.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?Se.style.top="40px":Se.style.top=Te+"px",Se.style.left=Ne+"px")}function Ue(Se,Ze){var me=Se.querySelector(".appletParameters");if(me){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!==me.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Se)}if(me.parentElement&&/fullscreen/.test(me.parentElement.className))return;var at=he(Ze,Se);$e()&&me.setAttribute("data-param-scale",at);for(var Ne=null,Te=0;Te<Se.childNodes.length;Te++)if(Se.childNodes[Te].className!==void 0&&Se.childNodes[Te].className.match(/^applet_scaler/)){Ne=Se.childNodes[Te];break}if(Ne!==null&&Ne.querySelector(".noscale")!==null)return;var He=Ze.id!==void 0?Ze.id:"ggbApplet",Ge=window[He];(Ge==null||!Ge.recalculateEnvironments)&&Ne!==null&&!Ne.className.match(/fullscreen/)&&(Ne.parentNode.style.transform="",!isNaN(at)&&at!==1?(Ne.parentNode.style.width=Ze.width*at+"px",Ne.parentNode.style.height=Ze.height*at+"px",lt(Ne,at)):(lt(Ne,1),Ne.parentNode.style.width=Ze.width+"px",Ne.parentNode.style.height=Ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ve(Se),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(me).parents(".content-added-content"))}}return{responsiveResize:Ue,isFlexibleWorksheetEditor:$e,positionCenter:Ve,getScale:he,scaleElement:lt}}();__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 $e=n.location.search;return $e.indexOf(J)!=-1||$e.indexOf(K)!=-1}function q($e,lt){}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($e){var lt=s[L].bindings;s[L].bindings=function(){for(var re=lt?lt():{},ae=$e[webModule.__softPermutationId],he=O;he<ae.length;he++){var Ve=ae[he];re[Ve[O]]=Ve[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var $e=o.createElement(Q);if($e.id=L,$e.style.cssText=R+S,$e.tabIndex=-1,o.body.appendChild($e),t=$e.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var lt=document.compatMode==U?V:W;t.write(lt+X),t.close()}}}function w($e){function lt(ae){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ve=he();if(Ve){ae();return}function Ue(){if(!Ve){if(!he())return;Ve=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ue,!1),Se&&clearInterval(Se)}}o.addEventListener&&o.addEventListener(Z,Ue,!1);var Se=setInterval(function(){Ue()},$)}function re(ae){var he=u(),Ve=he.body,Ue=he.createElement(_);Ue.language=ab,Ue.crossOrigin=W,Ue.src=ae,webModule.__errFn&&(Ue.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ve.appendChild(Ue)}lt(function(){re($e)})}webModule.__startLoadingFragment=function($e){return C($e)},webModule.__installRunAsyncCode=function($e){var lt=u(),re=lt.body,ae=lt.createElement(_);ae.language=ab,ae.text=$e,re.appendChild(ae),re.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch($e){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch($e){alert(nb+k+qb)}}}__gwt_getMetaProperty=function($e){var lt=c[$e];return lt==null?null:lt},r=d,webModule.__errFn=e}function B(){function $e(Se){var Ze=Se.lastIndexOf(rb);Ze==-1&&(Ze=Se.length);var me=Se.indexOf(sb);me==-1&&(me=Se.length);var at=Se.lastIndexOf(tb,Math.min(me,Ze));return at>=O?Se.substring(O,at+P):W}function lt(Se){if(!Se.match(/^\w+:\/\//)){var Ze=o.createElement(ub);Ze.src=Se+vb,Se=$e(Ze.src)}return Se}function re(){var Se=__gwt_getMetaProperty(wb);return Se!=null?Se:W}function ae(){for(var Se=o.getElementsByTagName(_),Ze=O;Ze<Se.length;++Ze)if(Se[Ze].src.indexOf(xb)!=-1)return $e(Se[Ze].src);return W}function he(){var Se=o.getElementsByTagName(yb);return Se.length>O?Se[Se.length-P].href:W}function Ve(){var Se=o.location;return Se.href==Se.protocol+zb+Se.host+Se.pathname+Se.search+Se.hash}var Ue=re();return Ue==W&&(Ue=ae()),Ue==W&&(Ue=he()),Ue==W&&Ve()&&(Ue=$e(o.location.href)),Ue=lt(Ue),Ue}function C($e){return $e.match(/^\//)||$e.match(/^[a-zA-Z]+:\/\//)?$e:webModule.__moduleBase+$e}function D(){var $e=[],lt=O,re=[],ae=[];function he(Se){var Ze=ae[Se](),me=re[Se];if(Ze in me)return Ze;var at=[];for(var Ne in me)at[me[Ne]]=Ne;throw r&&r(Se,at,Ze),null}if(__gwt_isKnownPropertyValue=function(Se,Ze){return Ze in re[Se]},webModule.__getPropMap=function(){var Se={};for(var Ze in re)re.hasOwnProperty(Ze)&&(Se[Ze]=he(Ze));return Se},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ve;try{Ve=Cb;var Ue=Ve.indexOf(Db);Ue!=-1&&(lt=parseInt(Ve.substring(Ue+P),$),Ve=Ve.substring(O,Ue))}catch(Se){}return webModule.__softPermutationId=lt,C(Ve+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($e,lt,re){"use strict";re.d(lt,{Ax:function(){return Ue},Ds:function(){return Se},KI:function(){return me},SI:function(){return Ve},f1:function(){return he}});var ae=re(11320);function he(at){let Ne=!0;if(at.length>0){for(let Te=0;Te<at.length;Te++)if(at[Te].compile_success==0||!at[Te].compile_success){Ne=!1;break}}else Ne=!1;return Ne}function Ve(at,Ne=""){let Te=[];for(let He=0;He<at.length;He++){let Ge=at[He],Oe=Ne?`${Ne}/${Ge.name}`:`${Ge.name}`;Te.push({title:Ge.name,type:Ge.type,isLeaf:Ge.type!=="tree",key:Oe})}return Te}function Ue(at,Ne,Te){for(let He=0;He<at.length;He++){let Ge=at[He];if(Ge.key===Ne){Ge.children=Te;break}Ge.children&&Ue(Ge.children,Ne,Te)}return at}function Se(at,Ne,Te){let He;return function(){let Ge=this,Oe=arguments,ne=function(){He=null,Te||at.apply(Ge,Oe)},a=Te&&!He;clearTimeout(He),He=setTimeout(ne,Ne),a&&at.apply(Ge,Oe)}}const Ze=!0,me=ae.Z.API_SERVER},63205:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return He}});var ae=re(67294),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ve=re(94184),Ue=re.n(Ve),Se=re(57953),Ze=re(15979),me=re(33170),at=re(28706),Ne=(Ge,Oe,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ne.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(Ge,Oe)).next())}),He=({data:Ge,className:Oe,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[ge,ie]=(0,ae.useState)(!1),[se,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Ge!=null&&Ge.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ge!=null&&Ge.src&&ke()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ge==null?void 0:Ge.visible]);const ke=()=>Ne(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,at.ZJ)(Ge==null?void 0:Ge.src);z.current.src="",z.current.src=Le,z.current.onload=function(){xt()},ie(!1),le("")}),Ae=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},St=Le=>Ne(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const et=yield(0,me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ge.title,file:Le.dataUrl}});et!=null&&et.id&&!x?(yield(0,me.ZP)(`/api/attachments/${Ge.id}/add_subitem.json`,{method:"post",body:{subitem_id:et==null?void 0:et.id,settings:JSON.stringify(Le.state)}})).status===0&&E():et!=null&&et.id&&E(et),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),le("")}),Ot=()=>{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(it=>{const tt=document.querySelector(it.name);tt&&tt.setAttribute("title",it.title)})},xt=()=>{ee.current=new Ze.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",St),ee.current.addEventListener("beforeclose",Ae),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),Ot()},300)};return ae.createElement(ae.Fragment,null,(Ge==null?void 0:Ge.visible)&&ae.createElement(Se.Z,{spinning:ge,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Ue()(he.imageDimensions,Oe,ne?he.fullWidth:""),style:a},ae.createElement("img",{className:he.img,ref:z}))))}},36527:function($e,lt,re){"use strict";var ae=re(67294),he=re(71230),Ve=re(15746),Ue=re(66368),Se=re(71577),Ze=re(85725),me=re(71736),at=re(84279),Ne=re(67294);const Te=(0,ae.forwardRef)(({callback:He,showSaveButton:Ge,value:Oe=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ne.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ne.createElement(Ve.Z,{flex:"110px",className:me.Z.item},Ne.createElement("div",null,Ne.createElement(Ze.Z,{value:`$$${ee.value}$$`}),ee.name),Ne.createElement("div",{className:me.Z.children},ee.children.map((oe,ge)=>Ne.createElement("div",{key:ge},Ne.createElement("h1",null,oe.name),Ne.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Ne.createElement(Ve.Z,{key:se,onClick:()=>b(ie),className:me.Z.diamond},Ne.createElement(Ze.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ne.createElement(he.Z,{className:me.Z.lists,gutter:[10,10]},E.map((ee,te)=>Ne.createElement(Ve.Z,{flex:"110px",className:me.Z.item},Ne.createElement("div",null,Ne.createElement(Ze.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ne.createElement("div",{className:me.Z.children},ee.children.map((oe,ge)=>Ne.createElement("div",{key:ge},oe.name&&Ne.createElement("h1",null,oe.name),Ne.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Ne.createElement(Ve.Z,{key:se,onClick:()=>b(ie),className:me.Z.diamond},Ne.createElement(Ze.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return He&&He(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Ne.createElement("div",{className:me.Z.mathWrap},Ne.createElement(Ue.default,{defaultActiveKey:"1",items:x}),Ne.createElement("math-field",{locale:"zh_cn",className:me.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Oe||""),Ge&&Ne.createElement("div",{className:me.Z.button},Ne.createElement(Se.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});lt.Z=Te},57444:function($e,lt,re){"use strict";re.d(lt,{h:function(){return ee}});var ae=re(67294),he=re(11713),Ve=re(22150),Ue=re(71577),Se=re(4631),Ze=re.n(Se),me=re(71749),at=re(30483),Ne=Object.defineProperty,Te=Object.defineProperties,He=Object.getOwnPropertyDescriptors,Ge=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?Ne(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[oe]=ge,y=(te,oe)=>{for(var ge in oe||(oe={}))Oe.call(oe,ge)&&a(te,ge,oe[ge]);if(Ge)for(var ge of Ge(oe))ne.call(oe,ge)&&a(te,ge,oe[ge]);return te},E=(te,oe)=>Te(te,He(oe));const b=he.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};lt.Z=({callback:te,onCancel:oe})=>{const[ge,ie]=(0,ae.useState)("python");function se(ke){ie(z[ke][1])}function le(ke){te(ke)}return ae.createElement(Ve.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(Ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(he.default,{getPopupContainer:ke=>ke.parentNode,onChange:se},Object.keys(z).map(ke=>ae.createElement(b,{key:ke,value:ke},z[ke][0])))),ae.createElement(Ve.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:ge})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ue.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:ie={}}){const se=(0,ae.useRef)(),[le,ke]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Ae=function(St){const Ot=St.getValue();oe&&oe(Ot)};return le.on("change",Ae),()=>{le.off("change",Ae)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",ge)},[le,ge]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(se.current&&!le){const Ae=Ze().fromTextArea(se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));ke(Ae)}},[se.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},35567:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return Zn}});var ae=re(67294),he=re(4631),Ve=re.n(he),Ue=re(91033),Se=re(71749),Ze=re(57341),me=re(82801),at=re(88386),Ne=re(49047),Te=re(80785),He=re(85725),Ge=({value:ce="",className:ve,showTextOnly:Pe,showLines:_e,style:pt={}})=>{const wt=(0,ae.useMemo)(()=>"",[ce]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:wt}}))},Oe=re(67294),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ce,ve,Pe)=>ve in ce?ne(ce,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[ve]=Pe,ee=(ce,ve)=>{for(var Pe in ve||(ve={}))b.call(ve,Pe)&&z(ce,Pe,ve[Pe]);if(E)for(var Pe of E(ve))x.call(ve,Pe)&&z(ce,Pe,ve[Pe]);return ce},te=(ce,ve)=>a(ce,y(ve));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:ce,title:ve,icon:Pe,actionName:_e,className:pt="",children:wt}){function Pn(){ce(_e)}return Oe.createElement("a",{title:ve,className:pt,onClick:Pn},Oe.createElement("i",{className:`${Pe}`}),wt)}var ie=({watch:ce,showNullButton:ve,showNullProgramButton:Pe,onActionCallback:_e,fullScreen:pt,insertTemp:wt,hidetoolBar:Pn,extraUse:Ut})=>{const rn=[...oe,{title:`${ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Oe.createElement("ul",{className:"markdown-toolbar-container"},!Pn&&rn.map((Cn,Un)=>Oe.createElement("li",{key:Un},Cn.actionName?Oe.createElement(ge,te(ee({},Cn),{onActionCallback:_e})):Oe.createElement("span",{className:"v-line"}))),ve?Oe.createElement("li",null,Oe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:_e},Oe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?Oe.createElement(Oe.Fragment,null,Oe.createElement("li",null,Oe.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:_e},Oe.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Oe.createElement("li",null,Oe.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:_e},Oe.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,wt&&Oe.createElement("li",null,Oe.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${wt}`,onActionCallback:_e},Oe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ut&&Oe.createElement("li",null,Ut),Oe.createElement("li",{className:"btn-full-screen"},Oe.createElement(ge,{icon:`${pt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:pt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:_e})))},se=re(76621),le=re(22150),ke=re(69677),Ae=re(71577),St=Object.defineProperty,Ot=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable,tt=(ce,ve,Pe)=>ve in ce?St(ce,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):ce[ve]=Pe,st=(ce,ve)=>{for(var Pe in ve||(ve={}))et.call(ve,Pe)&&tt(ce,Pe,ve[Pe]);if(Le)for(var Pe of Le(ve))it.call(ve,Pe)&&tt(ce,Pe,ve[Pe]);return ce},Rt=(ce,ve)=>Ot(ce,xt(ve));const Zt={labelCol:{span:4},wrapperCol:{span:20}};var ln=({callback:ce,onCancel:ve})=>{function Pe(_e){ce(_e)}return ae.createElement(le.default,Rt(st({},Zt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(ke.default,null)),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(ke.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ae.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},pn=re(57444),Fe=re(70859),Ie=re(14446),Je=re(71230),Gt=re(63205),rt=re(67294),Pt=({callback:ce,onCancel:ve})=>{const Pe=document.createElement("canvas"),_e=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,_e.fillStyle="#ffffff",_e.fillRect(0,0,Pe.width,Pe.height);const pt=Pe.toDataURL("image/png");return rt.createElement(Ie.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},rt.createElement(Je.Z,{style:{height:"100vh"}},rt.createElement(Gt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:pt,visible:!0,title:String(Date.now())},onOk:wt=>{ce({src:wt.url})},onClose:ve})))},de=re(23495);function dt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(dt,go.CommandHandler),dt.prototype.canAlignSelection=function(){var ce=this.diagram;return!(ce===null||ce.isReadOnly||ce.isModelReadOnly||ce.selection.count<2)},dt.prototype.alignLeft=function(){var ce=this.diagram;ce.startTransaction("aligning left");var ve=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.x,ve))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve,Pe.position.y))}),ce.commitTransaction("aligning left")},dt.prototype.alignRight=function(){var ce=this.diagram;ce.startTransaction("aligning right");var ve=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var _e=Pe.actualBounds.x+Pe.actualBounds.width;ve=Math.max(_e,ve)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve-Pe.actualBounds.width,Pe.position.y))}),ce.commitTransaction("aligning right")},dt.prototype.alignTop=function(){var ce=this.diagram;ce.startTransaction("alignTop");var ve=1/0;ce.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.y,ve))}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,ve))}),ce.commitTransaction("alignTop")},dt.prototype.alignBottom=function(){var ce=this.diagram;ce.startTransaction("aligning bottom");var ve=-1/0;ce.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var _e=Pe.actualBounds.y+Pe.actualBounds.height;ve=Math.max(_e,ve)}}),ce.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,ve-Pe.actualBounds.height))}),ce.commitTransaction("aligning bottom")},dt.prototype.alignCenterX=function(){var ce=this.diagram,ve=ce.selection.first();if(ve){ce.startTransaction("aligning Center X");var Pe=ve.actualBounds.x+ve.actualBounds.width/2;ce.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(Pe-_e.actualBounds.width/2,_e.actualBounds.y))}),ce.commitTransaction("aligning Center X")}},dt.prototype.alignCenterY=function(){var ce=this.diagram,ve=ce.selection.first();if(ve){ce.startTransaction("aligning Center Y");var Pe=ve.actualBounds.y+ve.actualBounds.height/2;ce.selection.each(function(_e){_e instanceof go.Link||_e.move(new go.Point(_e.actualBounds.x,Pe-_e.actualBounds.height/2))}),ce.commitTransaction("aligning Center Y")}},dt.prototype.alignColumn=function(ce){var ve=this.diagram;ve.startTransaction("align Column"),ce===void 0&&(ce=0),ce=parseFloat(ce);var Pe=new Array;ve.selection.each(function(Ut){Ut instanceof go.Link||Pe.push(Ut)});for(var _e=0;_e<Pe.length-1;_e++){var pt=Pe[_e],wt=pt.actualBounds.y+pt.actualBounds.height+ce,Pn=Pe[_e+1];Pn.move(new go.Point(pt.actualBounds.x,wt))}ve.commitTransaction("align Column")},dt.prototype.alignRow=function(ce){ce===void 0&&(ce=0),ce=parseFloat(ce);var ve=this.diagram;ve.startTransaction("align Row");var Pe=new Array;ve.selection.each(function(Ut){Ut instanceof go.Link||Pe.push(Ut)});for(var _e=0;_e<Pe.length-1;_e++){var pt=Pe[_e],wt=pt.actualBounds.x+pt.actualBounds.width+ce,Pn=Pe[_e+1];Pn.move(new go.Point(wt,pt.actualBounds.y))}ve.commitTransaction("align Row")},dt.prototype.canRotate=function(ce){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},dt.prototype.rotate=function(ce){ce===void 0&&(ce=90);var ve=this.diagram;ve.startTransaction("rotate "+ce.toString());var ve=this.diagram;ve.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=ce)}),ve.commitTransaction("rotate "+ce.toString())},dt.prototype.pullToFront=function(){var ce=this.diagram;ce.startTransaction("pullToFront");var ve=new go.Map;ce.selection.each(function(Pe){ve.set(Pe.layer,0)}),ve.iteratorKeys.each(function(Pe){var _e=0;Pe.parts.each(function(pt){if(!pt.isSelected){var wt=pt.zOrder;isNaN(wt)?pt.zOrder=0:_e=Math.max(_e,wt)}}),ve.set(Pe,_e)}),ce.selection.each(function(Pe){dt._assignZOrder(Pe,ve.get(Pe.layer)+1)}),ce.commitTransaction("pullToFront")},dt.prototype.pushToBack=function(){var ce=this.diagram;ce.startTransaction("pushToBack");var ve=new go.Map;ce.selection.each(function(Pe){ve.set(Pe.layer,0)}),ve.iteratorKeys.each(function(Pe){var _e=0;Pe.parts.each(function(pt){if(!pt.isSelected){var wt=pt.zOrder;isNaN(wt)?pt.zOrder=0:_e=Math.min(_e,wt)}}),ve.set(Pe,_e)}),ce.selection.each(function(Pe){dt._assignZOrder(Pe,ve.get(Pe.layer)-1-dt._findGroupDepth(Pe))}),ce.commitTransaction("pushToBack")},dt._assignZOrder=function(ce,ve,Pe){Pe===void 0&&(Pe=ce),ce.layer===Pe.layer&&(ce.zOrder=ve),ce instanceof go.Group&&ce.memberParts.each(function(_e){dt._assignZOrder(_e,ve+1,Pe)})},dt._findGroupDepth=function(ce){if(ce instanceof go.Group){var ve=0;return ce.memberParts.each(function(Pe){ve=Math.max(ve,dt._findGroupDepth(Pe))}),ve+1}else return 0},dt.prototype.doKeyDown=function(){var ce=this.diagram;if(ce!==null){var ve=ce.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},dt.prototype._getAllParts=function(){var ce=new Array;return this.diagram.nodes.each(function(ve){ce.push(ve)}),this.diagram.parts.each(function(ve){ce.push(ve)}),ce},dt.prototype._arrowKeyMove=function(){var ce=this.diagram,ve=ce.lastInput,Pe=0,_e=0;if(ve.control||ve.meta)Pe=1,_e=1;else if(ce.grid!==null){var pt=ce.grid.gridCellSize;_e=pt.width,Pe=pt.height}ce.startTransaction("arrowKeyMove"),ce.selection.each(function(wt){ve.key==="Up"?wt.move(new go.Point(wt.actualBounds.x,wt.actualBounds.y-Pe)):ve.key==="Down"?wt.move(new go.Point(wt.actualBounds.x,wt.actualBounds.y+Pe)):ve.key==="Left"?wt.move(new go.Point(wt.actualBounds.x-_e,wt.actualBounds.y)):ve.key==="Right"&&wt.move(new go.Point(wt.actualBounds.x+_e,wt.actualBounds.y))}),ce.commitTransaction("arrowKeyMove")},dt.prototype._arrowKeySelect=function(){var ce=this.diagram,ve=ce.lastInput,Pe=null;ve.key==="Up"?Pe=this._findNearestPartTowards(270):ve.key==="Down"?Pe=this._findNearestPartTowards(90):ve.key==="Left"?Pe=this._findNearestPartTowards(180):ve.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(ve.shift?Pe.isSelected=!0:ve.control||ve.meta?Pe.isSelected=!Pe.isSelected:ce.select(Pe))},dt.prototype._findNearestPartTowards=function(ce){var ve=this.diagram.selection.first();if(ve===null)return null;for(var Pe=ve.actualBounds.center,_e=this._getAllParts(),pt=1/0,wt=ve,Pn=0;Pn<_e.length;Pn++){var Ut=_e[Pn];if(Ut!==ve&&Ut.canSelect()){var rn=Ut.actualBounds.center,Cn=Pe.directionPoint(rn),Un=this._angleCloseness(Cn,ce);if(Un<=45){var Ye=Pe.distanceSquaredPoint(rn);Ye*=1+Math.sin(Un*Math.PI/180),Ye<pt&&(pt=Ye,wt=Ut)}}}return wt},dt.prototype._angleCloseness=function(ce,ve){return Math.min(Math.abs(ve-ce),Math.min(Math.abs(ve+360-ce),Math.abs(ve-360-ce)))},dt.prototype._arrowKeyTree=function(){var ce=this.diagram,ve=ce.selection.first();if(ve instanceof go.Node){var Pe=ce.lastInput;if(Pe.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)ce.commandHandler.canExpandTree(ve)&&ce.commandHandler.expandTree(ve);else{var _e=this._sortTreeChildrenByY(ve).first();_e!==null&&ce.select(_e)}}else if(Pe.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)ce.commandHandler.canCollapseTree(ve)&&ce.commandHandler.collapseTree(ve);else{var pt=ve.findTreeParentNode();pt!==null&&ce.select(pt)}else if(Pe.key==="Up"){var pt=ve.findTreeParentNode();if(pt!==null){var wt=this._sortTreeChildrenByY(pt),Pn=wt.indexOf(ve);if(Pn>0){for(var Ut=wt.elt(Pn-1);Ut!==null&&Ut.isTreeExpanded&&!Ut.isTreeLeaf;){var rn=this._sortTreeChildrenByY(Ut);Ut=rn.last()}Ut!==null&&ce.select(Ut)}else ce.select(pt)}}else if(Pe.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var _e=this._sortTreeChildrenByY(ve).first();_e!==null&&ce.select(_e)}else for(;ve!==null;){var pt=ve.findTreeParentNode();if(pt===null)break;var wt=this._sortTreeChildrenByY(pt),Pn=wt.indexOf(ve);if(Pn<wt.length-1){ce.select(wt.elt(Pn+1));break}else ve=pt}var Cn=ce.selection.first();Cn!==null&&ce.scrollToRect(Cn.actualBounds)}},dt.prototype._sortTreeChildrenByY=function(ce){var ve=new go.List().addAll(ce.findTreeChildrenNodes());return ve.sort(function(Pe,_e){var pt=Pe.location,wt=_e.location;return pt.y<wt.y?-1:pt.y>wt.y?1:pt.x<wt.x?-1:pt.x>wt.x?1:0}),ve},dt.prototype.copyToClipboard=function(ce){go.CommandHandler.prototype.copyToClipboard.call(this,ce),this._lastPasteOffset.set(this.pasteOffset)},dt.prototype.pasteFromClipboard=function(){var ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ce},Object.defineProperty(dt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ce){if(ce!=="move"&&ce!=="select"&&ce!=="scroll"&&ce!=="tree"&&ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ce);this._arrowKeyBehavior=ce}}),Object.defineProperty(dt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ce){if(!(ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ce);this._pasteOffset.set(ce)}});var Tt=dt,on=re(18023),ft=re(15746),je=re(33170),Be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ye=re(67294),pe=(ce,ve,Pe)=>new Promise((_e,pt)=>{var wt=rn=>{try{Ut(Pe.next(rn))}catch(Cn){pt(Cn)}},Pn=rn=>{try{Ut(Pe.throw(rn))}catch(Cn){pt(Cn)}},Ut=rn=>rn.done?_e(rn.value):Promise.resolve(rn.value).then(wt,Pn);Ut((Pe=Pe.apply(ce,ve)).next())});function be({onCancel:ce,callback:ve}){let Pe=(0,ae.useRef)(),_e=(0,ae.useRef)(),pt=(0,ae.useRef)(),wt=(0,ae.useRef)(!1);const Pn=(0,ae.useRef)(!1),[Ut,rn]=(0,ae.useState)(0);function Cn(){const Ye=de.bx.make,tn={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"};Pe.current=new de.S0(_e.current,{padding:20,grid:Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ke=>{var ct=Ke.diagram.commandHandler.addTopLevelParts(Ke.diagram.selection,!0);ct||Ke.diagram.currentTool.doCancel()},commandHandler:Ye(Tt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ke=>{var ct=Ke.subject;ct.location=ct.location.copy().snapToGridPoint(Ke.diagram.grid.gridOrigin,Ke.diagram.grid.gridCellSize),setTimeout(()=>{Ke.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ke=>{var ct=Ke.subject;setTimeout(()=>{Ke.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ke=>{var ct=Ke.parameter.part;ct.invalidateConnectedLinks();var Nt=Ke.subject;Ke.diagram.toolManager.linkingTool.isForwards?Nt.toNode.invalidateConnectedLinks():Nt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=Ye(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),Ye(de.bn,{name:"SHAPE",fill:tn.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")),Ye(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ye(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=Ye("ToolTip",Ye(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Ye(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Ye(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function ue(Ke,ct){var Nt=(qe,_t)=>{qe.handled=!0,qe.diagram.model.commit(Yt=>{var Bn=_t.part.adornedPart,En=new de.E9().setRectSpot(Bn.actualBounds,Ke);En.subtract(Bn.location),En.scale(2,2),En.x+=Math.sign(En.x)*130,En.y+=Math.sign(En.y)*130,En.add(Bn.location),En.snapToGridPoint(qe.diagram.grid.gridOrigin,qe.diagram.grid.gridCellSize);var xn=Yt.copyNodeData(Bn.data);Yt.setGroupKeyForNodeData(xn,Yt.getGroupKeyForNodeData(Bn.data)),Yt.addNodeData(xn);var ia={from:Bn.key,to:Yt.getKeyForNodeData(xn)};Yt.addLinkData(ia);var ta=qe.diagram.findNodeForData(xn);ta.location=En,qe.diagram.select(ta),setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()},20)})};return Ye(de.bn,{figure:ct,alignment:Ke,alignmentFocus:Ke.opposite(),width:Ke.equals(de.z6.Top)||Ke.equals(de.z6.Bottom)?25:18,height:Ke.equals(de.z6.Top)||Ke.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:tn.white,strokeWidth:4,mouseEnter:(qe,_t)=>_t.fill="dodgerblue",mouseLeave:(qe,_t)=>_t.fill="orange",isActionable:!0,click:Nt,contextClick:Nt})}function Ee(Ke){return Ye(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:(ct,Nt)=>Nt.fill="dodgerblue",mouseLeave:(ct,Nt)=>Nt.fill="orange",click:(ct,Nt)=>{ct.diagram.commandHandler.showContextMenu(Nt.part.adornedPart)}},Ke||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.Vm,{padding:10}),ue(de.z6.Top,"TriangleUp"),ue(de.z6.Left,"TriangleLeft"),ue(de.z6.Right,"TriangleRight"),ue(de.z6.Bottom,"TriangleDown"),Ee({alignment:new de.z6(.75,0)}));function we(Ke,ct){return(Nt,qe)=>{Nt.handled=!0,Nt.diagram.model.commit(_t=>{_t.set(qe.part.adornedPart.data,Ke,ct)})}}function xe(Ke,ct){return ct||(ct="color"),Ye(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ke,margin:1,background:"transparent",mouseEnter:(Nt,qe)=>qe.stroke="dodgerblue",mouseLeave:(Nt,qe)=>qe.stroke="lightgray",click:we(ct,Ke),contextClick:we(ct,Ke)})}function Qe(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",xe(tn.white,"fill"),xe(tn.beige,"fill"),xe(tn.extralightblue,"fill"),xe(tn.extralightred,"fill"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",xe(tn.lightgray,"fill"),xe(tn.lightgreen,"fill"),xe(tn.lightblue,"fill"),xe(tn.lightred,"fill")))]}function Re(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",xe(tn.black),xe(tn.green),xe(tn.blue),xe(tn.red))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",xe(tn.white),xe(tn.magenta),xe(tn.purple),xe(tn.orange)))]}function Xe(Ke,ct){return ct||(ct="thickness"),Ye(de.bn,"LineH",{width:16,height:16,strokeWidth:Ke,margin:1,background:"transparent",mouseEnter:(Nt,qe)=>qe.background="dodgerblue",mouseLeave:(Nt,qe)=>qe.background="transparent",click:we(ct,Ke),contextClick:we(ct,Ke)})}function Me(Ke,ct){return ct||(ct="dash"),Ye(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ke,margin:1,background:"transparent",mouseEnter:(Nt,qe)=>qe.background="dodgerblue",mouseLeave:(Nt,qe)=>qe.background="transparent",click:we(ct,Ke),contextClick:we(ct,Ke)})}function zt(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Xe(1),Xe(2),Xe(3),Xe(4))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Me(null),Me([2,4]),Me([4,4])))]}function Lt(Ke,ct){return ct||(ct="figure"),Ye(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ke,margin:1,background:"transparent",mouseEnter:(Nt,qe)=>qe.fill="dodgerblue",mouseLeave:(Nt,qe)=>qe.fill="lightgray",click:we(ct,Ke),contextClick:we(ct,Ke)})}Pe.current.nodeTemplate.contextMenu=Ye("ContextMenu",Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Lt("Rectangle"),Lt("RoundedRectangle"),Lt("Ellipse"),Lt("Diamond"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Lt("Parallelogram2"),Lt("ManualOperation"),Lt("Procedure"),Lt("Cylinder1"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Lt("Terminator"),Lt("CreateRequest"),Lt("Document"),Lt("TriangleDown"))),Qe(),Re(),zt()),Pe.current.groupTemplate=Ye(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ke,ct)=>{var Nt=ct.addMembers(ct.diagram.selection,!0);Nt||ct.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(de.s_,"Auto",{name:"BODY"},Ye(de.bn,{parameter1:10,fill:tn.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")),Ye(de.Vm,{background:"transparent",margin:20})),Ye(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"))),Pe.current.groupTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.s_,"Auto",Ye(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ye(de.Vm,{margin:1.5})),Ee({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=Ye("ContextMenu",Qe(),Re(),zt()),Pe.current.linkTemplate=Ye(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",Ke=>Ke>=1?10:0),new de.KX("toShortLength","dir",Ke=>Ke>=1?10:0),new de.KX("points").makeTwoWay(),Ye(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(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",Ke=>Ke===1)),Ye(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",Ke=>Ke>=1),new de.KX("width","thickness",Ke=>7+3*Ke),new de.KX("height","thickness",Ke=>7+3*Ke),new de.KX("segmentOffset","thickness",Ke=>new de.E9(-15,4+1.5*Ke))),Ye(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",Ke=>Ke===2),new de.KX("width","thickness",Ke=>7+3*Ke),new de.KX("height","thickness",Ke=>7+3*Ke),new de.KX("segmentOffset","thickness",Ke=>new de.E9(-15,4+1.5*Ke))),Ye(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=Ye(de.uz,Ye(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Dt(2)},new de.KX("pathPattern","thickness",Dt)),Ee({alignmentFocus:new de.z6(0,0,-6,-4)}));function Dt(Ke){return Ye(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ke+4).toString()+" H3"})}function Vt(Ke){var ct="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ke===0?ct="M0 0 M16 16 M0 8 L16 8":Ke===2&&(ct="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ye(de.bn,{geometryString:ct,margin:2,background:"transparent",mouseEnter:(Nt,qe)=>qe.background="dodgerblue",mouseLeave:(Nt,qe)=>qe.background="transparent",click:we("dir",Ke),contextClick:we("dir",Ke)})}function gn(Ke){var ct=(Nt,qe)=>{Nt.handled=!0,Nt.diagram.model.commit(_t=>{var Yt=qe.part.adornedPart;_t.set(Yt.data,Ke?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ke?Yt.toNode:Yt.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Nt,qe)=>qe.background="dodgerblue",mouseLeave:(Nt,qe)=>qe.background="transparent",click:ct,contextClick:ct})}function ze(Ke,ct){var Nt=0,qe=de.z6.RightSide;Ke.equals(de.z6.Top)?(Nt=270,qe=de.z6.TopSide):Ke.equals(de.z6.Left)?(Nt=180,qe=de.z6.LeftSide):Ke.equals(de.z6.Bottom)&&(Nt=90,qe=de.z6.BottomSide),ct||(Nt-=180);var _t=(Yt,Bn)=>{Yt.handled=!0,Yt.diagram.model.commit(En=>{var xn=Bn.part.adornedPart;En.set(xn.data,ct?"toSpot":"fromSpot",de.z6.stringify(qe)),(ct?xn.toNode:xn.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{alignment:Ke,alignmentFocus:Ke.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Nt,background:"transparent",mouseEnter:(Yt,Bn)=>Bn.background="dodgerblue",mouseLeave:(Yt,Bn)=>Bn.background="transparent",click:_t,contextClick:_t})}Pe.current.linkTemplate.contextMenu=Ye("ContextMenu",Re(),zt(),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Vt(0),Vt(1),Vt(2))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ye(de.s_,"Spot",gn(!1),ze(de.z6.Top,!1),ze(de.z6.Left,!1),ze(de.z6.Right,!1),ze(de.z6.Bottom,!1)),Ye(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},gn(!0),ze(de.z6.Top,!0),ze(de.z6.Left,!0),ze(de.z6.Right,!0),ze(de.z6.Bottom,!0)))));const Hn=`{ "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 Tn=["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 Wn(Ke){return console.log("shapeName:",Ke),Tn.indexOf(Ke)>=0}var wn=new de.YI(pt.current,{maxSelectionCount:1,linkTemplate:Ye(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Ye(de.uz,"Link",{locationSpot:de.z6.Center},Ye(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ye(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Ye(de.bn,{isPanelMain:!0,strokeWidth:2}),Ye(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(Ke=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ke.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Ke){var ct;const Nt=Ke.subject.part;var qe=(ct=document.activeElement)==null?void 0:ct.value;typeof qe=="string"&&qe.trim()===""&&Pe.current.model.commit(function(_t){_t.set(Nt.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),wn.nodeTemplate=Ye(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(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")),Ye(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(()=>{Pe.current.grid=Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const Un=()=>pe(this,null,function*(){var Ye=Pe.current.makeImage();const tn=yield(0,je.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ye.src}});ve({src:tn.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{Cn()},500),rn(Ut+1),()=>{Pe.current=null}),[]),ye.createElement("div",{ref:Pn,className:wt.current?`${Be.maxH60} body-overflow-initial`:"body-overflow-initial"},ye.createElement(Ie.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ut,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ye.createElement(Je.Z,null,ye.createElement(ft.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ye.createElement(ft.Z,{onClick:()=>{var Ye,tn,ue=Pe.current.selection.first();if(wt.current=!wt.current,document.activeElement&&ue){let Ee=(tn=(Ye=document.activeElement)==null?void 0:Ye.value)==null?void 0:tn.trim();typeof Ee=="string"&&Pe.current.model.commit(function(we){we.set(ue.data,"text",Ee||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}rn(Ut+1)}},ye.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ce},ye.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Be.flowChartWrp},ye.createElement("div",{style:{display:"flex",height:"100%"}},ye.createElement("div",{style:{width:"300px",height:"100%"}},ye.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ye.createElement("div",{style:{height:"calc(100% - 50px)"},className:Be.myPaletteDiv,ref:pt})),ye.createElement("div",{style:{flex:1,position:"relative"}},ye.createElement("div",{ref:_e,style:{height:"80vh"}}))),ye.createElement("div",{className:"tr"},ye.createElement(Ae.ZP,{size:"large",onClick:Un,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var We=be,nt=re(78045),ut=re(31795);const yt=nt.ZP.Group,Bt={margin:"0 8px"};var It=({callback:ce,onCancel:ve})=>{function Pe(_e){ce(_e)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Bt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Bt},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(ut.Z,null)),ae.createElement("span",{style:Bt},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(ut.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Bt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(yt,null,ae.createElement(nt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(nt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(nt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(nt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ae.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ae.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},At=re(47897),mn=re(61016),Qt=re.n(mn),Ht=(0,ae.forwardRef)(({use3d:ce,width:ve,height:Pe,callback:_e,showSaveButton:pt},wt)=>{const Pn=(0,ae.useRef)(),Ut=(0,ae.useRef)(),[rn,Cn]=(0,ae.useState)(!1),Un=(0,ae.useRef)({id:Pn,appName:"graphing",width:ve||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Ut.current=new(Qt())(Un.current,!0),window.onload=function(){Ut.current.inject("applet_container")}},[]);const Ye=()=>{var tn=window.ggbApplet.getPNGBase64(1,!0,72);return _e&&_e(tn),tn};return(0,ae.useEffect)(()=>{Un.current.appName=rn?"3D":"graphing",Ut.current.inject("applet_container")},[rn]),(0,ae.useEffect)(()=>{Cn(ce)},[ce]),(0,ae.useImperativeHandle)(wt,()=>({getImgData:Ye})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Pn}),ae.createElement(Je.Z,{align:"middle"},ae.createElement(ft.Z,{flex:1},ae.createElement(At.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:rn,onChange:tn=>Cn(tn)})),ae.createElement(ft.Z,null,ae.createElement(Ae.ZP,{size:"large",onClick:Ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Sn=re(36527),fe=re(25934),Ce=re(2453);const De="link",ot="upload-image",gt="add-flowchart",Et="draw-image",$t="add-flowchart",vt="code-block",Ft="add-table",jt="------------",kt={default:jt,left:`:${jt}`,center:`:${jt}:`,right:`${jt}:`};var en=re(99914),qt=(ce,ve,Pe)=>new Promise((_e,pt)=>{var wt=rn=>{try{Ut(Pe.next(rn))}catch(Cn){pt(Cn)}},Pn=rn=>{try{Ut(Pe.throw(rn))}catch(Cn){pt(Cn)}},Ut=rn=>rn.done?_e(rn.value):Promise.resolve(rn.value).then(wt,Pn);Ut((Pe=Pe.apply(ce,ve)).next())});function fn(){}let vn=0;const Jt=1e4,Kt="\u2581",un="@\u2581\u2581@",hn="@\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`,sn=["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 Fn(ce){return/^\d+$/.test(ce)?`${ce}px`:ce}const bn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Mn={[bn+"-B"]:"bold",[bn+"-I"]:"italic"},_n={[De]:"\u6DFB\u52A0\u94FE\u63A5",[vt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ot]:"\u6DFB\u52A0\u56FE\u7247",[Et]:"\u6DFB\u52A0\u753B\u56FE",[gt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ft]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Zn=({defaultValue:ce="",onChange:ve,width:Pe="100%",height:_e=400,miniToolbar:pt=!1,isFocus:wt=!1,watch:Pn,insertTemp:Ut,mode:rn="markdown",id:Cn="markdown-editor-id",showResizeBar:Un=!1,noStorage:Ye=!1,showNullButton:tn=!1,showNullProgramButton:ue=!1,hidetoolBar:Ee=!1,fullScreen:we=!1,onBlur:xe,onCMBeforeChange:Qe,onFullScreen:Re,className:Xe="",disablePaste:Me=!1,disabled:zt=!1,disabledFill:Lt=!1,placeholder:Dt="",values:Vt="",extraUse:gn})=>{const[ze,Hn]=(0,ae.useState)(null),[Tn,Wn]=(0,ae.useState)(ce),[wn,Ke]=(0,ae.useState)(Pn),[ct,Nt]=(0,ae.useState)(we),[qe,_t]=(0,ae.useState)(""),[Yt,Bn]=(0,ae.useState)(0),[En,xn]=(0,ae.useState)(_e),[ia,ta]=(0,ae.useState)(!1),ca=(0,ae.useRef)((0,fe.Z)()),da=(0,ae.useRef)(!1),Yn=(0,ae.useRef)(),[$n,la]=(0,ae.useState)(0),[sa,ma]=(0,ae.useState)(0),Qn=(0,ae.useRef)(),Xn=(0,ae.useRef)(),oa=(0,ae.useRef)(),Wt=(0,ae.useRef)(),zn=()=>qt(void 0,null,function*(){var Ct;const mt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ca.current}});(Ct=mt==null?void 0:mt.attachments)!=null&&Ct.length&&(console.log("cm:",ze,Qn),mt.attachments.map(ht=>{ht.content_type.indexOf("image")>-1?ze.replaceSelection(``):ht.content_type.indexOf("video")>-1?ze.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ht.content_type.indexOf("pdf")>-1?ze.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ht.id}?type=${ht.content_type}&disposition=inline" target="_blank">${ht.name}</a>`):ze.replaceSelection(`[${ht.name}](${ENV.API_SERVER}/api/attachments/${ht.id}?type=${ht.content_type})`)}))});(0,ae.useEffect)(()=>{const Ct=window.scrollY||window.pageYOffset;Wn(Vt),ze==null||ze.setValue(Vt),window.scrollTo(0,Ct)},[Vt]),(0,ae.useEffect)(()=>{Re==null||Re(ct)},[ct]),(0,ae.useEffect)(()=>{if(Qn.current){let Ct=function(ht,bt){var cn;if(Me){bt.preventDefault();return}const Gn=bt.clipboardData;if(Gn){const Kn=Gn.types.toString(),An=Gn.items;if(Kn==="Files"||Gn.types.indexOf("Files")>-1){if(bt.preventDefault(),rn=="stex")return;try{let Dn=An[1];((cn=An[0])==null?void 0:cn.kind)==="file"&&(Dn=An[0]);const Mt=Dn.getAsFile(),nn=Mt.name.split(".").pop();(0,Fe.I)(Mt,dn=>{var an,Ln,Rn;dn.id?((an=Mt==null?void 0:Mt.type)==null?void 0:an.indexOf("image"))>-1?mt.replaceSelection(`<img width="100%" src="/api/attachments/${dn.id}?type=${dn.content_type})" alt="" />`):((Ln=Mt==null?void 0:Mt.type)==null?void 0:Ln.indexOf("video"))>-1?mt.replaceSelection(`<video width="100%" controls src="/api/attachments/${dn.id}"></video>`):((Rn=Mt==null?void 0:Mt.type)==null?void 0:Rn.indexOf("pdf"))>-1?mt.replaceSelection(`<a href="/api/attachments/${dn.id}?type=${Mt.type}&disposition=inline" target="_blank">${Mt.name}</a>`):sn.includes(nn)?mt.replaceSelection(`<a href="/api/attachments/${dn.id}?type=office&disposition=inline" target="_blank">${Mt.name}</a>`):mt.replaceSelection(`[${Mt.name}](/api/attachments/${dn.id}?type=${dn.content_type})`):(dn==null?void 0:dn.status)===401&&(Ce.ZP.warning((dn==null?void 0:dn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Dn){Ce.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const mt=Ve().fromTextArea(Qn.current,{mode:rn,lineNumbers:!pt,lineWrapping:!0,value:ce,autoCloseTags:!ue,autoCloseBrackets:!0});return mt.on("keyup",function(ht,bt){bt.keyCode===8&&(ht.getValue()==""?mt.setOption("placeholder",Dt):mt.setOption("placeholder",null))}),mt.on("keydown",function(ht,bt){if(bt.keyCode===8){var cn=Vn(ht);cn&&bt.preventDefault()}}),wt&&mt.focus(),mt.on("paste",Ct),mt.on("dragleave",function(ht,bt){Xn.current.classList.remove("mouse-hover-md")}),zt&&mt.on("beforeChange",function(ht,bt){(bt.origin==="paste"||bt.origin==="+input")&&bt.cancel()}),Hn(mt),()=>{mt.off("paste",Ct)}}},[]);const Jn=(0,ae.useCallback)(()=>{if(Xn.current)try{}catch(Ct){console.log(Ct,"---- to set md editor body height")}},[En,Xn,ct]);(0,ae.useEffect)(()=>{function Ct(){let mt=new Ue.Z(ht=>{for(let bt of ht)(bt.target.offsetHeight>0||bt.target.offsetWidth>0)&&(Jn(),ze.setSize("100%","100%"),ze.refresh())});return mt.observe(Qn.current.parentElement),mt}if(ze){const mt=Ct();return()=>{var ht,bt;(ht=Qn.current)!=null&&ht.parentElement&&mt.unobserve((bt=Qn.current)==null?void 0:bt.parentElement)}}},[ze,Jn]),(0,ae.useEffect)(()=>{if(ze){let Ct=[];for(const[mt,ht]of Object.entries(Mn)){let bt={[mt]:()=>{na(ht)}};Ct.push(bt),ze.addKeyMap(bt)}return Yn.current=setInterval(()=>{da.current&&zn()},4e3),()=>{clearInterval(Yn.current);for(let mt of Ct)ze.removeKeyMap(mt)}}},[ze]),(0,ae.useEffect)(()=>{we!==ct&&Nt(we)},[we]),(0,en.Z)(()=>{if(!Ye&&Yt>0){let Ct=new Date().getTime(),mt=window.sessionStorage.getItem(Cn);Ct>=Yt+Jt&&(!mt||mt!==Tn)&&(window.sessionStorage.setItem(Cn,Tn),ta(!0))}},Jt),(0,ae.useEffect)(()=>{Ke(Pn)},[ze,Pn]),(0,ae.useEffect)(()=>{ze&&wt&&ze.focus()},[ze,wt]),(0,ae.useEffect)(()=>{if(wn&&ze){let Ct=function(ht){let bt=ht.target;if(Wt.current){let cn=bt.scrollTop/bt.scrollHeight;Wt.current.scrollTop=Wt.current.scrollHeight*cn}};const mt=ze.getScrollerElement();return mt.addEventListener("scroll",Ct),()=>{mt.removeEventListener("scroll",Ct)}}},[ze,wn]),(0,ae.useEffect)(()=>{if(ze&&Qe){let Ct=function(mt,ht){Qe(mt,ht)};return ze.on("beforeChange",Ct),()=>{ze.off("beforeChange",Ct)}}},[ze,Qe]),(0,ae.useEffect)(()=>{if(ze&&xe){let Ct=function(){xe(ze.getValue())};return ze.on("blur",Ct),()=>{ze.off("blur",Ct)}}},[ze,xe]);function Vn(Ct,mt){var ht=Ct.getDoc(),bt=ht.getCursor(),cn=ht.getLine(bt.line),Gn=cn.charAt(bt.ch-1),Kn=cn.lastIndexOf("@\u2581@",bt.ch),An=cn.lastIndexOf("@\u2581\u2581@",bt.ch),Dn=Kn>An?Kn:An,Mt=Kn>An?3:4;if(un.indexOf(Gn)===-1)return null;if(console.log("change1:",mt,Ct,cn,bt,Dn,Kn,An,Gn),Dn>=0&&bt.ch-Dn<5){var nn=Dn+Mt;return ht.replaceRange("",{line:bt.line,ch:Dn},{line:bt.line,ch:nn}),{line:bt.line,ch:nn}}return null}(0,ae.useEffect)(()=>{if(ze){let Ct=function(mt,ht){const bt=mt.getValue();Wn(bt),Bn(new Date().getTime()),mt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(ue?ve(bt,fa(bt)):ve(bt))};return ze.on("change",Ct),()=>{ze.off("change",Ct)}}},[ze,ve]),(0,ae.useEffect)(()=>{if(ze)if(ce==null)ze.setValue(""),Wn("");else{const Ct=window.scrollY||window.pageYOffset;ce!==ze.getValue()&&(ze.setValue(ce),Wn(ce),ze.setCursor(zt?1:ze.lineCount(),0),window.scrollTo(0,Ct))}},[ze,ce]);const na=(0,ae.useCallback)(Ct=>{const mt=ze.getCursor(),ht=ze.getSelection();let bt=ht.split(`
|
|
`);switch(Ct){case"bold":return ze.replaceSelection("**"+ht+"**"),ht===""&&ze.setCursor(mt.line,mt.ch+2),ze.focus();case"italic":return ze.replaceSelection("*"+ht+"*"),ht===""&&ze.setCursor(mt.line,mt.ch+1),ze.focus();case"code":return ze.replaceSelection("`"+ht+"`"),ht===""&&ze.setCursor(mt.line,mt.ch+1),ze.focus();case"inline-latex":return _t("inline-latex"),ze.focus();case"latex":return ze.replaceSelection("```latex\n"+ht+"\n```"),ze.setCursor(mt.line+1,ht.length+1),ze.focus();case"line-break":return ze.replaceSelection(`<br/>
|
|
`),ze.focus();case"list-ul":return ht===""?ze.replaceSelection("- "+ht):ze.replaceSelection(bt.map(cn=>cn===""?"":`- ${cn}`).join(`
|
|
`)),ze.focus();case"list-ol":return ht===""?ze.replaceSelection("1. "+ht):ze.replaceSelection(bt.map((cn,Gn)=>cn===""?"":`${Gn+1}. ${cn}`).join(`
|
|
`)),ze.focus();case"add-null-ch":return ht===""&&ze.setCursor(mt.line,mt.ch),ze.replaceSelection(Kt),ze.focus();case"add-signal":return ht===""&&ze.setCursor(mt.line,mt.ch),ze.replaceSelection(hn),ze.focus();case"add-multiple":return ht===""&&ze.setCursor(mt.line,mt.ch),ze.replaceSelection(un),ze.focus();case"inster-template-1":return ht===""&&ze.setCursor(mt.line,mt.ch),ze.replaceSelection(yn),ze.focus();case"eraser":return ze.setValue(""),ze.focus();case"trigger-watch":return Ke(!wn),ze.focus();case"trigger-full-screen":return Nt(!ct),ze.focus();case De:_t(De);return;case vt:_t(vt);return;case ot:_t(ot);return;case Et:_t(Et);return;case"maths-latex":_t("maths-latex");return;case gt:_t(gt);return;case Ft:_t(Ft);return;default:throw new Error}},[ze,wn,ct]),In=(0,ae.useCallback)((Ct,mt)=>{var ht,bt,cn,Gn,Kn,An;switch(_t(""),qe){case De:const{title:an,link:Ln}=Ct;return ze.replaceSelection(`[${an}](${Ln})`),ze.focus();case vt:const{language:Rn,content:ua}=Ct;return ze.replaceSelection(["```"+Rn,ua,"```"].join(`
|
|
`)),ze.focus();case"maths-latex":for(var Dn=atob(Ct),Mt=new Uint8Array(Dn.length),nn=0;nn<Dn.length;nn++)Mt[nn]=Dn.charCodeAt(nn);var dn=new Blob([Mt],{type:"image/png"});(0,Fe.I)(dn,ga=>{ga.id?ze.replaceSelection(``):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ze.replaceSelection("`$$"+Ct+"$$`");break;case ot:case Et:case $t:const{src:ea,alt:ra}=Ct,kn=mt,Ba=(cn=(bt=(ht=kn==null?void 0:kn.name)==null?void 0:ht.split("."))==null?void 0:bt.pop)==null?void 0:cn.call(bt);return((Gn=kn==null?void 0:kn.type)==null?void 0:Gn.indexOf("image"))>-1||!(kn!=null&&kn.type)?kn.align||kn.width?ze.replaceSelection(`<p style="text-align:${kn.align||"initial"}"><img width="${kn.width?kn.width+"%":"initial"}" src="${ea}" alt="${ra||""}" /></p>`):ze.replaceSelection(`<img width="100%" src="${ea}" alt="${ra||""}" />`):((Kn=kn==null?void 0:kn.type)==null?void 0:Kn.indexOf("video"))>-1?ze.replaceSelection(`<video width="100%" controls src="${ea}"></video>`):((An=kn==null?void 0:kn.type)==null?void 0:An.indexOf("pdf"))>-1?ze.replaceSelection(`<a href="${ea}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):sn.includes(Ba)?ze.replaceSelection(`<a href="${ea}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):ze.replaceSelection(`[${kn.name}](${ea})`),ze.focus();case Ft:const{row:Ea,col:ba,align:xa}=Ct;let va=`
|
|
`;for(let ga=0;ga<Ea;ga++){let wa=[],Fa=[];for(let Ca=0;Ca<ba;Ca++)ga===1&&Fa.push(kt[xa]),wa.push(" ");ga===1&&(va+=`| ${Fa.join(" | ")} |
|
|
`),va+=`| ${wa.join(ba===1?"":" | ")} |
|
|
`}return ze.replaceSelection(va+`
|
|
`),ze.focus();default:throw new Error}},[ze,qe]),Sa=(0,ae.useMemo)(()=>{switch(qe){case De:return ae.createElement(ln,{callback:In,onCancel:qn});case vt:return ae.createElement(pn.Z,{callback:In,onCancel:qn});case ot:return ae.createElement(Fe.Z,{callback:In,onCancel:qn});case gt:return ae.createElement(We,{callback:In,onCancel:qn});case Ft:return ae.createElement(It,{callback:In,onCancel:qn});case"maths-latex":return ae.createElement(Ht,{showSaveButton:!0,callback:In});case"inline-latex":return ae.createElement(Sn.Z,{showSaveButton:!0,callback:In});default:return null}},[qe]);function qn(){_t("")}(0,ae.useEffect)(()=>{if(oa.current){let Ct=function(Kn){cn=!0,Gn=Kn.pageY},mt=function(){cn=!1},ht=function(Kn){if(cn){let An=Kn.pageY-Gn;An<0&&(An=0),An>300&&(An=300);let Dn=_e+An+"px";xn(Dn)}},bt=oa.current,cn=!1,Gn=0;return bt.addEventListener("mousedown",Ct),document.addEventListener("mousemove",ht),document.addEventListener("mouseup",mt),()=>{bt.removeEventListener("mousedown",Ct),document.removeEventListener("mousemove",ht),document.removeEventListener("mouseup",mt)}}},[ze,oa]),(0,ae.useEffect)(()=>{xn(_e)},[_e]);const Nn=Fn(Pe),On=Fn(En),aa={width:Nn,height:On},Pa=(0,ae.useMemo)(()=>{if(Yt){let Ct=new Date(Yt),mt=Ct.getHours(),ht=Ct.getMinutes(),bt=Ct.getSeconds();return mt=mt<10?"0"+mt:mt,ht=ht<10?"0"+ht:ht,bt=bt<10?"0"+bt:bt,`${mt}:${ht}:${bt}`}return 0},[Yt]),fa=Ct=>{const mt=[];if(ue){let ht=-1;Ct=Ct.replace(/(@▁▁@|@▁@)/g,function(bt,cn,Gn){mt.push({multiLine:bt!==hn})})}return mt};function ya(){window.sessionStorage.removeItem(Cn),ta(!1),Bn(0)}function La(){ta(!1),Bn(0),ze.setValue(window.sessionStorage.getItem(Cn))}(0,ae.useEffect)(()=>{_n[qe]&&qe!==Et&&qe!==gt&&setTimeout(()=>{const Ct=document.getElementsByClassName("markdown-popup-form")[0],mt=window.innerWidth/2-Ct.offsetWidth/2,ht=window.innerHeight/2-Ct.offsetHeight/2;la(mt),ma(ht)},0)},[qe]);const ha=Ct=>{Ct.preventDefault();const mt=Ct.clientX-$n,ht=Ct.clientY-sa;document.body.onmousemove=bt=>{let cn=bt.clientX-mt,Gn=bt.clientY-ht;const Kn=document.getElementsByClassName("markdown-popup-form")[0],An=window.innerWidth-Kn.offsetWidth,Dn=window.innerHeight-Kn.offsetHeight;cn=Math.max(0,Math.min(cn,An)),Gn=Math.max(0,Math.min(Gn,Dn)),pa(bt.clientX,bt.clientY,mt,ht)&&(la(cn),ma(Gn))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(Ct,mt,ht,bt)=>{const cn=document.body.clientHeight,Gn=document.body.clientWidth;return Ct<20&&ht>Ct||Ct>Gn-20&&ht<Ct||mt<20&&bt>mt||mt>cn-20&&bt<mt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:Xn},ae.createElement("div",{className:`markdown-editor-container ${Xe} ${wn?"on-preview":""} ${pt?"mini":""} ${ct?"full-screen":""}`,style:aa},ae.createElement(ie,{insertTemp:Ut,watch:wn,fullScreen:ct,showNullButton:tn,showNullProgramButton:ue,onActionCallback:na,hidetoolBar:Ee,extraUse:gn}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:Qn,placeholder:Dt})),wn?ae.createElement("div",{ref:Wt,className:"preview-container"},rn==="stex"&&ae.createElement(Ge,{value:Tn}),rn!=="stex"&&ae.createElement(He.Z,{disabledFill:Lt,showProgramFill:ue,value:Tn})):null))),Un?ae.createElement("a",{ref:oa,className:"editor-resize"}):null,qe===Et&&ae.createElement(Pt,{callback:In,onCancel:qn}),qe===gt&&ae.createElement(We,{callback:In,onCancel:qn}),ae.createElement(se.Z,null,_n[qe]&&qe!==Et&&qe!==gt?ae.createElement(Ie.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:$n,top:sa},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ha},_n[qe]),open:!0,onCancel:qn,footer:null,destroyOnClose:!0,width:qe===gt?"1200px":null,height:qe===gt?"80vh":null,className:"markdown-popup-form"},Sa):null))}},70859:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return ge},I:function(){return se}});var ae=re(22150),he=re(2453),Ve=re(69677),Ue=re(93421),Se=re(31795),Ze=re(78045),me=re(71577),at=re(15476),Ne=re(67294),Te=re(52262),He=re(67294),Ge=Object.defineProperty,Oe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(le,ke,Ae)=>ke in le?Ge(le,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):le[ke]=Ae,x=(le,ke)=>{for(var Ae in ke||(ke={}))y.call(ke,Ae)&&b(le,Ae,ke[Ae]);if(a)for(var Ae of a(ke))E.call(ke,Ae)&&b(le,Ae,ke[Ae]);return le},z=(le,ke)=>Oe(le,ne(ke));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:ke})=>{const[Ae]=ee();let St=(0,Ne.useRef)();function Ot(et){St.current.width=Ae.getFieldValue("width"),St.current.align=Ae.getFieldValue("align"),le(et,St.current)}function xt(et,it){if(et.status===-1){he.ZP.error(et.message);return}Ae.setFieldsValue({src:`/api/attachments/${et.id}`,type:it.type})}function Le(et){let it=et.target.files[0];St.current=it,se(it,xt)}return He.createElement(ae.default,z(x({form:Ae},oe),{className:"upload-image-panel",onFinish:Ot,style:{width:470,overflow:"hidden"}}),He.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},He.createElement("div",{className:"flex-container"},He.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},He.createElement(Ve.default,{style:te})),He.createElement(ie,{onFileChange:Le}))),He.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},He.createElement(Ve.default,{style:{width:264}})),He.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},He.createElement(Ue.Z,null,He.createElement(ae.default.Item,{name:"width",style:{margin:0}},He.createElement(Se.Z,{style:{width:264}})),He.createElement("span",{className:"ml8"},"%"))),He.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},He.createElement(Ze.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),He.createElement("aside",null,He.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},He.createElement(me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),He.createElement(me.ZP,{type:"default",onClick:ke},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return He.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",He.createElement("input",{type:"file",onChange:le}))}function se(le,ke){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Te.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ae=new FormData;Ae.append("editormd-image-file",le),Ae.append("file_param_name","editormd-image-file"),Ae.append("byxhr","true");var St=new window.XMLHttpRequest;St.withCredentials=!0,St.addEventListener("load",function(Ot){ke(JSON.parse(Ot.target.responseText),le)},!1),St.addEventListener("error",function(Ot){console.error(Ot)},!1),St.open("POST",`${at.KI}/api/attachments.json`),St.send(Ae)}},76621:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return Ve}});var ae=re(67294),he=re(73935);class Ve extends ae.Component{constructor(Se){super(Se);const Ze=window.document;this.node=Ze.createElement("div"),Ze.body.appendChild(this.node)}render(){const{children:Se}=this.props;return(0,he.createPortal)(Se,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return he}});var ae=re(67294);function he(Ve,Ue){const Se=(0,ae.useRef)();(0,ae.useEffect)(()=>{Se.current=Ve}),(0,ae.useEffect)(()=>{function Ze(){Se.current()}if(Ue!==null){let me=setInterval(Ze,Ue);return()=>clearInterval(me)}},[Ue])}},27946:function($e,lt,re){"use strict";re.r(lt),re.d(lt,{default:function(){return ge}});var ae=re(67294),he=re(35973),Ve=re(22150),Ue=re(2453),Se=re(85673),Ze=re(69677),me=re(59810),at=re(71577),Ne=re(35567),Te=re(86763),He=re(11320),Ge={bg:"bg___VqFqM",flexRow:"flexRow___BMnDG",flexJustifyCenter:"flexJustifyCenter___oeWhy",flexAlignEnd:"flexAlignEnd___AM_yy",flexAlignCenter:"flexAlignCenter___oCn1N",flexColumn:"flexColumn___PQMFg",formWrap:"formWrap___iwUem",titleWrap:"titleWrap___SA96h",fieldWrap:"fieldWrap___tSPUZ",mdWrap:"mdWrap___C7Agk",backgroundFa:"backgroundFa___FaNz_",button:"button___fqiOn"},Oe=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(ie,se,le)=>se in ie?Oe(ie,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ie[se]=le,z=(ie,se)=>{for(var le in se||(se={}))E.call(se,le)&&x(ie,le,se[le]);if(y)for(var le of y(se))b.call(se,le)&&x(ie,le,se[le]);return ie},ee=(ie,se)=>ne(ie,a(se)),te=(ie,se,le)=>new Promise((ke,Ae)=>{var St=Le=>{try{xt(le.next(Le))}catch(et){Ae(et)}},Ot=Le=>{try{xt(le.throw(Le))}catch(et){Ae(et)}},xt=Le=>Le.done?ke(Le.value):Promise.resolve(Le.value).then(St,Ot);xt((le=le.apply(ie,se)).next())});const oe=({shixunHomeworks:ie,newCourse:se,globalSetting:le,loading:ke,dispatch:Ae,match:St})=>{var Ot;const xt=(0,he.useParams)(),[Le]=Ve.default.useForm(),[et,it]=(0,ae.useState)({}),[tt,st]=(0,ae.useState)(!1),[Rt,Zt]=(0,ae.useState)([]),[ln,pn]=(0,ae.useState)([]),{commonHomeWorkEditDefaultData:Fe}=ie,Ie={name:"file",multiple:!0,action:He.Z.API_SERVER+"/api/attachments.json",defaultFileList:Rt,onChange(Pt){const{status:de}=Pt.file;de==="done"?Ue.ZP.success(`${Pt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`):de==="error"&&Ue.ZP.error(`${Pt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)}};(0,ae.useEffect)(()=>{Gt()},[xt.topicId]);const Je=Pt=>Pt==null?void 0:Pt.map(de=>({uid:de.id,response:{id:de.id},name:de.title,status:"done",url:de.url})),Gt=()=>te(void 0,null,function*(){const Pt=yield Ae({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:xt.topicId}});Pt&&(Le.setFieldsValue({name:Pt.name}),Le.setFieldsValue({description:Pt.description}),Le.setFieldsValue({reference_answer:Pt.reference_answer}),Zt([...Je(Pt.attachments)]),pn([...Je(Pt.reference_attachments)]),st(!0))}),rt=Pt=>te(void 0,null,function*(){var de,dt;const Tt=z({},et);Tt.attachment_ids&&(Tt.attachment_ids=(de=Tt==null?void 0:Tt.attachment_ids.fileList)==null?void 0:de.map(ft=>{var je;return(je=ft.response)==null?void 0:je.id})),Tt.reference_attachment_ids&&(Tt.reference_attachment_ids=(dt=Tt==null?void 0:Tt.reference_attachment_ids.fileList)==null?void 0:dt.map(ft=>{var je;return(je=ft.response)==null?void 0:je.id})),(yield(0,Te.yT)(ee(z({id:xt.topicId},Tt),{base_on_project:null,type:1})))&&he.history.push(`/users/${xt.username}/topics/${xt.topicId}/${xt.topictype}/normal/detail`)});return ae.createElement("section",{className:Ge.bg},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},ae.createElement(Se.Z,{separator:">"},ae.createElement(Se.Z.Item,null,ae.createElement(he.Link,{to:`/users/${xt.username}/${xt.topictype==="personal"?"topics":"topicbank"}/${xt.topictype}`},xt.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),ae.createElement(Se.Z.Item,null,ae.createElement(he.Link,{to:`/users/${xt.username}/topics/${xt.topicId}/${xt.topictype}/normal/detail`},"\u8BE6\u60C5")),ae.createElement(Se.Z.Item,null,"\u7F16\u8F91")))),ae.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91"),ae.createElement(Ve.default,{form:Le,className:Ge.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{it(z({},Le.getFieldsValue()))},onFinish:rt},ae.createElement("div",{className:Ge.fieldWrap},ae.createElement(Ve.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(Ze.default,{maxLength:60,suffix:`${((Ot=et.name)==null?void 0:Ot.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ae.createElement("div",{className:Ge.mdWrap},ae.createElement(Ve.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ae.createElement(Ne.Z,{id:"topic-normal-description",watch:!0,defaultValue:Fe.description})),ae.createElement("div",null,ae.createElement(Ve.default.Item,{name:"attachment_ids"},tt&&ae.createElement(me.default,z({defaultFileList:Rt},Ie),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:Ge.mdWrap},ae.createElement(Ve.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ae.createElement(Ne.Z,{id:"topic-normal-reference_answer",defaultValue:Fe.reference_answer,watch:!0})),ae.createElement("div",null,ae.createElement(Ve.default.Item,{name:"reference_attachment_ids"},tt&&ae.createElement(me.default,ee(z({},Ie),{defaultFileList:ln}),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:Ge.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(Ve.default.Item,null,ae.createElement(at.ZP,{size:"middle",type:"primary",className:`${Ge.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),ae.createElement(at.ZP,{size:"middle",type:"primary",ghost:!0,className:Ge.button,onClick:()=>he.history.push(`/users/${xt.username}/topics/${xt.topicId}/${xt.topictype}/normal/detail`)},"\u53D6\u6D88"))))))};var ge=(0,he.connect)(({shixunHomeworks:ie,newCourse:se,loading:le,globalSetting:ke})=>({shixunHomeworks:ie,newCourse:se,globalSetting:ke,loading:le.effects}))(oe)},57838:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return he}});var ae=re(67294);function he(){const[,Ve]=ae.useReducer(Ue=>Ue+1,0);return Ve}},85673:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return xt}});var ae=re(94184),he=re.n(ae),Ve=re(37419),Ue=re(1337),Se=re(67294),Ze=re(96159),me=re(53124),at=re(42922),Ne=re(35874);const Te=Le=>{let{children:et}=Le;const{getPrefixCls:it}=Se.useContext(me.E_),tt=it("breadcrumb");return Se.createElement("li",{className:`${tt}-separator`,"aria-hidden":"true"},et===""?et:et||"/")};Te.__ANT_BREADCRUMB_SEPARATOR=!0;var He=Te,Ge=function(Le,et){var it={};for(var tt in Le)Object.prototype.hasOwnProperty.call(Le,tt)&&et.indexOf(tt)<0&&(it[tt]=Le[tt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,tt=Object.getOwnPropertySymbols(Le);st<tt.length;st++)et.indexOf(tt[st])<0&&Object.prototype.propertyIsEnumerable.call(Le,tt[st])&&(it[tt[st]]=Le[tt[st]]);return it};function Oe(Le,et){if(Le.title===void 0||Le.title===null)return null;const it=Object.keys(et).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${it})`,"g"),(tt,st)=>et[st]||tt)}function ne(Le,et,it,tt){if(it==null)return null;const{className:st,onClick:Rt}=et,Zt=Ge(et,["className","onClick"]),ln=Object.assign(Object.assign({},(0,Ue.Z)(Zt,{data:!0,aria:!0})),{onClick:Rt});return tt!==void 0?Se.createElement("a",Object.assign({},ln,{className:he()(`${Le}-link`,st),href:tt}),it):Se.createElement("span",Object.assign({},ln,{className:he()(`${Le}-link`,st)}),it)}function a(Le,et){return(tt,st,Rt,Zt,ln)=>{if(et)return et(tt,st,Rt,Zt);const pn=Oe(tt,st);return ne(Le,tt,pn,ln)}}var y=function(Le,et){var it={};for(var tt in Le)Object.prototype.hasOwnProperty.call(Le,tt)&&et.indexOf(tt)<0&&(it[tt]=Le[tt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,tt=Object.getOwnPropertySymbols(Le);st<tt.length;st++)et.indexOf(tt[st])<0&&Object.prototype.propertyIsEnumerable.call(Le,tt[st])&&(it[tt[st]]=Le[tt[st]]);return it};const E=Le=>{const{prefixCls:et,separator:it="/",children:tt,menu:st,overlay:Rt,dropdownProps:Zt,href:ln}=Le,Fe=(Ie=>{if(st||Rt){const Je=Object.assign({},Zt);if(st){const Gt=st||{},{items:rt}=Gt,Pt=y(Gt,["items"]);Je.menu=Object.assign(Object.assign({},Pt),{items:rt==null?void 0:rt.map((de,dt)=>{var{key:Tt,title:on,label:ft,path:je}=de,Be=y(de,["key","title","label","path"]);let ye=ft!=null?ft:on;return je&&(ye=Se.createElement("a",{href:`${ln}${je}`},ye)),Object.assign(Object.assign({},Be),{key:Tt!=null?Tt:dt,label:ye})})})}else Rt&&(Je.overlay=Rt);return Se.createElement(Ne.Z,Object.assign({placement:"bottom"},Je),Se.createElement("span",{className:`${et}-overlay-link`},Ie,Se.createElement(at.Z,null)))}return Ie})(tt);return Fe!=null?Se.createElement(Se.Fragment,null,Se.createElement("li",null,Fe),it&&Se.createElement(He,null,it)):null},b=Le=>{const{prefixCls:et,children:it,href:tt}=Le,st=y(Le,["prefixCls","children","href"]),{getPrefixCls:Rt}=Se.useContext(me.E_),Zt=Rt("breadcrumb",et);return Se.createElement(E,Object.assign({},st,{prefixCls:Zt}),ne(Zt,st,it,tt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=re(14747),ee=re(67968),te=re(45503);const oe=Le=>{const{componentCls:et,iconCls:it}=Le;return{[et]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[it]:{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},[`${et}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${et}-link`]:{[`
|
|
> ${it} + span,
|
|
> ${it} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${et}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${it}`]:{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 ge=(0,ee.Z)("Breadcrumb",Le=>{const et=(0,te.TS)(Le,{});return[oe(et)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ie=function(Le,et){var it={};for(var tt in Le)Object.prototype.hasOwnProperty.call(Le,tt)&&et.indexOf(tt)<0&&(it[tt]=Le[tt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,tt=Object.getOwnPropertySymbols(Le);st<tt.length;st++)et.indexOf(tt[st])<0&&Object.prototype.propertyIsEnumerable.call(Le,tt[st])&&(it[tt[st]]=Le[tt[st]]);return it};function se(Le){const{breadcrumbName:et,children:it}=Le,tt=ie(Le,["breadcrumbName","children"]),st=Object.assign({title:et},tt);return it&&(st.menu={items:it.map(Rt=>{var{breadcrumbName:Zt}=Rt,ln=ie(Rt,["breadcrumbName"]);return Object.assign(Object.assign({},ln),{title:Zt})})}),st}function le(Le,et){return(0,Se.useMemo)(()=>Le||(et?et.map(se):null),[Le,et])}var ke=function(Le,et){var it={};for(var tt in Le)Object.prototype.hasOwnProperty.call(Le,tt)&&et.indexOf(tt)<0&&(it[tt]=Le[tt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,tt=Object.getOwnPropertySymbols(Le);st<tt.length;st++)et.indexOf(tt[st])<0&&Object.prototype.propertyIsEnumerable.call(Le,tt[st])&&(it[tt[st]]=Le[tt[st]]);return it};const Ae=(Le,et)=>{if(et===void 0)return et;let it=(et||"").replace(/^\//,"");return Object.keys(Le).forEach(tt=>{it=it.replace(`:${tt}`,Le[tt])}),it},St=Le=>{const{prefixCls:et,separator:it="/",style:tt,className:st,rootClassName:Rt,routes:Zt,items:ln,children:pn,itemRender:Fe,params:Ie={}}=Le,Je=ke(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Gt,direction:rt,breadcrumb:Pt}=Se.useContext(me.E_);let de;const dt=Gt("breadcrumb",et),[Tt,on]=ge(dt),ft=le(ln,Zt),je=a(dt,Fe);if(ft&&ft.length>0){const pe=[],be=ln||Zt;de=ft.map((We,nt)=>{const{path:ut,key:yt,type:Bt,menu:It,overlay:At,onClick:mn,className:Qt,separator:Xt,dropdownProps:Ht}=We,Sn=Ae(Ie,ut);Sn!==void 0&&pe.push(Sn);const fe=yt!=null?yt:nt;if(Bt==="separator")return Se.createElement(He,{key:fe},Xt);const Ce={},De=nt===ft.length-1;It?Ce.menu=It:At&&(Ce.overlay=At);let{href:ot}=We;return pe.length&&Sn!==void 0&&(ot=`#/${pe.join("/")}`),Se.createElement(E,Object.assign({key:fe},Ce,(0,Ue.Z)(We,{data:!0,aria:!0}),{className:Qt,dropdownProps:Ht,href:ot,separator:De?"":it,onClick:mn,prefixCls:dt}),je(We,Ie,be,pe,ot))})}else if(pn){const pe=(0,Ve.Z)(pn).length;de=(0,Ve.Z)(pn).map((be,We)=>{if(!be)return be;const nt=We===pe-1;return(0,Ze.Tm)(be,{separator:nt?"":it,key:We})})}const Be=he()(dt,Pt==null?void 0:Pt.className,{[`${dt}-rtl`]:rt==="rtl"},st,Rt,on),ye=Object.assign(Object.assign({},Pt==null?void 0:Pt.style),tt);return Tt(Se.createElement("nav",Object.assign({className:Be,style:ye},Je),Se.createElement("ol",null,de)))};St.Item=x,St.Separator=He;var Ot=St,xt=Ot},35874:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return ye}});var ae=re(67294),he=re(91034),Ve=re(94184),Ue=re.n(Ve),Se=re(87462),Ze=re(4942),me=re(97685),at=re(45987),Ne=re(62709),Te=re(71002),He=re(12060);function Ge(pe,be,We){var nt=React.useRef({});return(!("value"in nt.current)||We(nt.current.condition,be))&&(nt.current.value=pe(),nt.current.condition=be),nt.current.value}function Oe(pe,be){typeof pe=="function"?pe(be):(0,Te.Z)(pe)==="object"&&pe&&"current"in pe&&(pe.current=be)}function ne(){for(var pe=arguments.length,be=new Array(pe),We=0;We<pe;We++)be[We]=arguments[We];var nt=be.filter(function(ut){return ut});return nt.length<=1?nt[0]:function(ut){be.forEach(function(yt){Oe(yt,ut)})}}function a(){for(var pe=arguments.length,be=new Array(pe),We=0;We<pe;We++)be[We]=arguments[We];return useMemo(function(){return ne.apply(void 0,be)},be,function(nt,ut){return nt.length===ut.length&&nt.every(function(yt,Bt){return yt===ut[Bt]})})}function y(pe){var be,We,nt=(0,He.isMemo)(pe)?pe.type.type:pe.type;return!(typeof nt=="function"&&!((be=nt.prototype)!==null&&be!==void 0&&be.render)||typeof pe=="function"&&!((We=pe.prototype)!==null&&We!==void 0&&We.render))}var E={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(be){var We=be.keyCode;if(be.altKey&&!be.ctrlKey||be.metaKey||We>=E.F1&&We<=E.F12)return!1;switch(We){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(be){if(be>=E.ZERO&&be<=E.NINE||be>=E.NUM_ZERO&&be<=E.NUM_MULTIPLY||be>=E.A&&be<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&be===0)return!0;switch(be){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(be){return+setTimeout(be,16)},z=function(be){return clearTimeout(be)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(be){return window.requestAnimationFrame(be)},z=function(be){return window.cancelAnimationFrame(be)});var ee=0,te=new Map;function oe(pe){te.delete(pe)}var ge=function(be){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var nt=ee;function ut(yt){if(yt===0)oe(nt),be();else{var Bt=x(function(){ut(yt-1)});te.set(nt,Bt)}}return ut(We),nt};ge.cancel=function(pe){var be=te.get(pe);return oe(be),z(be)};var ie=ge,se=b.ESC,le=b.TAB;function ke(pe){var be=pe.visible,We=pe.triggerRef,nt=pe.onVisibleChange,ut=pe.autoFocus,yt=pe.overlayRef,Bt=ae.useRef(!1),It=function(){if(be){var Xt,Ht;(Xt=We.current)===null||Xt===void 0||(Ht=Xt.focus)===null||Ht===void 0||Ht.call(Xt),nt==null||nt(!1)}},At=function(){var Xt;return(Xt=yt.current)!==null&&Xt!==void 0&&Xt.focus?(yt.current.focus(),Bt.current=!0,!0):!1},mn=function(Xt){switch(Xt.keyCode){case se:It();break;case le:{var Ht=!1;Bt.current||(Ht=At()),Ht?Xt.preventDefault():It();break}}};ae.useEffect(function(){return be?(window.addEventListener("keydown",mn),ut&&ie(At,3),function(){window.removeEventListener("keydown",mn),Bt.current=!1}):function(){Bt.current=!1}},[be])}var Ae=(0,ae.forwardRef)(function(pe,be){var We=pe.overlay,nt=pe.arrow,ut=pe.prefixCls,yt=(0,ae.useMemo)(function(){var It;return typeof We=="function"?It=We():It=We,It},[We]),Bt=ne(be,yt==null?void 0:yt.ref);return ae.createElement(ae.Fragment,null,nt&&ae.createElement("div",{className:"".concat(ut,"-arrow")}),ae.cloneElement(yt,{ref:y(yt)?Bt:void 0}))}),St=Ae,Ot={adjustX:1,adjustY:1},xt=[0,0],Le={topLeft:{points:["bl","tl"],overflow:Ot,offset:[0,-4],targetOffset:xt},top:{points:["bc","tc"],overflow:Ot,offset:[0,-4],targetOffset:xt},topRight:{points:["br","tr"],overflow:Ot,offset:[0,-4],targetOffset:xt},bottomLeft:{points:["tl","bl"],overflow:Ot,offset:[0,4],targetOffset:xt},bottom:{points:["tc","bc"],overflow:Ot,offset:[0,4],targetOffset:xt},bottomRight:{points:["tr","br"],overflow:Ot,offset:[0,4],targetOffset:xt}},et=Le,it=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function tt(pe,be){var We,nt=pe.arrow,ut=nt===void 0?!1:nt,yt=pe.prefixCls,Bt=yt===void 0?"rc-dropdown":yt,It=pe.transitionName,At=pe.animation,mn=pe.align,Qt=pe.placement,Xt=Qt===void 0?"bottomLeft":Qt,Ht=pe.placements,Sn=Ht===void 0?et:Ht,fe=pe.getPopupContainer,Ce=pe.showAction,De=pe.hideAction,ot=pe.overlayClassName,gt=pe.overlayStyle,Et=pe.visible,$t=pe.trigger,vt=$t===void 0?["hover"]:$t,Ft=pe.autoFocus,jt=pe.overlay,kt=pe.children,en=pe.onVisibleChange,qt=(0,at.Z)(pe,it),fn=ae.useState(),vn=(0,me.Z)(fn,2),Jt=vn[0],Kt=vn[1],un="visible"in pe?Et:Jt,hn=ae.useRef(null),yn=ae.useRef(null),sn=ae.useRef(null);ae.useImperativeHandle(be,function(){return hn.current});var Fn=function(_e){Kt(_e),en==null||en(_e)};ke({visible:un,triggerRef:sn,onVisibleChange:Fn,autoFocus:Ft,overlayRef:yn});var jn=function(_e){var pt=pe.onOverlayClick;Kt(!1),pt&&pt(_e)},bn=function(){return ae.createElement(St,{ref:yn,overlay:jt,prefixCls:Bt,arrow:ut})},Mn=function(){return typeof jt=="function"?bn:bn()},_n=function(){var _e=pe.minOverlayWidthMatchTrigger,pt=pe.alignPoint;return"minOverlayWidthMatchTrigger"in pe?_e:!pt},Zn=function(){var _e=pe.openClassName;return _e!==void 0?_e:"".concat(Bt,"-open")},ce=ae.cloneElement(kt,{className:Ue()((We=kt.props)===null||We===void 0?void 0:We.className,un&&Zn()),ref:y(kt)?ne(sn,kt.ref):void 0}),ve=De;return!ve&&vt.indexOf("contextMenu")!==-1&&(ve=["click"]),ae.createElement(Ne.Z,(0,Se.Z)({builtinPlacements:Sn},qt,{prefixCls:Bt,ref:hn,popupClassName:Ue()(ot,(0,Ze.Z)({},"".concat(Bt,"-show-arrow"),ut)),popupStyle:gt,action:vt,showAction:Ce,hideAction:ve,popupPlacement:Xt,popupAlign:mn,popupTransitionName:It,popupAnimation:At,popupVisible:un,stretch:_n()?"minWidth":"",popup:Mn(),onPopupVisibleChange:Fn,onPopupClick:jn,getPopupContainer:fe}),ce)}var st=ae.forwardRef(tt),Rt=st,Zt=re(60276),ln=re(5663),pn=re(10366),Fe=re(80636),Ie=re(8745),Je=re(96159),Gt=re(53124),rt=re(68508),Pt=re(76529),de=re(46605),dt=re(66748);const Tt=null,on=pe=>{const{menu:be,arrow:We,prefixCls:nt,children:ut,trigger:yt,disabled:Bt,dropdownRender:It,getPopupContainer:At,overlayClassName:mn,rootClassName:Qt,open:Xt,onOpenChange:Ht,visible:Sn,onVisibleChange:fe,mouseEnterDelay:Ce=.15,mouseLeaveDelay:De=.1,autoAdjustOverflow:ot=!0,placement:gt="",overlay:Et,transitionName:$t}=pe,{getPopupContainer:vt,getPrefixCls:Ft,direction:jt}=ae.useContext(Gt.E_),kt=ae.useMemo(()=>{const ce=Ft();return $t!==void 0?$t:gt.includes("top")?`${ce}-slide-down`:`${ce}-slide-up`},[Ft,gt,$t]),en=ae.useMemo(()=>gt?gt.includes("Center")?gt.slice(0,gt.indexOf("Center")):gt:jt==="rtl"?"bottomRight":"bottomLeft",[gt,jt]),qt=Ft("dropdown",nt),[fn,vn]=(0,dt.Z)(qt),[,Jt]=(0,de.Z)(),Kt=ae.Children.only(ut),un=(0,Je.Tm)(Kt,{className:Ue()(`${qt}-trigger`,{[`${qt}-rtl`]:jt==="rtl"},Kt.props.className),disabled:Bt}),hn=Bt?[]:yt;let yn;hn&&hn.includes("contextMenu")&&(yn=!0);const[sn,Fn]=(0,ln.Z)(!1,{value:Xt!=null?Xt:Sn}),jn=(0,Zt.useEvent)(ce=>{Ht==null||Ht(ce),fe==null||fe(ce),Fn(ce)}),bn=Ue()(mn,Qt,vn,{[`${qt}-rtl`]:jt==="rtl"}),Mn=(0,Fe.Z)({arrowPointAtCenter:typeof We=="object"&&We.pointAtCenter,autoAdjustOverflow:ot,offset:Jt.marginXXS,arrowWidth:We?Jt.sizePopupArrow:0,borderRadius:Jt.borderRadius}),_n=ae.useCallback(()=>{Fn(!1)},[]),Zn=()=>{let ce;return be!=null&&be.items?ce=ae.createElement(rt.default,Object.assign({},be)):typeof Et=="function"?ce=Et():ce=Et,It&&(ce=It(ce)),ce=ae.Children.only(typeof ce=="string"?ae.createElement("span",null,ce):ce),ae.createElement(Pt.J,{prefixCls:`${qt}-menu`,expandIcon:ae.createElement("span",{className:`${qt}-menu-submenu-arrow`},ae.createElement(he.Z,{className:`${qt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:_n,validator:ve=>{let{mode:Pe}=ve}},ce)};return fn(ae.createElement(Rt,Object.assign({alignPoint:yn},(0,pn.Z)(pe,["rootClassName"]),{mouseEnterDelay:Ce,mouseLeaveDelay:De,visible:sn,builtinPlacements:Mn,arrow:!!We,overlayClassName:bn,prefixCls:qt,getPopupContainer:At||vt,transitionName:kt,trigger:hn,overlay:Zn,placement:en,onVisibleChange:jn}),un))};function ft(pe){return Object.assign(Object.assign({},pe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const je=(0,Ie.Z)(on,"dropdown",pe=>pe,ft),Be=pe=>ae.createElement(je,Object.assign({},pe),ae.createElement("span",null));on._InternalPanelDoNotUseOrYouWillBeFired=Be;var ye=on},66748:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return He}});var ae=re(14747),he=re(67771),Ve=re(33297),Ue=re(50438),Se=re(97414),Ze=re(67968),me=re(45503),Ne=Ge=>{const{componentCls:Oe,menuCls:ne,colorError:a,colorTextLightSolid:y}=Ge,E=`${ne}-item`;return{[`${Oe}, ${Oe}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Te=Ge=>{const{componentCls:Oe,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ge,fontSizeIcon:ie,controlPaddingHorizontal:se,colorBgElevated:le}=Ge;return[{[Oe]:Object.assign(Object.assign({},(0,ae.Wf)(Ge)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ie}},[`${Oe}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ie},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Oe}-wrap-open`]:{[`${x}-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${Oe}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Oe}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Oe}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Oe}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Oe}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Oe}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Oe}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Oe}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Oe}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Oe}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Oe}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Oe}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Oe}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Oe}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Oe}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Oe}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Oe}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Oe}-placement-topRight`]:{animationName:he.ly}})},(0,Se.ZP)(Ge,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Oe} ${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}},[`${Oe}, ${Oe}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Ge.borderRadiusLG,outline:"none",boxShadow:Ge.boxShadowSecondary},(0,ae.Qy)(Ge)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${se}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 ${se}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,ae.Qy)(Ge)),{"&-selected":{color:Ge.colorPrimary,backgroundColor:Ge.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ge.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ge.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ge.colorSplit},[`${Oe}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ge.paddingXS,[`${Oe}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ge.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Ge.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:se+Ge.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Oe}-menu-submenu-title`]:{[`&, ${Oe}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Oe}-menu-submenu-title`]:{color:Ge.colorPrimary}})}},[(0,he.oN)(Ge,"slide-up"),(0,he.oN)(Ge,"slide-down"),(0,Ve.Fm)(Ge,"move-up"),(0,Ve.Fm)(Ge,"move-down"),(0,Ue._y)(Ge,"zoom-big")]]};var He=(0,Ze.Z)("Dropdown",(Ge,Oe)=>{let{rootPrefixCls:ne}=Oe;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Ge,oe=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,Se.fS)({contentRadius:te}),ie=(0,me.TS)(Ge,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Te(ie),Ne(ie)]},Ge=>({zIndexPopup:Ge.zIndexPopupBase+50}))},71322:function($e,lt,re){"use strict";re.d(lt,{D:function(){return x},Z:function(){return te}});var ae=re(87462),he=re(67294),Ve={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"},Ue=Ve,Se=re(74643),Ze=function(ge,ie){return he.createElement(Se.Z,(0,ae.Z)({},ge,{ref:ie,icon:Ue}))},me=he.forwardRef(Ze),at=re(22751),Ne=re(91034),Te=re(94184),He=re.n(Te),Ge=re(10366),ne=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),a=re(53124),y=re(84321),E=function(oe,ge){var ie={};for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&ge.indexOf(se)<0&&(ie[se]=oe[se]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,se=Object.getOwnPropertySymbols(oe);le<se.length;le++)ge.indexOf(se[le])<0&&Object.prototype.propertyIsEnumerable.call(oe,se[le])&&(ie[se[le]]=oe[se[le]]);return ie};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=he.createContext({}),z=(()=>{let oe=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${ge}${oe}`}})();var te=he.forwardRef((oe,ge)=>{const{prefixCls:ie,className:se,trigger:le,children:ke,defaultCollapsed:Ae=!1,theme:St="dark",style:Ot={},collapsible:xt=!1,reverseArrow:Le=!1,width:et=200,collapsedWidth:it=80,zeroWidthTriggerStyle:tt,breakpoint:st,onCollapse:Rt,onBreakpoint:Zt}=oe,ln=E(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:pn}=(0,he.useContext)(y.Gs),[Fe,Ie]=(0,he.useState)("collapsed"in oe?oe.collapsed:Ae),[Je,Gt]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in oe&&Ie(oe.collapsed)},[oe.collapsed]);const rt=(ft,je)=>{"collapsed"in oe||Ie(ft),Rt==null||Rt(ft,je)},Pt=(0,he.useRef)();Pt.current=ft=>{Gt(ft.matches),Zt==null||Zt(ft.matches),Fe!==ft.matches&&rt(ft.matches,"responsive")},(0,he.useEffect)(()=>{function ft(Be){return Pt.current(Be)}let je;if(typeof window!="undefined"){const{matchMedia:Be}=window;if(Be&&st&&st in b){je=Be(`(max-width: ${b[st]})`);try{je.addEventListener("change",ft)}catch(ye){je.addListener(ft)}ft(je)}}return()=>{try{je==null||je.removeEventListener("change",ft)}catch(Be){je==null||je.removeListener(ft)}}},[st]),(0,he.useEffect)(()=>{const ft=z("ant-sider-");return pn.addSider(ft),()=>pn.removeSider(ft)},[]);const de=()=>{rt(!Fe,"clickTrigger")},{getPrefixCls:dt}=(0,he.useContext)(a.E_),Tt=()=>{const ft=dt("layout-sider",ie),je=(0,Ge.Z)(ln,["collapsed"]),Be=Fe?it:et,ye=ne(Be)?`${Be}px`:String(Be),pe=parseFloat(String(it||0))===0?he.createElement("span",{onClick:de,className:He()(`${ft}-zero-width-trigger`,`${ft}-zero-width-trigger-${Le?"right":"left"}`),style:tt},le||he.createElement(me,null)):null,nt={expanded:Le?he.createElement(Ne.Z,null):he.createElement(at.Z,null),collapsed:Le?he.createElement(at.Z,null):he.createElement(Ne.Z,null)}[Fe?"collapsed":"expanded"],ut=le!==null?pe||he.createElement("div",{className:`${ft}-trigger`,onClick:de,style:{width:ye}},le||nt):null,yt=Object.assign(Object.assign({},Ot),{flex:`0 0 ${ye}`,maxWidth:ye,minWidth:ye,width:ye}),Bt=He()(ft,`${ft}-${St}`,{[`${ft}-collapsed`]:!!Fe,[`${ft}-has-trigger`]:xt&&le!==null&&!pe,[`${ft}-below`]:!!Je,[`${ft}-zero-width`]:parseFloat(ye)===0},se);return he.createElement("aside",Object.assign({className:Bt},je,{style:yt,ref:ge}),he.createElement("div",{className:`${ft}-children`},ke),xt||Je&&pe?ut:null)},on=he.useMemo(()=>({siderCollapsed:Fe}),[Fe]);return he.createElement(x.Provider,{value:on},Tt())})},84321:function($e,lt,re){"use strict";re.d(lt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Oe},ZP:function(){return ee}});var ae=re(74902),he=re(94184),Ve=re.n(he),Ue=re(10366),Se=re(67294),Ze=re(53124),me=re(67968),Ne=te=>{const{componentCls:oe,bodyBg:ge,lightSiderBg:ie,lightTriggerBg:se,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:le,background:se},[`${oe}-sider-zero-width-trigger`]:{color:le,background:se,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Te=te=>{const{antCls:oe,componentCls:ge,colorText:ie,triggerColor:se,footerBg:le,triggerBg:ke,headerHeight:Ae,headerPadding:St,headerColor:Ot,footerPadding:xt,triggerHeight:Le,zeroTriggerHeight:et,zeroTriggerWidth:it,motionDurationMid:tt,motionDurationSlow:st,fontSize:Rt,borderRadius:Zt,bodyBg:ln,headerBg:pn,siderBg:Fe}=te;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ln,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:Fe,transition:`all ${tt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:se,lineHeight:`${Le}px`,textAlign:"center",background:ke,cursor:"pointer",transition:`all ${tt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ae,insetInlineEnd:-it,zIndex:1,width:it,height:et,color:se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Fe,borderStartStartRadius:0,borderStartEndRadius:Zt,borderEndEndRadius:Zt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${st} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${st}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-it,borderStartStartRadius:Zt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Zt}}}}},Ne(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:Ae,padding:St,color:Ot,lineHeight:`${Ae}px`,background:pn,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:xt,color:ie,fontSize:Rt,background:le},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var He=(0,me.Z)("Layout",te=>[Te(te)],te=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:ie,colorText:se,controlHeightSM:le,marginXXS:ke,colorTextLightSolid:Ae,colorBgContainer:St}=te,Ot=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${Ot}px`,headerColor:se,footerPadding:`${le}px ${Ot}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+ke*2,triggerBg:"#002140",triggerColor:Ae,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:St,lightTriggerBg:St,lightTriggerColor:se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ge=function(te,oe){var ge={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(ge[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ie=Object.getOwnPropertySymbols(te);se<ie.length;se++)oe.indexOf(ie[se])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[se])&&(ge[ie[se]]=te[ie[se]]);return ge};const Oe=Se.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ge,displayName:ie}=te;return se=>Se.forwardRef((ke,Ae)=>Se.createElement(se,Object.assign({ref:Ae,suffixCls:oe,tagName:ge},ke)))}const a=Se.forwardRef((te,oe)=>{const{prefixCls:ge,suffixCls:ie,className:se,tagName:le}=te,ke=Ge(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ae}=Se.useContext(Ze.E_),St=Ae("layout",ge),[Ot,xt]=He(St),Le=ie?`${St}-${ie}`:St;return Ot(Se.createElement(le,Object.assign({className:Ve()(ge||Le,se,xt),ref:oe},ke)))}),y=Se.forwardRef((te,oe)=>{const{direction:ge}=Se.useContext(Ze.E_),[ie,se]=Se.useState([]),{prefixCls:le,className:ke,rootClassName:Ae,children:St,hasSider:Ot,tagName:xt,style:Le}=te,et=Ge(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),it=(0,Ue.Z)(et,["suffixCls"]),{getPrefixCls:tt,layout:st}=Se.useContext(Ze.E_),Rt=tt("layout",le),[Zt,ln]=He(Rt),pn=Ve()(Rt,{[`${Rt}-has-sider`]:typeof Ot=="boolean"?Ot:ie.length>0,[`${Rt}-rtl`]:ge==="rtl"},st==null?void 0:st.className,ke,Ae,ln),Fe=Se.useMemo(()=>({siderHook:{addSider:Ie=>{se(Je=>[].concat((0,ae.Z)(Je),[Ie]))},removeSider:Ie=>{se(Je=>Je.filter(Gt=>Gt!==Ie))}}}),[]);return Zt(Se.createElement(Oe.Provider,{value:Fe},Se.createElement(xt,Object.assign({ref:oe,className:pn,style:Object.assign(Object.assign({},st==null?void 0:st.style),Le)},it),St)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function($e,lt,re){"use strict";re.d(lt,{J:function(){return Ze}});var ae=re(67294),he=re(4173),Ve=re(60276),Ue=function(me,at){var Ne={};for(var Te in me)Object.prototype.hasOwnProperty.call(me,Te)&&at.indexOf(Te)<0&&(Ne[Te]=me[Te]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Te=Object.getOwnPropertySymbols(me);He<Te.length;He++)at.indexOf(Te[He])<0&&Object.prototype.propertyIsEnumerable.call(me,Te[He])&&(Ne[Te[He]]=me[Te[He]]);return Ne};const Se=ae.createContext(null),Ze=ae.forwardRef((me,at)=>{const{children:Ne}=me,Te=Ue(me,["children"]),He=ae.useContext(Se),Ge=ae.useMemo(()=>Object.assign(Object.assign({},He),Te),[He,Te.prefixCls,Te.mode,Te.selectable]);return ae.createElement(Se.Provider,{value:Ge},ae.createElement(he.BR,null,(0,Ve.supportNodeRef)(Ne)?ae.cloneElement(Ne,{ref:at}):Ne))});lt.Z=Se},68508:function($e,lt,re){"use strict";re.d(lt,{default:function(){return ft}});var ae=re(78595),he=re(67294),Ve=re(71322),Ue=re(94184),Se=re.n(Ue),Ze=re(53124),me=function(je,Be){var ye={};for(var pe in je)Object.prototype.hasOwnProperty.call(je,pe)&&Be.indexOf(pe)<0&&(ye[pe]=je[pe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,pe=Object.getOwnPropertySymbols(je);be<pe.length;be++)Be.indexOf(pe[be])<0&&Object.prototype.propertyIsEnumerable.call(je,pe[be])&&(ye[pe[be]]=je[pe[be]]);return ye},Ne=je=>{const{prefixCls:Be,className:ye,dashed:pe}=je,be=me(je,["prefixCls","className","dashed"]),{getPrefixCls:We}=he.useContext(Ze.E_),nt=We("menu",Be),ut=Se()({[`${nt}-item-divider-dashed`]:!!pe},ye);return he.createElement(ae.iz,Object.assign({className:ut},be))},Te=re(37419),He=re(10366),Ge=re(83062),Oe=re(96159),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=je=>{var Be;const{className:ye,children:pe,icon:be,title:We,danger:nt}=je,{prefixCls:ut,firstLevel:yt,direction:Bt,disableMenuItemTitleTooltip:It,inlineCollapsed:At}=he.useContext(a),mn=Ce=>{const De=he.createElement("span",{className:`${ut}-title-content`},pe);return(!be||(0,Oe.l$)(pe)&&pe.type==="span")&&pe&&Ce&&yt&&typeof pe=="string"?he.createElement("div",{className:`${ut}-inline-collapsed-noicon`},pe.charAt(0)):De},{siderCollapsed:Qt}=he.useContext(Ve.D);let Xt=We;typeof We=="undefined"?Xt=yt?pe:"":We===!1&&(Xt="");const Ht={title:Xt};!Qt&&!At&&(Ht.title=null,Ht.open=!1);const Sn=(0,Te.Z)(pe).length;let fe=he.createElement(ae.ck,Object.assign({},(0,He.Z)(je,["title","icon","danger"]),{className:Se()({[`${ut}-item-danger`]:nt,[`${ut}-item-only-child`]:(be?Sn+1:Sn)===1},ye),title:typeof We=="string"?We:void 0}),(0,Oe.Tm)(be,{className:Se()((0,Oe.l$)(be)?(Be=be.props)===null||Be===void 0?void 0:Be.className:"",`${ut}-item-icon`)}),mn(At));return It||(fe=he.createElement(Ge.Z,Object.assign({},Ht,{placement:Bt==="rtl"?"left":"right",overlayClassName:`${ut}-inline-collapsed-tooltip`}),fe)),fe},x=je=>{var Be;const{popupClassName:ye,icon:pe,title:be,theme:We}=je,nt=he.useContext(a),{prefixCls:ut,inlineCollapsed:yt,theme:Bt}=nt,It=(0,ae.Xl)();let At;if(!pe)At=yt&&!It.length&&be&&typeof be=="string"?he.createElement("div",{className:`${ut}-inline-collapsed-noicon`},be.charAt(0)):he.createElement("span",{className:`${ut}-title-content`},be);else{const Qt=(0,Oe.l$)(be)&&be.type==="span";At=he.createElement(he.Fragment,null,(0,Oe.Tm)(pe,{className:Se()((0,Oe.l$)(pe)?(Be=pe.props)===null||Be===void 0?void 0:Be.className:"",`${ut}-item-icon`)}),Qt?be:he.createElement("span",{className:`${ut}-title-content`},be))}const mn=he.useMemo(()=>Object.assign(Object.assign({},nt),{firstLevel:!1}),[nt]);return he.createElement(a.Provider,{value:mn},he.createElement(ae.Wd,Object.assign({},(0,He.Z)(je,["icon"]),{title:At,popupClassName:Se()(ut,ye,`${ut}-${We||Bt}`)})))},z=re(25877),ee=re(60276),te=re(33603),oe=re(76529),ge=function(je,Be){var ye={};for(var pe in je)Object.prototype.hasOwnProperty.call(je,pe)&&Be.indexOf(pe)<0&&(ye[pe]=je[pe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,pe=Object.getOwnPropertySymbols(je);be<pe.length;be++)Be.indexOf(pe[be])<0&&Object.prototype.propertyIsEnumerable.call(je,pe[be])&&(ye[pe[be]]=je[pe[be]]);return ye};function ie(je){return(je||[]).map((Be,ye)=>{if(Be&&typeof Be=="object"){const pe=Be,{label:be,children:We,key:nt,type:ut}=pe,yt=ge(pe,["label","children","key","type"]),Bt=nt!=null?nt:`tmp-${ye}`;return We||ut==="group"?ut==="group"?he.createElement(ae.BW,Object.assign({key:Bt},yt,{title:be}),ie(We)):he.createElement(x,Object.assign({key:Bt},yt,{title:be}),ie(We)):ut==="divider"?he.createElement(Ne,Object.assign({key:Bt},yt)):he.createElement(E,Object.assign({key:Bt},yt),be)}return null}).filter(Be=>Be)}function se(je){return he.useMemo(()=>je&&ie(je),[je])}var le=re(84780),ke=re(14747),Ae=re(33507),St=re(67771),Ot=re(50438),xt=re(67968),Le=re(45503),it=je=>{const{componentCls:Be,motionDurationSlow:ye,horizontalLineHeight:pe,colorSplit:be,lineWidth:We,lineType:nt,itemPaddingInline:ut}=je;return{[`${Be}-horizontal`]:{lineHeight:pe,border:0,borderBottom:`${We}px ${nt} ${be}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Be}-item, ${Be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ut},[`> ${Be}-item:hover,
|
|
> ${Be}-item-active,
|
|
> ${Be}-submenu ${Be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Be}-item, ${Be}-submenu-title`]:{transition:[`border-color ${ye}`,`background ${ye}`].join(",")},[`${Be}-submenu-arrow`]:{display:"none"}}}},st=je=>{let{componentCls:Be,menuArrowOffset:ye}=je;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(-${ye})`},"&::after":{transform:`rotate(45deg) translateY(${ye})`}}}}};const Rt=je=>Object.assign({},(0,ke.oN)(je));var ln=(je,Be)=>{const{componentCls:ye,itemColor:pe,itemSelectedColor:be,groupTitleColor:We,itemBg:nt,subMenuItemBg:ut,itemSelectedBg:yt,activeBarHeight:Bt,activeBarWidth:It,activeBarBorderWidth:At,motionDurationSlow:mn,motionEaseInOut:Qt,motionEaseOut:Xt,itemPaddingInline:Ht,motionDurationMid:Sn,itemHoverColor:fe,lineType:Ce,colorSplit:De,itemDisabledColor:ot,dangerItemColor:gt,dangerItemHoverColor:Et,dangerItemSelectedColor:$t,dangerItemActiveBg:vt,dangerItemSelectedBg:Ft,itemHoverBg:jt,itemActiveBg:kt,menuSubMenuBg:en,horizontalItemSelectedColor:qt,horizontalItemSelectedBg:fn,horizontalItemBorderRadius:vn,horizontalItemHoverBg:Jt,popupBg:Kt}=je;return{[`${ye}-${Be}, ${ye}-${Be} > ${ye}`]:{color:pe,background:nt,[`&${ye}-root:focus-visible`]:Object.assign({},Rt(je)),[`${ye}-item-group-title`]:{color:We},[`${ye}-submenu-selected`]:{[`> ${ye}-submenu-title`]:{color:be}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{color:`${ot} !important`},[`${ye}-item:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{[`&:hover, > ${ye}-submenu-title:hover`]:{color:fe}},[`&:not(${ye}-horizontal)`]:{[`${ye}-item:not(${ye}-item-selected)`]:{"&:hover":{backgroundColor:jt},"&:active":{backgroundColor:kt}},[`${ye}-submenu-title`]:{"&:hover":{backgroundColor:jt},"&:active":{backgroundColor:kt}}},[`${ye}-item-danger`]:{color:gt,[`&${ye}-item:hover`]:{[`&:not(${ye}-item-selected):not(${ye}-submenu-selected)`]:{color:Et}},[`&${ye}-item:active`]:{background:vt}},[`${ye}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ye}-item-selected`]:{color:be,[`&${ye}-item-danger`]:{color:$t},"a, a:hover":{color:"inherit"}},[`& ${ye}-item-selected`]:{backgroundColor:yt,[`&${ye}-item-danger`]:{backgroundColor:Ft}},[`${ye}-item, ${ye}-submenu-title`]:{[`&:not(${ye}-item-disabled):focus-visible`]:Object.assign({},Rt(je))},[`&${ye}-submenu > ${ye}`]:{backgroundColor:en},[`&${ye}-popup > ${ye}`]:{backgroundColor:Kt},[`&${ye}-horizontal`]:Object.assign(Object.assign({},Be==="dark"?{borderBottom:0}:{}),{[`> ${ye}-item, > ${ye}-submenu`]:{top:At,marginTop:-At,marginBottom:0,borderRadius:vn,"&::after":{position:"absolute",insetInline:Ht,bottom:0,borderBottom:`${Bt}px solid transparent`,transition:`border-color ${mn} ${Qt}`,content:'""'},"&:hover, &-active, &-open":{background:Jt,"&::after":{borderBottomWidth:Bt,borderBottomColor:qt}},"&-selected":{color:qt,backgroundColor:fn,"&:hover":{backgroundColor:fn},"&::after":{borderBottomWidth:Bt,borderBottomColor:qt}}}}),[`&${ye}-root`]:{[`&${ye}-inline, &${ye}-vertical`]:{borderInlineEnd:`${At}px ${Ce} ${De}`}},[`&${ye}-inline`]:{[`${ye}-sub${ye}-inline`]:{background:ut},[`${ye}-item, ${ye}-submenu-title`]:At&&It?{width:`calc(100% + ${At}px)`}:{},[`${ye}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${It}px solid ${be}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Sn} ${Xt}`,`opacity ${Sn} ${Xt}`].join(","),content:'""'},[`&${ye}-item-danger`]:{"&::after":{borderInlineEndColor:$t}}},[`${ye}-selected, ${ye}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Sn} ${Qt}`,`opacity ${Sn} ${Qt}`].join(",")}}}}}};const pn=je=>{const{componentCls:Be,itemHeight:ye,itemMarginInline:pe,padding:be,menuArrowSize:We,marginXS:nt,itemMarginBlock:ut}=je,yt=be+We+nt;return{[`${Be}-item`]:{position:"relative",overflow:"hidden"},[`${Be}-item, ${Be}-submenu-title`]:{height:ye,lineHeight:`${ye}px`,paddingInline:be,overflow:"hidden",textOverflow:"ellipsis",marginInline:pe,marginBlock:ut,width:`calc(100% - ${pe*2}px)`},[`> ${Be}-item,
|
|
> ${Be}-submenu > ${Be}-submenu-title`]:{height:ye,lineHeight:`${ye}px`},[`${Be}-item-group-list ${Be}-submenu-title,
|
|
${Be}-submenu-title`]:{paddingInlineEnd:yt}}};var Ie=je=>{const{componentCls:Be,iconCls:ye,itemHeight:pe,colorTextLightSolid:be,dropdownWidth:We,controlHeightLG:nt,motionDurationMid:ut,motionEaseOut:yt,paddingXL:Bt,itemMarginInline:It,fontSizeLG:At,motionDurationSlow:mn,paddingXS:Qt,boxShadowSecondary:Xt,collapsedWidth:Ht,collapsedIconSize:Sn}=je,fe={height:pe,lineHeight:`${pe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Be]:{"&-inline, &-vertical":Object.assign({[`&${Be}-root`]:{boxShadow:"none"}},pn(je))},[`${Be}-submenu-popup`]:{[`${Be}-vertical`]:Object.assign(Object.assign({},pn(je)),{boxShadow:Xt})}},{[`${Be}-submenu-popup ${Be}-vertical${Be}-sub`]:{minWidth:We,maxHeight:`calc(100vh - ${nt*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 ${mn}`,`background ${mn}`,`padding ${ut} ${yt}`].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`]:fe,[`& ${Be}-item-group-title`]:{paddingInlineStart:Bt}},[`${Be}-item`]:fe}},{[`${Be}-inline-collapsed`]:{width:Ht,[`&${Be}-root`]:{[`${Be}-item, ${Be}-submenu ${Be}-submenu-title`]:{[`> ${Be}-inline-collapsed-noicon`]:{fontSize:At,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% - ${At/2}px - ${It}px)`,textOverflow:"clip",[`
|
|
${Be}-submenu-arrow,
|
|
${Be}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Be}-item-icon, ${ye}`]:{margin:0,fontSize:Sn,lineHeight:`${pe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Be}-item-icon, ${ye}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Be}-item-icon, ${ye}`]:{display:"none"},"a, a:hover":{color:be}},[`${Be}-item-group-title`]:Object.assign(Object.assign({},ke.vS),{paddingInline:Qt})}}]};const Je=je=>{const{componentCls:Be,motionDurationSlow:ye,motionDurationMid:pe,motionEaseInOut:be,motionEaseOut:We,iconCls:nt,iconSize:ut,iconMarginInlineEnd:yt}=je;return{[`${Be}-item, ${Be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ye}`,`background ${ye}`,`padding ${ye} ${be}`].join(","),[`${Be}-item-icon, ${nt}`]:{minWidth:ut,fontSize:ut,transition:[`font-size ${pe} ${We}`,`margin ${ye} ${be}`,`color ${ye}`].join(","),"+ span":{marginInlineStart:yt,opacity:1,transition:[`opacity ${ye} ${be}`,`margin ${ye}`,`color ${ye}`].join(",")}},[`${Be}-item-icon`]:Object.assign({},(0,ke.Ro)()),[`&${Be}-item-only-child`]:{[`> ${nt}, > ${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"}}}},Gt=je=>{const{componentCls:Be,motionDurationSlow:ye,motionEaseInOut:pe,borderRadius:be,menuArrowSize:We,menuArrowOffset:nt}=je;return{[`${Be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:je.margin,width:We,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ye} ${pe}, opacity ${ye}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:We*.6,height:We*.15,backgroundColor:"currentcolor",borderRadius:be,transition:[`background ${ye} ${pe}`,`transform ${ye} ${pe}`,`top ${ye} ${pe}`,`color ${ye} ${pe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${nt})`},"&::after":{transform:`rotate(-45deg) translateY(${nt})`}}}}},rt=je=>{const{antCls:Be,componentCls:ye,fontSize:pe,motionDurationSlow:be,motionDurationMid:We,motionEaseInOut:nt,paddingXS:ut,padding:yt,colorSplit:Bt,lineWidth:It,zIndexPopup:At,borderRadiusLG:mn,subMenuItemBorderRadius:Qt,menuArrowSize:Xt,menuArrowOffset:Ht,lineType:Sn,menuPanelMaskInset:fe,groupTitleLineHeight:Ce,groupTitleFontSize:De}=je;return[{"":{[`${ye}`]:Object.assign(Object.assign({},(0,ke.dF)()),{"&-hidden":{display:"none"}})},[`${ye}-submenu-hidden`]:{display:"none"}},{[ye]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ke.Wf)(je)),(0,ke.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:pe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${be} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ye}-item`]:{flex:"none"}},[`${ye}-item, ${ye}-submenu, ${ye}-submenu-title`]:{borderRadius:je.itemBorderRadius},[`${ye}-item-group-title`]:{padding:`${ut}px ${yt}px`,fontSize:De,lineHeight:Ce,transition:`all ${be}`},[`&-horizontal ${ye}-submenu`]:{transition:[`border-color ${be} ${nt}`,`background ${be} ${nt}`].join(",")},[`${ye}-submenu, ${ye}-submenu-inline`]:{transition:[`border-color ${be} ${nt}`,`background ${be} ${nt}`,`padding ${We} ${nt}`].join(",")},[`${ye}-submenu ${ye}-sub`]:{cursor:"initial",transition:[`background ${be} ${nt}`,`padding ${be} ${nt}`].join(",")},[`${ye}-title-content`]:{transition:`color ${be}`},[`${ye}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ye}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Bt,borderStyle:Sn,borderWidth:0,borderTopWidth:It,marginBlock:It,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(je)),{[`${ye}-item-group`]:{[`${ye}-item-group-list`]:{margin:0,padding:0,[`${ye}-item, ${ye}-submenu-title`]:{paddingInline:`${pe*2}px ${yt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:At,borderRadius:mn,boxShadow:"none",transformOrigin:"0 0",[`&${ye}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${fe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:fe},"\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:je.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:je.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:je.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:je.paddingXS},[`> ${ye}`]:Object.assign(Object.assign(Object.assign({borderRadius:mn},Je(je)),Gt(je)),{[`${ye}-item, ${ye}-submenu > ${ye}-submenu-title`]:{borderRadius:Qt},[`${ye}-submenu-title::after`]:{transition:`transform ${be} ${nt}`}})}}),Gt(je)),{[`&-inline-collapsed ${ye}-submenu-arrow,
|
|
&-inline ${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ht})`},"&::after":{transform:`rotate(45deg) translateX(-${Ht})`}},[`${ye}-submenu-open${ye}-submenu-inline > ${ye}-submenu-title > ${ye}-submenu-arrow`]:{transform:`translateY(-${Xt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ht})`},"&::before":{transform:`rotate(45deg) translateX(${Ht})`}}})},{[`${Be}-layout-header`]:{[ye]:{lineHeight:"inherit"}}}]};var Pt=(je,Be)=>(0,xt.Z)("Menu",pe=>{if(Be===!1)return[];const{colorBgElevated:be,colorPrimary:We,colorTextLightSolid:nt,controlHeightLG:ut,fontSize:yt,darkItemColor:Bt,darkDangerItemColor:It,darkItemBg:At,darkSubMenuItemBg:mn,darkItemSelectedColor:Qt,darkItemSelectedBg:Xt,darkDangerItemSelectedBg:Ht,darkItemHoverBg:Sn,darkGroupTitleColor:fe,darkItemHoverColor:Ce,darkItemDisabledColor:De,darkDangerItemHoverColor:ot,darkDangerItemSelectedColor:gt,darkDangerItemActiveBg:Et}=pe,$t=yt/7*5,vt=(0,Le.TS)(pe,{menuArrowSize:$t,menuHorizontalHeight:ut*1.15,menuArrowOffset:`${$t*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:be}),Ft=(0,Le.TS)(vt,{itemColor:Bt,itemHoverColor:Ce,groupTitleColor:fe,itemSelectedColor:Qt,itemBg:At,popupBg:At,subMenuItemBg:mn,itemActiveBg:"transparent",itemSelectedBg:Xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Sn,itemDisabledColor:De,dangerItemColor:It,dangerItemHoverColor:ot,dangerItemSelectedColor:gt,dangerItemActiveBg:Et,dangerItemSelectedBg:Ht,menuSubMenuBg:mn,horizontalItemSelectedColor:nt,horizontalItemSelectedBg:We});return[rt(vt),it(vt),Ie(vt),ln(vt,"light"),ln(Ft,"dark"),st(vt),(0,Ae.Z)(vt),(0,St.oN)(vt,"slide-up"),(0,St.oN)(vt,"slide-down"),(0,Ot._y)(vt,"zoom-big")]},pe=>{const{colorPrimary:be,colorError:We,colorTextDisabled:nt,colorErrorBg:ut,colorText:yt,colorTextDescription:Bt,colorBgContainer:It,colorFillAlter:At,colorFillContent:mn,lineWidth:Qt,lineWidthBold:Xt,controlItemBgActive:Ht,colorBgTextHover:Sn,controlHeightLG:fe,lineHeight:Ce,colorBgElevated:De,marginXXS:ot,padding:gt,fontSize:Et,controlHeightSM:$t,fontSizeLG:vt,colorTextLightSolid:Ft,colorErrorHover:jt}=pe,kt=new le.C(Ft).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:pe.zIndexPopupBase+50,radiusItem:pe.borderRadiusLG,itemBorderRadius:pe.borderRadiusLG,radiusSubMenuItem:pe.borderRadiusSM,subMenuItemBorderRadius:pe.borderRadiusSM,colorItemText:yt,itemColor:yt,colorItemTextHover:yt,itemHoverColor:yt,colorItemTextHoverHorizontal:be,horizontalItemHoverColor:be,colorGroupTitle:Bt,groupTitleColor:Bt,colorItemTextSelected:be,itemSelectedColor:be,colorItemTextSelectedHorizontal:be,horizontalItemSelectedColor:be,colorItemBg:It,itemBg:It,colorItemBgHover:Sn,itemHoverBg:Sn,colorItemBgActive:mn,itemActiveBg:Ht,colorSubItemBg:At,subMenuItemBg:At,colorItemBgSelected:Ht,itemSelectedBg:Ht,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Xt,activeBarHeight:Xt,colorActiveBarBorderSize:Qt,activeBarBorderWidth:Qt,colorItemTextDisabled:nt,itemDisabledColor:nt,colorDangerItemText:We,dangerItemColor:We,colorDangerItemTextHover:We,dangerItemHoverColor:We,colorDangerItemTextSelected:We,dangerItemSelectedColor:We,colorDangerItemBgActive:ut,dangerItemActiveBg:ut,colorDangerItemBgSelected:ut,dangerItemSelectedBg:ut,itemMarginInline:pe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:fe,groupTitleLineHeight:Ce,collapsedWidth:fe*2,popupBg:De,itemMarginBlock:ot,itemPaddingInline:gt,horizontalLineHeight:`${fe*1.15}px`,iconSize:Et,iconMarginInlineEnd:$t-Et,collapsedIconSize:vt,groupTitleFontSize:Et,darkItemDisabledColor:new le.C(Ft).setAlpha(.25).toRgbString(),darkItemColor:kt,darkDangerItemColor:We,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ft,darkItemSelectedBg:be,darkDangerItemSelectedBg:We,darkItemHoverBg:"transparent",darkGroupTitleColor:kt,darkItemHoverColor:Ft,darkDangerItemHoverColor:jt,darkDangerItemSelectedColor:Ft,darkDangerItemActiveBg:We}},{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"]]})(je),de=function(je,Be){var ye={};for(var pe in je)Object.prototype.hasOwnProperty.call(je,pe)&&Be.indexOf(pe)<0&&(ye[pe]=je[pe]);if(je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,pe=Object.getOwnPropertySymbols(je);be<pe.length;be++)Be.indexOf(pe[be])<0&&Object.prototype.propertyIsEnumerable.call(je,pe[be])&&(ye[pe[be]]=je[pe[be]]);return ye},Tt=(0,he.forwardRef)((je,Be)=>{var ye,pe;const be=he.useContext(oe.Z),We=be||{},{getPrefixCls:nt,getPopupContainer:ut,direction:yt,menu:Bt}=he.useContext(Ze.E_),It=nt(),{prefixCls:At,className:mn,style:Qt,theme:Xt="light",expandIcon:Ht,_internalDisableMenuItemTitleTooltip:Sn,inlineCollapsed:fe,siderCollapsed:Ce,items:De,children:ot,rootClassName:gt,mode:Et,selectable:$t,onClick:vt,overflowedIndicatorPopupClassName:Ft}=je,jt=de(je,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),kt=(0,He.Z)(jt,["collapsedWidth"]),en=se(De)||ot;(ye=We.validator)===null||ye===void 0||ye.call(We,{mode:Et});const qt=(0,ee.useEvent)(function(){var bn;vt==null||vt.apply(void 0,arguments),(bn=We.onClick)===null||bn===void 0||bn.call(We)}),fn=We.mode||Et,vn=$t!=null?$t:We.selectable,Jt=he.useMemo(()=>Ce!==void 0?Ce:fe,[fe,Ce]),Kt={horizontal:{motionName:`${It}-slide-up`},inline:(0,te.Z)(It),other:{motionName:`${It}-zoom-big`}},un=nt("menu",At||We.prefixCls),[hn,yn]=Pt(un,!be),sn=Se()(`${un}-${Xt}`,Bt==null?void 0:Bt.className,mn);let Fn;if(typeof Ht=="function")Fn=Ht;else if(Ht===null||Ht===!1)Fn=null;else if(We.expandIcon===null||We.expandIcon===!1)Fn=null;else{const bn=Ht!=null?Ht:We.expandIcon;Fn=(0,Oe.Tm)(bn,{className:Se()(`${un}-submenu-expand-icon`,(0,Oe.l$)(bn)?(pe=bn.props)===null||pe===void 0?void 0:pe.className:"")})}const jn=he.useMemo(()=>({prefixCls:un,inlineCollapsed:Jt||!1,direction:yt,firstLevel:!0,theme:Xt,mode:fn,disableMenuItemTitleTooltip:Sn}),[un,Jt,yt,Sn,Xt]);return hn(he.createElement(oe.Z.Provider,{value:null},he.createElement(a.Provider,{value:jn},he.createElement(ae.ZP,Object.assign({getPopupContainer:ut,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:Se()(un,`${un}-${Xt}`,Ft),mode:fn,selectable:vn,onClick:qt},kt,{inlineCollapsed:Jt,style:Object.assign(Object.assign({},Bt==null?void 0:Bt.style),Qt),className:sn,prefixCls:un,direction:yt,defaultMotions:Kt,expandIcon:Fn,ref:Be,rootClassName:Se()(gt,yn)}),en))))});const on=(0,he.forwardRef)((je,Be)=>{const ye=(0,he.useRef)(null),pe=he.useContext(Ve.D);return(0,he.useImperativeHandle)(Be,()=>({menu:ye.current,focus:be=>{var We;(We=ye.current)===null||We===void 0||We.focus(be)}})),he.createElement(Tt,Object.assign({ref:ye},je,pe))});on.Item=E,on.SubMenu=x,on.Divider=Ne,on.ItemGroup=ae.BW;var ft=on},38703:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return Sn}});var ae=re(67294),he=re(87725),Ve=re(18299),Ue=re(16646),Se=re(73475),Ze=re(94184),me=re.n(Ze),at=re(10366),Ne=re(53124),Te=re(87462),He=re(1413),Ge=re(45987),Oe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Ce=(0,ae.useRef)([]),De=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var ot=Date.now(),gt=!1;Ce.current.forEach(function(Et){if(Et){gt=!0;var $t=Et.style;$t.transitionDuration=".3s, .3s, .3s, .06s",De.current&&ot-De.current<100&&($t.transitionDuration="0s, 0s")}}),gt&&(De.current=Date.now())}),Ce.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ce){var De=(0,He.Z)((0,He.Z)({},Oe),Ce),ot=De.className,gt=De.percent,Et=De.prefixCls,$t=De.strokeColor,vt=De.strokeLinecap,Ft=De.strokeWidth,jt=De.style,kt=De.trailColor,en=De.trailWidth,qt=De.transition,fn=(0,Ge.Z)(De,a);delete fn.gapPosition;var vn=Array.isArray(gt)?gt:[gt],Jt=Array.isArray($t)?$t:[$t],Kt=ne(),un=Ft/2,hn=100-Ft/2,yn="M ".concat(vt==="round"?un:0,",").concat(un,`
|
|
L `).concat(vt==="round"?hn:100,",").concat(un),sn="0 0 100 ".concat(Ft),Fn=0;return ae.createElement("svg",(0,Te.Z)({className:me()("".concat(Et,"-line"),ot),viewBox:sn,preserveAspectRatio:"none",style:jt},fn),ae.createElement("path",{className:"".concat(Et,"-line-trail"),d:yn,strokeLinecap:vt,stroke:kt,strokeWidth:en||Ft,fillOpacity:"0"}),vn.map(function(jn,bn){var Mn=1;switch(vt){case"round":Mn=1-Ft/100;break;case"square":Mn=1-Ft/2/100;break;default:Mn=1;break}var _n={strokeDasharray:"".concat(jn*Mn,"px, 100px"),strokeDashoffset:"-".concat(Fn,"px"),transition:qt||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Zn=Jt[bn]||Jt[Jt.length-1];return Fn+=jn,ae.createElement("path",{key:bn,className:"".concat(Et,"-line-path"),d:yn,strokeLinecap:vt,stroke:Zn,strokeWidth:Ft,fillOpacity:"0",ref:function(ve){Kt[bn]=ve},style:_n})}))},E=y,b=re(71002),x=re(97685),z=re(98924),ee=0,te=(0,z.Z)();function oe(){var fe;return te?(fe=ee,ee+=1):fe="TEST_OR_SSR",fe}var ge=function(fe){var Ce=ae.useState(),De=(0,x.Z)(Ce,2),ot=De[0],gt=De[1];return ae.useEffect(function(){gt("rc_progress_".concat(oe()))},[]),fe||ot},ie=function(Ce){var De=Ce.bg,ot=Ce.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:De}},ot)};function se(fe,Ce){return Object.keys(fe).map(function(De){var ot=parseFloat(De),gt="".concat(Math.floor(ot*Ce),"%");return"".concat(fe[De]," ").concat(gt)})}var le=ae.forwardRef(function(fe,Ce){var De=fe.prefixCls,ot=fe.color,gt=fe.gradientId,Et=fe.radius,$t=fe.style,vt=fe.ptg,Ft=fe.strokeLinecap,jt=fe.strokeWidth,kt=fe.size,en=fe.gapDegree,qt=ot&&(0,b.Z)(ot)==="object",fn=qt?"#FFF":void 0,vn=kt/2,Jt=ae.createElement("circle",{className:"".concat(De,"-circle-path"),r:Et,cx:vn,cy:vn,stroke:fn,strokeLinecap:Ft,strokeWidth:jt,opacity:vt===0?0:1,style:$t,ref:Ce});if(!qt)return Jt;var Kt="".concat(gt,"-conic"),un=en?"".concat(180+en/2,"deg"):"0deg",hn=se(ot,(360-en)/360),yn=se(ot,1),sn="conic-gradient(from ".concat(un,", ").concat(hn.join(", "),")"),Fn="linear-gradient(to ".concat(en?"bottom":"top",", ").concat(yn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:Kt},Jt),ae.createElement("foreignObject",{x:0,y:0,width:kt,height:kt,mask:"url(#".concat(Kt,")")},ae.createElement(ie,{bg:Fn},ae.createElement(ie,{bg:sn}))))}),ke=le,Ae=100,St=function(Ce,De,ot,gt,Et,$t,vt,Ft,jt,kt){var en=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,qt=ot/100*360*((360-$t)/360),fn=$t===0?0:{bottom:0,top:180,left:90,right:-90}[vt],vn=(100-gt)/100*De;jt==="round"&>!==100&&(vn+=kt/2,vn>=De&&(vn=De-.01));var Jt=Ae/2;return{stroke:typeof Ft=="string"?Ft:void 0,strokeDasharray:"".concat(De,"px ").concat(Ce),strokeDashoffset:vn+en,transform:"rotate(".concat(Et+qt+fn,"deg)"),transformOrigin:"".concat(Jt,"px ").concat(Jt,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Ot=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function xt(fe){var Ce=fe!=null?fe:[];return Array.isArray(Ce)?Ce:[Ce]}var Le=function(Ce){var De=(0,He.Z)((0,He.Z)({},Oe),Ce),ot=De.id,gt=De.prefixCls,Et=De.steps,$t=De.strokeWidth,vt=De.trailWidth,Ft=De.gapDegree,jt=Ft===void 0?0:Ft,kt=De.gapPosition,en=De.trailColor,qt=De.strokeLinecap,fn=De.style,vn=De.className,Jt=De.strokeColor,Kt=De.percent,un=(0,Ge.Z)(De,Ot),hn=Ae/2,yn=ge(ot),sn="".concat(yn,"-gradient"),Fn=hn-$t/2,jn=Math.PI*2*Fn,bn=jt>0?90+jt/2:-90,Mn=jn*((360-jt)/360),_n=(0,b.Z)(Et)==="object"?Et:{count:Et,space:2},Zn=_n.count,ce=_n.space,ve=xt(Kt),Pe=xt(Jt),_e=Pe.find(function(Un){return Un&&(0,b.Z)(Un)==="object"}),pt=_e&&(0,b.Z)(_e)==="object",wt=pt?"butt":qt,Pn=St(jn,Mn,0,100,bn,jt,kt,en,wt,$t),Ut=ne(),rn=function(){var Ye=0;return ve.map(function(tn,ue){var Ee=Pe[ue]||Pe[Pe.length-1],we=St(jn,Mn,Ye,tn,bn,jt,kt,Ee,wt,$t);return Ye+=tn,ae.createElement(ke,{key:ue,color:Ee,ptg:tn,radius:Fn,prefixCls:gt,gradientId:sn,style:we,strokeLinecap:wt,strokeWidth:$t,gapDegree:jt,ref:function(Qe){Ut[ue]=Qe},size:Ae})}).reverse()},Cn=function(){var Ye=Math.round(Zn*(ve[0]/100)),tn=100/Zn,ue=0;return new Array(Zn).fill(null).map(function(Ee,we){var xe=we<=Ye-1?Pe[0]:en,Qe=xe&&(0,b.Z)(xe)==="object"?"url(#".concat(sn,")"):void 0,Re=St(jn,Mn,ue,tn,bn,jt,kt,xe,"butt",$t,ce);return ue+=(Mn-Re.strokeDashoffset+ce)*100/Mn,ae.createElement("circle",{key:we,className:"".concat(gt,"-circle-path"),r:Fn,cx:hn,cy:hn,stroke:Qe,strokeWidth:$t,opacity:1,style:Re,ref:function(Me){Ut[we]=Me}})})};return ae.createElement("svg",(0,Te.Z)({className:me()("".concat(gt,"-circle"),vn),viewBox:"0 0 ".concat(Ae," ").concat(Ae),style:fn,id:ot,role:"presentation"},un),!Zn&&ae.createElement("circle",{className:"".concat(gt,"-circle-trail"),r:Fn,cx:hn,cy:hn,stroke:en,strokeLinecap:wt,strokeWidth:vt||$t,style:Pn}),Zn?Cn():rn())},et=Le,it={Line:E,Circle:et},tt=re(83062),st=re(47448);function Rt(fe){return!fe||fe<0?0:fe>100?100:fe}function Zt(fe){let{success:Ce,successPercent:De}=fe,ot=De;return Ce&&"progress"in Ce&&(ot=Ce.progress),Ce&&"percent"in Ce&&(ot=Ce.percent),ot}const ln=fe=>{let{percent:Ce,success:De,successPercent:ot}=fe;const gt=Rt(Zt({success:De,successPercent:ot}));return[gt,Rt(Rt(Ce)-gt)]},pn=fe=>{let{success:Ce={},strokeColor:De}=fe;const{strokeColor:ot}=Ce;return[ot||st.presetPrimaryColors.green,De||null]},Fe=(fe,Ce,De)=>{var ot,gt,Et,$t;let vt=-1,Ft=-1;if(Ce==="step"){const jt=De.steps,kt=De.strokeWidth;typeof fe=="string"||typeof fe=="undefined"?(vt=fe==="small"?2:14,Ft=kt!=null?kt:8):typeof fe=="number"?[vt,Ft]=[fe,fe]:[vt=14,Ft=8]=fe,vt*=jt}else if(Ce==="line"){const jt=De==null?void 0:De.strokeWidth;typeof fe=="string"||typeof fe=="undefined"?Ft=jt||(fe==="small"?6:8):typeof fe=="number"?[vt,Ft]=[fe,fe]:[vt=-1,Ft=8]=fe}else(Ce==="circle"||Ce==="dashboard")&&(typeof fe=="string"||typeof fe=="undefined"?[vt,Ft]=fe==="small"?[60,60]:[120,120]:typeof fe=="number"?[vt,Ft]=[fe,fe]:(vt=(gt=(ot=fe[0])!==null&&ot!==void 0?ot:fe[1])!==null&>!==void 0?gt:120,Ft=($t=(Et=fe[0])!==null&&Et!==void 0?Et:fe[1])!==null&&$t!==void 0?$t:120));return[vt,Ft]},Ie=3,Je=fe=>Ie/fe*100;var rt=fe=>{const{prefixCls:Ce,trailColor:De=null,strokeLinecap:ot="round",gapPosition:gt,gapDegree:Et,width:$t=120,type:vt,children:Ft,success:jt,size:kt=$t}=fe,[en,qt]=Fe(kt,"circle");let{strokeWidth:fn}=fe;fn===void 0&&(fn=Math.max(Je(en),6));const vn={width:en,height:qt,fontSize:en*.15+6},Jt=ae.useMemo(()=>{if(Et||Et===0)return Et;if(vt==="dashboard")return 75},[Et,vt]),Kt=gt||vt==="dashboard"&&"bottom"||void 0,un=Object.prototype.toString.call(fe.strokeColor)==="[object Object]",hn=pn({success:jt,strokeColor:fe.strokeColor}),yn=me()(`${Ce}-inner`,{[`${Ce}-circle-gradient`]:un}),sn=ae.createElement(et,{percent:ln(fe),strokeWidth:fn,trailWidth:fn,strokeColor:hn,strokeLinecap:ot,trailColor:De,prefixCls:Ce,gapDegree:Jt,gapPosition:Kt});return ae.createElement("div",{className:yn,style:vn},en<=20?ae.createElement(tt.Z,{title:Ft},ae.createElement("span",null,sn)):ae.createElement(ae.Fragment,null,sn,Ft))},Pt=function(fe,Ce){var De={};for(var ot in fe)Object.prototype.hasOwnProperty.call(fe,ot)&&Ce.indexOf(ot)<0&&(De[ot]=fe[ot]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,ot=Object.getOwnPropertySymbols(fe);gt<ot.length;gt++)Ce.indexOf(ot[gt])<0&&Object.prototype.propertyIsEnumerable.call(fe,ot[gt])&&(De[ot[gt]]=fe[ot[gt]]);return De};const de=fe=>{let Ce=[];return Object.keys(fe).forEach(De=>{const ot=parseFloat(De.replace(/%/g,""));isNaN(ot)||Ce.push({key:ot,value:fe[De]})}),Ce=Ce.sort((De,ot)=>De.key-ot.key),Ce.map(De=>{let{key:ot,value:gt}=De;return`${gt} ${ot}%`}).join(", ")},dt=(fe,Ce)=>{const{from:De=st.presetPrimaryColors.blue,to:ot=st.presetPrimaryColors.blue,direction:gt=Ce==="rtl"?"to left":"to right"}=fe,Et=Pt(fe,["from","to","direction"]);if(Object.keys(Et).length!==0){const $t=de(Et);return{backgroundImage:`linear-gradient(${gt}, ${$t})`}}return{backgroundImage:`linear-gradient(${gt}, ${De}, ${ot})`}};var on=fe=>{const{prefixCls:Ce,direction:De,percent:ot,size:gt,strokeWidth:Et,strokeColor:$t,strokeLinecap:vt="round",children:Ft,trailColor:jt=null,success:kt}=fe,en=$t&&typeof $t!="string"?dt($t,De):{backgroundColor:$t},qt=vt==="square"||vt==="butt"?0:void 0,fn={backgroundColor:jt||void 0,borderRadius:qt},vn=gt!=null?gt:[-1,Et||(gt==="small"?6:8)],[Jt,Kt]=Fe(vn,"line",{strokeWidth:Et}),un=Object.assign({width:`${Rt(ot)}%`,height:Kt,borderRadius:qt},en),hn=Zt(fe),yn={width:`${Rt(hn)}%`,height:Kt,borderRadius:qt,backgroundColor:kt==null?void 0:kt.strokeColor},sn={width:Jt<0?"100%":Jt,height:Kt};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Ce}-outer`,style:sn},ae.createElement("div",{className:`${Ce}-inner`,style:fn},ae.createElement("div",{className:`${Ce}-bg`,style:un}),hn!==void 0?ae.createElement("div",{className:`${Ce}-success-bg`,style:yn}):null)),Ft)},je=fe=>{const{size:Ce,steps:De,percent:ot=0,strokeWidth:gt=8,strokeColor:Et,trailColor:$t=null,prefixCls:vt,children:Ft}=fe,jt=Math.round(De*(ot/100)),kt=Ce==="small"?2:14,en=Ce!=null?Ce:[kt,gt],[qt,fn]=Fe(en,"step",{steps:De,strokeWidth:gt}),vn=qt/De,Jt=new Array(De);for(let Kt=0;Kt<De;Kt++){const un=Array.isArray(Et)?Et[Kt]:Et;Jt[Kt]=ae.createElement("div",{key:Kt,className:me()(`${vt}-steps-item`,{[`${vt}-steps-item-active`]:Kt<=jt-1}),style:{backgroundColor:Kt<=jt-1?un:$t,width:vn,height:fn}})}return ae.createElement("div",{className:`${vt}-steps-outer`},Jt,Ft)},Be=re(45930),ye=re(14747),pe=re(67968),be=re(45503);const We=fe=>{const Ce=fe?"100%":"-100%";return new Be.Keyframes(`antProgress${fe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ce}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ce}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},nt=fe=>{const{componentCls:Ce,iconCls:De}=fe;return{[Ce]:Object.assign(Object.assign({},(0,ye.Wf)(fe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:fe.fontSize,marginInlineEnd:fe.marginXS,marginBottom:fe.marginXS},[`${Ce}-outer`]:{display:"inline-block",width:"100%"},[`&${Ce}-show-info`]:{[`${Ce}-outer`]:{marginInlineEnd:`calc(-2em - ${fe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${fe.paddingXS}px)`}},[`${Ce}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:fe.remainingColor,borderRadius:fe.lineBorderRadius},[`${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:fe.defaultColor}},[`${Ce}-success-bg, ${Ce}-bg`]:{position:"relative",backgroundColor:fe.defaultColor,borderRadius:fe.lineBorderRadius,transition:`all ${fe.motionDurationSlow} ${fe.motionEaseInOutCirc}`},[`${Ce}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:fe.colorSuccess},[`${Ce}-text`]:{display:"inline-block",width:"2em",marginInlineStart:fe.marginXS,color:fe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[De]:{fontSize:fe.fontSize}},[`&${Ce}-status-active`]:{[`${Ce}-bg::before`]:{position:"absolute",inset:0,backgroundColor:fe.colorBgContainer,borderRadius:fe.lineBorderRadius,opacity:0,animationName:We(),animationDuration:fe.progressActiveMotionDuration,animationTimingFunction:fe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ce}-rtl${Ce}-status-active`]:{[`${Ce}-bg::before`]:{animationName:We(!0)}},[`&${Ce}-status-exception`]:{[`${Ce}-bg`]:{backgroundColor:fe.colorError},[`${Ce}-text`]:{color:fe.colorError}},[`&${Ce}-status-exception ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:fe.colorError}},[`&${Ce}-status-success`]:{[`${Ce}-bg`]:{backgroundColor:fe.colorSuccess},[`${Ce}-text`]:{color:fe.colorSuccess}},[`&${Ce}-status-success ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:fe.colorSuccess}}})}},ut=fe=>{const{componentCls:Ce,iconCls:De}=fe;return{[Ce]:{[`${Ce}-circle-trail`]:{stroke:fe.remainingColor},[`&${Ce}-circle ${Ce}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ce}-circle ${Ce}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:fe.circleTextColor,fontSize:fe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[De]:{fontSize:`${fe.fontSize/fe.fontSizeSM}em`}},[`${Ce}-circle&-status-exception`]:{[`${Ce}-text`]:{color:fe.colorError}},[`${Ce}-circle&-status-success`]:{[`${Ce}-text`]:{color:fe.colorSuccess}}},[`${Ce}-inline-circle`]:{lineHeight:1,[`${Ce}-inner`]:{verticalAlign:"bottom"}}}},yt=fe=>{const{componentCls:Ce}=fe;return{[Ce]:{[`${Ce}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:fe.progressStepMinWidth,marginInlineEnd:fe.progressStepMarginInlineEnd,backgroundColor:fe.remainingColor,transition:`all ${fe.motionDurationSlow}`,"&-active":{backgroundColor:fe.defaultColor}}}}}},Bt=fe=>{const{componentCls:Ce,iconCls:De}=fe;return{[Ce]:{[`${Ce}-small&-line, ${Ce}-small&-line ${Ce}-text ${De}`]:{fontSize:fe.fontSizeSM}}}};var It=(0,pe.Z)("Progress",fe=>{const Ce=fe.marginXXS/2,De=(0,be.TS)(fe,{progressStepMarginInlineEnd:Ce,progressStepMinWidth:Ce,progressActiveMotionDuration:"2.4s"});return[nt(De),ut(De),yt(De),Bt(De)]},fe=>({circleTextColor:fe.colorText,defaultColor:fe.colorInfo,remainingColor:fe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),At=function(fe,Ce){var De={};for(var ot in fe)Object.prototype.hasOwnProperty.call(fe,ot)&&Ce.indexOf(ot)<0&&(De[ot]=fe[ot]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,ot=Object.getOwnPropertySymbols(fe);gt<ot.length;gt++)Ce.indexOf(ot[gt])<0&&Object.prototype.propertyIsEnumerable.call(fe,ot[gt])&&(De[ot[gt]]=fe[ot[gt]]);return De};const mn=null,Qt=["normal","exception","active","success"];var Ht=ae.forwardRef((fe,Ce)=>{const{prefixCls:De,className:ot,rootClassName:gt,steps:Et,strokeColor:$t,percent:vt=0,size:Ft="default",showInfo:jt=!0,type:kt="line",status:en,format:qt,style:fn}=fe,vn=At(fe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Jt=ae.useMemo(()=>{var ve,Pe;const _e=Zt(fe);return parseInt(_e!==void 0?(ve=_e!=null?_e:0)===null||ve===void 0?void 0:ve.toString():(Pe=vt!=null?vt:0)===null||Pe===void 0?void 0:Pe.toString(),10)},[vt,fe.success,fe.successPercent]),Kt=ae.useMemo(()=>!Qt.includes(en)&&Jt>=100?"success":en||"normal",[en,Jt]),{getPrefixCls:un,direction:hn,progress:yn}=ae.useContext(Ne.E_),sn=un("progress",De),[Fn,jn]=It(sn),bn=ae.useMemo(()=>{if(!jt)return null;const ve=Zt(fe);let Pe;const _e=qt||(wt=>`${wt}%`),pt=kt==="line";return qt||Kt!=="exception"&&Kt!=="success"?Pe=_e(Rt(vt),Rt(ve)):Kt==="exception"?Pe=pt?ae.createElement(Ue.Z,null):ae.createElement(Se.Z,null):Kt==="success"&&(Pe=pt?ae.createElement(he.Z,null):ae.createElement(Ve.Z,null)),ae.createElement("span",{className:`${sn}-text`,title:typeof Pe=="string"?Pe:void 0},Pe)},[jt,vt,Jt,Kt,kt,sn,qt]),Mn=Array.isArray($t)?$t[0]:$t,_n=typeof $t=="string"||Array.isArray($t)?$t:void 0;let Zn;kt==="line"?Zn=Et?ae.createElement(je,Object.assign({},fe,{strokeColor:_n,prefixCls:sn,steps:Et}),bn):ae.createElement(on,Object.assign({},fe,{strokeColor:Mn,prefixCls:sn,direction:hn}),bn):(kt==="circle"||kt==="dashboard")&&(Zn=ae.createElement(rt,Object.assign({},fe,{strokeColor:Mn,prefixCls:sn,progressStatus:Kt}),bn));const ce=me()(sn,`${sn}-status-${Kt}`,`${sn}-${kt==="dashboard"&&"circle"||Et&&"steps"||kt}`,{[`${sn}-inline-circle`]:kt==="circle"&&Fe(Ft,"circle")[0]<=20,[`${sn}-show-info`]:jt,[`${sn}-${Ft}`]:typeof Ft=="string",[`${sn}-rtl`]:hn==="rtl"},yn==null?void 0:yn.className,ot,gt,jn);return Fn(ae.createElement("div",Object.assign({ref:Ce,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),fn),className:ce,role:"progressbar","aria-valuenow":Jt},(0,at.Z)(vn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Zn))}),Sn=Ht},59810:function($e,lt,re){"use strict";re.d(lt,{default:function(){return tn}});var ae=re(67294),he=re(74902),Ve=re(94184),Ue=re.n(Ve),Se=re(87462),Ze=re(15671),me=re(43144),at=re(60136),Ne=re(51630),Te=re(4942),He=re(45987),Ge=re(74165),Oe=re(71002),ne=re(15861),a=re(64217);function y(ue,Ee){var we="cannot ".concat(ue.method," ").concat(ue.action," ").concat(Ee.status,"'"),xe=new Error(we);return xe.status=Ee.status,xe.method=ue.method,xe.url=ue.action,xe}function E(ue){var Ee=ue.responseText||ue.response;if(!Ee)return Ee;try{return JSON.parse(Ee)}catch(we){return Ee}}function b(ue){var Ee=new XMLHttpRequest;ue.onProgress&&Ee.upload&&(Ee.upload.onprogress=function(Re){Re.total>0&&(Re.percent=Re.loaded/Re.total*100),ue.onProgress(Re)});var we=new FormData;ue.data&&Object.keys(ue.data).forEach(function(Qe){var Re=ue.data[Qe];if(Array.isArray(Re)){Re.forEach(function(Xe){we.append("".concat(Qe,"[]"),Xe)});return}we.append(Qe,Re)}),ue.file instanceof Blob?we.append(ue.filename,ue.file,ue.file.name):we.append(ue.filename,ue.file),Ee.onerror=function(Re){ue.onError(Re)},Ee.onload=function(){return Ee.status<200||Ee.status>=300?ue.onError(y(ue,Ee),E(Ee)):ue.onSuccess(E(Ee),Ee)},Ee.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in Ee&&(Ee.withCredentials=!0);var xe=ue.headers||{};return xe["X-Requested-With"]!==null&&Ee.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(xe).forEach(function(Qe){xe[Qe]!==null&&Ee.setRequestHeader(Qe,xe[Qe])}),Ee.send(we),{abort:function(){Ee.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=re(80334),oe=function(ue,Ee){if(ue&&Ee){var we=Array.isArray(Ee)?Ee:Ee.split(","),xe=ue.name||"",Qe=ue.type||"",Re=Qe.replace(/\/.*$/,"");return we.some(function(Xe){var Me=Xe.trim();if(/^\*(\/\*)?$/.test(Xe))return!0;if(Me.charAt(0)==="."){var zt=xe.toLowerCase(),Lt=Me.toLowerCase(),Dt=[Lt];return(Lt===".jpg"||Lt===".jpeg")&&(Dt=[".jpg",".jpeg"]),Dt.some(function(Vt){return zt.endsWith(Vt)})}return/\/\*$/.test(Me)?Re===Me.replace(/\/.*$/,""):Qe===Me?!0:/^\w+$/.test(Me)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Me,"'.Skip for check.")),!0):!1})}return!0};function ge(ue,Ee){var we=ue.createReader(),xe=[];function Qe(){we.readEntries(function(Re){var Xe=Array.prototype.slice.apply(Re);xe=xe.concat(Xe);var Me=!Xe.length;Me?Ee(xe):Qe()})}Qe()}var ie=function(Ee,we,xe){var Qe=function Re(Xe,Me){Xe&&(Xe.path=Me||"",Xe.isFile?Xe.file(function(zt){xe(zt)&&(Xe.fullPath&&!zt.webkitRelativePath&&(Object.defineProperties(zt,{webkitRelativePath:{writable:!0}}),zt.webkitRelativePath=Xe.fullPath.replace(/^\//,""),Object.defineProperties(zt,{webkitRelativePath:{writable:!1}})),we([zt]))}):Xe.isDirectory&&ge(Xe,function(zt){zt.forEach(function(Lt){Re(Lt,"".concat(Me).concat(Xe.name,"/"))})}))};Ee.forEach(function(Re){Qe(Re.webkitGetAsEntry())})},se=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ke=function(ue){(0,at.Z)(we,ue);var Ee=(0,Ne.Z)(we);function we(){var xe;(0,Ze.Z)(this,we);for(var Qe=arguments.length,Re=new Array(Qe),Xe=0;Xe<Qe;Xe++)Re[Xe]=arguments[Xe];return xe=Ee.call.apply(Ee,[this].concat(Re)),xe.state={uid:ee()},xe.reqs={},xe.fileInput=void 0,xe._isMounted=void 0,xe.onChange=function(Me){var zt=xe.props,Lt=zt.accept,Dt=zt.directory,Vt=Me.target.files,gn=(0,he.Z)(Vt).filter(function(ze){return!Dt||oe(ze,Lt)});xe.uploadFiles(gn),xe.reset()},xe.onClick=function(Me){var zt=xe.fileInput;if(zt){var Lt=xe.props,Dt=Lt.children,Vt=Lt.onClick;if(Dt&&Dt.type==="button"){var gn=zt.parentNode;gn.focus(),gn.querySelector("button").blur()}zt.click(),Vt&&Vt(Me)}},xe.onKeyDown=function(Me){Me.key==="Enter"&&xe.onClick(Me)},xe.onFileDrop=function(Me){var zt=xe.props.multiple;if(Me.preventDefault(),Me.type!=="dragover")if(xe.props.directory)se(Array.prototype.slice.call(Me.dataTransfer.items),xe.uploadFiles,function(Dt){return oe(Dt,xe.props.accept)});else{var Lt=(0,he.Z)(Me.dataTransfer.files).filter(function(Dt){return oe(Dt,xe.props.accept)});zt===!1&&(Lt=Lt.slice(0,1)),xe.uploadFiles(Lt)}},xe.uploadFiles=function(Me){var zt=(0,he.Z)(Me),Lt=zt.map(function(Dt){return Dt.uid=ee(),xe.processFile(Dt,zt)});Promise.all(Lt).then(function(Dt){var Vt=xe.props.onBatchStart;Vt==null||Vt(Dt.map(function(gn){var ze=gn.origin,Hn=gn.parsedFile;return{file:ze,parsedFile:Hn}})),Dt.filter(function(gn){return gn.parsedFile!==null}).forEach(function(gn){xe.post(gn)})})},xe.processFile=function(){var Me=(0,ne.Z)((0,Ge.Z)().mark(function zt(Lt,Dt){var Vt,gn,ze,Hn,Tn,Wn,wn,Ke,ct;return(0,Ge.Z)().wrap(function(qe){for(;;)switch(qe.prev=qe.next){case 0:if(Vt=xe.props.beforeUpload,gn=Lt,!Vt){qe.next=14;break}return qe.prev=3,qe.next=6,Vt(Lt,Dt);case 6:gn=qe.sent,qe.next=12;break;case 9:qe.prev=9,qe.t0=qe.catch(3),gn=!1;case 12:if(gn!==!1){qe.next=14;break}return qe.abrupt("return",{origin:Lt,parsedFile:null,action:null,data:null});case 14:if(ze=xe.props.action,typeof ze!="function"){qe.next=21;break}return qe.next=18,ze(Lt);case 18:Hn=qe.sent,qe.next=22;break;case 21:Hn=ze;case 22:if(Tn=xe.props.data,typeof Tn!="function"){qe.next=29;break}return qe.next=26,Tn(Lt);case 26:Wn=qe.sent,qe.next=30;break;case 29:Wn=Tn;case 30:return wn=((0,Oe.Z)(gn)==="object"||typeof gn=="string")&&gn?gn:Lt,wn instanceof File?Ke=wn:Ke=new File([wn],Lt.name,{type:Lt.type}),ct=Ke,ct.uid=Lt.uid,qe.abrupt("return",{origin:Lt,data:Wn,parsedFile:ct,action:Hn});case 35:case"end":return qe.stop()}},zt,null,[[3,9]])}));return function(zt,Lt){return Me.apply(this,arguments)}}(),xe.saveFileInput=function(Me){xe.fileInput=Me},xe}return(0,me.Z)(we,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Qe){var Re=this,Xe=Qe.data,Me=Qe.origin,zt=Qe.action,Lt=Qe.parsedFile;if(this._isMounted){var Dt=this.props,Vt=Dt.onStart,gn=Dt.customRequest,ze=Dt.name,Hn=Dt.headers,Tn=Dt.withCredentials,Wn=Dt.method,wn=Me.uid,Ke=gn||b,ct={action:zt,filename:ze,data:Xe,file:Lt,headers:Hn,withCredentials:Tn,method:Wn||"post",onProgress:function(qe){var _t=Re.props.onProgress;_t==null||_t(qe,Lt)},onSuccess:function(qe,_t){var Yt=Re.props.onSuccess;Yt==null||Yt(qe,Lt,_t),delete Re.reqs[wn]},onError:function(qe,_t){var Yt=Re.props.onError;Yt==null||Yt(qe,_t,Lt),delete Re.reqs[wn]}};Vt(Me),this.reqs[wn]=Ke(ct)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Qe){var Re=this.reqs;if(Qe){var Xe=Qe.uid?Qe.uid:Qe;Re[Xe]&&Re[Xe].abort&&Re[Xe].abort(),delete Re[Xe]}else Object.keys(Re).forEach(function(Me){Re[Me]&&Re[Me].abort&&Re[Me].abort(),delete Re[Me]})}},{key:"render",value:function(){var Qe,Re=this.props,Xe=Re.component,Me=Re.prefixCls,zt=Re.className,Lt=Re.disabled,Dt=Re.id,Vt=Re.style,gn=Re.multiple,ze=Re.accept,Hn=Re.capture,Tn=Re.children,Wn=Re.directory,wn=Re.openFileDialogOnClick,Ke=Re.onMouseEnter,ct=Re.onMouseLeave,Nt=(0,He.Z)(Re,le),qe=Ue()((Qe={},(0,Te.Z)(Qe,Me,!0),(0,Te.Z)(Qe,"".concat(Me,"-disabled"),Lt),(0,Te.Z)(Qe,zt,zt),Qe)),_t=Wn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Yt=Lt?{}:{onClick:wn?this.onClick:function(){},onKeyDown:wn?this.onKeyDown:function(){},onMouseEnter:Ke,onMouseLeave:ct,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Xe,(0,Se.Z)({},Yt,{className:qe,role:"button",style:Vt}),ae.createElement("input",(0,Se.Z)({},(0,a.Z)(Nt,{aria:!0,data:!0}),{id:Dt,disabled:Lt,type:"file",ref:this.saveFileInput,onClick:function(En){return En.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ze},_t,{multiple:gn,onChange:this.onChange},Hn!=null?{capture:Hn}:{})),Tn)}}]),we}(ae.Component),Ae=ke;function St(){}var Ot=function(ue){(0,at.Z)(we,ue);var Ee=(0,Ne.Z)(we);function we(){var xe;(0,Ze.Z)(this,we);for(var Qe=arguments.length,Re=new Array(Qe),Xe=0;Xe<Qe;Xe++)Re[Xe]=arguments[Xe];return xe=Ee.call.apply(Ee,[this].concat(Re)),xe.uploader=void 0,xe.saveUploader=function(Me){xe.uploader=Me},xe}return(0,me.Z)(we,[{key:"abort",value:function(Qe){this.uploader.abort(Qe)}},{key:"render",value:function(){return ae.createElement(Ae,(0,Se.Z)({},this.props,{ref:this.saveUploader}))}}]),we}(ae.Component);Ot.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:St,onError:St,onSuccess:St,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var xt=Ot,Le=xt,et=re(5663),it=re(73935),tt=re(53124),st=re(98866),Rt=re(10110),Zt=re(24457),ln={icon:function(Ee,we){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:we}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Ee}}]}},name:"file",theme:"twotone"},pn=ln,Fe=re(74643),Ie=function(Ee,we){return ae.createElement(Fe.Z,(0,Se.Z)({},Ee,{ref:we,icon:pn}))},Je=ae.forwardRef(Ie),Gt=re(3407),rt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Pt=rt,de=function(Ee,we){return ae.createElement(Fe.Z,(0,Se.Z)({},Ee,{ref:we,icon:Pt}))},dt=ae.forwardRef(de),Tt={icon:function(Ee,we){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Ee}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:we}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:we}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:we}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Ee}}]}},name:"picture",theme:"twotone"},on=Tt,ft=function(Ee,we){return ae.createElement(Fe.Z,(0,Se.Z)({},Ee,{ref:we,icon:on}))},je=ae.forwardRef(ft),Be=re(38379),ye=re(57838),pe=re(33603),be=re(96159),We=re(71577);function nt(ue){return Object.assign(Object.assign({},ue),{lastModified:ue.lastModified,lastModifiedDate:ue.lastModifiedDate,name:ue.name,size:ue.size,type:ue.type,uid:ue.uid,percent:0,originFileObj:ue})}function ut(ue,Ee){const we=(0,he.Z)(Ee),xe=we.findIndex(Qe=>{let{uid:Re}=Qe;return Re===ue.uid});return xe===-1?we.push(ue):we[xe]=ue,we}function yt(ue,Ee){const we=ue.uid!==void 0?"uid":"name";return Ee.filter(xe=>xe[we]===ue[we])[0]}function Bt(ue,Ee){const we=ue.uid!==void 0?"uid":"name",xe=Ee.filter(Qe=>Qe[we]!==ue[we]);return xe.length===Ee.length?null:xe}const It=function(){const Ee=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),xe=Ee[Ee.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(xe)||[""])[0]},At=ue=>ue.indexOf("image/")===0,mn=ue=>{if(ue.type&&!ue.thumbUrl)return At(ue.type);const Ee=ue.thumbUrl||ue.url||"",we=It(Ee);return/^data:image\//.test(Ee)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(we)?!0:!(/^data:/.test(Ee)||we)},Qt=200;function Xt(ue){return new Promise(Ee=>{if(!ue.type||!At(ue.type)){Ee("");return}const we=document.createElement("canvas");we.width=Qt,we.height=Qt,we.style.cssText=`position: fixed; left: 0; top: 0; width: ${Qt}px; height: ${Qt}px; z-index: 9999; display: none;`,document.body.appendChild(we);const xe=we.getContext("2d"),Qe=new Image;if(Qe.onload=()=>{const{width:Re,height:Xe}=Qe;let Me=Qt,zt=Qt,Lt=0,Dt=0;Re>Xe?(zt=Xe*(Qt/Re),Dt=-(zt-Me)/2):(Me=Re*(Qt/Xe),Lt=-(Me-zt)/2),xe.drawImage(Qe,Lt,Dt,Me,zt);const Vt=we.toDataURL();document.body.removeChild(we),window.URL.revokeObjectURL(Qe.src),Ee(Vt)},Qe.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const Re=new FileReader;Re.onload=()=>{Re.result&&(Qe.src=Re.result)},Re.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const Re=new FileReader;Re.onload=()=>{Re.result&&Ee(Re.result)},Re.readAsDataURL(ue)}else Qe.src=window.URL.createObjectURL(ue)})}var Ht=re(84249),Sn=re(90674),fe=re(99569),Ce=re(38703),De=re(83062),gt=ae.forwardRef((ue,Ee)=>{let{prefixCls:we,className:xe,style:Qe,locale:Re,listType:Xe,file:Me,items:zt,progress:Lt,iconRender:Dt,actionIconRender:Vt,itemRender:gn,isImgUrl:ze,showPreviewIcon:Hn,showRemoveIcon:Tn,showDownloadIcon:Wn,previewIcon:wn,removeIcon:Ke,downloadIcon:ct,onPreview:Nt,onDownload:qe,onClose:_t}=ue;var Yt,Bn;const{status:En}=Me,[xn,ia]=ae.useState(En);ae.useEffect(()=>{En!=="removed"&&ia(En)},[En]);const[ta,ca]=ae.useState(!1);ae.useEffect(()=>{const Nn=setTimeout(()=>{ca(!0)},300);return()=>{clearTimeout(Nn)}},[]);const da=Dt(Me);let Yn=ae.createElement("div",{className:`${we}-icon`},da);if(Xe==="picture"||Xe==="picture-card"||Xe==="picture-circle")if(xn==="uploading"||!Me.thumbUrl&&!Me.url){const Nn=Ue()(`${we}-list-item-thumbnail`,{[`${we}-list-item-file`]:xn!=="uploading"});Yn=ae.createElement("div",{className:Nn},da)}else{const Nn=ze!=null&&ze(Me)?ae.createElement("img",{src:Me.thumbUrl||Me.url,alt:Me.name,className:`${we}-list-item-image`,crossOrigin:Me.crossOrigin}):da,On=Ue()(`${we}-list-item-thumbnail`,{[`${we}-list-item-file`]:ze&&!ze(Me)});Yn=ae.createElement("a",{className:On,onClick:aa=>Nt(Me,aa),href:Me.url||Me.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Nn)}const $n=Ue()(`${we}-list-item`,`${we}-list-item-${xn}`),la=typeof Me.linkProps=="string"?JSON.parse(Me.linkProps):Me.linkProps,sa=Tn?Vt((typeof Ke=="function"?Ke(Me):Ke)||ae.createElement(Ht.Z,null),()=>_t(Me),we,Re.removeFile):null,ma=Wn&&xn==="done"?Vt((typeof ct=="function"?ct(Me):ct)||ae.createElement(Sn.Z,null),()=>qe(Me),we,Re.downloadFile):null,Qn=Xe!=="picture-card"&&Xe!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ue()(`${we}-list-item-actions`,{picture:Xe==="picture"})},ma,sa),Xn=Ue()(`${we}-list-item-name`),oa=Me.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Xn,title:Me.name},la,{href:Me.url,onClick:Nn=>Nt(Me,Nn)}),Me.name),Qn]:[ae.createElement("span",{key:"view",className:Xn,onClick:Nn=>Nt(Me,Nn),title:Me.name},Me.name),Qn],Wt={pointerEvents:"none",opacity:.5},zn=Hn?ae.createElement("a",{href:Me.url||Me.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Me.url||Me.thumbUrl?void 0:Wt,onClick:Nn=>Nt(Me,Nn),title:Re.previewFile},typeof wn=="function"?wn(Me):wn||ae.createElement(fe.Z,null)):null,Jn=(Xe==="picture-card"||Xe==="picture-circle")&&xn!=="uploading"&&ae.createElement("span",{className:`${we}-list-item-actions`},zn,xn==="done"&&ma,sa),{getPrefixCls:Vn}=ae.useContext(tt.E_),na=Vn(),In=ae.createElement("div",{className:$n},Yn,oa,Jn,ta&&ae.createElement(Be.default,{motionName:`${na}-fade`,visible:xn==="uploading",motionDeadline:2e3},Nn=>{let{className:On}=Nn;const aa="percent"in Me?ae.createElement(Ce.Z,Object.assign({},Lt,{type:"line",percent:Me.percent,"aria-label":Me["aria-label"],"aria-labelledby":Me["aria-labelledby"]})):null;return ae.createElement("div",{className:Ue()(`${we}-list-item-progress`,On)},aa)})),Sa=Me.response&&typeof Me.response=="string"?Me.response:((Yt=Me.error)===null||Yt===void 0?void 0:Yt.statusText)||((Bn=Me.error)===null||Bn===void 0?void 0:Bn.message)||Re.uploadError,qn=xn==="error"?ae.createElement(De.Z,{title:Sa,getPopupContainer:Nn=>Nn.parentNode},In):In;return ae.createElement("div",{className:Ue()(`${we}-list-item-container`,xe),style:Qe,ref:Ee},gn?gn(qn,Me,zt,{download:qe.bind(null,Me),preview:Nt.bind(null,Me),remove:_t.bind(null,Me)}):qn)});const Et=(ue,Ee)=>{const{listType:we="text",previewFile:xe=Xt,onPreview:Qe,onDownload:Re,onRemove:Xe,locale:Me,iconRender:zt,isImageUrl:Lt=mn,prefixCls:Dt,items:Vt=[],showPreviewIcon:gn=!0,showRemoveIcon:ze=!0,showDownloadIcon:Hn=!1,removeIcon:Tn,previewIcon:Wn,downloadIcon:wn,progress:Ke={size:[-1,2],showInfo:!1},appendAction:ct,appendActionVisible:Nt=!0,itemRender:qe,disabled:_t}=ue,Yt=(0,ye.Z)(),[Bn,En]=ae.useState(!1);ae.useEffect(()=>{we!=="picture"&&we!=="picture-card"&&we!=="picture-circle"||(Vt||[]).forEach(Wt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Wt.originFileObj instanceof File||Wt.originFileObj instanceof Blob)||Wt.thumbUrl!==void 0||(Wt.thumbUrl="",xe&&xe(Wt.originFileObj).then(zn=>{Wt.thumbUrl=zn||"",Yt()}))})},[we,Vt,xe]),ae.useEffect(()=>{En(!0)},[]);const xn=(Wt,zn)=>{if(Qe)return zn==null||zn.preventDefault(),Qe(Wt)},ia=Wt=>{typeof Re=="function"?Re(Wt):Wt.url&&window.open(Wt.url)},ta=Wt=>{Xe==null||Xe(Wt)},ca=Wt=>{if(zt)return zt(Wt,we);const zn=Wt.status==="uploading",Jn=Lt&&Lt(Wt)?ae.createElement(je,null):ae.createElement(Je,null);let Vn=zn?ae.createElement(Gt.Z,null):ae.createElement(dt,null);return we==="picture"?Vn=zn?ae.createElement(Gt.Z,null):Jn:(we==="picture-card"||we==="picture-circle")&&(Vn=zn?Me.uploading:Jn),Vn},da=(Wt,zn,Jn,Vn)=>{const na={type:"text",size:"small",title:Vn,onClick:In=>{zn(),(0,be.l$)(Wt)&&Wt.props.onClick&&Wt.props.onClick(In)},className:`${Jn}-list-item-action`,disabled:_t};if((0,be.l$)(Wt)){const In=(0,be.Tm)(Wt,Object.assign(Object.assign({},Wt.props),{onClick:()=>{}}));return ae.createElement(We.ZP,Object.assign({},na,{icon:In}))}return ae.createElement(We.ZP,Object.assign({},na),ae.createElement("span",null,Wt))};ae.useImperativeHandle(Ee,()=>({handlePreview:xn,handleDownload:ia}));const{getPrefixCls:Yn}=ae.useContext(tt.E_),$n=Yn("upload",Dt),la=Yn(),sa=Ue()(`${$n}-list`,`${$n}-list-${we}`),ma=(0,he.Z)(Vt.map(Wt=>({key:Wt.uid,file:Wt})));let Xn={motionDeadline:2e3,motionName:`${$n}-${we==="picture-card"||we==="picture-circle"?"animate-inline":"animate"}`,keys:ma,motionAppear:Bn};const oa=ae.useMemo(()=>{const Wt=Object.assign({},(0,pe.Z)(la));return delete Wt.onAppearEnd,delete Wt.onEnterEnd,delete Wt.onLeaveEnd,Wt},[la]);return we!=="picture-card"&&we!=="picture-circle"&&(Xn=Object.assign(Object.assign({},oa),Xn)),ae.createElement("div",{className:sa},ae.createElement(Be.CSSMotionList,Object.assign({},Xn,{component:!1}),Wt=>{let{key:zn,file:Jn,className:Vn,style:na}=Wt;return ae.createElement(gt,{key:zn,locale:Me,prefixCls:$n,className:Vn,style:na,file:Jn,items:Vt,progress:Ke,listType:we,isImgUrl:Lt,showPreviewIcon:gn,showRemoveIcon:ze,showDownloadIcon:Hn,removeIcon:Tn,previewIcon:Wn,downloadIcon:wn,iconRender:ca,actionIconRender:da,itemRender:qe,onPreview:xn,onDownload:ia,onClose:ta})}),ct&&ae.createElement(Be.default,Object.assign({},Xn,{visible:Nt,forceRender:!0}),Wt=>{let{className:zn,style:Jn}=Wt;return(0,be.Tm)(ct,Vn=>({className:Ue()(Vn.className,zn),style:Object.assign(Object.assign(Object.assign({},Jn),{pointerEvents:zn?"none":void 0}),Vn.style)}))}))};var vt=ae.forwardRef(Et),Ft=re(14747),jt=re(33507),kt=re(67968),en=re(45503),fn=ue=>{const{componentCls:Ee,iconCls:we}=ue;return{[`${Ee}-wrapper`]:{[`${Ee}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[Ee]:{padding:`${ue.padding}px 0`},[`${Ee}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ee}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ee}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${Ee}-drag-icon`]:{marginBottom:ue.margin,[we]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${Ee}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${Ee}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${Ee}-disabled`]:{cursor:"not-allowed",[`p${Ee}-drag-icon ${we},
|
|
p${Ee}-text,
|
|
p${Ee}-hint
|
|
`]:{color:ue.colorTextDisabled}}}}}},Jt=ue=>{const{componentCls:Ee,antCls:we,iconCls:xe,fontSize:Qe,lineHeight:Re}=ue,Xe=`${Ee}-list-item`,Me=`${Xe}-actions`,zt=`${Xe}-action`,Lt=Math.round(Qe*Re);return{[`${Ee}-wrapper`]:{[`${Ee}-list`]:Object.assign(Object.assign({},(0,Ft.dF)()),{lineHeight:ue.lineHeight,[Xe]:{position:"relative",height:ue.lineHeight*Qe,marginTop:ue.marginXS,fontSize:Qe,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${Xe}-name`]:Object.assign(Object.assign({},Ft.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:Re,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[Me]:{[zt]:{opacity:0},[`${zt}${we}-btn-sm`]:{height:Lt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${zt}:focus-visible,
|
|
&.picture ${zt}
|
|
`]:{opacity:1},[xe]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${xe}`]:{color:ue.colorText}},[`${Ee}-icon ${xe}`]:{color:ue.colorTextDescription,fontSize:Qe},[`${Xe}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:Qe+ue.paddingXS,fontSize:Qe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Xe}:hover ${zt}`]:{opacity:1,color:ue.colorText},[`${Xe}-error`]:{color:ue.colorError,[`${Xe}-name, ${Ee}-icon ${xe}`]:{color:ue.colorError},[Me]:{[`${xe}, ${xe}:hover`]:{color:ue.colorError},[zt]:{opacity:1}}},[`${Ee}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Kt=re(45930),un=re(16932);const hn=new Kt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),yn=new Kt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Fn=ue=>{const{componentCls:Ee}=ue,we=`${Ee}-animate-inline`;return[{[`${Ee}-wrapper`]:{[`${we}-appear, ${we}-enter, ${we}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${we}-appear, ${we}-enter`]:{animationName:hn},[`${we}-leave`]:{animationName:yn}}},{[`${Ee}-wrapper`]:(0,un.J$)(ue)},hn,yn]},jn=re(47448),bn=re(84780);const Mn=ue=>{const{componentCls:Ee,iconCls:we,uploadThumbnailSize:xe,uploadProgressOffset:Qe}=ue,Re=`${Ee}-list`,Xe=`${Re}-item`;return{[`${Ee}-wrapper`]:{[`
|
|
${Re}${Re}-picture,
|
|
${Re}${Re}-picture-card,
|
|
${Re}${Re}-picture-circle
|
|
`]:{[Xe]:{position:"relative",height:xe+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${Xe}-thumbnail`]:Object.assign(Object.assign({},Ft.vS),{width:xe,height:xe,lineHeight:`${xe+ue.paddingSM}px`,textAlign:"center",flex:"none",[we]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Xe}-progress`]:{bottom:Qe,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:xe+ue.paddingXS}},[`${Xe}-error`]:{borderColor:ue.colorError,[`${Xe}-thumbnail ${we}`]:{[`svg path[fill='${jn.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${jn.blue.primary}']`]:{fill:ue.colorError}}},[`${Xe}-uploading`]:{borderStyle:"dashed",[`${Xe}-name`]:{marginBottom:Qe}}},[`${Re}${Re}-picture-circle ${Xe}`]:{[`&, &::before, ${Xe}-thumbnail`]:{borderRadius:"50%"}}}}},_n=ue=>{const{componentCls:Ee,iconCls:we,fontSizeLG:xe,colorTextLightSolid:Qe}=ue,Re=`${Ee}-list`,Xe=`${Re}-item`,Me=ue.uploadPicCardSize;return{[`
|
|
${Ee}-wrapper${Ee}-picture-card-wrapper,
|
|
${Ee}-wrapper${Ee}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Ft.dF)()),{display:"inline-block",width:"100%",[`${Ee}${Ee}-select`]:{width:Me,height:Me,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${Ee}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ee}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${Re}${Re}-picture-card, ${Re}${Re}-picture-circle`]:{[`${Re}-item-container`]:{display:"inline-block",width:Me,height:Me,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Xe]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${Xe}:hover`]:{[`&::before, ${Xe}-actions`]:{opacity:1}},[`${Xe}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${we}-eye, ${we}-download, ${we}-delete`]:{zIndex:10,width:xe,margin:`0 ${ue.marginXXS}px`,fontSize:xe,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Xe}-actions, ${Xe}-actions:hover`]:{[`${we}-eye, ${we}-download, ${we}-delete`]:{color:new bn.C(Qe).setAlpha(.65).toRgbString(),"&:hover":{color:Qe}}},[`${Xe}-thumbnail, ${Xe}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Xe}-name`]:{display:"none",textAlign:"center"},[`${Xe}-file + ${Xe}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${Xe}-uploading`]:{[`&${Xe}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${we}-eye, ${we}-download, ${we}-delete`]:{display:"none"}},[`${Xe}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ee}-wrapper${Ee}-picture-circle-wrapper`]:{[`${Ee}${Ee}-select`]:{borderRadius:"50%"}}}};var ce=ue=>{const{componentCls:Ee}=ue;return{[`${Ee}-rtl`]:{direction:"rtl"}}};const ve=ue=>{const{componentCls:Ee,colorTextDisabled:we}=ue;return{[`${Ee}-wrapper`]:Object.assign(Object.assign({},(0,Ft.Wf)(ue)),{[Ee]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ee}-select`]:{display:"inline-block"},[`${Ee}-disabled`]:{color:we,cursor:"not-allowed"}})}};var Pe=(0,kt.Z)("Upload",ue=>{const{fontSizeHeading3:Ee,fontSize:we,lineHeight:xe,lineWidth:Qe,controlHeightLG:Re}=ue,Xe=Math.round(we*xe),Me=(0,en.TS)(ue,{uploadThumbnailSize:Ee*2,uploadProgressOffset:Xe/2+Qe,uploadPicCardSize:Re*2.55});return[ve(Me),fn(Me),Mn(Me),_n(Me),Jt(Me),Fn(Me),ce(Me),(0,jt.Z)(Me)]},ue=>({actionsColor:ue.colorTextDescription})),_e=function(ue,Ee,we,xe){function Qe(Re){return Re instanceof we?Re:new we(function(Xe){Xe(Re)})}return new(we||(we=Promise))(function(Re,Xe){function Me(Dt){try{Lt(xe.next(Dt))}catch(Vt){Xe(Vt)}}function zt(Dt){try{Lt(xe.throw(Dt))}catch(Vt){Xe(Vt)}}function Lt(Dt){Dt.done?Re(Dt.value):Qe(Dt.value).then(Me,zt)}Lt((xe=xe.apply(ue,Ee||[])).next())})};const pt=`__LIST_IGNORE_${Date.now()}__`,wt=(ue,Ee)=>{const{fileList:we,defaultFileList:xe,onRemove:Qe,showUploadList:Re=!0,listType:Xe="text",onPreview:Me,onDownload:zt,onChange:Lt,onDrop:Dt,previewFile:Vt,disabled:gn,locale:ze,iconRender:Hn,isImageUrl:Tn,progress:Wn,prefixCls:wn,className:Ke,type:ct="select",children:Nt,style:qe,itemRender:_t,maxCount:Yt,data:Bn={},multiple:En=!1,action:xn="",accept:ia="",supportServerRender:ta=!0,rootClassName:ca}=ue,da=ae.useContext(st.Z),Yn=gn!=null?gn:da,[$n,la]=(0,et.Z)(xe||[],{value:we,postState:Mt=>Mt!=null?Mt:[]}),[sa,ma]=ae.useState("drop"),Qn=ae.useRef(null);ae.useMemo(()=>{const Mt=Date.now();(we||[]).forEach((nn,dn)=>{!nn.uid&&!Object.isFrozen(nn)&&(nn.uid=`__AUTO__${Mt}_${dn}__`)})},[we]);const Xn=(Mt,nn,dn)=>{let an=(0,he.Z)(nn),Ln=!1;Yt===1?an=an.slice(-1):Yt&&(Ln=an.length>Yt,an=an.slice(0,Yt)),(0,it.flushSync)(()=>{la(an)});const Rn={file:Mt,fileList:an};dn&&(Rn.event=dn),(!Ln||an.some(ua=>ua.uid===Mt.uid))&&(0,it.flushSync)(()=>{Lt==null||Lt(Rn)})},oa=(Mt,nn)=>_e(void 0,void 0,void 0,function*(){const{beforeUpload:dn,transformFile:an}=ue;let Ln=Mt;if(dn){const Rn=yield dn(Mt,nn);if(Rn===!1)return!1;if(delete Mt[pt],Rn===pt)return Object.defineProperty(Mt,pt,{value:!0,configurable:!0}),!1;typeof Rn=="object"&&Rn&&(Ln=Rn)}return an&&(Ln=yield an(Ln)),Ln}),Wt=Mt=>{const nn=Mt.filter(Ln=>!Ln.file[pt]);if(!nn.length)return;const dn=nn.map(Ln=>nt(Ln.file));let an=(0,he.Z)($n);dn.forEach(Ln=>{an=ut(Ln,an)}),dn.forEach((Ln,Rn)=>{let ua=Ln;if(nn[Rn].parsedFile)Ln.status="uploading";else{const{originFileObj:ea}=Ln;let ra;try{ra=new File([ea],ea.name,{type:ea.type})}catch(kn){ra=new Blob([ea],{type:ea.type}),ra.name=ea.name,ra.lastModifiedDate=new Date,ra.lastModified=new Date().getTime()}ra.uid=Ln.uid,ua=ra}Xn(ua,an)})},zn=(Mt,nn,dn)=>{try{typeof Mt=="string"&&(Mt=JSON.parse(Mt))}catch(Rn){}if(!yt(nn,$n))return;const an=nt(nn);an.status="done",an.percent=100,an.response=Mt,an.xhr=dn;const Ln=ut(an,$n);Xn(an,Ln)},Jn=(Mt,nn)=>{if(!yt(nn,$n))return;const dn=nt(nn);dn.status="uploading",dn.percent=Mt.percent;const an=ut(dn,$n);Xn(dn,an,Mt)},Vn=(Mt,nn,dn)=>{if(!yt(dn,$n))return;const an=nt(dn);an.error=Mt,an.response=nn,an.status="error";const Ln=ut(an,$n);Xn(an,Ln)},na=Mt=>{let nn;Promise.resolve(typeof Qe=="function"?Qe(Mt):Qe).then(dn=>{var an;if(dn===!1)return;const Ln=Bt(Mt,$n);Ln&&(nn=Object.assign(Object.assign({},Mt),{status:"removed"}),$n==null||$n.forEach(Rn=>{const ua=nn.uid!==void 0?"uid":"name";Rn[ua]===nn[ua]&&!Object.isFrozen(Rn)&&(Rn.status="removed")}),(an=Qn.current)===null||an===void 0||an.abort(nn),Xn(nn,Ln))})},In=Mt=>{ma(Mt.type),Mt.type==="drop"&&(Dt==null||Dt(Mt))};ae.useImperativeHandle(Ee,()=>({onBatchStart:Wt,onSuccess:zn,onProgress:Jn,onError:Vn,fileList:$n,upload:Qn.current}));const{getPrefixCls:Sa,direction:qn,upload:Nn}=ae.useContext(tt.E_),On=Sa("upload",wn),aa=Object.assign(Object.assign({onBatchStart:Wt,onError:Vn,onProgress:Jn,onSuccess:zn},ue),{data:Bn,multiple:En,action:xn,accept:ia,supportServerRender:ta,prefixCls:On,disabled:Yn,beforeUpload:oa,onChange:void 0});delete aa.className,delete aa.style,(!Nt||Yn)&&delete aa.id;const[Pa,fa]=Pe(On),[ya]=(0,Rt.Z)("Upload",Zt.Z.Upload),{showRemoveIcon:La,showPreviewIcon:ha,showDownloadIcon:pa,removeIcon:Ct,previewIcon:mt,downloadIcon:ht}=typeof Re=="boolean"?{}:Re,bt=(Mt,nn)=>Re?ae.createElement(vt,{prefixCls:On,listType:Xe,items:$n,previewFile:Vt,onPreview:Me,onDownload:zt,onRemove:na,showRemoveIcon:!Yn&&La,showPreviewIcon:ha,showDownloadIcon:pa,removeIcon:Ct,previewIcon:mt,downloadIcon:ht,iconRender:Hn,locale:Object.assign(Object.assign({},ya),ze),isImageUrl:Tn,progress:Wn,appendAction:Mt,appendActionVisible:nn,itemRender:_t,disabled:Yn}):Mt,cn=Ue()(`${On}-wrapper`,Ke,ca,fa,Nn==null?void 0:Nn.className,{[`${On}-rtl`]:qn==="rtl",[`${On}-picture-card-wrapper`]:Xe==="picture-card",[`${On}-picture-circle-wrapper`]:Xe==="picture-circle"}),Gn=Object.assign(Object.assign({},Nn==null?void 0:Nn.style),qe);if(ct==="drag"){const Mt=Ue()(fa,On,`${On}-drag`,{[`${On}-drag-uploading`]:$n.some(nn=>nn.status==="uploading"),[`${On}-drag-hover`]:sa==="dragover",[`${On}-disabled`]:Yn,[`${On}-rtl`]:qn==="rtl"});return Pa(ae.createElement("span",{className:cn},ae.createElement("div",{className:Mt,style:Gn,onDrop:In,onDragOver:In,onDragLeave:In},ae.createElement(Le,Object.assign({},aa,{ref:Qn,className:`${On}-btn`}),ae.createElement("div",{className:`${On}-drag-container`},Nt))),bt()))}const Kn=Ue()(On,`${On}-select`,{[`${On}-disabled`]:Yn}),Dn=(Mt=>ae.createElement("div",{className:Kn,style:Mt},ae.createElement(Le,Object.assign({},aa,{ref:Qn}))))(Nt?void 0:{display:"none"});return Pa(Xe==="picture-card"||Xe==="picture-circle"?ae.createElement("span",{className:cn},bt(Dn,!!Nt)):ae.createElement("span",{className:cn},Dn,bt()))};var Ut=ae.forwardRef(wt),rn=function(ue,Ee){var we={};for(var xe in ue)Object.prototype.hasOwnProperty.call(ue,xe)&&Ee.indexOf(xe)<0&&(we[xe]=ue[xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,xe=Object.getOwnPropertySymbols(ue);Qe<xe.length;Qe++)Ee.indexOf(xe[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ue,xe[Qe])&&(we[xe[Qe]]=ue[xe[Qe]]);return we},Un=ae.forwardRef((ue,Ee)=>{var{style:we,height:xe}=ue,Qe=rn(ue,["style","height"]);return ae.createElement(Ut,Object.assign({ref:Ee},Qe,{type:"drag",style:Object.assign(Object.assign({},we),{height:xe})}))});const Ye=Ut;Ye.Dragger=Un,Ye.LIST_IGNORE=pt;var tn=Ye},72665:function($e,lt){"use strict";var re;var ae=typeof Symbol=="function"&&Symbol.for,he=ae?Symbol.for("react.element"):60103,Ve=ae?Symbol.for("react.portal"):60106,Ue=ae?Symbol.for("react.fragment"):60107,Se=ae?Symbol.for("react.strict_mode"):60108,Ze=ae?Symbol.for("react.profiler"):60114,me=ae?Symbol.for("react.provider"):60109,at=ae?Symbol.for("react.context"):60110,Ne=ae?Symbol.for("react.async_mode"):60111,Te=ae?Symbol.for("react.concurrent_mode"):60111,He=ae?Symbol.for("react.forward_ref"):60112,Ge=ae?Symbol.for("react.suspense"):60113,Oe=ae?Symbol.for("react.suspense_list"):60120,ne=ae?Symbol.for("react.memo"):60115,a=ae?Symbol.for("react.lazy"):60116,y=ae?Symbol.for("react.block"):60121,E=ae?Symbol.for("react.fundamental"):60117,b=ae?Symbol.for("react.responder"):60118,x=ae?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var oe=te.$$typeof;switch(oe){case he:switch(te=te.type,te){case Ne:case Te:case Ue:case Ze:case Se:case Ge:return te;default:switch(te=te&&te.$$typeof,te){case at:case He:case a:case ne:case me:return te;default:return oe}}case Ve:return oe}}}function ee(te){return z(te)===Te}re=Ne,re=Te,re=at,re=me,re=he,re=He,re=Ue,re=a,re=ne,re=Ve,re=Ze,re=Se,re=Ge,re=function(te){return ee(te)||z(te)===Ne},re=ee,re=function(te){return z(te)===at},re=function(te){return z(te)===me},re=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===he},re=function(te){return z(te)===He},re=function(te){return z(te)===Ue},re=function(te){return z(te)===a},lt.isMemo=function(te){return z(te)===ne},re=function(te){return z(te)===Ve},re=function(te){return z(te)===Ze},re=function(te){return z(te)===Se},re=function(te){return z(te)===Ge},re=function(te){return typeof te=="string"||typeof te=="function"||te===Ue||te===Te||te===Ze||te===Se||te===Ge||te===Oe||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ne||te.$$typeof===me||te.$$typeof===at||te.$$typeof===He||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},re=z},12060:function($e,lt,re){"use strict";$e.exports=re(72665)},64217:function($e,lt,re){"use strict";re.d(lt,{Z:function(){return at}});var ae=re(1413),he=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,Ve=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ue="".concat(he," ").concat(Ve).split(/[\s\n]+/),Se="aria-",Ze="data-";function me(Ne,Te){return Ne.indexOf(Te)===0}function at(Ne){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,He;Te===!1?He={aria:!0,data:!0,attr:!0}:Te===!0?He={aria:!0}:He=(0,ae.Z)({},Te);var Ge={};return Object.keys(Ne).forEach(function(Oe){(He.aria&&(Oe==="role"||me(Oe,Se))||He.data&&me(Oe,Ze)||He.attr&&Ue.includes(Oe))&&(Ge[Oe]=Ne[Oe])}),Ge}}}]);
|