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
408 KiB
161 lines
408 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4264],{84249:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return se}});var ne=re(87462),Pe=re(67294),Ke={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"},ke=Ke,ce=re(74643),Ze=function(Ne,Ae){return Pe.createElement(ce.Z,(0,ne.Z)({},Ne,{ref:Ae,icon:ke}))},se=Pe.forwardRef(Ze)},90674:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return se}});var ne=re(87462),Pe=re(67294),Ke={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"},ke=Ke,ce=re(74643),Ze=function(Ne,Ae){return Pe.createElement(ce.Z,(0,ne.Z)({},Ne,{ref:Ae,icon:ke}))},se=Pe.forwardRef(Ze)},33859:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return se}});var ne=re(87462),Pe=re(67294),Ke={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},ke=Ke,ce=re(74643),Ze=function(Ne,Ae){return Pe.createElement(ce.Z,(0,ne.Z)({},Ne,{ref:Ae,icon:ke}))},se=Pe.forwardRef(Ze)},22751:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return se}});var ne=re(87462),Pe=re(67294),Ke={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"},ke=Ke,ce=re(74643),Ze=function(Ne,Ae){return Pe.createElement(ce.Z,(0,ne.Z)({},Ne,{ref:Ae,icon:ke}))},se=Pe.forwardRef(Ze)},91034:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return se}});var ne=re(87462),Pe=re(67294),Ke={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"},ke=Ke,ce=re(74643),Ze=function(Ne,Ae){return Pe.createElement(ce.Z,(0,ne.Z)({},Ne,{ref:Ae,icon:ke}))},se=Pe.forwardRef(Ze)},71736:function(xe,ut){"use strict";ut.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 xe(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(xe.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(xe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(xe.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(xe.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof xe))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[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var ut=[];function re(ae,a){var y=ut.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=ut.pop();return ae===void 0?new go.Point:ae}function Pe(ae){ut.push(ae)}function Ke(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ae-y,ge=b-z,ie=NaN,Se=NaN;if(oe===0)if(ge===0)ae===y&&(ie=ae,Se=a);else{var le=(x-ee)/ge,ze=x-le*b;ie=ae,Se=le*ie+ze}else if(ge===0){var $e=(a-E)/oe,St=a-$e*ae;ie=b,Se=$e*ie+St}else{var $e=(a-E)/oe,le=(x-ee)/ge,St=a-$e*ae,ze=x-le*b;ie=(ze-St)/($e-le),Se=$e*ie+St}return te.x=ie,te.y=Se,te}function ke(ae,a,y,E,b,x,z,ee,te,oe,ge,ie,Se,le){var ze=1-te,$e=te,St=ae*ze+y*$e,It=a*ze+E*$e,Vt=y*ze+b*$e,Ee=E*ze+x*$e,nt=b*ze+z*$e,gt=x*ze+ee*$e,at=St*ze+Vt*$e,dt=It*ze+Ee*$e,et=Vt*ze+nt*$e,ot=Ee*ze+gt*$e,it=at*ze+et*$e,an=dt*ze+ot*$e;oe.x=St,oe.y=It,ge.x=at,ge.y=dt,ie.x=it,ie.y=an,Se.x=et,Se.y=ot,le.x=nt,le.y=gt}var ce=new go.Spot(.156,.156),Ze=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new xe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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=ce,b.spot2=Ze,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,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(ae,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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,se*a,0,a,(1-se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,se*y,(1-se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,se*y,se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-se)*a,0,0,(1-se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,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(ae,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(ae,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(ae,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 xe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.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 xe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.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 xe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.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 xe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.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 xe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.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 _e=[];function Ne(){var ae=_e.pop();return ae===void 0?[]:ae}function Ae(ae){ae.length=0,_e.push(ae)}function je(ae){for(var a=Ne(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function Me(ae){var a=Te(ae),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 Ae(a),y}function Te(ae){for(var a=je(ae),y=Ne(),E=Math.floor(a.length/2),b=a.length-1,x=ae%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]=Ke(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],Ae(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=je(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()),Ae(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=je(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()),Ae(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=je(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()),Ae(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=je(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()),Ae(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=je(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()),Ae(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=je(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()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=je(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()),Ae(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=Te(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()),Ae(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=Te(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()),Ae(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=Te(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()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=Te(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()),Ae(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=Te(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()),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=Te(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()),Ae(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=Me(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(),Ae(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new xe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new xe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.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 xe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.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=ce,x.spot2=Ze,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,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(ae,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 xe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new xe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.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(ae,a,y){var E=se/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 xe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.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 xe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.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 xe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.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 xe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.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 xe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.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 xe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.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(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,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(ae,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(ae,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(ae,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*se;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*se,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*se,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.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=se*.4;var oe=ne(),ge=ne(),ie=ne(),Se=ne();ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,ie,Se,Se);var le=ne(),ze=ne(),$e=ne();ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,Se,Se,$e,le,ze);var St=ne(),It=ne(),Vt=ne();ke(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,St,It,Vt,Se,Se);var Ee=ne(),nt=ne(),gt=ne();return ke(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,Se,Se,gt,Ee,nt),te.add(new go.PathSegment(go.PathSegment.Move,gt.x*a,gt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Ee.x*a,Ee.y*y,nt.x*a,nt.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,gt.x*a,gt.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Vt.x*a,Vt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,$e.x*a,$e.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,le.x*a,le.y*y,ze.x*a,ze.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,Vt.x*a,Vt.y*y,St.x*a,St.y*y,It.x*a,It.y*y).close()),Pe(oe),Pe(ge),Pe(ie),Pe(Se),Pe(le),Pe(ze),Pe($e),Pe(St),Pe(It),Pe(Vt),Pe(Ee),Pe(nt),Pe(gt),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,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 xe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,te=ne(),oe=ne(),ge=ne(),ie=ne(),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)),ke(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);ke(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,ge,ie);var ze=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,(ze.x*.1+.9)*a,.15*y)),Se.add(new go.PathSegment(go.PathSegment.Line,(ze.x*.1+.9)*a,(ze.y*.1+.05*.9)*y)),Se.add(new go.PathSegment(go.PathSegment.Line,ze.x*a,ze.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=se*.35;var $e=new go.PathFigure(z*a,(ee-x)*y,!1);E.add($e),$e.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.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),$e.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.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),Pe(te),Pe(oe),Pe(ge),Pe(ie),Pe(le),Pe(ze),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(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*se,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*se;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(ae,a,y){var E=ae?ae.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(ae,a,y){var E=ae?ae.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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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 xe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new xe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.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=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ge.x,ge.y),Pe(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new xe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new xe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.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=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ge.x,ge.y),Pe(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,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(ae,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 xe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.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=Ke(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Ke(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new xe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new xe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.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=Ke(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),Pe(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new xe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.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=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new xe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new xe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.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=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ne());return oe.spot2=new go.Spot(ie.x,ie.y),Pe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new xe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.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=Ke(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new xe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.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=Ke(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new xe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.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=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new xe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.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=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new xe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.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(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.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(ae,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(ae,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(ae,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(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,se*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-se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-se*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-se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-se*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.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,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,se*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-se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-se*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-se*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-se*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.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-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*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+se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+se*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(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*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-se*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-se*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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=se*b,ee=se*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=se*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=se*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=se*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=se*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=se*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 xe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=se*.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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.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(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=se*.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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,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(ae,a,y){var E=new go.Geometry,b=ae?ae.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(ae,a,y){var E=new go.Geometry,b=se*.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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.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(ae,a,y){var E=new go.Geometry,b=se*.5,x=se*.4,z=se*.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(ae,a,y){var E=new go.Geometry,b=.5,x=se*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=se*.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(ae,a,y){var E=new go.Geometry,b=.5,x=se*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(ae,a,y){var E=new go.Geometry,b=.5,x=se*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=se*.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(ae,a,y){var E=new go.Geometry,b=.5,x=se*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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.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(ae,a,y){var E=new go.Geometry,b=se*.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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=se*.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=se*.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=se*.2,ee=.2,te=.5,oe=.5;var ze=new go.PathFigure((te-ee)*a+ge,oe*y+ie,!0);E.add(ze),ze.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)),ze.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)),ze.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)),ze.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=se*.4,ee=.4,te=.8,oe=.5;var $e=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);E.add($e),$e.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)),$e.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)),$e.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)),$e.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=se*.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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,te=ne(),oe=ne(),ge=ne(),ie=ne();ke(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)),ke(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=se*.3,x=.3,ke(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)),ke(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()),Pe(te),Pe(oe),Pe(ge),Pe(ie),Pe(Se),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*se,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,ie=.5,Se=.5,le=0,ze=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),ze.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)),ze.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)),ze.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)),ze.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),ze.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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,ze=ge*Se,$e=ge*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-Se)*a,te*y,(ee-(ze+Se)/2)*a,(te+(le+$e)/2)*y,(ee-Se)*a,(te+$e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-Se)*a,(te-$e)*y,(ee-ze)*a,(te-le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+Se)*a,te*y,(ee+ze)*a,(te-le)*y,(ee+Se)*a,(te-$e)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+Se)*a,(te+$e)*y,(ee+(ze+Se)/2)*a,(te+(le+$e)/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 It=new go.PathFigure(.8*a,y,!1);return E.add(It),It.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=se*.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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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=se*.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=se*.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(ae,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(ae,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=se*.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=se*.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(ae,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=se*.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=se*.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=se*.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=se*.05,Se=.825,le=.95,ze=new go.PathFigure((Se-ge)*a,le*y,!0);E.add(ze),ze.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le-ge)*y,(Se-ge)*a,(le-ie)*y,(Se-ie)*a,(le-ge)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,(Se+ge)*a,le*y,(Se+ie)*a,(le-ge)*y,(Se+ge)*a,(le-ie)*y)),ze.add(new go.PathSegment(go.PathSegment.Bezier,Se*a,(le+ge)*y,(Se+ge)*a,(le+ie)*y,(Se+ie)*a,(le+ge)*y)),ze.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 $e=new go.PathFigure(0,y,!1);return E.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,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=se*.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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.3,x=se*.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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=se*.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(ae,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(ae,a,y){var E=new go.Geometry,b=.5,x=se*.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=se*.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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=8,x=b*se,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(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,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(ae,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(ae,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(ae,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(ae,a,y){var E=new go.Geometry,b=15,x=b*se,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(ae,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(ae,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(ae,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(ae,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(ae,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(ae,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 xe={},ut="5.0",re={},ne=null,Pe=!1,Ke=!1,ke=null,ce=!1,Ze=null,se=null,_e=0;_e<arguments.length;_e++){var Ne=arguments[_e];if(Ne!==null)switch(typeof Ne){case"number":ut=Ne.toFixed(1);break;case"string":Ne.match(new RegExp("^[0-9]\\.[0-9]+$"))?ut=Ne:ke=Ne;break;case"object":typeof Ne.is3D!="undefined"?ne=Ne:re=Ne;break;case"boolean":Pe=Ne,Ke=!0;break}}ne===null&&(ne={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&&!Ke&&(Pe=!0)),ke!==null&&re.id===void 0&&(re.id=ke);var Ae="",je="",Me=!1,Te=null,ae=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(be){return parseFloat(be)>4?parseFloat(be):5};xe.setHTML5Codebase=function(be,Ie){se=be,ot(be,Ie)},xe.setJavaCodebase=xe.setJavaCodebaseVersion=xe.isCompiledInstalled=xe.setPreCompiledScriptPath=xe.setPreCompiledResourcePath=function(){},xe.setHTML5CodebaseVersion=function(be,Ie){var Ye=parseFloat(be);if(Ye!==NaN&&Ye<5){console.log("The GeoGebra HTML5 codebase version "+Ye+" is deprecated. Using version latest instead.");return}Ze=be,et(be,Ie)},xe.getHTML5CodebaseVersion=function(){return ae},xe.getParameters=function(){return re},xe.setFontsCSSURL=function(be){z=be},xe.setGiacJSURL=function(be){},xe.setJNLPFile=function(be){Ae=be},xe.setJNLPBaseDir=function(be){},xe.inject=function(){function be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ie="auto",Ye=re.id,Ft,Xe=!1,mt=0;mt<arguments.length;mt++){var de=arguments[mt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ie=de:Ye=arguments[mt]):typeof de=="boolean"?Xe=de:de instanceof HTMLElement&&(Ft=de)}lt();function lt(){if(!ce){setTimeout(lt,200);return}Ie=at(Ie);var kt=Ft||document.getElementById(Ye);if(!kt){console.log("possibly bug on ajax loading? ");return}if(xe.removeExistingApplet(kt,!1),re.width===void 0&&kt.clientWidth&&(re.width=kt.clientWidth),re.height===void 0&&kt.clientHeight&&(re.height=kt.clientHeight),!(re.width&&re.height)&&Ie==="html5"&&(delete re.width,delete re.height),Te=Ie,Ie==="screenshot")It(kt,re);else{var Qt=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?Qt=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(Qt=(!oe()||be())&&ge()),Qt?(Te="screenshot",Ee(kt,re,Xe,Ie)):St(kt,re,Xe)}}};function oe(){try{return window.self!==window.top}catch(be){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}xe.getViews=function(){return ne},xe.isJavaInstalled=function(){return!1};var ie=function(be){var Ie=function(mt){var de=JSON.parse(mt),lt=function(pt){return pt.type=="G"||pt.type=="E"},kt=de.elements?de.elements.filter(lt)[0]:de;if(!kt||!kt.url){Ye();return}re.fileName=kt.url,Se(kt.settings||{}),ne.is3D=!0;var Qt="https://www.geogebra.org/images/";xe.setPreviewImage(E||kt.previewUrl,Qt+"GeoGebra_loading.png",Qt+"applet_play.png"),be()},Ye=function(){re.onError&&re.onError(),it("Error: Fetching material (id "+re.material_id+") failed.",re)},Ft=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Xe="/materials/"+re.material_id+"?scope=basic";le("https://"+Ft+"/api/proxy.php?path="+encodeURIComponent(Xe),Ie,Ye)};function Se(be){var Ie=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ye){be[Ye]=!!be[Ye]}),Ie.forEach(function(Ye){re[Ye]===void 0&&be[Ye]!==void 0&&(re[Ye]=be[Ye])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(be,Ie,Ye){var Ft=new XMLHttpRequest;Ft.open("GET",be),Ft.onload=function(){Ie(Ft.responseText)},Ft.onerror=Ye,Ft.send()}xe.isHTML5Installed=function(){return!0},xe.getLoadedAppletType=function(){return Te},xe.setPreviewImage=function(be,Ie,Ye){E=be,b=Ie,x=Ye},xe.removeExistingApplet=function(be,Ie){var Ye;typeof be=="string"&&(be=document.getElementById(be)),Te=null;var Ft=null;for(Ye=0;Ye<be.childNodes.length;Ye++){var Xe=be.childNodes[Ye],mt=Xe.className;mt==="applet_screenshot"?Ie?(Xe.style.display="block",Te="screenshot"):Xe.style.display="none":mt!=="applet_scaler prerender"&&(be.removeChild(Xe),Ft=mt&&mt.indexOf("appletParameters")!=-1?Xe.id:null,Ye--)}var de=re.id!==void 0?re.id:Ft,lt=window[de];lt&&typeof lt.getBase64=="function"&&(lt.remove(),window[de]=null)},xe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var be=xe.getAppletObject();return be&&typeof be.recalculateEnvironments=="function"?(be.recalculateEnvironments(),!0):!1},xe.startAnimation=function(){var be=xe.getAppletObject();return be&&typeof be.startAnimation=="function"?(be.startAnimation(),!0):!1},xe.stopAnimation=function(){var be=xe.getAppletObject();return be&&typeof be.stopAnimation=="function"?(be.stopAnimation(),!0):!1},xe.getAppletObject=function(){var be=re.id!==void 0?re.id:"ggbApplet";return window[be]},xe.resize=function(){};var ze=function(be,Ie,Ye){var Ft=document.createElement("param");Ft.setAttribute("name",Ie),Ft.setAttribute("value",Ye),be.appendChild(Ft)},$e=function(be){return be&&be!=="false"},St=function(be,Ie,Ye){te(ae)<=4.2&&(Ye=!0);var Ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Xe=document.createElement("div");Xe.classList.add("appletParameters","notranslate");var mt=Ie.width,de=Ie.height;if(Ie.disableAutoScale=Ie.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ie.disableAutoScale,Ie.width!==void 0)if(te(ae)<=4.4)$e(Ie.showToolBar)&&(Ie.height-=7),$e(Ie.showAlgebraInput)&&(Ie.height-=37),Ie.width<605&&$e(Ie.showToolBar)&&(Ie.width=605,mt=605);else{var lt=100;($e(Ie.showToolBar)||$e(Ie.showMenuBar))&&(Ie.hasOwnProperty("customToolBar")&&(Ie.customToolbar=Ie.customToolBar),lt=$e(Ie.showMenuBar)?245:155),mt<lt&&(Ie.width=lt,mt=lt)}Xe.style.border="none",Xe.style.display="inline-block";for(var kt in Ie)Ie.hasOwnProperty(kt)&&kt!=="appletOnLoad"&&Xe.setAttribute("data-param-"+kt,Ie[kt]);z&&Xe.setAttribute("data-param-fontscssurl",z),xe.resize=function(){GGBAppletUtils.responsiveResize(be,Ie)},window.addEventListener("resize",function(Dt){xe.resize()});var Qt=typeof Ie.appletOnLoad=="function"?Ie.appletOnLoad:function(){};if(!Ye&&Ie.width!==void 0){Ie.hasOwnProperty("showSplash")||Xe.setAttribute("data-param-showSplash","false");var pt=be.querySelector(".applet_scaler.prerender"),Ge=pt!==null;if(Ge)var we=pt.querySelector(".ggb_preview");else{var we=gt(mt,de,Ie.borderColor,!1);pt=document.createElement("div"),pt.className="applet_scaler",pt.style.position="relative",pt.style.display="block",pt.style.width=mt+"px",pt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(pt,"66%"),te(ae)>=5?(Ie.appletOnLoad=function(Dt){var Lt=be.querySelector(".ggb_preview");Lt&&Lt.parentNode.removeChild(Lt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(pt),window.GGBT_wsf_view&&$(window).trigger("resize"),Qt(Dt)},Ge||pt.appendChild(we)):Xe.appendChild(we),pt.appendChild(Xe),Ge||be.appendChild(pt),setTimeout(function(){xe.resize()},1)}else{var ve=document.createElement("div");ve.className="applet_scaler",ve.style.position="relative",ve.style.display="block",ve.appendChild(Xe),be.appendChild(ve),Ie.appletOnLoad=function(Dt){xe.resize(),Qt(Dt)}}function pe(Dt,Lt){Lt&&typeof Lt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Dt,Lt.appletOnLoad):renderGGBElement(Dt),it("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Lt)}function ye(Dt,Lt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Dt,params:Lt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(en){pe(en.article,en.params)}),html5AppletsToProcess=null)},te(ae)<5&&(Dt.className+=" geogebraweb")):pe(Dt,Lt)}if(Ft){scriptLoadStarted=!0;for(var Re=0;Re<Xe.childNodes.length;Re++){var tt=Xe.childNodes[Re].tagName;tt==="TABLE"&&(Xe.removeChild(Xe.childNodes[Re]),Re--)}if(ggbHTML5LoadedScript!==null){var ht=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ht!=null&&ht.parentNode.removeChild(ht)}var bt=document.createElement("script"),$t=function(){ye(Xe,Ie)};bt.src=je+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=bt.src,it("GeoGebra HTML5 codebase loaded: '"+je+"'.",Ie),!se&&(!Ze||Ze=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),$t()):je.requirejs?__webpack_require__.e(12).then(function(){var Dt=[__webpack_require__(12)];$t.apply(null,Dt)}.bind(this)).catch(__webpack_require__.oe):(bt.onload=$t,be.appendChild(bt))}else ye(Xe,Ie);Ie.height=de,Ie.width=mt},It=function(be,Ie,Ye){var Ft=gt(Ie.width,Ie.height,Ie.borderColor,Ye),Xe=document.createElement("div");Xe.style.position="relative",Xe.style.display="block",Xe.style.width=Ie.width+"px",Xe.style.height=Ie.height+"px",Xe.className="applet_screenshot applet_scaler"+(Ye?" applet_screenshot_play":""),Xe.appendChild(Ft);var mt=GGBAppletUtils.getScale(Ie,be,Ye);Ye?(be.appendChild(nt()),window.GGBT_wsf_view||(be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Xe,"66%"),be.appendChild(Xe),mt!==1&&!isNaN(mt)&&(GGBAppletUtils.scaleElement(Xe,mt),Xe.style.width=Ie.width+"px",Xe.style.height=Ie.height+"px",Xe.parentNode.style.width=Ie.width*mt+"px",Xe.parentNode.style.height=Ie.height*mt+"px"),xe.resize=function(){Vt(be,Ft,Xe,Ye)},window.addEventListener("resize",function(de){xe.resize()}),xe.resize()};function Vt(be,Ie,Ye,Ft){if(be.contains(Ie)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(be)}var Xe=GGBAppletUtils.getScale(re,be,Ft);Ye.parentNode!==null&&(!isNaN(Xe)&&Xe!==1?(GGBAppletUtils.scaleElement(Ye,Xe),Ye.parentNode.style.width=re.width*Xe+"px",Ye.parentNode.style.height=re.height*Xe+"px"):(GGBAppletUtils.scaleElement(Ye,1),Ye.parentNode.style.width=re.width+"px",Ye.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}xe.onExitFullscreen=function(be,Ie){Ie.appendChild(be)};var Ee=function(be,Ie,Ye,Ft){It(be,Ie,!0);for(var Xe=function(){var lt=[];for(de=0;de<be.childNodes.length;de++)lt.push(be.childNodes[de]);if(window.GGBT_wsf_view){var kt=window.GGBT_wsf_view.renderFullScreen(be,Ie.id),Qt=document.getElementById("fullscreencontainer"),pt=jQuery(be).find(".fullscreencontent");pt.length>0?(kt.remove(),pt.attr("id","fullscreencontent").show(),jQuery(Qt).append(pt),window.dispatchEvent(new Event("resize"))):St(kt,Ie,!1),window.GGBT_wsf_view.launchFullScreen(Qt)}else Te=Ft,St(be,Ie,!1);if(!window.GGBT_wsf_view)for(de=0;de<lt.length;de++)be.removeChild(lt[de])},mt=be.getElementsByClassName("ggb_preview_play"),de=0;de<mt.length;de++)mt[de].addEventListener("click",Xe,!1),mt[de].addEventListener("ontouchstart",Xe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(be),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},nt=function(){var be=document.createElement("div");if(be.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");}',Ye=document.createElement("style");Ye.styleSheet?Ye.styleSheet.cssText=Ie:Ye.appendChild(document.createTextNode(Ie)),document.getElementsByTagName("head")[0].appendChild(Ye)}return be},gt=function(be,Ie,Ye,Ft){var Xe=document.createElement("div");Xe.className="ggb_preview",Xe.style.position="absolute",Xe.style.zIndex="90",Xe.style.width=be-2+"px",Xe.style.height=Ie-2+"px",Xe.style.top="0px",Xe.style.left="0px",Xe.style.overflow="hidden",Xe.style.backgroundColor="white";var mt="lightgrey";Ye!==void 0&&(Ye==="none"?mt="transparent":mt=Ye),Xe.style.border="1px solid "+mt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var lt,kt,Qt;if(!Ft){lt=document.createElement("img"),lt.style.position="absolute",lt.style.zIndex="1001",lt.style.opacity=1,de.style.opacity=.3,kt=360,kt>be/4*3&&(kt=be/4*3),Qt=kt/5.8,lt.setAttribute("src",b),lt.setAttribute("width",kt),lt.setAttribute("height",Qt);var pt=(be-kt)/2,Ge=(Ie-Qt)/2;lt.style.left=pt+"px",lt.style.top=Ge+"px",Xe.appendChild(lt)}}return Xe.appendChild(de),Xe},at=function(be){return be=be.toLowerCase(),be==="html5"||be==="screenshot"?be:"html5"},dt=["web","webSimple","web3d","tablet","tablet3d","phone"],et=function(be,Ie){if(ae=be,Ie){ot(ae,!0);return}var Ye=!Pe;if(Ye){var Ft=te(ae);!isNaN(Ft)&&Ft<4.4&&(Ye=!1)}var Xe,mt;window.location.protocol.substr(0,4)==="http"?Xe=window.location.protocol:Xe="http:";var de=ae.indexOf("//");de>0?mt=ae:de===0?mt=Xe+ae:mt="https://www.geogebra.org/apps/5.2.814.0/";for(var lt in dt)if(ae.slice(dt[lt].length*-1)===dt[lt]||ae.slice((dt[lt].length+1)*-1)===dt[lt]+"/"){ot(mt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ye&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!$e(re.showToolBar)&&!$e(re.showMenuBar)&&!$e(re.showAlgebraInput)&&!$e(re.enableRightClick)&&(!re.appName||re.appName=="classic")?mt+="webSimple/":mt+="web3d/",ot(mt,!1)},ot=function(be,Ie){if(be.requirejs){je=be;return}be.slice(-1)!=="/"&&(be+="/"),je=be,Ie===null&&(Ie=be.indexOf("http")===-1),Me=Ie,a="web.nocache.js",y=!1;var Ye=je.split("/");Ye.length>1&&(!Ie&&Ye[Ye.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):dt.indexOf(Ye[Ye.length-2])>=0&&(a=Ye[Ye.length-2]+".nocache.js")),Ye=be.split("/"),ae=Ye[Ye.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var Ft=parseFloat(ae);Ft!==NaN&&Ft<5&&be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ft+" is deprecated. Using version latest instead."),et("5.0",Ie))},it=function(be,Ie){window.console&&window.console.log&&(!Ie||typeof Ie.showLogging=="undefined"||Ie.showLogging&&Ie.showLogging!=="false")&&console.log(be)};re.material_id!==void 0?ie(an):an();function an(){var be=ut;Ze!==null?be=Ze:parseFloat(be)<5&&(be="5.0"),et(be,!1),se!==null&&ot(se,Me),ce=!0}return xe},GGBAppletUtils=function(){"use strict";function xe(){return window.GGBT_wsf_edit!==void 0}function ut(ce,Ze){Ze!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+Ze+","+Ze+")",ce.style.webkitTransform="scale("+Ze+","+Ze+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function re(ce,Ze,se,_e,Ne,Ae){var je=null;if(Ae!=null&&Ae!="")for(var Me=ce.parentNode;Me!=null;)if((" "+Me.className+" ").indexOf(" "+Ae+" ")>-1){je=Me;break}else Me=Me.parentNode;var Te=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(je)Te=je.offsetWidth,ae=Math.max(_e?je.offsetWidth:0,je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Te=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Te):(Te=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Te&&(Ne===void 0||!Ne)&&(document.dir==="rtl"?(E=Te-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ce&&((se===void 0||!se)&&Ze>0&&Ze+y<Te?Te=Ze:Te-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ae-=x)),{width:Te,height:ae}}function ne(ce,Ze,se,_e,Ne){if(ce.isScreenshoGenerator)return 1;var Ae=_e!==void 0&&_e,je=ce.noScaleMargin!=null&&ce.noScaleMargin,Me=function(ee){return ee&&ee!=="false"},Te=Me(ce.autoHeight),ae=re(Ze,ce.width,se,Te,Ae&&window.GGBT_wsf_view||je,Ne),a=parseInt(ae.width),y=ce.width,E=ce.height;if(y===void 0){var b=Ze.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ae?1:ae.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Pe(ce,Ze,se){var _e=1,Ne,Ae=!1;if(ce.hasOwnProperty("allowUpscale")&&(Ae=ce.allowUpscale),ce.hasOwnProperty("scale")&&(_e=parseFloat(ce.scale),(isNaN(_e)||_e===null||_e===0)&&(_e=1),_e>1&&(Ae=!0)),Ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Ne=ne(ce,Ze,Ae,se,ce.scaleContainerClass);else return _e;return Ae&&(!ce.hasOwnProperty("scale")||_e===1)?Ne:Math.min(_e,Ne)}function Ke(ce){var Ze=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),_e=ce.getBoundingClientRect(),Ne=(Ze-_e.width)/2,Ae=(se-_e.height)/2;Ae<0&&(Ae=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ne<40?ce.style.left="40px":ce.style.left=Ne+"px",ce.style.top=Ae+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae<40?ce.style.top="40px":ce.style.top=Ae+"px",ce.style.left=Ne+"px")}function ke(ce,Ze){var se=ce.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var _e=Pe(Ze,ce);xe()&&se.setAttribute("data-param-scale",_e);for(var Ne=null,Ae=0;Ae<ce.childNodes.length;Ae++)if(ce.childNodes[Ae].className!==void 0&&ce.childNodes[Ae].className.match(/^applet_scaler/)){Ne=ce.childNodes[Ae];break}if(Ne!==null&&Ne.querySelector(".noscale")!==null)return;var je=Ze.id!==void 0?Ze.id:"ggbApplet",Me=window[je];(Me==null||!Me.recalculateEnvironments)&&Ne!==null&&!Ne.className.match(/fullscreen/)&&(Ne.parentNode.style.transform="",!isNaN(_e)&&_e!==1?(Ne.parentNode.style.width=Ze.width*_e+"px",Ne.parentNode.style.height=Ze.height*_e+"px",ut(Ne,_e)):(ut(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()&&Ke(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:ke,isFlexibleWorksheetEditor:xe,positionCenter:Ke,getScale:Pe,scaleElement:ut}}();__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 xe=n.location.search;return xe.indexOf(J)!=-1||xe.indexOf(K)!=-1}function q(xe,ut){}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(xe){var ut=s[L].bindings;s[L].bindings=function(){for(var re=ut?ut():{},ne=xe[webModule.__softPermutationId],Pe=O;Pe<ne.length;Pe++){var Ke=ne[Pe];re[Ke[O]]=Ke[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var xe=o.createElement(Q);if(xe.id=L,xe.style.cssText=R+S,xe.tabIndex=-1,o.body.appendChild(xe),t=xe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ut=document.compatMode==U?V:W;t.write(ut+X),t.close()}}}function w(xe){function ut(ne){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ke=Pe();if(Ke){ne();return}function ke(){if(!Ke){if(!Pe())return;Ke=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,ke,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,ke,!1);var ce=setInterval(function(){ke()},$)}function re(ne){var Pe=u(),Ke=Pe.body,ke=Pe.createElement(_);ke.language=ab,ke.crossOrigin=W,ke.src=ne,webModule.__errFn&&(ke.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),Ke.appendChild(ke)}ut(function(){re(xe)})}webModule.__startLoadingFragment=function(xe){return C(xe)},webModule.__installRunAsyncCode=function(xe){var ut=u(),re=ut.body,ne=ut.createElement(_);ne.language=ab,ne.text=xe,re.appendChild(ne),re.removeChild(ne)};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(xe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(xe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(xe){var ut=c[xe];return ut==null?null:ut},r=d,webModule.__errFn=e}function B(){function xe(ce){var Ze=ce.lastIndexOf(rb);Ze==-1&&(Ze=ce.length);var se=ce.indexOf(sb);se==-1&&(se=ce.length);var _e=ce.lastIndexOf(tb,Math.min(se,Ze));return _e>=O?ce.substring(O,_e+P):W}function ut(ce){if(!ce.match(/^\w+:\/\//)){var Ze=o.createElement(ub);Ze.src=ce+vb,ce=xe(Ze.src)}return ce}function re(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ne(){for(var ce=o.getElementsByTagName(_),Ze=O;Ze<ce.length;++Ze)if(ce[Ze].src.indexOf(xb)!=-1)return xe(ce[Ze].src);return W}function Pe(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Ke(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var ke=re();return ke==W&&(ke=ne()),ke==W&&(ke=Pe()),ke==W&&Ke()&&(ke=xe(o.location.href)),ke=ut(ke),ke}function C(xe){return xe.match(/^\//)||xe.match(/^[a-zA-Z]+:\/\//)?xe:webModule.__moduleBase+xe}function D(){var xe=[],ut=O,re=[],ne=[];function Pe(ce){var Ze=ne[ce](),se=re[ce];if(Ze in se)return Ze;var _e=[];for(var Ne in se)_e[se[Ne]]=Ne;throw r&&r(ce,_e,Ze),null}if(__gwt_isKnownPropertyValue=function(ce,Ze){return Ze in re[ce]},webModule.__getPropMap=function(){var ce={};for(var Ze in re)re.hasOwnProperty(Ze)&&(ce[Ze]=Pe(Ze));return ce},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var ke=Ke.indexOf(Db);ke!=-1&&(ut=parseInt(Ke.substring(ke+P),$),Ke=Ke.substring(O,ke))}catch(ce){}return webModule.__softPermutationId=ut,C(Ke+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(xe,ut,re){"use strict";re.d(ut,{Ax:function(){return ke},Ds:function(){return ce},KI:function(){return se},SI:function(){return Ke},f1:function(){return Pe}});var ne=re(11320);function Pe(_e){let Ne=!0;if(_e.length>0){for(let Ae=0;Ae<_e.length;Ae++)if(_e[Ae].compile_success==0||!_e[Ae].compile_success){Ne=!1;break}}else Ne=!1;return Ne}function Ke(_e,Ne=""){let Ae=[];for(let je=0;je<_e.length;je++){let Me=_e[je],Te=Ne?`${Ne}/${Me.name}`:`${Me.name}`;Ae.push({title:Me.name,type:Me.type,isLeaf:Me.type!=="tree",key:Te})}return Ae}function ke(_e,Ne,Ae){for(let je=0;je<_e.length;je++){let Me=_e[je];if(Me.key===Ne){Me.children=Ae;break}Me.children&&ke(Me.children,Ne,Ae)}return _e}function ce(_e,Ne,Ae){let je;return function(){let Me=this,Te=arguments,ae=function(){je=null,Ae||_e.apply(Me,Te)},a=Ae&&!je;clearTimeout(je),je=setTimeout(ae,Ne),a&&_e.apply(Me,Te)}}const Ze=!0,se=ne.Z.API_SERVER},63205:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return je}});var ne=re(67294),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=re(94184),ke=re.n(Ke),ce=re(57953),Ze=re(15979),se=re(33170),_e=re(28706),Ne=(Me,Te,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(Me,Te)).next())}),je=({data:Me,className:Te,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),oe=(0,ne.useRef)(null),[ge,ie]=(0,ne.useState)(!1),[Se,le]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Me!=null&&Me.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Me!=null&&Me.src&&ze()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Me==null?void 0:Me.visible]);const ze=()=>Ne(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ee=yield(0,_e.ZJ)(Me==null?void 0:Me.src);z.current.src="",z.current.src=Ee,z.current.onload=function(){Vt()},ie(!1),le("")}),$e=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},St=Ee=>Ne(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const nt=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Me.title,file:Ee.dataUrl}});nt!=null&&nt.id&&!x?(yield(0,se.ZP)(`/api/attachments/${Me.id}/add_subitem.json`,{method:"post",body:{subitem_id:nt==null?void 0:nt.id,settings:JSON.stringify(Ee.state)}})).status===0&&E():nt!=null&&nt.id&&E(nt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),le("")}),It=()=>{const Ee=document.querySelector('a[href="https://markerjs.com/"]');Ee&&Ee.parentNode&&(Ee.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(gt=>{const at=document.querySelector(gt.name);at&&at.setAttribute("title",gt.title)})},Vt=()=>{ee.current=new Ze.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",St),ee.current.addEventListener("beforeclose",$e),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(),Me!=null&&Me.snapshotData&&ee.current.restoreState(Me.snapshotData),setTimeout(()=>{window.scrollTo(0,0),It()},300)};return ne.createElement(ne.Fragment,null,(Me==null?void 0:Me.visible)&&ne.createElement(ce.Z,{spinning:ge,tip:Se,style:{position:"absolute"}},ne.createElement("div",{ref:oe,className:ke()(Pe.imageDimensions,Te,ae?Pe.fullWidth:""),style:a},ne.createElement("img",{className:Pe.img,ref:z}))))}},36527:function(xe,ut,re){"use strict";var ne=re(67294),Pe=re(71230),Ke=re(15746),ke=re(66368),ce=re(71577),Ze=re(85725),se=re(71736),_e=re(84279),Ne=re(67294);const Ae=(0,ne.forwardRef)(({callback:je,showSaveButton:Me,value:Te=""},ae)=>{const a=(0,ne.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(Pe.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ne.createElement(Ke.Z,{flex:"110px",className:se.Z.item},Ne.createElement("div",null,Ne.createElement(Ze.Z,{value:`$$${ee.value}$$`}),ee.name),Ne.createElement("div",{className:se.Z.children},ee.children.map((oe,ge)=>Ne.createElement("div",{key:ge},Ne.createElement("h1",null,oe.name),Ne.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,Se)=>Ne.createElement(Ke.Z,{key:Se,onClick:()=>b(ie),className:se.Z.diamond},Ne.createElement(Ze.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ne.createElement(Pe.Z,{className:se.Z.lists,gutter:[10,10]},E.map((ee,te)=>Ne.createElement(Ke.Z,{flex:"110px",className:se.Z.item},Ne.createElement("div",null,Ne.createElement(Ze.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ne.createElement("div",{className:se.Z.children},ee.children.map((oe,ge)=>Ne.createElement("div",{key:ge},oe.name&&Ne.createElement("h1",null,oe.name),Ne.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,Se)=>Ne.createElement(Ke.Z,{key:Se,onClick:()=>b(ie),className:se.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 je&&je(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),Ne.createElement("div",{className:se.Z.mathWrap},Ne.createElement(ke.default,{defaultActiveKey:"1",items:x}),Ne.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Te||""),Me&&Ne.createElement("div",{className:se.Z.button},Ne.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ut.Z=Ae},65866:function(xe,ut,re){"use strict";re.d(ut,{z:function(){return at},Z:function(){return dt}});var ne=re(67294),Pe=re(59810),Ke=re(2453),ke=re(14446),ce=re(71577),Ze=re(11320),se=re(4440),_e=Object.defineProperty,Ne=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Me=(et,ot,it)=>ot in et?_e(et,ot,{enumerable:!0,configurable:!0,writable:!0,value:it}):et[ot]=it,Te=(et,ot)=>{for(var it in ot||(ot={}))Ae.call(ot,it)&&Me(et,it,ot[it]);if(Ne)for(var it of Ne(ot))je.call(ot,it)&&Me(et,it,ot[it]);return et},ae=(et,ot,it)=>new Promise((an,be)=>{var Ie=Xe=>{try{Ft(it.next(Xe))}catch(mt){be(mt)}},Ye=Xe=>{try{Ft(it.throw(Xe))}catch(mt){be(mt)}},Ft=Xe=>Xe.done?an(Xe.value):Promise.resolve(Xe.value).then(Ie,Ye);Ft((it=it.apply(et,ot)).next())});const a="\u3000\u3000";function y(et){var ot=["Bytes","KB","MB","GB","TB"];if(et==0)return"0 Byte";var it=parseInt(""+Math.floor(Math.log(et)/Math.log(1024)),10);return(et/Math.pow(1024,it)).toFixed(1)+" "+ot[it]}var E=({value:et=[],action:ot,onChange:it,className:an,maxSize:be=150,title:Ie="\u6587\u4EF6\u4E0A\u4F20",accept:Ye=null})=>{const Ft={multiple:!1,fileList:et,accept:Ye,withCredentials:!0,beforeUpload:mt=>mt.size/1024/1024<be?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${be}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(mt){var de,lt,kt,Qt;let pt=[...mt.fileList];if(pt=pt.map(Ge=>(Ge.name.indexOf(a)===-1&&(Ge.name=`${Ge.name}${a}${y(Ge.size)}`),Te({},Ge))),mt.file.status==="done"&&((lt=(de=mt.file)==null?void 0:de.response)==null?void 0:lt.status)===-1){message.error((Qt=(kt=mt.file)==null?void 0:kt.response)==null?void 0:Qt.message),it([]);return}it(pt)},onRemove:mt=>ae(void 0,null,function*(){const de=mt.size/1024/1024;return mt.status==="uploading"?!0:de<be&&(mt.response?mt.response.id:mt.uid)?yield removeAttachment(mt.response?mt.response.id:mt.id):!0})};function Xe(mt){mt.preventDefault(),mt.stopPropagation()}return React.createElement("div",{className:`single-upload ${an||""}`},React.createElement(Upload,Te({},Ft),React.createElement(Button,{type:"primary",title:et.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:et.length>0,ghost:!0},Ie),React.createElement("span",{onClick:Xe,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",be,"M)"," ")))},b=re(33859),x=re(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ge=(et,ot,it)=>ot in et?z(et,ot,{enumerable:!0,configurable:!0,writable:!0,value:it}):et[ot]=it,ie=(et,ot)=>{for(var it in ot||(ot={}))te.call(ot,it)&&ge(et,it,ot[it]);if(ee)for(var it of ee(ot))oe.call(ot,it)&&ge(et,it,ot[it]);return et};const Se=et=>React.createElement("svg",ie({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},et),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var le="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",ze=Object.defineProperty,$e=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,Vt=(et,ot,it)=>ot in et?ze(et,ot,{enumerable:!0,configurable:!0,writable:!0,value:it}):et[ot]=it,Ee=(et,ot)=>{for(var it in ot||(ot={}))St.call(ot,it)&&Vt(et,it,ot[it]);if($e)for(var it of $e(ot))It.call(ot,it)&&Vt(et,it,ot[it]);return et},nt=(et,ot,it)=>new Promise((an,be)=>{var Ie=Xe=>{try{Ft(it.next(Xe))}catch(mt){be(mt)}},Ye=Xe=>{try{Ft(it.throw(Xe))}catch(mt){be(mt)}},Ft=Xe=>Xe.done?an(Xe.value):Promise.resolve(Xe.value).then(Ie,Ye);Ft((it=it.apply(et,ot)).next())});const{Dragger:gt}=Pe.default;function at(et){let ot=[];return et&&et.length>0&&(ot=et.map(it=>({uid:it.id,id:it.id,name:it.title+a+it.filesize,url:it.url,filesize:it.filesize,status:"done",response:{id:it.id}}))),ot}var dt=({value:et,onChange:ot,action:it,data:an,className:be,maxSize:Ie=150,title:Ye="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Ft=!1,accept:Xe="",additionalText:mt,isDragger:de,number:lt=1e3,aloneClear:kt=!1,realTimeRemove:Qt=!0,uploadText:pt,setFileProgress:Ge,showFileProgress:we})=>{const[ve,pe]=(0,ne.useState)(!1);let[ye,Re]=(0,ne.useState)(et||[]),[tt,ht]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{et&&(tt===1&&Re([...et]),ht(2),lt===(et==null?void 0:et.length)&&pe(!0))},[et]);const bt=()=>{setTimeout(()=>{ye.pop(),Re([...ye])},500)};we&&Ge(ye.some(Lt=>Lt.status==="uploading"));const $t={multiple:!0,disabled:ve,accept:Xe,withCredentials:!0,fileList:ye,beforeUpload:(Lt,en)=>{const Ut=Lt.size/1024/1024;return ye.concat(en).length>lt?(ye.pop(),Re([...ye]),Ke.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${lt}\u4E2A\u6587\u4EF6`),kt?Promise.reject():(bt(),!1)):Ut<Ie?!0:(Ke.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ie}MB).`),kt?Promise.reject():(bt(),!1))},data:an,action:it||`${Ze.Z.API_SERVER}/api/attachments.json`,onChange(Lt){var en,Ut,Xt,Wt;if(Lt.file.status==="removed"?ye=Lt.fileList:ye=(0,x.uniqBy)([...Lt.fileList,...ye],"uid"),Lt.file.status==="done"&&((Ut=(en=Lt.file)==null?void 0:en.response)==null?void 0:Ut.status)===-1){Ke.ZP.error((Wt=(Xt=Lt.file)==null?void 0:Xt.response)==null?void 0:Wt.message);return}ye.length>=lt?pe(!0):pe(!1),Re([...ye]),ye=ye.map(qt=>{var he,Ce;return(he=qt==null?void 0:qt.response)!=null&&he.id&&(qt.url=(Ce=qt==null?void 0:qt.response)==null?void 0:Ce.url),qt.name.indexOf(a)===-1&&(qt.name=`${qt.name}${a}${y(qt.size)}`),Ee({},qt)}),console.log("info:",Lt,ye),ot(ye)},onRemove:Lt=>nt(void 0,null,function*(){if(!Qt)return!0;const en=()=>nt(void 0,null,function*(){if(Lt.response?Lt.response.id:Lt.id){let Xt=yield(0,se.JZ)(Lt.response?Lt.response.id:Lt.uid);return Promise.resolve(Xt)}else return!0});return Ft?new Promise((Ut,Xt)=>{ke.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ne.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>nt(void 0,null,function*(){const Wt=yield en();Ke.ZP.success("\u5220\u9664\u6210\u529F"),Ut(!0)}),onCancel:()=>Ut(!1)})}):yield en()})};function Dt(Lt){Lt.preventDefault(),Lt.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${be||""}`},de&&ne.createElement(gt,Ee({},$t),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(b.Z,null)),ne.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ne.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ie,"MB)"," "),mt),!de&&ne.createElement(Pe.default,Ee({},$t),ne.createElement(ce.ZP,{disabled:ve,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:le}),Ye),ne.createElement("span",{onClick:Dt,className:"upload_text"},pt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ie}MB)`)))}},57444:function(xe,ut,re){"use strict";re.d(ut,{h:function(){return ee}});var ne=re(67294),Pe=re(11713),Ke=re(22150),ke=re(71577),ce=re(4631),Ze=re.n(ce),se=re(71749),_e=re(30483),Ne=Object.defineProperty,Ae=Object.defineProperties,je=Object.getOwnPropertyDescriptors,Me=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ae=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={}))Te.call(oe,ge)&&a(te,ge,oe[ge]);if(Me)for(var ge of Me(oe))ae.call(oe,ge)&&a(te,ge,oe[ge]);return te},E=(te,oe)=>Ae(te,je(oe));const b=Pe.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"]};ut.Z=({callback:te,onCancel:oe})=>{const[ge,ie]=(0,ne.useState)("python");function Se(ze){ie(z[ze][1])}function le(ze){te(ze)}return ne.createElement(Ke.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ne.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(Pe.default,{getPopupContainer:ze=>ze.parentNode,onChange:Se},Object.keys(z).map(ze=>ne.createElement(b,{key:ze,value:ze},z[ze][0])))),ne.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ee,{mode:ge})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(ke.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(ke.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:ie={}}){const Se=(0,ne.useRef)(),[le,ze]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(le){let $e=function(St){const It=St.getValue();oe&&oe(It)};return le.on("change",$e),()=>{le.off("change",$e)}}},[le,oe]),(0,ne.useEffect)(()=>{le&&le.setOption("mode",ge)},[le,ge]),(0,ne.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ne.useEffect)(()=>{if(Se.current&&!le){const $e=Ze().fromTextArea(Se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));ze($e)}},[Se.current,le]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:Se}))}},35567:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return jn}});var ne=re(67294),Pe=re(4631),Ke=re.n(Pe),ke=re(91033),ce=re(71749),Ze=re(57341),se=re(82801),_e=re(88386),Ne=re(49047),Ae=re(80785),je=re(85725),Me=({value:ue="",className:Le,showTextOnly:fe,showLines:Qe,style:wt={}})=>{const Bt=(0,ne.useMemo)(()=>"",[ue]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Bt}}))},Te=re(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(ue,Le,fe)=>Le in ue?ae(ue,Le,{enumerable:!0,configurable:!0,writable:!0,value:fe}):ue[Le]=fe,ee=(ue,Le)=>{for(var fe in Le||(Le={}))b.call(Le,fe)&&z(ue,fe,Le[fe]);if(E)for(var fe of E(Le))x.call(Le,fe)&&z(ue,fe,Le[fe]);return ue},te=(ue,Le)=>a(ue,y(Le));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:ue,title:Le,icon:fe,actionName:Qe,className:wt="",children:Bt}){function Sn(){ue(Qe)}return Te.createElement("a",{title:Le,className:wt,onClick:Sn},Te.createElement("i",{className:`${fe}`}),Bt)}var ie=({watch:ue,showNullButton:Le,showNullProgramButton:fe,onActionCallback:Qe,fullScreen:wt,insertTemp:Bt,hidetoolBar:Sn,extraUse:Jt})=>{const ln=[...oe,{title:`${ue?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${ue?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Te.createElement("ul",{className:"markdown-toolbar-container"},!Sn&&ln.map((xn,Hn)=>Te.createElement("li",{key:Hn},xn.actionName?Te.createElement(ge,te(ee({},xn),{onActionCallback:Qe})):Te.createElement("span",{className:"v-line"}))),Le?Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Qe},Te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,fe?Te.createElement(Te.Fragment,null,Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Qe},Te.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Qe},Te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Bt&&Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Bt}`,onActionCallback:Qe},Te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Jt&&Te.createElement("li",null,Jt),Te.createElement("li",{className:"btn-full-screen"},Te.createElement(ge,{icon:`${wt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:wt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Qe})))},Se=re(76621),le=re(22150),ze=re(69677),$e=re(71577),St=Object.defineProperty,It=Object.defineProperties,Vt=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,at=(ue,Le,fe)=>Le in ue?St(ue,Le,{enumerable:!0,configurable:!0,writable:!0,value:fe}):ue[Le]=fe,dt=(ue,Le)=>{for(var fe in Le||(Le={}))nt.call(Le,fe)&&at(ue,fe,Le[fe]);if(Ee)for(var fe of Ee(Le))gt.call(Le,fe)&&at(ue,fe,Le[fe]);return ue},et=(ue,Le)=>It(ue,Vt(Le));const ot={labelCol:{span:4},wrapperCol:{span:20}};var it=({callback:ue,onCancel:Le})=>{function fe(Qe){ue(Qe)}return ne.createElement(le.default,et(dt({},ot),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:fe,style:{width:500}}),ne.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(ze.default,null)),ne.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(ze.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement($e.ZP,{type:"ghost",onClick:Le},"\u53D6\u6D88")))},an=re(57444),be=re(70859),Ie=re(14446),Ye=re(71230),Ft=re(63205),Xe=re(67294),mt=({callback:ue,onCancel:Le})=>{const fe=document.createElement("canvas"),Qe=fe.getContext("2d");fe.width=1e3,fe.height=800,Qe.fillStyle="#ffffff",Qe.fillRect(0,0,fe.width,fe.height);const wt=fe.toDataURL("image/png");return Xe.createElement(Ie.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Xe.createElement(Ye.Z,{style:{height:"100vh"}},Xe.createElement(Ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:wt,visible:!0,title:String(Date.now())},onOk:Bt=>{ue({src:Bt.url})},onClose:Le})))},de=re(23495);function lt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(lt,go.CommandHandler),lt.prototype.canAlignSelection=function(){var ue=this.diagram;return!(ue===null||ue.isReadOnly||ue.isModelReadOnly||ue.selection.count<2)},lt.prototype.alignLeft=function(){var ue=this.diagram;ue.startTransaction("aligning left");var Le=1/0;ue.selection.each(function(fe){fe instanceof go.Link||(Le=Math.min(fe.position.x,Le))}),ue.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(Le,fe.position.y))}),ue.commitTransaction("aligning left")},lt.prototype.alignRight=function(){var ue=this.diagram;ue.startTransaction("aligning right");var Le=-1/0;ue.selection.each(function(fe){if(!(fe instanceof go.Link)){var Qe=fe.actualBounds.x+fe.actualBounds.width;Le=Math.max(Qe,Le)}}),ue.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(Le-fe.actualBounds.width,fe.position.y))}),ue.commitTransaction("aligning right")},lt.prototype.alignTop=function(){var ue=this.diagram;ue.startTransaction("alignTop");var Le=1/0;ue.selection.each(function(fe){fe instanceof go.Link||(Le=Math.min(fe.position.y,Le))}),ue.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(fe.position.x,Le))}),ue.commitTransaction("alignTop")},lt.prototype.alignBottom=function(){var ue=this.diagram;ue.startTransaction("aligning bottom");var Le=-1/0;ue.selection.each(function(fe){if(!(fe instanceof go.Link)){var Qe=fe.actualBounds.y+fe.actualBounds.height;Le=Math.max(Qe,Le)}}),ue.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(fe.actualBounds.x,Le-fe.actualBounds.height))}),ue.commitTransaction("aligning bottom")},lt.prototype.alignCenterX=function(){var ue=this.diagram,Le=ue.selection.first();if(Le){ue.startTransaction("aligning Center X");var fe=Le.actualBounds.x+Le.actualBounds.width/2;ue.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(fe-Qe.actualBounds.width/2,Qe.actualBounds.y))}),ue.commitTransaction("aligning Center X")}},lt.prototype.alignCenterY=function(){var ue=this.diagram,Le=ue.selection.first();if(Le){ue.startTransaction("aligning Center Y");var fe=Le.actualBounds.y+Le.actualBounds.height/2;ue.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(Qe.actualBounds.x,fe-Qe.actualBounds.height/2))}),ue.commitTransaction("aligning Center Y")}},lt.prototype.alignColumn=function(ue){var Le=this.diagram;Le.startTransaction("align Column"),ue===void 0&&(ue=0),ue=parseFloat(ue);var fe=new Array;Le.selection.each(function(Jt){Jt instanceof go.Link||fe.push(Jt)});for(var Qe=0;Qe<fe.length-1;Qe++){var wt=fe[Qe],Bt=wt.actualBounds.y+wt.actualBounds.height+ue,Sn=fe[Qe+1];Sn.move(new go.Point(wt.actualBounds.x,Bt))}Le.commitTransaction("align Column")},lt.prototype.alignRow=function(ue){ue===void 0&&(ue=0),ue=parseFloat(ue);var Le=this.diagram;Le.startTransaction("align Row");var fe=new Array;Le.selection.each(function(Jt){Jt instanceof go.Link||fe.push(Jt)});for(var Qe=0;Qe<fe.length-1;Qe++){var wt=fe[Qe],Bt=wt.actualBounds.x+wt.actualBounds.width+ue,Sn=fe[Qe+1];Sn.move(new go.Point(Bt,wt.actualBounds.y))}Le.commitTransaction("align Row")},lt.prototype.canRotate=function(ue){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<1)},lt.prototype.rotate=function(ue){ue===void 0&&(ue=90);var Le=this.diagram;Le.startTransaction("rotate "+ue.toString());var Le=this.diagram;Le.selection.each(function(fe){fe instanceof go.Link||fe instanceof go.Group||(fe.angle+=ue)}),Le.commitTransaction("rotate "+ue.toString())},lt.prototype.pullToFront=function(){var ue=this.diagram;ue.startTransaction("pullToFront");var Le=new go.Map;ue.selection.each(function(fe){Le.set(fe.layer,0)}),Le.iteratorKeys.each(function(fe){var Qe=0;fe.parts.each(function(wt){if(!wt.isSelected){var Bt=wt.zOrder;isNaN(Bt)?wt.zOrder=0:Qe=Math.max(Qe,Bt)}}),Le.set(fe,Qe)}),ue.selection.each(function(fe){lt._assignZOrder(fe,Le.get(fe.layer)+1)}),ue.commitTransaction("pullToFront")},lt.prototype.pushToBack=function(){var ue=this.diagram;ue.startTransaction("pushToBack");var Le=new go.Map;ue.selection.each(function(fe){Le.set(fe.layer,0)}),Le.iteratorKeys.each(function(fe){var Qe=0;fe.parts.each(function(wt){if(!wt.isSelected){var Bt=wt.zOrder;isNaN(Bt)?wt.zOrder=0:Qe=Math.min(Qe,Bt)}}),Le.set(fe,Qe)}),ue.selection.each(function(fe){lt._assignZOrder(fe,Le.get(fe.layer)-1-lt._findGroupDepth(fe))}),ue.commitTransaction("pushToBack")},lt._assignZOrder=function(ue,Le,fe){fe===void 0&&(fe=ue),ue.layer===fe.layer&&(ue.zOrder=Le),ue instanceof go.Group&&ue.memberParts.each(function(Qe){lt._assignZOrder(Qe,Le+1,fe)})},lt._findGroupDepth=function(ue){if(ue instanceof go.Group){var Le=0;return ue.memberParts.each(function(fe){Le=Math.max(Le,lt._findGroupDepth(fe))}),Le+1}else return 0},lt.prototype.doKeyDown=function(){var ue=this.diagram;if(ue!==null){var Le=ue.lastInput;if(Le.key==="Up"||Le.key==="Down"||Le.key==="Left"||Le.key==="Right"){var fe=this.arrowKeyBehavior;if(fe==="none")return;if(fe==="select"){this._arrowKeySelect();return}else if(fe==="move"){this._arrowKeyMove();return}else if(fe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},lt.prototype._getAllParts=function(){var ue=new Array;return this.diagram.nodes.each(function(Le){ue.push(Le)}),this.diagram.parts.each(function(Le){ue.push(Le)}),ue},lt.prototype._arrowKeyMove=function(){var ue=this.diagram,Le=ue.lastInput,fe=0,Qe=0;if(Le.control||Le.meta)fe=1,Qe=1;else if(ue.grid!==null){var wt=ue.grid.gridCellSize;Qe=wt.width,fe=wt.height}ue.startTransaction("arrowKeyMove"),ue.selection.each(function(Bt){Le.key==="Up"?Bt.move(new go.Point(Bt.actualBounds.x,Bt.actualBounds.y-fe)):Le.key==="Down"?Bt.move(new go.Point(Bt.actualBounds.x,Bt.actualBounds.y+fe)):Le.key==="Left"?Bt.move(new go.Point(Bt.actualBounds.x-Qe,Bt.actualBounds.y)):Le.key==="Right"&&Bt.move(new go.Point(Bt.actualBounds.x+Qe,Bt.actualBounds.y))}),ue.commitTransaction("arrowKeyMove")},lt.prototype._arrowKeySelect=function(){var ue=this.diagram,Le=ue.lastInput,fe=null;Le.key==="Up"?fe=this._findNearestPartTowards(270):Le.key==="Down"?fe=this._findNearestPartTowards(90):Le.key==="Left"?fe=this._findNearestPartTowards(180):Le.key==="Right"&&(fe=this._findNearestPartTowards(0)),fe!==null&&(Le.shift?fe.isSelected=!0:Le.control||Le.meta?fe.isSelected=!fe.isSelected:ue.select(fe))},lt.prototype._findNearestPartTowards=function(ue){var Le=this.diagram.selection.first();if(Le===null)return null;for(var fe=Le.actualBounds.center,Qe=this._getAllParts(),wt=1/0,Bt=Le,Sn=0;Sn<Qe.length;Sn++){var Jt=Qe[Sn];if(Jt!==Le&&Jt.canSelect()){var ln=Jt.actualBounds.center,xn=fe.directionPoint(ln),Hn=this._angleCloseness(xn,ue);if(Hn<=45){var qe=fe.distanceSquaredPoint(ln);qe*=1+Math.sin(Hn*Math.PI/180),qe<wt&&(wt=qe,Bt=Jt)}}}return Bt},lt.prototype._angleCloseness=function(ue,Le){return Math.min(Math.abs(Le-ue),Math.min(Math.abs(Le+360-ue),Math.abs(Le-360-ue)))},lt.prototype._arrowKeyTree=function(){var ue=this.diagram,Le=ue.selection.first();if(Le instanceof go.Node){var fe=ue.lastInput;if(fe.key==="Right"){if(!Le.isTreeLeaf)if(!Le.isTreeExpanded)ue.commandHandler.canExpandTree(Le)&&ue.commandHandler.expandTree(Le);else{var Qe=this._sortTreeChildrenByY(Le).first();Qe!==null&&ue.select(Qe)}}else if(fe.key==="Left")if(!Le.isTreeLeaf&&Le.isTreeExpanded)ue.commandHandler.canCollapseTree(Le)&&ue.commandHandler.collapseTree(Le);else{var wt=Le.findTreeParentNode();wt!==null&&ue.select(wt)}else if(fe.key==="Up"){var wt=Le.findTreeParentNode();if(wt!==null){var Bt=this._sortTreeChildrenByY(wt),Sn=Bt.indexOf(Le);if(Sn>0){for(var Jt=Bt.elt(Sn-1);Jt!==null&&Jt.isTreeExpanded&&!Jt.isTreeLeaf;){var ln=this._sortTreeChildrenByY(Jt);Jt=ln.last()}Jt!==null&&ue.select(Jt)}else ue.select(wt)}}else if(fe.key==="Down")if(Le.isTreeExpanded&&!Le.isTreeLeaf){var Qe=this._sortTreeChildrenByY(Le).first();Qe!==null&&ue.select(Qe)}else for(;Le!==null;){var wt=Le.findTreeParentNode();if(wt===null)break;var Bt=this._sortTreeChildrenByY(wt),Sn=Bt.indexOf(Le);if(Sn<Bt.length-1){ue.select(Bt.elt(Sn+1));break}else Le=wt}var xn=ue.selection.first();xn!==null&&ue.scrollToRect(xn.actualBounds)}},lt.prototype._sortTreeChildrenByY=function(ue){var Le=new go.List().addAll(ue.findTreeChildrenNodes());return Le.sort(function(fe,Qe){var wt=fe.location,Bt=Qe.location;return wt.y<Bt.y?-1:wt.y>Bt.y?1:wt.x<Bt.x?-1:wt.x>Bt.x?1:0}),Le},lt.prototype.copyToClipboard=function(ue){go.CommandHandler.prototype.copyToClipboard.call(this,ue),this._lastPasteOffset.set(this.pasteOffset)},lt.prototype.pasteFromClipboard=function(){var ue=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(ue,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),ue},Object.defineProperty(lt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(ue){if(ue!=="move"&&ue!=="select"&&ue!=="scroll"&&ue!=="tree"&&ue!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+ue);this._arrowKeyBehavior=ue}}),Object.defineProperty(lt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(ue){if(!(ue instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+ue);this._pasteOffset.set(ue)}});var kt=lt,Qt=re(18023),pt=re(15746),Ge=re(33170),we={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ve=re(67294),pe=(ue,Le,fe)=>new Promise((Qe,wt)=>{var Bt=ln=>{try{Jt(fe.next(ln))}catch(xn){wt(xn)}},Sn=ln=>{try{Jt(fe.throw(ln))}catch(xn){wt(xn)}},Jt=ln=>ln.done?Qe(ln.value):Promise.resolve(ln.value).then(Bt,Sn);Jt((fe=fe.apply(ue,Le)).next())});function ye({onCancel:ue,callback:Le}){let fe=(0,ne.useRef)(),Qe=(0,ne.useRef)(),wt=(0,ne.useRef)(),Bt=(0,ne.useRef)(!1);const Sn=(0,ne.useRef)(!1),[Jt,ln]=(0,ne.useState)(0);function xn(){const qe=de.bx.make,dn={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"};fe.current=new de.S0(Qe.current,{padding:20,grid:qe(de.s_,"Grid",qe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qe(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ve=>{var vt=Ve.diagram.commandHandler.addTopLevelParts(Ve.diagram.selection,!0);vt||Ve.diagram.currentTool.doCancel()},commandHandler:qe(kt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ve=>{var vt=Ve.subject;vt.location=vt.location.copy().snapToGridPoint(Ve.diagram.grid.gridOrigin,Ve.diagram.grid.gridCellSize),setTimeout(()=>{Ve.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ve=>{var vt=Ve.subject;setTimeout(()=>{Ve.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ve=>{var vt=Ve.parameter.part;vt.invalidateConnectedLinks();var Mt=Ve.subject;Ve.diagram.toolManager.linkingTool.isForwards?Mt.toNode.invalidateConnectedLinks():Mt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),fe.current.nodeTemplate=qe(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),qe(de.bn,{name:"SHAPE",fill:dn.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")),qe(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),qe(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),fe.current.nodeTemplate.toolTip=qe("ToolTip",qe(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},qe(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),qe(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function me(Ve,vt){var Mt=(ct,cn)=>{ct.handled=!0,ct.diagram.model.commit(jt=>{var vn=cn.part.adornedPart,$n=new de.E9().setRectSpot(vn.actualBounds,Ve);$n.subtract(vn.location),$n.scale(2,2),$n.x+=Math.sign($n.x)*130,$n.y+=Math.sign($n.y)*130,$n.add(vn.location),$n.snapToGridPoint(ct.diagram.grid.gridOrigin,ct.diagram.grid.gridCellSize);var Nn=jt.copyNodeData(vn.data);jt.setGroupKeyForNodeData(Nn,jt.getGroupKeyForNodeData(vn.data)),jt.addNodeData(Nn);var ea={from:vn.key,to:jt.getKeyForNodeData(Nn)};jt.addLinkData(ea);var ta=ct.diagram.findNodeForData(Nn);ta.location=$n,ct.diagram.select(ta),setTimeout(()=>{ct.diagram.commandHandler.editTextBlock()},20)})};return qe(de.bn,{figure:vt,alignment:Ve,alignmentFocus:Ve.opposite(),width:Ve.equals(de.z6.Top)||Ve.equals(de.z6.Bottom)?25:18,height:Ve.equals(de.z6.Top)||Ve.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:dn.white,strokeWidth:4,mouseEnter:(ct,cn)=>cn.fill="dodgerblue",mouseLeave:(ct,cn)=>cn.fill="orange",isActionable:!0,click:Mt,contextClick:Mt})}function Be(Ve){return qe(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:(vt,Mt)=>Mt.fill="dodgerblue",mouseLeave:(vt,Mt)=>Mt.fill="orange",click:(vt,Mt)=>{vt.diagram.commandHandler.showContextMenu(Mt.part.adornedPart)}},Ve||{})}fe.current.nodeTemplate.selectionAdornmentTemplate=qe(de.uz,"Spot",qe(de.Vm,{padding:10}),me(de.z6.Top,"TriangleUp"),me(de.z6.Left,"TriangleLeft"),me(de.z6.Right,"TriangleRight"),me(de.z6.Bottom,"TriangleDown"),Be({alignment:new de.z6(.75,0)}));function Fe(Ve,vt){return(Mt,ct)=>{Mt.handled=!0,Mt.diagram.model.commit(cn=>{cn.set(ct.part.adornedPart.data,Ve,vt)})}}function Oe(Ve,vt){return vt||(vt="color"),qe(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ve,margin:1,background:"transparent",mouseEnter:(Mt,ct)=>ct.stroke="dodgerblue",mouseLeave:(Mt,ct)=>ct.stroke="lightgray",click:Fe(vt,Ve),contextClick:Fe(vt,Ve)})}function rt(){return[qe("ContextMenuButton",qe(de.s_,"Horizontal",Oe(dn.white,"fill"),Oe(dn.beige,"fill"),Oe(dn.extralightblue,"fill"),Oe(dn.extralightred,"fill"))),qe("ContextMenuButton",qe(de.s_,"Horizontal",Oe(dn.lightgray,"fill"),Oe(dn.lightgreen,"fill"),Oe(dn.lightblue,"fill"),Oe(dn.lightred,"fill")))]}function We(){return[qe("ContextMenuButton",qe(de.s_,"Horizontal",Oe(dn.black),Oe(dn.green),Oe(dn.blue),Oe(dn.red))),qe("ContextMenuButton",qe(de.s_,"Horizontal",Oe(dn.white),Oe(dn.magenta),Oe(dn.purple),Oe(dn.orange)))]}function Je(Ve,vt){return vt||(vt="thickness"),qe(de.bn,"LineH",{width:16,height:16,strokeWidth:Ve,margin:1,background:"transparent",mouseEnter:(Mt,ct)=>ct.background="dodgerblue",mouseLeave:(Mt,ct)=>ct.background="transparent",click:Fe(vt,Ve),contextClick:Fe(vt,Ve)})}function De(Ve,vt){return vt||(vt="dash"),qe(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ve,margin:1,background:"transparent",mouseEnter:(Mt,ct)=>ct.background="dodgerblue",mouseLeave:(Mt,ct)=>ct.background="transparent",click:Fe(vt,Ve),contextClick:Fe(vt,Ve)})}function Tt(){return[qe("ContextMenuButton",qe(de.s_,"Horizontal",Je(1),Je(2),Je(3),Je(4))),qe("ContextMenuButton",qe(de.s_,"Horizontal",De(null),De([2,4]),De([4,4])))]}function Ct(Ve,vt){return vt||(vt="figure"),qe(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ve,margin:1,background:"transparent",mouseEnter:(Mt,ct)=>ct.fill="dodgerblue",mouseLeave:(Mt,ct)=>ct.fill="lightgray",click:Fe(vt,Ve),contextClick:Fe(vt,Ve)})}fe.current.nodeTemplate.contextMenu=qe("ContextMenu",qe("ContextMenuButton",qe(de.s_,"Horizontal",Ct("Rectangle"),Ct("RoundedRectangle"),Ct("Ellipse"),Ct("Diamond"))),qe("ContextMenuButton",qe(de.s_,"Horizontal",Ct("Parallelogram2"),Ct("ManualOperation"),Ct("Procedure"),Ct("Cylinder1"))),qe("ContextMenuButton",qe(de.s_,"Horizontal",Ct("Terminator"),Ct("CreateRequest"),Ct("Document"),Ct("TriangleDown"))),rt(),We(),Tt()),fe.current.groupTemplate=qe(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ve,vt)=>{var Mt=vt.addMembers(vt.diagram.selection,!0);Mt||vt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),qe(de.s_,"Auto",{name:"BODY"},qe(de.bn,{parameter1:10,fill:dn.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")),qe(de.Vm,{background:"transparent",margin:20})),qe(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"))),fe.current.groupTemplate.selectionAdornmentTemplate=qe(de.uz,"Spot",qe(de.s_,"Auto",qe(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),qe(de.Vm,{margin:1.5})),Be({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),fe.current.groupTemplate.contextMenu=qe("ContextMenu",rt(),We(),Tt()),fe.current.linkTemplate=qe(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",Ve=>Ve>=1?10:0),new de.KX("toShortLength","dir",Ve=>Ve>=1?10:0),new de.KX("points").makeTwoWay(),qe(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),qe(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",Ve=>Ve===1)),qe(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",Ve=>Ve>=1),new de.KX("width","thickness",Ve=>7+3*Ve),new de.KX("height","thickness",Ve=>7+3*Ve),new de.KX("segmentOffset","thickness",Ve=>new de.E9(-15,4+1.5*Ve))),qe(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",Ve=>Ve===2),new de.KX("width","thickness",Ve=>7+3*Ve),new de.KX("height","thickness",Ve=>7+3*Ve),new de.KX("segmentOffset","thickness",Ve=>new de.E9(-15,4+1.5*Ve))),qe(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),fe.current.linkTemplate.selectionAdornmentTemplate=qe(de.uz,qe(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ht(2)},new de.KX("pathPattern","thickness",Ht)),Be({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ht(Ve){return qe(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ve+4).toString()+" H3"})}function nn(Ve){var vt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ve===0?vt="M0 0 M16 16 M0 8 L16 8":Ve===2&&(vt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),qe(de.bn,{geometryString:vt,margin:2,background:"transparent",mouseEnter:(Mt,ct)=>ct.background="dodgerblue",mouseLeave:(Mt,ct)=>ct.background="transparent",click:Fe("dir",Ve),contextClick:Fe("dir",Ve)})}function sn(Ve){var vt=(Mt,ct)=>{Mt.handled=!0,Mt.diagram.model.commit(cn=>{var jt=ct.part.adornedPart;cn.set(jt.data,Ve?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ve?jt.toNode:jt.fromNode).invalidateConnectedLinks()})};return qe(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Mt,ct)=>ct.background="dodgerblue",mouseLeave:(Mt,ct)=>ct.background="transparent",click:vt,contextClick:vt})}function fn(Ve,vt){var Mt=0,ct=de.z6.RightSide;Ve.equals(de.z6.Top)?(Mt=270,ct=de.z6.TopSide):Ve.equals(de.z6.Left)?(Mt=180,ct=de.z6.LeftSide):Ve.equals(de.z6.Bottom)&&(Mt=90,ct=de.z6.BottomSide),vt||(Mt-=180);var cn=(jt,vn)=>{jt.handled=!0,jt.diagram.model.commit($n=>{var Nn=vn.part.adornedPart;$n.set(Nn.data,vt?"toSpot":"fromSpot",de.z6.stringify(ct)),(vt?Nn.toNode:Nn.fromNode).invalidateConnectedLinks()})};return qe(de.bn,{alignment:Ve,alignmentFocus:Ve.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Mt,background:"transparent",mouseEnter:(jt,vn)=>vn.background="dodgerblue",mouseLeave:(jt,vn)=>vn.background="transparent",click:cn,contextClick:cn})}fe.current.linkTemplate.contextMenu=qe("ContextMenu",We(),Tt(),qe("ContextMenuButton",qe(de.s_,"Horizontal",nn(0),nn(1),nn(2))),qe("ContextMenuButton",qe(de.s_,"Horizontal",qe(de.s_,"Spot",sn(!1),fn(de.z6.Top,!1),fn(de.z6.Left,!1),fn(de.z6.Right,!1),fn(de.z6.Bottom,!1)),qe(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},sn(!0),fn(de.z6.Top,!0),fn(de.z6.Left,!0),fn(de.z6.Right,!0),fn(de.z6.Bottom,!0)))));const An=`{ "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 Ue=["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 Xn(Ve){return console.log("shapeName:",Ve),Ue.indexOf(Ve)>=0}var On=new de.YI(wt.current,{maxSelectionCount:1,linkTemplate:qe(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:qe(de.uz,"Link",{locationSpot:de.z6.Center},qe(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),qe(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),qe(de.bn,{isPanelMain:!0,strokeWidth:2}),qe(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(Ve=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ve.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return fe.current.addDiagramListener("TextEdited",function(Ve){var vt;const Mt=Ve.subject.part;var ct=(vt=document.activeElement)==null?void 0:vt.value;typeof ct=="string"&&ct.trim()===""&&fe.current.model.commit(function(cn){cn.set(Mt.data,"text","\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}),On.nodeTemplate=qe(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),qe(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")),qe(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(()=>{fe.current.grid=qe(de.s_,"Grid",qe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qe(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),fe.current.grid.visible=!0,fe.current.grid.gridCellStroke="darkgray",fe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=fe.current,fe.current}const Hn=()=>pe(this,null,function*(){var qe=fe.current.makeImage();const dn=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:qe.src}});Le({src:dn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{xn()},500),ln(Jt+1),()=>{fe.current=null}),[]),ve.createElement("div",{ref:Sn,className:Bt.current?`${we.maxH60} body-overflow-initial`:"body-overflow-initial"},ve.createElement(Ie.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Jt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ve.createElement(Ye.Z,null,ve.createElement(pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ve.createElement(pt.Z,{onClick:()=>{var qe,dn,me=fe.current.selection.first();if(Bt.current=!Bt.current,document.activeElement&&me){let Be=(dn=(qe=document.activeElement)==null?void 0:qe.value)==null?void 0:dn.trim();typeof Be=="string"&&fe.current.model.commit(function(Fe){Fe.set(me.data,"text",Be||"\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}ln(Jt+1)}},ve.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:ue},ve.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:we.flowChartWrp},ve.createElement("div",{style:{display:"flex",height:"100%"}},ve.createElement("div",{style:{width:"300px",height:"100%"}},ve.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ve.createElement("div",{style:{height:"calc(100% - 50px)"},className:we.myPaletteDiv,ref:wt})),ve.createElement("div",{style:{flex:1,position:"relative"}},ve.createElement("div",{ref:Qe,style:{height:"80vh"}}))),ve.createElement("div",{className:"tr"},ve.createElement($e.ZP,{size:"large",onClick:Hn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Re=ye,tt=re(78045),ht=re(31795);const bt=tt.ZP.Group,$t={margin:"0 8px"};var Dt=({callback:ue,onCancel:Le})=>{function fe(Qe){ue(Qe)}return ne.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:fe},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:$t},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:$t},"\u884C\u6570"),ne.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(ht.Z,null)),ne.createElement("span",{style:$t},"\u5217\u6570"),ne.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(ht.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:$t},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(le.default.Item,{name:"align"},ne.createElement(bt,null,ne.createElement(tt.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(tt.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(tt.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(tt.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement($e.ZP,{type:"ghost",onClick:Le},"\u53D6\u6D88")))},Lt=re(47897),en=re(61016),Ut=re.n(en),Wt=(0,ne.forwardRef)(({use3d:ue,width:Le,height:fe,callback:Qe,showSaveButton:wt},Bt)=>{const Sn=(0,ne.useRef)(),Jt=(0,ne.useRef)(),[ln,xn]=(0,ne.useState)(!1),Hn=(0,ne.useRef)({id:Sn,appName:"graphing",width:Le||1e3,height:fe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ne.useEffect)(()=>{Jt.current=new(Ut())(Hn.current,!0),window.onload=function(){Jt.current.inject("applet_container")}},[]);const qe=()=>{var dn=window.ggbApplet.getPNGBase64(1,!0,72);return Qe&&Qe(dn),dn};return(0,ne.useEffect)(()=>{Hn.current.appName=ln?"3D":"graphing",Jt.current.inject("applet_container")},[ln]),(0,ne.useEffect)(()=>{xn(ue)},[ue]),(0,ne.useImperativeHandle)(Bt,()=>({getImgData:qe})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Sn}),ne.createElement(Ye.Z,{align:"middle"},ne.createElement(pt.Z,{flex:1},ne.createElement(Lt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ln,onChange:dn=>xn(dn)})),ne.createElement(pt.Z,null,ne.createElement($e.ZP,{size:"large",onClick:qe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),qt=re(36527),he=re(25934),Ce=re(2453);const He="link",st="upload-image",ft="add-flowchart",Gt="draw-image",zt="add-flowchart",Et="code-block",Ot="add-table",Kt="------------",Zt={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var gn=re(99914),rn=(ue,Le,fe)=>new Promise((Qe,wt)=>{var Bt=ln=>{try{Jt(fe.next(ln))}catch(xn){wt(xn)}},Sn=ln=>{try{Jt(fe.throw(ln))}catch(xn){wt(xn)}},Jt=ln=>ln.done?Qe(ln.value):Promise.resolve(ln.value).then(Bt,Sn);Jt((fe=fe.apply(ue,Le)).next())});function hn(){}let bn=0;const on=1e4,tn="\u2581",un="@\u2581\u2581@",pn="@\u2581@",wn=`
|
|
**\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`,mn=["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 Bn(ue){return/^\d+$/.test(ue)?`${ue}px`:ue}const En=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Tn={[En+"-B"]:"bold",[En+"-I"]:"italic"},Un={[He]:"\u6DFB\u52A0\u94FE\u63A5",[Et]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[st]:"\u6DFB\u52A0\u56FE\u7247",[Gt]:"\u6DFB\u52A0\u753B\u56FE",[ft]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ot]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var jn=({defaultValue:ue="",onChange:Le,width:fe="100%",height:Qe=400,miniToolbar:wt=!1,isFocus:Bt=!1,watch:Sn,insertTemp:Jt,mode:ln="markdown",id:xn="markdown-editor-id",showResizeBar:Hn=!1,noStorage:qe=!1,showNullButton:dn=!1,showNullProgramButton:me=!1,hidetoolBar:Be=!1,fullScreen:Fe=!1,onBlur:Oe,onCMBeforeChange:rt,onFullScreen:We,className:Je="",disablePaste:De=!1,disabled:Tt=!1,disabledFill:Ct=!1,placeholder:Ht="",values:nn="",extraUse:sn,isShowTool:fn=!0,disableImageUpload:An=!1})=>{const[Ue,Xn]=(0,ne.useState)(null),[On,Ve]=(0,ne.useState)(ue),[vt,Mt]=(0,ne.useState)(Sn),[ct,cn]=(0,ne.useState)(Fe),[jt,vn]=(0,ne.useState)(""),[$n,Nn]=(0,ne.useState)(0),[ea,ta]=(0,ne.useState)(Qe),[ua,na]=(0,ne.useState)(!1),Vn=(0,ne.useRef)((0,he.Z)()),Mn=(0,ne.useRef)(!1),da=(0,ne.useRef)(),[la,sa]=(0,ne.useState)(0),[aa,Kn]=(0,ne.useState)(0),Yn=(0,ne.useRef)(),_t=(0,ne.useRef)(),Gn=(0,ne.useRef)(),Wn=(0,ne.useRef)(),Zn=()=>rn(void 0,null,function*(){var Nt;const Pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Vn.current}});(Nt=Pt==null?void 0:Pt.attachments)!=null&&Nt.length&&(console.log("cm:",Ue,Yn),Pt.attachments.map(yt=>{yt.content_type.indexOf("image")>-1?Ue.replaceSelection(``):yt.content_type.indexOf("video")>-1?Ue.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):yt.content_type.indexOf("pdf")>-1?Ue.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${yt.id}?type=${yt.content_type}&disposition=inline" target="_blank">${yt.name}</a>`):Ue.replaceSelection(`[${yt.name}](${ENV.API_SERVER}/api/attachments/${yt.id}?type=${yt.content_type})`)}))});(0,ne.useEffect)(()=>{const Nt=window.scrollY||window.pageYOffset;Ve(nn),Ue==null||Ue.setValue(nn),window.scrollTo(0,Nt)},[nn]),(0,ne.useEffect)(()=>{We==null||We(ct)},[ct]),(0,ne.useEffect)(()=>{if(Yn.current){let Nt=function(yt,xt){var Pn,Dn;if(De){xt.preventDefault();return}const In=xt.clipboardData;if(In){const At=In.types.toString(),Yt=In.items;if(At==="Files"||In.types.indexOf("Files")>-1){if(xt.preventDefault(),ln=="stex")return;try{let Ln=Yt[1];((Pn=Yt[0])==null?void 0:Pn.kind)==="file"&&(Ln=Yt[0]);const Rt=Ln.getAsFile(),Cn=Rt.name.split(".").pop();if(An&&((Dn=Rt==null?void 0:Rt.type)==null?void 0:Dn.indexOf("image"))>-1)return!0;(0,be.I)(Rt,Fn=>{var Qn,ga,qn;Fn.id?((Qn=Rt==null?void 0:Rt.type)==null?void 0:Qn.indexOf("image"))>-1?Pt.replaceSelection(`<img width="100%" src="/api/attachments/${Fn.id}?type=${Fn.content_type})" alt="" />`):((ga=Rt==null?void 0:Rt.type)==null?void 0:ga.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Fn.id}"></video>`):((qn=Rt==null?void 0:Rt.type)==null?void 0:qn.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=${Rt.type}&disposition=inline" target="_blank">${Rt.name}</a>`):mn.includes(Cn)?Pt.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=office&disposition=inline" target="_blank">${Rt.name}</a>`):Pt.replaceSelection(`[${Rt.name}](/api/attachments/${Fn.id}?type=${Fn.content_type})`):(Fn==null?void 0:Fn.status)===401&&(Ce.ZP.warning((Fn==null?void 0:Fn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ln){Ce.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Pt=Ke().fromTextArea(Yn.current,{mode:ln,lineNumbers:!wt,lineWrapping:!0,value:ue,autoCloseTags:!me,autoCloseBrackets:!0});return Pt.on("keyup",function(yt,xt){xt.keyCode===8&&(yt.getValue()==""?Pt.setOption("placeholder",Ht):Pt.setOption("placeholder",null))}),Pt.on("keydown",function(yt,xt){if(xt.keyCode===8){var Pn=Jn(yt);Pn&&xt.preventDefault()}}),Bt&&Pt.focus(),Pt.on("paste",Nt),Pt.on("dragleave",function(yt,xt){_t.current.classList.remove("mouse-hover-md")}),Tt&&Pt.on("beforeChange",function(yt,xt){(xt.origin==="paste"||xt.origin==="+input")&&xt.cancel()}),Xn(Pt),()=>{Pt.off("paste",Nt)}}},[]);const oa=(0,ne.useCallback)(()=>{if(_t.current)try{}catch(Nt){console.log(Nt,"---- to set md editor body height")}},[ea,_t,ct]);(0,ne.useEffect)(()=>{function Nt(){let Pt=new ke.Z(yt=>{for(let xt of yt)(xt.target.offsetHeight>0||xt.target.offsetWidth>0)&&(oa(),Ue.setSize("100%","100%"),Ue.refresh())});return Pt.observe(Yn.current.parentElement),Pt}if(Ue){const Pt=Nt();return()=>{var yt,xt;(yt=Yn.current)!=null&&yt.parentElement&&Pt.unobserve((xt=Yn.current)==null?void 0:xt.parentElement)}}},[Ue,oa]),(0,ne.useEffect)(()=>{if(Ue){let Nt=[];for(const[Pt,yt]of Object.entries(Tn)){let xt={[Pt]:()=>{ca(yt)}};Nt.push(xt),Ue.addKeyMap(xt)}return da.current=setInterval(()=>{Mn.current&&Zn()},4e3),()=>{clearInterval(da.current);for(let Pt of Nt)Ue.removeKeyMap(Pt)}}},[Ue]),(0,ne.useEffect)(()=>{Fe!==ct&&cn(Fe)},[Fe]),(0,gn.Z)(()=>{if(!qe&&$n>0){let Nt=new Date().getTime(),Pt=window.sessionStorage.getItem(xn);Nt>=$n+on&&(!Pt||Pt!==On)&&(window.sessionStorage.setItem(xn,On),na(!0))}},on),(0,ne.useEffect)(()=>{Mt(Sn)},[Ue,Sn]),(0,ne.useEffect)(()=>{Ue&&Bt&&Ue.focus()},[Ue,Bt]),(0,ne.useEffect)(()=>{if(vt&&Ue){let Nt=function(yt){let xt=yt.target;if(Wn.current){let Pn=xt.scrollTop/xt.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*Pn}};const Pt=Ue.getScrollerElement();return Pt.addEventListener("scroll",Nt),()=>{Pt.removeEventListener("scroll",Nt)}}},[Ue,vt]),(0,ne.useEffect)(()=>{if(Ue&&rt){let Nt=function(Pt,yt){rt(Pt,yt)};return Ue.on("beforeChange",Nt),()=>{Ue.off("beforeChange",Nt)}}},[Ue,rt]),(0,ne.useEffect)(()=>{if(Ue&&Oe){let Nt=function(){Oe(Ue.getValue())};return Ue.on("blur",Nt),()=>{Ue.off("blur",Nt)}}},[Ue,Oe]);function Jn(Nt,Pt){var yt=Nt.getDoc(),xt=yt.getCursor(),Pn=yt.getLine(xt.line),Dn=Pn.charAt(xt.ch-1),In=Pn.lastIndexOf("@\u2581@",xt.ch),At=Pn.lastIndexOf("@\u2581\u2581@",xt.ch),Yt=In>At?In:At,Ln=In>At?3:4;if(un.indexOf(Dn)===-1)return null;if(console.log("change1:",Pt,Nt,Pn,xt,Yt,In,At,Dn),Yt>=0&&xt.ch-Yt<5){var Rt=Yt+Ln;return yt.replaceRange("",{line:xt.line,ch:Yt},{line:xt.line,ch:Rt}),{line:xt.line,ch:Rt}}return null}(0,ne.useEffect)(()=>{if(Ue){let Nt=function(Pt,yt){const xt=Pt.getValue();Ve(xt),Nn(new Date().getTime()),Pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Le&&(me?Le(xt,Pa(xt)):Le(xt))};return Ue.on("change",Nt),()=>{Ue.off("change",Nt)}}},[Ue,Le]),(0,ne.useEffect)(()=>{if(Ue)if(ue==null)Ue.setValue(""),Ve("");else{const Nt=window.scrollY||window.pageYOffset;ue!==Ue.getValue()&&(Ue.setValue(ue),Ve(ue),Ue.setCursor(Tt?1:Ue.lineCount(),0),window.scrollTo(0,Nt))}},[Ue,ue]);const ca=(0,ne.useCallback)(Nt=>{const Pt=Ue.getCursor(),yt=Ue.getSelection();let xt=yt.split(`
|
|
`);switch(Nt){case"bold":return Ue.replaceSelection("**"+yt+"**"),yt===""&&Ue.setCursor(Pt.line,Pt.ch+2),Ue.focus();case"italic":return Ue.replaceSelection("*"+yt+"*"),yt===""&&Ue.setCursor(Pt.line,Pt.ch+1),Ue.focus();case"code":return Ue.replaceSelection("`"+yt+"`"),yt===""&&Ue.setCursor(Pt.line,Pt.ch+1),Ue.focus();case"inline-latex":return vn("inline-latex"),Ue.focus();case"latex":return Ue.replaceSelection("```latex\n"+yt+"\n```"),Ue.setCursor(Pt.line+1,yt.length+1),Ue.focus();case"line-break":return Ue.replaceSelection(`<br/>
|
|
`),Ue.focus();case"list-ul":return yt===""?Ue.replaceSelection("- "+yt):Ue.replaceSelection(xt.map(Pn=>Pn===""?"":`- ${Pn}`).join(`
|
|
`)),Ue.focus();case"list-ol":return yt===""?Ue.replaceSelection("1. "+yt):Ue.replaceSelection(xt.map((Pn,Dn)=>Pn===""?"":`${Dn+1}. ${Pn}`).join(`
|
|
`)),Ue.focus();case"add-null-ch":return yt===""&&Ue.setCursor(Pt.line,Pt.ch),Ue.replaceSelection(tn),Ue.focus();case"add-signal":return yt===""&&Ue.setCursor(Pt.line,Pt.ch),Ue.replaceSelection(pn),Ue.focus();case"add-multiple":return yt===""&&Ue.setCursor(Pt.line,Pt.ch),Ue.replaceSelection(un),Ue.focus();case"inster-template-1":return yt===""&&Ue.setCursor(Pt.line,Pt.ch),Ue.replaceSelection(wn),Ue.focus();case"eraser":return Ue.setValue(""),Ue.focus();case"trigger-watch":return Mt(!vt),Ue.focus();case"trigger-full-screen":return cn(!ct),Ue.focus();case He:vn(He);return;case Et:vn(Et);return;case st:vn(st);return;case Gt:vn(Gt);return;case"maths-latex":vn("maths-latex");return;case ft:vn(ft);return;case Ot:vn(Ot);return;default:throw new Error}},[Ue,vt,ct]),_n=(0,ne.useCallback)((Nt,Pt)=>{var yt,xt,Pn,Dn,In,At;if(vn(""),!(An&&jt==st))switch(jt){case He:const{title:Fn,link:Qn}=Nt;return Ue.replaceSelection(`[${Fn}](${Qn})`),Ue.focus();case Et:const{language:ga,content:qn}=Nt;return Ue.replaceSelection(["```"+ga,qn,"```"].join(`
|
|
`)),Ue.focus();case"maths-latex":for(var Yt=atob(Nt),Ln=new Uint8Array(Yt.length),Rt=0;Rt<Yt.length;Rt++)Ln[Rt]=Yt.charCodeAt(Rt);var Cn=new Blob([Ln],{type:"image/png"});(0,be.I)(Cn,ia=>{ia.id?Ue.replaceSelection(``):(ia==null?void 0:ia.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ue.replaceSelection("`$$"+Nt+"$$`");break;case st:case Gt:case zt:const{src:ma,alt:wa}=Nt,kn=Pt,xa=(Pn=(xt=(yt=kn==null?void 0:kn.name)==null?void 0:yt.split("."))==null?void 0:xt.pop)==null?void 0:Pn.call(xt);return((Dn=kn==null?void 0:kn.type)==null?void 0:Dn.indexOf("image"))>-1||!(kn!=null&&kn.type)?kn.align||kn.width?Ue.replaceSelection(`<p style="text-align:${kn.align||"initial"}"><img width="${kn.width?kn.width+"%":"initial"}" src="${ma}" alt="${wa||""}" /></p>`):Ue.replaceSelection(`<img width="100%" src="${ma}" alt="${wa||""}" />`):((In=kn==null?void 0:kn.type)==null?void 0:In.indexOf("video"))>-1?Ue.replaceSelection(`<video width="100%" controls src="${ma}"></video>`):((At=kn==null?void 0:kn.type)==null?void 0:At.indexOf("pdf"))>-1?Ue.replaceSelection(`<a href="${ma}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):mn.includes(xa)?Ue.replaceSelection(`<a href="${ma}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):Ue.replaceSelection(`[${kn.name}](${ma})`),Ue.focus();case Ot:const{row:$a,col:Fa,align:Oa}=Nt;let va=`
|
|
`;for(let ia=0;ia<$a;ia++){let Ea=[],Ca=[];for(let Ba=0;Ba<Fa;Ba++)ia===1&&Ca.push(Zt[Oa]),Ea.push(" ");ia===1&&(va+=`| ${Ca.join(" | ")} |
|
|
`),va+=`| ${Ea.join(Fa===1?"":" | ")} |
|
|
`}return Ue.replaceSelection(va+`
|
|
`),Ue.focus();default:throw new Error}},[Ue,jt,An]),zn=(0,ne.useMemo)(()=>{switch(jt){case He:return ne.createElement(it,{callback:_n,onCancel:yn});case Et:return ne.createElement(an.Z,{callback:_n,onCancel:yn});case st:return ne.createElement(be.Z,{callback:_n,onCancel:yn});case ft:return ne.createElement(Re,{callback:_n,onCancel:yn});case Ot:return ne.createElement(Dt,{callback:_n,onCancel:yn});case"maths-latex":return ne.createElement(Wt,{showSaveButton:!0,callback:_n});case"inline-latex":return ne.createElement(qt.Z,{showSaveButton:!0,callback:_n});default:return null}},[jt]);function yn(){vn("")}(0,ne.useEffect)(()=>{if(Gn.current){let Nt=function(In){Pn=!0,Dn=In.pageY},Pt=function(){Pn=!1},yt=function(In){if(Pn){let At=In.pageY-Dn;At<0&&(At=0),At>300&&(At=300);let Yt=Qe+At+"px";ta(Yt)}},xt=Gn.current,Pn=!1,Dn=0;return xt.addEventListener("mousedown",Nt),document.addEventListener("mousemove",yt),document.addEventListener("mouseup",Pt),()=>{xt.removeEventListener("mousedown",Nt),document.removeEventListener("mousemove",yt),document.removeEventListener("mouseup",Pt)}}},[Ue,Gn]),(0,ne.useEffect)(()=>{ta(Qe)},[Qe]);const ra=Bn(fe),Sa=Bn(ea),fa={width:ra,height:Sa},ya=(0,ne.useMemo)(()=>{if($n){let Nt=new Date($n),Pt=Nt.getHours(),yt=Nt.getMinutes(),xt=Nt.getSeconds();return Pt=Pt<10?"0"+Pt:Pt,yt=yt<10?"0"+yt:yt,xt=xt<10?"0"+xt:xt,`${Pt}:${yt}:${xt}`}return 0},[$n]),Pa=Nt=>{const Pt=[];if(me){let yt=-1;Nt=Nt.replace(/(@▁▁@|@▁@)/g,function(xt,Pn,Dn){Pt.push({multiLine:xt!==pn})})}return Pt};function La(){window.sessionStorage.removeItem(xn),na(!1),Nn(0)}function ba(){na(!1),Nn(0),Ue.setValue(window.sessionStorage.getItem(xn))}(0,ne.useEffect)(()=>{Un[jt]&&jt!==Gt&&jt!==ft&&setTimeout(()=>{const Nt=document.getElementsByClassName("markdown-popup-form")[0],Pt=window.innerWidth/2-Nt.offsetWidth/2,yt=window.innerHeight/2-Nt.offsetHeight/2;sa(Pt),Kn(yt)},0)},[jt]);const ha=Nt=>{Nt.preventDefault();const Pt=Nt.clientX-la,yt=Nt.clientY-aa;document.body.onmousemove=xt=>{let Pn=xt.clientX-Pt,Dn=xt.clientY-yt;const In=document.getElementsByClassName("markdown-popup-form")[0],At=window.innerWidth-In.offsetWidth,Yt=window.innerHeight-In.offsetHeight;Pn=Math.max(0,Math.min(Pn,At)),Dn=Math.max(0,Math.min(Dn,Yt)),pa(xt.clientX,xt.clientY,Pt,yt)&&(sa(Pn),Kn(Dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(Nt,Pt,yt,xt)=>{const Pn=document.body.clientHeight,Dn=document.body.clientWidth;return Nt<20&&yt>Nt||Nt>Dn-20&&yt<Nt||Pt<20&&xt>Pt||Pt>Pn-20&&xt<Pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:_t},ne.createElement("div",{className:`markdown-editor-container ${Je} ${vt?"on-preview":""} ${wt?"mini":""} ${ct?"full-screen":""}`,style:fa},fn&&ne.createElement(ie,{insertTemp:Jt,watch:vt,fullScreen:ct,showNullButton:dn,showNullProgramButton:me,onActionCallback:ca,hidetoolBar:Be,extraUse:sn}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:Yn,placeholder:Ht})),vt?ne.createElement("div",{ref:Wn,className:"preview-container"},ln==="stex"&&ne.createElement(Me,{value:On}),ln!=="stex"&&ne.createElement(je.Z,{disabledFill:Ct,showProgramFill:me,value:On})):null))),Hn?ne.createElement("a",{ref:Gn,className:"editor-resize"}):null,jt===Gt&&ne.createElement(mt,{callback:_n,onCancel:yn}),jt===ft&&ne.createElement(Re,{callback:_n,onCancel:yn}),ne.createElement(Se.Z,null,Un[jt]&&jt!==Gt&&jt!==ft?ne.createElement(Ie.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:la,top:aa},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:ha},Un[jt]),open:!0,onCancel:yn,footer:null,destroyOnClose:!0,width:jt===ft?"1200px":null,height:jt===ft?"80vh":null,className:"markdown-popup-form"},zn):null))}},70859:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return ge},I:function(){return Se}});var ne=re(22150),Pe=re(2453),Ke=re(69677),ke=re(93421),ce=re(31795),Ze=re(78045),se=re(71577),_e=re(15476),Ne=re(67294),Ae=re(52262),je=re(67294),Me=Object.defineProperty,Te=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(le,ze,$e)=>ze in le?Me(le,ze,{enumerable:!0,configurable:!0,writable:!0,value:$e}):le[ze]=$e,x=(le,ze)=>{for(var $e in ze||(ze={}))y.call(ze,$e)&&b(le,$e,ze[$e]);if(a)for(var $e of a(ze))E.call(ze,$e)&&b(le,$e,ze[$e]);return le},z=(le,ze)=>Te(le,ae(ze));const{useForm:ee}=ne.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:ze})=>{const[$e]=ee();let St=(0,Ne.useRef)();function It(nt){St.current.width=$e.getFieldValue("width"),St.current.align=$e.getFieldValue("align"),le(nt,St.current)}function Vt(nt,gt){if(nt.status===-1){Pe.ZP.error(nt.message);return}$e.setFieldsValue({src:`/api/attachments/${nt.id}`,type:gt.type})}function Ee(nt){let gt=nt.target.files[0];St.current=gt,Se(gt,Vt)}return je.createElement(ne.default,z(x({form:$e},oe),{className:"upload-image-panel",onFinish:It,style:{width:470,overflow:"hidden"}}),je.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},je.createElement("div",{className:"flex-container"},je.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},je.createElement(Ke.default,{style:te})),je.createElement(ie,{onFileChange:Ee}))),je.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},je.createElement(Ke.default,{style:{width:264}})),je.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},je.createElement(ke.Z,null,je.createElement(ne.default.Item,{name:"width",style:{margin:0}},je.createElement(ce.Z,{style:{width:264}})),je.createElement("span",{className:"ml8"},"%"))),je.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},je.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"}]})),je.createElement("aside",null,je.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},je.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),je.createElement(se.ZP,{type:"default",onClick:ze},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return je.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",je.createElement("input",{type:"file",onChange:le}))}function Se(le,ze){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ae.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let $e=new FormData;$e.append("editormd-image-file",le),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var St=new window.XMLHttpRequest;St.withCredentials=!0,St.addEventListener("load",function(It){ze(JSON.parse(It.target.responseText),le)},!1),St.addEventListener("error",function(It){console.error(It)},!1),St.open("POST",`${_e.KI}/api/attachments.json`),St.send($e)}},76621:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return Ke}});var ne=re(67294),Pe=re(73935);class Ke extends ne.Component{constructor(ce){super(ce);const Ze=window.document;this.node=Ze.createElement("div"),Ze.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Pe.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return Pe}});var ne=re(67294);function Pe(Ke,ke){const ce=(0,ne.useRef)();(0,ne.useEffect)(()=>{ce.current=Ke}),(0,ne.useEffect)(()=>{function Ze(){ce.current()}if(ke!==null){let se=setInterval(Ze,ke);return()=>clearInterval(se)}},[ke])}},59963:function(xe,ut,re){"use strict";re.r(ut),re.d(ut,{default:function(){return Se}});var ne=re(67294),Pe=re(35973),Ke=re(11713),ke=re(22150),ce=re(2453),Ze=re(85673),se=re(69677),_e=re(71577),Ne=re(35567),Ae=re(65866),je=re(13703),Me={bg:"bg___pOKLN",flexRow:"flexRow___mNnbK",flexJustifyCenter:"flexJustifyCenter___uouQe",flexAlignEnd:"flexAlignEnd___CKILp",flexAlignCenter:"flexAlignCenter___y5peS",flexColumn:"flexColumn___JJd9N",formWrap:"formWrap___D8WBe",titleWrap:"titleWrap___ICMYl",fieldWrap:"fieldWrap___XNrtY",mdWrap:"mdWrap___gRykC",backgroundFa:"backgroundFa___jKoLp",button:"button___f0Fqa"},Te=Object.defineProperty,ae=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(le,ze,$e)=>ze in le?Te(le,ze,{enumerable:!0,configurable:!0,writable:!0,value:$e}):le[ze]=$e,z=(le,ze)=>{for(var $e in ze||(ze={}))E.call(ze,$e)&&x(le,$e,ze[$e]);if(y)for(var $e of y(ze))b.call(ze,$e)&&x(le,$e,ze[$e]);return le},ee=(le,ze)=>ae(le,a(ze)),te=(le,ze)=>{var $e={};for(var St in le)E.call(le,St)&&ze.indexOf(St)<0&&($e[St]=le[St]);if(le!=null&&y)for(var St of y(le))ze.indexOf(St)<0&&b.call(le,St)&&($e[St]=le[St]);return $e},oe=(le,ze,$e)=>new Promise((St,It)=>{var Vt=gt=>{try{nt($e.next(gt))}catch(at){It(at)}},Ee=gt=>{try{nt($e.throw(gt))}catch(at){It(at)}},nt=gt=>gt.done?St(gt.value):Promise.resolve(gt.value).then(Vt,Ee);nt(($e=$e.apply(le,ze)).next())});const{Option:ge}=Ke.default,ie=le=>{var ze=le,{forumsDetail:$e,globalSetting:St,loading:It,dispatch:Vt}=ze,Ee=te(ze,["forumsDetail","globalSetting","loading","dispatch"]),nt,gt,at;const dt=(0,Pe.useParams)(),[et]=ke.default.useForm(),[ot,it]=(0,ne.useState)({}),[an,be]=(0,ne.useState)(0),[Ie,Ye]=(0,ne.useState)(!1),[Ft,Xe]=(0,ne.useState)({}),[mt,de]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{if(lt(),dt.memoId)Ye(!0),kt();else{Ye(!1);const Ge={forum_id:5};it(z({},Ge)),et.setFieldsValue(z({},Ge))}},[dt.memoId]);const lt=()=>oe(void 0,null,function*(){const Ge=yield(0,je.iI)({tab_module_type:"forums"});Ge!=null&&Ge.un_purchased&&Vt({type:"globalSetting/setActionTabs",payload:{key:"\u91C7\u8D2D\u63D0\u793A"}}),Xe(Ge||{})}),kt=()=>oe(void 0,null,function*(){var Ge;const we=(yield(0,je.qR)({id:dt.memoId}))||{},ve={subject:we.subject,content:we.content,attachments:(0,Ae.z)(we.attachments),forum_id:we.forum_id,memo_tags:(Ge=we.memo_tags)==null?void 0:Ge.map(pe=>pe.id)};it(z({},ve)),et.setFieldsValue(z({},ve))}),Qt=Ge=>oe(void 0,null,function*(){var we,ve;const pe=ee(z({id:Ie?dt.memoId:null},ot),{attachment_ids:(ve=(we=ot.attachments)==null?void 0:we.filter(Re=>{var tt;return(tt=Re.response)==null?void 0:tt.id}))==null?void 0:ve.map(Re=>{var tt;return(tt=Re.response)==null?void 0:tt.id}),tags:ot.memo_tags}),ye=Ie?yield(0,je.b4)(pe):yield(0,je.dX)(pe);be(0),(ye==null?void 0:ye.status)===0&&(ce.ZP.success(ye==null?void 0:ye.message),mt===1?Pe.history.push(`/forums/${Ie?dt==null?void 0:dt.memoId:ye==null?void 0:ye.memo_id}`):Pe.history.push(`/forums/${Ie?dt==null?void 0:dt.memoId:ye==null?void 0:ye.memo_id}/edit`))}),pt=()=>{document.body.scrollIntoView(),window.location.href.includes("new")?Pe.history.back():Pe.history.push(`/forums/${dt.memoId}`)};return ne.createElement("section",{className:Me.bg},ne.createElement("section",{className:"animated fadeIn mb10"},ne.createElement("aside",{className:"mt10"},ne.createElement(Ze.Z,{separator:"/"},ne.createElement(Ze.Z.Item,null,ne.createElement(Pe.Link,{to:"/forums"},"\u4EA4\u6D41\u95EE\u7B54")),ne.createElement(Ze.Z.Item,null,"\u8BE6\u60C5")))),ne.createElement("aside",{className:"bg-white font16 pt20 pb20 pl20"},Ie?"\u7F16\u8F91\u8BDD\u9898":"\u53D1\u5E03\u8BDD\u9898"),ne.createElement(ke.default,{form:et,className:Me.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:(Ge,we)=>{console.log(we,"values"),it(z(z({},ot),Ge))},onFinish:Qt,onFinishFailed:()=>{be(0)}},ne.createElement("div",{className:Me.fieldWrap},ne.createElement(ke.default.Item,{name:"subject",label:ne.createElement("span",{className:"font16"},"\u8BDD\u9898\u540D\u79F0: "),rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u8BDD\u9898\u540D\u79F0"}]},ne.createElement(se.default,{maxLength:50,suffix:`${((nt=ot.subject)==null?void 0:nt.length)||0}/50`}))),ne.createElement("div",{className:Me.mdWrap},ne.createElement(ke.default.Item,{name:"content",label:ne.createElement("span",{className:"font16"},"\u5185\u5BB9: "),rules:[{required:!0,message:"\u8BF7\u5148\u8F93\u5165\u8BDD\u9898\u5185\u5BB9"}]},ne.createElement(Ne.Z,{height:600,id:"forums-new-content",watch:!0,defaultValue:ot.content})),ne.createElement("div",null,ne.createElement(ke.default.Item,{name:"attachments",style:{width:350}},ne.createElement(Ae.Z,{showRemoveModal:!0})))),ne.createElement("div",{className:Me.mdWrap},ne.createElement(ke.default.Item,{name:"forum_id",label:ne.createElement("span",{className:"font16"},"\u8BDD\u9898\u7C7B\u578B: "),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u8BDD\u9898\u7C7B\u578B"}]},ne.createElement(Ke.default,{style:{width:300}},(gt=Ft==null?void 0:Ft.forums)==null?void 0:gt.map(Ge=>ne.createElement(ge,{key:Ge.id,value:Ge.id},Ge.name))))),ot.forum_id===5&&ne.createElement("div",{className:Me.mdWrap},ne.createElement(ke.default.Item,{name:"memo_tags",label:ne.createElement("span",{className:"font16"},"\u6280\u672F\u6807\u7B7E: "),rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u6280\u672F\u6807\u7B7E"}]},ne.createElement(Ke.default,{style:{width:300},placeholder:"\u8BF7\u9009\u62E9\u6280\u672F\u6807\u7B7E",mode:"multiple",tokenSeparators:[";"],filterOption:(Ge,we)=>we.props.children.toLocaleLowerCase().indexOf(Ge.toLocaleLowerCase())!=-1},(at=Ft==null?void 0:Ft.tag_list)==null?void 0:at.map(Ge=>ne.createElement(ge,{key:Ge.id,value:Ge.id},Ge.name))))),ne.createElement("div",{className:Me.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(ke.default.Item,null,ne.createElement(_e.ZP,{size:"middle",type:"primary",className:`${Me.button} mr20`,htmlType:"submit",loading:an===1,onClick:()=>{de(1),be(1)}},"\u63D0\u4EA4"),ne.createElement(_e.ZP,{size:"middle",type:"primary",className:`${Me.button} mr20`,htmlType:"submit",loading:an===2,onClick:()=>{de(2),be(2)}},"\u4FDD\u5B58"),ne.createElement(_e.ZP,{size:"middle",type:"primary",ghost:!0,className:`${Me.button} mr20`,onClick:pt},"\u53D6\u6D88"))))))};var Se=(0,Pe.connect)(({forumsDetail:le,loading:ze,globalSetting:$e})=>({forumsDetail:le,globalSetting:$e,loading:ze.models.forumsDetail}))(ie)},4440:function(xe,ut,re){"use strict";re.d(ut,{$J:function(){return Ke},JZ:function(){return ce},bN:function(){return se},jP:function(){return Ze},rO:function(){return ke}});var ne=re(33170),Pe=(_e,Ne,Ae)=>new Promise((je,Me)=>{var Te=y=>{try{a(Ae.next(y))}catch(E){Me(E)}},ae=y=>{try{a(Ae.throw(y))}catch(E){Me(E)}},a=y=>y.done?je(y.value):Promise.resolve(y.value).then(Te,ae);a((Ae=Ae.apply(_e,Ne)).next())});function Ke(_e){return(0,ne.U2)(`libraries/${_e}.json`)}function ke(_e){return(0,ne.U2)("library_tags.json",_e)}function ce(_e){return Pe(this,null,function*(){return(yield(0,ne.IV)(`attachments/${_e}.json`)).status===0})}function Ze(_e){return(0,ne.v_)("libraries.json",_e)}function se(_e,Ne){return(0,ne.gz)(`libraries/${_e}.json`,Ne)}},57838:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return Pe}});var ne=re(67294);function Pe(){const[,Ke]=ne.useReducer(ke=>ke+1,0);return Ke}},85673:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return Vt}});var ne=re(94184),Pe=re.n(ne),Ke=re(37419),ke=re(1337),ce=re(67294),Ze=re(96159),se=re(53124),_e=re(42922),Ne=re(35874);const Ae=Ee=>{let{children:nt}=Ee;const{getPrefixCls:gt}=ce.useContext(se.E_),at=gt("breadcrumb");return ce.createElement("li",{className:`${at}-separator`,"aria-hidden":"true"},nt===""?nt:nt||"/")};Ae.__ANT_BREADCRUMB_SEPARATOR=!0;var je=Ae,Me=function(Ee,nt){var gt={};for(var at in Ee)Object.prototype.hasOwnProperty.call(Ee,at)&&nt.indexOf(at)<0&&(gt[at]=Ee[at]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,at=Object.getOwnPropertySymbols(Ee);dt<at.length;dt++)nt.indexOf(at[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,at[dt])&&(gt[at[dt]]=Ee[at[dt]]);return gt};function Te(Ee,nt){if(Ee.title===void 0||Ee.title===null)return null;const gt=Object.keys(nt).join("|");return typeof Ee.title=="object"?Ee.title:String(Ee.title).replace(new RegExp(`:(${gt})`,"g"),(at,dt)=>nt[dt]||at)}function ae(Ee,nt,gt,at){if(gt==null)return null;const{className:dt,onClick:et}=nt,ot=Me(nt,["className","onClick"]),it=Object.assign(Object.assign({},(0,ke.Z)(ot,{data:!0,aria:!0})),{onClick:et});return at!==void 0?ce.createElement("a",Object.assign({},it,{className:Pe()(`${Ee}-link`,dt),href:at}),gt):ce.createElement("span",Object.assign({},it,{className:Pe()(`${Ee}-link`,dt)}),gt)}function a(Ee,nt){return(at,dt,et,ot,it)=>{if(nt)return nt(at,dt,et,ot);const an=Te(at,dt);return ae(Ee,at,an,it)}}var y=function(Ee,nt){var gt={};for(var at in Ee)Object.prototype.hasOwnProperty.call(Ee,at)&&nt.indexOf(at)<0&&(gt[at]=Ee[at]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,at=Object.getOwnPropertySymbols(Ee);dt<at.length;dt++)nt.indexOf(at[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,at[dt])&&(gt[at[dt]]=Ee[at[dt]]);return gt};const E=Ee=>{const{prefixCls:nt,separator:gt="/",children:at,menu:dt,overlay:et,dropdownProps:ot,href:it}=Ee,be=(Ie=>{if(dt||et){const Ye=Object.assign({},ot);if(dt){const Ft=dt||{},{items:Xe}=Ft,mt=y(Ft,["items"]);Ye.menu=Object.assign(Object.assign({},mt),{items:Xe==null?void 0:Xe.map((de,lt)=>{var{key:kt,title:Qt,label:pt,path:Ge}=de,we=y(de,["key","title","label","path"]);let ve=pt!=null?pt:Qt;return Ge&&(ve=ce.createElement("a",{href:`${it}${Ge}`},ve)),Object.assign(Object.assign({},we),{key:kt!=null?kt:lt,label:ve})})})}else et&&(Ye.overlay=et);return ce.createElement(Ne.Z,Object.assign({placement:"bottom"},Ye),ce.createElement("span",{className:`${nt}-overlay-link`},Ie,ce.createElement(_e.Z,null)))}return Ie})(at);return be!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,be),gt&&ce.createElement(je,null,gt)):null},b=Ee=>{const{prefixCls:nt,children:gt,href:at}=Ee,dt=y(Ee,["prefixCls","children","href"]),{getPrefixCls:et}=ce.useContext(se.E_),ot=et("breadcrumb",nt);return ce.createElement(E,Object.assign({},dt,{prefixCls:ot}),ae(ot,dt,gt,at))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=re(14747),ee=re(67968),te=re(45503);const oe=Ee=>{const{componentCls:nt,iconCls:gt}=Ee;return{[nt]:Object.assign(Object.assign({},(0,z.Wf)(Ee)),{color:Ee.itemColor,fontSize:Ee.fontSize,[gt]:{fontSize:Ee.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ee.linkColor,transition:`color ${Ee.motionDurationMid}`,padding:`0 ${Ee.paddingXXS}px`,borderRadius:Ee.borderRadiusSM,height:Ee.lineHeight*Ee.fontSize,display:"inline-block",marginInline:-Ee.marginXXS,"&:hover":{color:Ee.linkHoverColor,backgroundColor:Ee.colorBgTextHover}},(0,z.Qy)(Ee)),"li:last-child":{color:Ee.lastItemColor},[`${nt}-separator`]:{marginInline:Ee.separatorMargin,color:Ee.separatorColor},[`${nt}-link`]:{[`
|
|
> ${gt} + span,
|
|
> ${gt} + a
|
|
`]:{marginInlineStart:Ee.marginXXS}},[`${nt}-overlay-link`]:{borderRadius:Ee.borderRadiusSM,height:Ee.lineHeight*Ee.fontSize,display:"inline-block",padding:`0 ${Ee.paddingXXS}px`,marginInline:-Ee.marginXXS,[`> ${gt}`]:{marginInlineStart:Ee.marginXXS,fontSize:Ee.fontSizeIcon},"&:hover":{color:Ee.linkHoverColor,backgroundColor:Ee.colorBgTextHover,a:{color:Ee.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ee.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",Ee=>{const nt=(0,te.TS)(Ee,{});return[oe(nt)]},Ee=>({itemColor:Ee.colorTextDescription,lastItemColor:Ee.colorText,iconFontSize:Ee.fontSize,linkColor:Ee.colorTextDescription,linkHoverColor:Ee.colorText,separatorColor:Ee.colorTextDescription,separatorMargin:Ee.marginXS})),ie=function(Ee,nt){var gt={};for(var at in Ee)Object.prototype.hasOwnProperty.call(Ee,at)&&nt.indexOf(at)<0&&(gt[at]=Ee[at]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,at=Object.getOwnPropertySymbols(Ee);dt<at.length;dt++)nt.indexOf(at[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,at[dt])&&(gt[at[dt]]=Ee[at[dt]]);return gt};function Se(Ee){const{breadcrumbName:nt,children:gt}=Ee,at=ie(Ee,["breadcrumbName","children"]),dt=Object.assign({title:nt},at);return gt&&(dt.menu={items:gt.map(et=>{var{breadcrumbName:ot}=et,it=ie(et,["breadcrumbName"]);return Object.assign(Object.assign({},it),{title:ot})})}),dt}function le(Ee,nt){return(0,ce.useMemo)(()=>Ee||(nt?nt.map(Se):null),[Ee,nt])}var ze=function(Ee,nt){var gt={};for(var at in Ee)Object.prototype.hasOwnProperty.call(Ee,at)&&nt.indexOf(at)<0&&(gt[at]=Ee[at]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var dt=0,at=Object.getOwnPropertySymbols(Ee);dt<at.length;dt++)nt.indexOf(at[dt])<0&&Object.prototype.propertyIsEnumerable.call(Ee,at[dt])&&(gt[at[dt]]=Ee[at[dt]]);return gt};const $e=(Ee,nt)=>{if(nt===void 0)return nt;let gt=(nt||"").replace(/^\//,"");return Object.keys(Ee).forEach(at=>{gt=gt.replace(`:${at}`,Ee[at])}),gt},St=Ee=>{const{prefixCls:nt,separator:gt="/",style:at,className:dt,rootClassName:et,routes:ot,items:it,children:an,itemRender:be,params:Ie={}}=Ee,Ye=ze(Ee,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ft,direction:Xe,breadcrumb:mt}=ce.useContext(se.E_);let de;const lt=Ft("breadcrumb",nt),[kt,Qt]=ge(lt),pt=le(it,ot),Ge=a(lt,be);if(pt&&pt.length>0){const pe=[],ye=it||ot;de=pt.map((Re,tt)=>{const{path:ht,key:bt,type:$t,menu:Dt,overlay:Lt,onClick:en,className:Ut,separator:Xt,dropdownProps:Wt}=Re,qt=$e(Ie,ht);qt!==void 0&&pe.push(qt);const he=bt!=null?bt:tt;if($t==="separator")return ce.createElement(je,{key:he},Xt);const Ce={},He=tt===pt.length-1;Dt?Ce.menu=Dt:Lt&&(Ce.overlay=Lt);let{href:st}=Re;return pe.length&&qt!==void 0&&(st=`#/${pe.join("/")}`),ce.createElement(E,Object.assign({key:he},Ce,(0,ke.Z)(Re,{data:!0,aria:!0}),{className:Ut,dropdownProps:Wt,href:st,separator:He?"":gt,onClick:en,prefixCls:lt}),Ge(Re,Ie,ye,pe,st))})}else if(an){const pe=(0,Ke.Z)(an).length;de=(0,Ke.Z)(an).map((ye,Re)=>{if(!ye)return ye;const tt=Re===pe-1;return(0,Ze.Tm)(ye,{separator:tt?"":gt,key:Re})})}const we=Pe()(lt,mt==null?void 0:mt.className,{[`${lt}-rtl`]:Xe==="rtl"},dt,et,Qt),ve=Object.assign(Object.assign({},mt==null?void 0:mt.style),at);return kt(ce.createElement("nav",Object.assign({className:we,style:ve},Ye),ce.createElement("ol",null,de)))};St.Item=x,St.Separator=je;var It=St,Vt=It},35874:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return ve}});var ne=re(67294),Pe=re(91034),Ke=re(94184),ke=re.n(Ke),ce=re(87462),Ze=re(4942),se=re(97685),_e=re(45987),Ne=re(62709),Ae=re(71002),je=re(12060);function Me(pe,ye,Re){var tt=React.useRef({});return(!("value"in tt.current)||Re(tt.current.condition,ye))&&(tt.current.value=pe(),tt.current.condition=ye),tt.current.value}function Te(pe,ye){typeof pe=="function"?pe(ye):(0,Ae.Z)(pe)==="object"&&pe&&"current"in pe&&(pe.current=ye)}function ae(){for(var pe=arguments.length,ye=new Array(pe),Re=0;Re<pe;Re++)ye[Re]=arguments[Re];var tt=ye.filter(function(ht){return ht});return tt.length<=1?tt[0]:function(ht){ye.forEach(function(bt){Te(bt,ht)})}}function a(){for(var pe=arguments.length,ye=new Array(pe),Re=0;Re<pe;Re++)ye[Re]=arguments[Re];return useMemo(function(){return ae.apply(void 0,ye)},ye,function(tt,ht){return tt.length===ht.length&&tt.every(function(bt,$t){return bt===ht[$t]})})}function y(pe){var ye,Re,tt=(0,je.isMemo)(pe)?pe.type.type:pe.type;return!(typeof tt=="function"&&!((ye=tt.prototype)!==null&&ye!==void 0&&ye.render)||typeof pe=="function"&&!((Re=pe.prototype)!==null&&Re!==void 0&&Re.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(ye){var Re=ye.keyCode;if(ye.altKey&&!ye.ctrlKey||ye.metaKey||Re>=E.F1&&Re<=E.F12)return!1;switch(Re){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(ye){if(ye>=E.ZERO&&ye<=E.NINE||ye>=E.NUM_ZERO&&ye<=E.NUM_MULTIPLY||ye>=E.A&&ye<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&ye===0)return!0;switch(ye){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(ye){return+setTimeout(ye,16)},z=function(ye){return clearTimeout(ye)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(ye){return window.requestAnimationFrame(ye)},z=function(ye){return window.cancelAnimationFrame(ye)});var ee=0,te=new Map;function oe(pe){te.delete(pe)}var ge=function(ye){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var tt=ee;function ht(bt){if(bt===0)oe(tt),ye();else{var $t=x(function(){ht(bt-1)});te.set(tt,$t)}}return ht(Re),tt};ge.cancel=function(pe){var ye=te.get(pe);return oe(ye),z(ye)};var ie=ge,Se=b.ESC,le=b.TAB;function ze(pe){var ye=pe.visible,Re=pe.triggerRef,tt=pe.onVisibleChange,ht=pe.autoFocus,bt=pe.overlayRef,$t=ne.useRef(!1),Dt=function(){if(ye){var Xt,Wt;(Xt=Re.current)===null||Xt===void 0||(Wt=Xt.focus)===null||Wt===void 0||Wt.call(Xt),tt==null||tt(!1)}},Lt=function(){var Xt;return(Xt=bt.current)!==null&&Xt!==void 0&&Xt.focus?(bt.current.focus(),$t.current=!0,!0):!1},en=function(Xt){switch(Xt.keyCode){case Se:Dt();break;case le:{var Wt=!1;$t.current||(Wt=Lt()),Wt?Xt.preventDefault():Dt();break}}};ne.useEffect(function(){return ye?(window.addEventListener("keydown",en),ht&&ie(Lt,3),function(){window.removeEventListener("keydown",en),$t.current=!1}):function(){$t.current=!1}},[ye])}var $e=(0,ne.forwardRef)(function(pe,ye){var Re=pe.overlay,tt=pe.arrow,ht=pe.prefixCls,bt=(0,ne.useMemo)(function(){var Dt;return typeof Re=="function"?Dt=Re():Dt=Re,Dt},[Re]),$t=ae(ye,bt==null?void 0:bt.ref);return ne.createElement(ne.Fragment,null,tt&&ne.createElement("div",{className:"".concat(ht,"-arrow")}),ne.cloneElement(bt,{ref:y(bt)?$t:void 0}))}),St=$e,It={adjustX:1,adjustY:1},Vt=[0,0],Ee={topLeft:{points:["bl","tl"],overflow:It,offset:[0,-4],targetOffset:Vt},top:{points:["bc","tc"],overflow:It,offset:[0,-4],targetOffset:Vt},topRight:{points:["br","tr"],overflow:It,offset:[0,-4],targetOffset:Vt},bottomLeft:{points:["tl","bl"],overflow:It,offset:[0,4],targetOffset:Vt},bottom:{points:["tc","bc"],overflow:It,offset:[0,4],targetOffset:Vt},bottomRight:{points:["tr","br"],overflow:It,offset:[0,4],targetOffset:Vt}},nt=Ee,gt=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function at(pe,ye){var Re,tt=pe.arrow,ht=tt===void 0?!1:tt,bt=pe.prefixCls,$t=bt===void 0?"rc-dropdown":bt,Dt=pe.transitionName,Lt=pe.animation,en=pe.align,Ut=pe.placement,Xt=Ut===void 0?"bottomLeft":Ut,Wt=pe.placements,qt=Wt===void 0?nt:Wt,he=pe.getPopupContainer,Ce=pe.showAction,He=pe.hideAction,st=pe.overlayClassName,ft=pe.overlayStyle,Gt=pe.visible,zt=pe.trigger,Et=zt===void 0?["hover"]:zt,Ot=pe.autoFocus,Kt=pe.overlay,Zt=pe.children,gn=pe.onVisibleChange,rn=(0,_e.Z)(pe,gt),hn=ne.useState(),bn=(0,se.Z)(hn,2),on=bn[0],tn=bn[1],un="visible"in pe?Gt:on,pn=ne.useRef(null),wn=ne.useRef(null),mn=ne.useRef(null);ne.useImperativeHandle(ye,function(){return pn.current});var Bn=function(Qe){tn(Qe),gn==null||gn(Qe)};ze({visible:un,triggerRef:mn,onVisibleChange:Bn,autoFocus:Ot,overlayRef:wn});var Rn=function(Qe){var wt=pe.onOverlayClick;tn(!1),wt&&wt(Qe)},En=function(){return ne.createElement(St,{ref:wn,overlay:Kt,prefixCls:$t,arrow:ht})},Tn=function(){return typeof Kt=="function"?En:En()},Un=function(){var Qe=pe.minOverlayWidthMatchTrigger,wt=pe.alignPoint;return"minOverlayWidthMatchTrigger"in pe?Qe:!wt},jn=function(){var Qe=pe.openClassName;return Qe!==void 0?Qe:"".concat($t,"-open")},ue=ne.cloneElement(Zt,{className:ke()((Re=Zt.props)===null||Re===void 0?void 0:Re.className,un&&jn()),ref:y(Zt)?ae(mn,Zt.ref):void 0}),Le=He;return!Le&&Et.indexOf("contextMenu")!==-1&&(Le=["click"]),ne.createElement(Ne.Z,(0,ce.Z)({builtinPlacements:qt},rn,{prefixCls:$t,ref:pn,popupClassName:ke()(st,(0,Ze.Z)({},"".concat($t,"-show-arrow"),ht)),popupStyle:ft,action:Et,showAction:Ce,hideAction:Le,popupPlacement:Xt,popupAlign:en,popupTransitionName:Dt,popupAnimation:Lt,popupVisible:un,stretch:Un()?"minWidth":"",popup:Tn(),onPopupVisibleChange:Bn,onPopupClick:Rn,getPopupContainer:he}),ue)}var dt=ne.forwardRef(at),et=dt,ot=re(60276),it=re(5663),an=re(10366),be=re(80636),Ie=re(8745),Ye=re(96159),Ft=re(53124),Xe=re(68508),mt=re(76529),de=re(46605),lt=re(66748);const kt=null,Qt=pe=>{const{menu:ye,arrow:Re,prefixCls:tt,children:ht,trigger:bt,disabled:$t,dropdownRender:Dt,getPopupContainer:Lt,overlayClassName:en,rootClassName:Ut,open:Xt,onOpenChange:Wt,visible:qt,onVisibleChange:he,mouseEnterDelay:Ce=.15,mouseLeaveDelay:He=.1,autoAdjustOverflow:st=!0,placement:ft="",overlay:Gt,transitionName:zt}=pe,{getPopupContainer:Et,getPrefixCls:Ot,direction:Kt}=ne.useContext(Ft.E_),Zt=ne.useMemo(()=>{const ue=Ot();return zt!==void 0?zt:ft.includes("top")?`${ue}-slide-down`:`${ue}-slide-up`},[Ot,ft,zt]),gn=ne.useMemo(()=>ft?ft.includes("Center")?ft.slice(0,ft.indexOf("Center")):ft:Kt==="rtl"?"bottomRight":"bottomLeft",[ft,Kt]),rn=Ot("dropdown",tt),[hn,bn]=(0,lt.Z)(rn),[,on]=(0,de.Z)(),tn=ne.Children.only(ht),un=(0,Ye.Tm)(tn,{className:ke()(`${rn}-trigger`,{[`${rn}-rtl`]:Kt==="rtl"},tn.props.className),disabled:$t}),pn=$t?[]:bt;let wn;pn&&pn.includes("contextMenu")&&(wn=!0);const[mn,Bn]=(0,it.Z)(!1,{value:Xt!=null?Xt:qt}),Rn=(0,ot.useEvent)(ue=>{Wt==null||Wt(ue),he==null||he(ue),Bn(ue)}),En=ke()(en,Ut,bn,{[`${rn}-rtl`]:Kt==="rtl"}),Tn=(0,be.Z)({arrowPointAtCenter:typeof Re=="object"&&Re.pointAtCenter,autoAdjustOverflow:st,offset:on.marginXXS,arrowWidth:Re?on.sizePopupArrow:0,borderRadius:on.borderRadius}),Un=ne.useCallback(()=>{Bn(!1)},[]),jn=()=>{let ue;return ye!=null&&ye.items?ue=ne.createElement(Xe.default,Object.assign({},ye)):typeof Gt=="function"?ue=Gt():ue=Gt,Dt&&(ue=Dt(ue)),ue=ne.Children.only(typeof ue=="string"?ne.createElement("span",null,ue):ue),ne.createElement(mt.J,{prefixCls:`${rn}-menu`,expandIcon:ne.createElement("span",{className:`${rn}-menu-submenu-arrow`},ne.createElement(Pe.Z,{className:`${rn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Un,validator:Le=>{let{mode:fe}=Le}},ue)};return hn(ne.createElement(et,Object.assign({alignPoint:wn},(0,an.Z)(pe,["rootClassName"]),{mouseEnterDelay:Ce,mouseLeaveDelay:He,visible:mn,builtinPlacements:Tn,arrow:!!Re,overlayClassName:En,prefixCls:rn,getPopupContainer:Lt||Et,transitionName:Zt,trigger:pn,overlay:jn,placement:gn,onVisibleChange:Rn}),un))};function pt(pe){return Object.assign(Object.assign({},pe),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ge=(0,Ie.Z)(Qt,"dropdown",pe=>pe,pt),we=pe=>ne.createElement(Ge,Object.assign({},pe),ne.createElement("span",null));Qt._InternalPanelDoNotUseOrYouWillBeFired=we;var ve=Qt},66748:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return je}});var ne=re(14747),Pe=re(67771),Ke=re(33297),ke=re(50438),ce=re(97414),Ze=re(67968),se=re(45503),Ne=Me=>{const{componentCls:Te,menuCls:ae,colorError:a,colorTextLightSolid:y}=Me,E=`${ae}-item`;return{[`${Te}, ${Te}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ae=Me=>{const{componentCls:Te,menuCls:ae,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}=Me;return[{[Te]:Object.assign(Object.assign({},(0,ne.Wf)(Me)),{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}},[`${Te}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ie},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Te}-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${Te}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottomRight`]:{animationName:Pe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-topRight`]:{animationName:Pe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottomRight`]:{animationName:Pe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-topRight`]:{animationName:Pe.ly}})},(0,ce.ZP)(Me,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Te} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Te}, ${Te}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Me.borderRadiusLG,outline:"none",boxShadow:Me.boxShadowSecondary},(0,ne.Qy)(Me)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${Se}px`,color:Me.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:Me.marginXS,fontSize:Me.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${Se}px`,color:Me.colorText,fontWeight:"normal",fontSize:te,lineHeight:Me.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Me.borderRadiusSM,"&:hover, &-active":{backgroundColor:Me.controlItemBgHover}},(0,ne.Qy)(Me)),{"&-selected":{color:Me.colorPrimary,backgroundColor:Me.controlItemBgActive,"&:hover, &-active":{backgroundColor:Me.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Me.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Me.colorSplit},[`${Te}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Me.paddingXS,[`${Te}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Me.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${Me.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:Se+Me.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Te}-menu-submenu-title`]:{[`&, ${Te}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:le,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Te}-menu-submenu-title`]:{color:Me.colorPrimary}})}},[(0,Pe.oN)(Me,"slide-up"),(0,Pe.oN)(Me,"slide-down"),(0,Ke.Fm)(Me,"move-up"),(0,Ke.Fm)(Me,"move-down"),(0,ke._y)(Me,"zoom-big")]]};var je=(0,Ze.Z)("Dropdown",(Me,Te)=>{let{rootPrefixCls:ae}=Te;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Me,oe=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,ce.fS)({contentRadius:te}),ie=(0,se.TS)(Me,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ae(ie),Ne(ie)]},Me=>({zIndexPopup:Me.zIndexPopupBase+50}))},71322:function(xe,ut,re){"use strict";re.d(ut,{D:function(){return x},Z:function(){return te}});var ne=re(87462),Pe=re(67294),Ke={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"},ke=Ke,ce=re(74643),Ze=function(ge,ie){return Pe.createElement(ce.Z,(0,ne.Z)({},ge,{ref:ie,icon:ke}))},se=Pe.forwardRef(Ze),_e=re(22751),Ne=re(91034),Ae=re(94184),je=re.n(Ae),Me=re(10366),ae=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=Pe.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=Pe.forwardRef((oe,ge)=>{const{prefixCls:ie,className:Se,trigger:le,children:ze,defaultCollapsed:$e=!1,theme:St="dark",style:It={},collapsible:Vt=!1,reverseArrow:Ee=!1,width:nt=200,collapsedWidth:gt=80,zeroWidthTriggerStyle:at,breakpoint:dt,onCollapse:et,onBreakpoint:ot}=oe,it=E(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:an}=(0,Pe.useContext)(y.Gs),[be,Ie]=(0,Pe.useState)("collapsed"in oe?oe.collapsed:$e),[Ye,Ft]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in oe&&Ie(oe.collapsed)},[oe.collapsed]);const Xe=(pt,Ge)=>{"collapsed"in oe||Ie(pt),et==null||et(pt,Ge)},mt=(0,Pe.useRef)();mt.current=pt=>{Ft(pt.matches),ot==null||ot(pt.matches),be!==pt.matches&&Xe(pt.matches,"responsive")},(0,Pe.useEffect)(()=>{function pt(we){return mt.current(we)}let Ge;if(typeof window!="undefined"){const{matchMedia:we}=window;if(we&&dt&&dt in b){Ge=we(`(max-width: ${b[dt]})`);try{Ge.addEventListener("change",pt)}catch(ve){Ge.addListener(pt)}pt(Ge)}}return()=>{try{Ge==null||Ge.removeEventListener("change",pt)}catch(we){Ge==null||Ge.removeListener(pt)}}},[dt]),(0,Pe.useEffect)(()=>{const pt=z("ant-sider-");return an.addSider(pt),()=>an.removeSider(pt)},[]);const de=()=>{Xe(!be,"clickTrigger")},{getPrefixCls:lt}=(0,Pe.useContext)(a.E_),kt=()=>{const pt=lt("layout-sider",ie),Ge=(0,Me.Z)(it,["collapsed"]),we=be?gt:nt,ve=ae(we)?`${we}px`:String(we),pe=parseFloat(String(gt||0))===0?Pe.createElement("span",{onClick:de,className:je()(`${pt}-zero-width-trigger`,`${pt}-zero-width-trigger-${Ee?"right":"left"}`),style:at},le||Pe.createElement(se,null)):null,tt={expanded:Ee?Pe.createElement(Ne.Z,null):Pe.createElement(_e.Z,null),collapsed:Ee?Pe.createElement(_e.Z,null):Pe.createElement(Ne.Z,null)}[be?"collapsed":"expanded"],ht=le!==null?pe||Pe.createElement("div",{className:`${pt}-trigger`,onClick:de,style:{width:ve}},le||tt):null,bt=Object.assign(Object.assign({},It),{flex:`0 0 ${ve}`,maxWidth:ve,minWidth:ve,width:ve}),$t=je()(pt,`${pt}-${St}`,{[`${pt}-collapsed`]:!!be,[`${pt}-has-trigger`]:Vt&&le!==null&&!pe,[`${pt}-below`]:!!Ye,[`${pt}-zero-width`]:parseFloat(ve)===0},Se);return Pe.createElement("aside",Object.assign({className:$t},Ge,{style:bt,ref:ge}),Pe.createElement("div",{className:`${pt}-children`},ze),Vt||Ye&&pe?ht:null)},Qt=Pe.useMemo(()=>({siderCollapsed:be}),[be]);return Pe.createElement(x.Provider,{value:Qt},kt())})},84321:function(xe,ut,re){"use strict";re.d(ut,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Te},ZP:function(){return ee}});var ne=re(74902),Pe=re(94184),Ke=re.n(Pe),ke=re(10366),ce=re(67294),Ze=re(53124),se=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 Ae=te=>{const{antCls:oe,componentCls:ge,colorText:ie,triggerColor:Se,footerBg:le,triggerBg:ze,headerHeight:$e,headerPadding:St,headerColor:It,footerPadding:Vt,triggerHeight:Ee,zeroTriggerHeight:nt,zeroTriggerWidth:gt,motionDurationMid:at,motionDurationSlow:dt,fontSize:et,borderRadius:ot,bodyBg:it,headerBg:an,siderBg:be}=te;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:it,"&, *":{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:be,transition:`all ${at}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ee},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ee,color:Se,lineHeight:`${Ee}px`,textAlign:"center",background:ze,cursor:"pointer",transition:`all ${at}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:$e,insetInlineEnd:-gt,zIndex:1,width:gt,height:nt,color:Se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:be,borderStartStartRadius:0,borderStartEndRadius:ot,borderEndEndRadius:ot,borderEndStartRadius:0,cursor:"pointer",transition:`background ${dt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${dt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-gt,borderStartStartRadius:ot,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ot}}}}},Ne(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:$e,padding:St,color:It,lineHeight:`${$e}px`,background:an,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:Vt,color:ie,fontSize:et,background:le},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var je=(0,se.Z)("Layout",te=>[Ae(te)],te=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:ie,colorText:Se,controlHeightSM:le,marginXXS:ze,colorTextLightSolid:$e,colorBgContainer:St}=te,It=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${It}px`,headerColor:Se,footerPadding:`${le}px ${It}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+ze*2,triggerBg:"#002140",triggerColor:$e,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:St,lightTriggerBg:St,lightTriggerColor:Se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Me=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 Te=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:oe,tagName:ge,displayName:ie}=te;return Se=>ce.forwardRef((ze,$e)=>ce.createElement(Se,Object.assign({ref:$e,suffixCls:oe,tagName:ge},ze)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:ge,suffixCls:ie,className:Se,tagName:le}=te,ze=Me(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:$e}=ce.useContext(Ze.E_),St=$e("layout",ge),[It,Vt]=je(St),Ee=ie?`${St}-${ie}`:St;return It(ce.createElement(le,Object.assign({className:Ke()(ge||Ee,Se,Vt),ref:oe},ze)))}),y=ce.forwardRef((te,oe)=>{const{direction:ge}=ce.useContext(Ze.E_),[ie,Se]=ce.useState([]),{prefixCls:le,className:ze,rootClassName:$e,children:St,hasSider:It,tagName:Vt,style:Ee}=te,nt=Me(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),gt=(0,ke.Z)(nt,["suffixCls"]),{getPrefixCls:at,layout:dt}=ce.useContext(Ze.E_),et=at("layout",le),[ot,it]=je(et),an=Ke()(et,{[`${et}-has-sider`]:typeof It=="boolean"?It:ie.length>0,[`${et}-rtl`]:ge==="rtl"},dt==null?void 0:dt.className,ze,$e,it),be=ce.useMemo(()=>({siderHook:{addSider:Ie=>{Se(Ye=>[].concat((0,ne.Z)(Ye),[Ie]))},removeSider:Ie=>{Se(Ye=>Ye.filter(Ft=>Ft!==Ie))}}}),[]);return ot(ce.createElement(Te.Provider,{value:be},ce.createElement(Vt,Object.assign({ref:oe,className:an,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Ee)},gt),St)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(xe,ut,re){"use strict";re.d(ut,{J:function(){return Ze}});var ne=re(67294),Pe=re(4173),Ke=re(60276),ke=function(se,_e){var Ne={};for(var Ae in se)Object.prototype.hasOwnProperty.call(se,Ae)&&_e.indexOf(Ae)<0&&(Ne[Ae]=se[Ae]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ae=Object.getOwnPropertySymbols(se);je<Ae.length;je++)_e.indexOf(Ae[je])<0&&Object.prototype.propertyIsEnumerable.call(se,Ae[je])&&(Ne[Ae[je]]=se[Ae[je]]);return Ne};const ce=ne.createContext(null),Ze=ne.forwardRef((se,_e)=>{const{children:Ne}=se,Ae=ke(se,["children"]),je=ne.useContext(ce),Me=ne.useMemo(()=>Object.assign(Object.assign({},je),Ae),[je,Ae.prefixCls,Ae.mode,Ae.selectable]);return ne.createElement(ce.Provider,{value:Me},ne.createElement(Pe.BR,null,(0,Ke.supportNodeRef)(Ne)?ne.cloneElement(Ne,{ref:_e}):Ne))});ut.Z=ce},68508:function(xe,ut,re){"use strict";re.d(ut,{default:function(){return pt}});var ne=re(78595),Pe=re(67294),Ke=re(71322),ke=re(94184),ce=re.n(ke),Ze=re(53124),se=function(Ge,we){var ve={};for(var pe in Ge)Object.prototype.hasOwnProperty.call(Ge,pe)&&we.indexOf(pe)<0&&(ve[pe]=Ge[pe]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,pe=Object.getOwnPropertySymbols(Ge);ye<pe.length;ye++)we.indexOf(pe[ye])<0&&Object.prototype.propertyIsEnumerable.call(Ge,pe[ye])&&(ve[pe[ye]]=Ge[pe[ye]]);return ve},Ne=Ge=>{const{prefixCls:we,className:ve,dashed:pe}=Ge,ye=se(Ge,["prefixCls","className","dashed"]),{getPrefixCls:Re}=Pe.useContext(Ze.E_),tt=Re("menu",we),ht=ce()({[`${tt}-item-divider-dashed`]:!!pe},ve);return Pe.createElement(ne.iz,Object.assign({className:ht},ye))},Ae=re(37419),je=re(10366),Me=re(83062),Te=re(96159),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ge=>{var we;const{className:ve,children:pe,icon:ye,title:Re,danger:tt}=Ge,{prefixCls:ht,firstLevel:bt,direction:$t,disableMenuItemTitleTooltip:Dt,inlineCollapsed:Lt}=Pe.useContext(a),en=Ce=>{const He=Pe.createElement("span",{className:`${ht}-title-content`},pe);return(!ye||(0,Te.l$)(pe)&&pe.type==="span")&&pe&&Ce&&bt&&typeof pe=="string"?Pe.createElement("div",{className:`${ht}-inline-collapsed-noicon`},pe.charAt(0)):He},{siderCollapsed:Ut}=Pe.useContext(Ke.D);let Xt=Re;typeof Re=="undefined"?Xt=bt?pe:"":Re===!1&&(Xt="");const Wt={title:Xt};!Ut&&!Lt&&(Wt.title=null,Wt.open=!1);const qt=(0,Ae.Z)(pe).length;let he=Pe.createElement(ne.ck,Object.assign({},(0,je.Z)(Ge,["title","icon","danger"]),{className:ce()({[`${ht}-item-danger`]:tt,[`${ht}-item-only-child`]:(ye?qt+1:qt)===1},ve),title:typeof Re=="string"?Re:void 0}),(0,Te.Tm)(ye,{className:ce()((0,Te.l$)(ye)?(we=ye.props)===null||we===void 0?void 0:we.className:"",`${ht}-item-icon`)}),en(Lt));return Dt||(he=Pe.createElement(Me.Z,Object.assign({},Wt,{placement:$t==="rtl"?"left":"right",overlayClassName:`${ht}-inline-collapsed-tooltip`}),he)),he},x=Ge=>{var we;const{popupClassName:ve,icon:pe,title:ye,theme:Re}=Ge,tt=Pe.useContext(a),{prefixCls:ht,inlineCollapsed:bt,theme:$t}=tt,Dt=(0,ne.Xl)();let Lt;if(!pe)Lt=bt&&!Dt.length&&ye&&typeof ye=="string"?Pe.createElement("div",{className:`${ht}-inline-collapsed-noicon`},ye.charAt(0)):Pe.createElement("span",{className:`${ht}-title-content`},ye);else{const Ut=(0,Te.l$)(ye)&&ye.type==="span";Lt=Pe.createElement(Pe.Fragment,null,(0,Te.Tm)(pe,{className:ce()((0,Te.l$)(pe)?(we=pe.props)===null||we===void 0?void 0:we.className:"",`${ht}-item-icon`)}),Ut?ye:Pe.createElement("span",{className:`${ht}-title-content`},ye))}const en=Pe.useMemo(()=>Object.assign(Object.assign({},tt),{firstLevel:!1}),[tt]);return Pe.createElement(a.Provider,{value:en},Pe.createElement(ne.Wd,Object.assign({},(0,je.Z)(Ge,["icon"]),{title:Lt,popupClassName:ce()(ht,ve,`${ht}-${Re||$t}`)})))},z=re(25877),ee=re(60276),te=re(33603),oe=re(76529),ge=function(Ge,we){var ve={};for(var pe in Ge)Object.prototype.hasOwnProperty.call(Ge,pe)&&we.indexOf(pe)<0&&(ve[pe]=Ge[pe]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,pe=Object.getOwnPropertySymbols(Ge);ye<pe.length;ye++)we.indexOf(pe[ye])<0&&Object.prototype.propertyIsEnumerable.call(Ge,pe[ye])&&(ve[pe[ye]]=Ge[pe[ye]]);return ve};function ie(Ge){return(Ge||[]).map((we,ve)=>{if(we&&typeof we=="object"){const pe=we,{label:ye,children:Re,key:tt,type:ht}=pe,bt=ge(pe,["label","children","key","type"]),$t=tt!=null?tt:`tmp-${ve}`;return Re||ht==="group"?ht==="group"?Pe.createElement(ne.BW,Object.assign({key:$t},bt,{title:ye}),ie(Re)):Pe.createElement(x,Object.assign({key:$t},bt,{title:ye}),ie(Re)):ht==="divider"?Pe.createElement(Ne,Object.assign({key:$t},bt)):Pe.createElement(E,Object.assign({key:$t},bt),ye)}return null}).filter(we=>we)}function Se(Ge){return Pe.useMemo(()=>Ge&&ie(Ge),[Ge])}var le=re(84780),ze=re(14747),$e=re(33507),St=re(67771),It=re(50438),Vt=re(67968),Ee=re(45503),gt=Ge=>{const{componentCls:we,motionDurationSlow:ve,horizontalLineHeight:pe,colorSplit:ye,lineWidth:Re,lineType:tt,itemPaddingInline:ht}=Ge;return{[`${we}-horizontal`]:{lineHeight:pe,border:0,borderBottom:`${Re}px ${tt} ${ye}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${we}-item, ${we}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ht},[`> ${we}-item:hover,
|
|
> ${we}-item-active,
|
|
> ${we}-submenu ${we}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${we}-item, ${we}-submenu-title`]:{transition:[`border-color ${ve}`,`background ${ve}`].join(",")},[`${we}-submenu-arrow`]:{display:"none"}}}},dt=Ge=>{let{componentCls:we,menuArrowOffset:ve}=Ge;return{[`${we}-rtl`]:{direction:"rtl"},[`${we}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${we}-rtl${we}-vertical,
|
|
${we}-submenu-rtl ${we}-vertical`]:{[`${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ve})`},"&::after":{transform:`rotate(45deg) translateY(${ve})`}}}}};const et=Ge=>Object.assign({},(0,ze.oN)(Ge));var it=(Ge,we)=>{const{componentCls:ve,itemColor:pe,itemSelectedColor:ye,groupTitleColor:Re,itemBg:tt,subMenuItemBg:ht,itemSelectedBg:bt,activeBarHeight:$t,activeBarWidth:Dt,activeBarBorderWidth:Lt,motionDurationSlow:en,motionEaseInOut:Ut,motionEaseOut:Xt,itemPaddingInline:Wt,motionDurationMid:qt,itemHoverColor:he,lineType:Ce,colorSplit:He,itemDisabledColor:st,dangerItemColor:ft,dangerItemHoverColor:Gt,dangerItemSelectedColor:zt,dangerItemActiveBg:Et,dangerItemSelectedBg:Ot,itemHoverBg:Kt,itemActiveBg:Zt,menuSubMenuBg:gn,horizontalItemSelectedColor:rn,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:bn,horizontalItemHoverBg:on,popupBg:tn}=Ge;return{[`${ve}-${we}, ${ve}-${we} > ${ve}`]:{color:pe,background:tt,[`&${ve}-root:focus-visible`]:Object.assign({},et(Ge)),[`${ve}-item-group-title`]:{color:Re},[`${ve}-submenu-selected`]:{[`> ${ve}-submenu-title`]:{color:ye}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{color:`${st} !important`},[`${ve}-item:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{[`&:hover, > ${ve}-submenu-title:hover`]:{color:he}},[`&:not(${ve}-horizontal)`]:{[`${ve}-item:not(${ve}-item-selected)`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Zt}},[`${ve}-submenu-title`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Zt}}},[`${ve}-item-danger`]:{color:ft,[`&${ve}-item:hover`]:{[`&:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{color:Gt}},[`&${ve}-item:active`]:{background:Et}},[`${ve}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ve}-item-selected`]:{color:ye,[`&${ve}-item-danger`]:{color:zt},"a, a:hover":{color:"inherit"}},[`& ${ve}-item-selected`]:{backgroundColor:bt,[`&${ve}-item-danger`]:{backgroundColor:Ot}},[`${ve}-item, ${ve}-submenu-title`]:{[`&:not(${ve}-item-disabled):focus-visible`]:Object.assign({},et(Ge))},[`&${ve}-submenu > ${ve}`]:{backgroundColor:gn},[`&${ve}-popup > ${ve}`]:{backgroundColor:tn},[`&${ve}-horizontal`]:Object.assign(Object.assign({},we==="dark"?{borderBottom:0}:{}),{[`> ${ve}-item, > ${ve}-submenu`]:{top:Lt,marginTop:-Lt,marginBottom:0,borderRadius:bn,"&::after":{position:"absolute",insetInline:Wt,bottom:0,borderBottom:`${$t}px solid transparent`,transition:`border-color ${en} ${Ut}`,content:'""'},"&:hover, &-active, &-open":{background:on,"&::after":{borderBottomWidth:$t,borderBottomColor:rn}},"&-selected":{color:rn,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:$t,borderBottomColor:rn}}}}),[`&${ve}-root`]:{[`&${ve}-inline, &${ve}-vertical`]:{borderInlineEnd:`${Lt}px ${Ce} ${He}`}},[`&${ve}-inline`]:{[`${ve}-sub${ve}-inline`]:{background:ht},[`${ve}-item, ${ve}-submenu-title`]:Lt&&Dt?{width:`calc(100% + ${Lt}px)`}:{},[`${ve}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Dt}px solid ${ye}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${qt} ${Xt}`,`opacity ${qt} ${Xt}`].join(","),content:'""'},[`&${ve}-item-danger`]:{"&::after":{borderInlineEndColor:zt}}},[`${ve}-selected, ${ve}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${qt} ${Ut}`,`opacity ${qt} ${Ut}`].join(",")}}}}}};const an=Ge=>{const{componentCls:we,itemHeight:ve,itemMarginInline:pe,padding:ye,menuArrowSize:Re,marginXS:tt,itemMarginBlock:ht}=Ge,bt=ye+Re+tt;return{[`${we}-item`]:{position:"relative",overflow:"hidden"},[`${we}-item, ${we}-submenu-title`]:{height:ve,lineHeight:`${ve}px`,paddingInline:ye,overflow:"hidden",textOverflow:"ellipsis",marginInline:pe,marginBlock:ht,width:`calc(100% - ${pe*2}px)`},[`> ${we}-item,
|
|
> ${we}-submenu > ${we}-submenu-title`]:{height:ve,lineHeight:`${ve}px`},[`${we}-item-group-list ${we}-submenu-title,
|
|
${we}-submenu-title`]:{paddingInlineEnd:bt}}};var Ie=Ge=>{const{componentCls:we,iconCls:ve,itemHeight:pe,colorTextLightSolid:ye,dropdownWidth:Re,controlHeightLG:tt,motionDurationMid:ht,motionEaseOut:bt,paddingXL:$t,itemMarginInline:Dt,fontSizeLG:Lt,motionDurationSlow:en,paddingXS:Ut,boxShadowSecondary:Xt,collapsedWidth:Wt,collapsedIconSize:qt}=Ge,he={height:pe,lineHeight:`${pe}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[we]:{"&-inline, &-vertical":Object.assign({[`&${we}-root`]:{boxShadow:"none"}},an(Ge))},[`${we}-submenu-popup`]:{[`${we}-vertical`]:Object.assign(Object.assign({},an(Ge)),{boxShadow:Xt})}},{[`${we}-submenu-popup ${we}-vertical${we}-sub`]:{minWidth:Re,maxHeight:`calc(100vh - ${tt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${we}-inline`]:{width:"100%",[`&${we}-root`]:{[`${we}-item, ${we}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${en}`,`background ${en}`,`padding ${ht} ${bt}`].join(","),[`> ${we}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${we}-sub${we}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${we}-submenu > ${we}-submenu-title`]:he,[`& ${we}-item-group-title`]:{paddingInlineStart:$t}},[`${we}-item`]:he}},{[`${we}-inline-collapsed`]:{width:Wt,[`&${we}-root`]:{[`${we}-item, ${we}-submenu ${we}-submenu-title`]:{[`> ${we}-inline-collapsed-noicon`]:{fontSize:Lt,textAlign:"center"}}},[`> ${we}-item,
|
|
> ${we}-item-group > ${we}-item-group-list > ${we}-item,
|
|
> ${we}-item-group > ${we}-item-group-list > ${we}-submenu > ${we}-submenu-title,
|
|
> ${we}-submenu > ${we}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Lt/2}px - ${Dt}px)`,textOverflow:"clip",[`
|
|
${we}-submenu-arrow,
|
|
${we}-submenu-expand-icon
|
|
`]:{opacity:0},[`${we}-item-icon, ${ve}`]:{margin:0,fontSize:qt,lineHeight:`${pe}px`,"+ span":{display:"inline-block",opacity:0}}},[`${we}-item-icon, ${ve}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${we}-item-icon, ${ve}`]:{display:"none"},"a, a:hover":{color:ye}},[`${we}-item-group-title`]:Object.assign(Object.assign({},ze.vS),{paddingInline:Ut})}}]};const Ye=Ge=>{const{componentCls:we,motionDurationSlow:ve,motionDurationMid:pe,motionEaseInOut:ye,motionEaseOut:Re,iconCls:tt,iconSize:ht,iconMarginInlineEnd:bt}=Ge;return{[`${we}-item, ${we}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ve}`,`background ${ve}`,`padding ${ve} ${ye}`].join(","),[`${we}-item-icon, ${tt}`]:{minWidth:ht,fontSize:ht,transition:[`font-size ${pe} ${Re}`,`margin ${ve} ${ye}`,`color ${ve}`].join(","),"+ span":{marginInlineStart:bt,opacity:1,transition:[`opacity ${ve} ${ye}`,`margin ${ve}`,`color ${ve}`].join(",")}},[`${we}-item-icon`]:Object.assign({},(0,ze.Ro)()),[`&${we}-item-only-child`]:{[`> ${tt}, > ${we}-item-icon`]:{marginInlineEnd:0}}},[`${we}-item-disabled, ${we}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${we}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ft=Ge=>{const{componentCls:we,motionDurationSlow:ve,motionEaseInOut:pe,borderRadius:ye,menuArrowSize:Re,menuArrowOffset:tt}=Ge;return{[`${we}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ge.margin,width:Re,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ve} ${pe}, opacity ${ve}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Re*.6,height:Re*.15,backgroundColor:"currentcolor",borderRadius:ye,transition:[`background ${ve} ${pe}`,`transform ${ve} ${pe}`,`top ${ve} ${pe}`,`color ${ve} ${pe}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${tt})`},"&::after":{transform:`rotate(-45deg) translateY(${tt})`}}}}},Xe=Ge=>{const{antCls:we,componentCls:ve,fontSize:pe,motionDurationSlow:ye,motionDurationMid:Re,motionEaseInOut:tt,paddingXS:ht,padding:bt,colorSplit:$t,lineWidth:Dt,zIndexPopup:Lt,borderRadiusLG:en,subMenuItemBorderRadius:Ut,menuArrowSize:Xt,menuArrowOffset:Wt,lineType:qt,menuPanelMaskInset:he,groupTitleLineHeight:Ce,groupTitleFontSize:He}=Ge;return[{"":{[`${ve}`]:Object.assign(Object.assign({},(0,ze.dF)()),{"&-hidden":{display:"none"}})},[`${ve}-submenu-hidden`]:{display:"none"}},{[ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,ze.Wf)(Ge)),(0,ze.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:pe,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ye} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ve}-item`]:{flex:"none"}},[`${ve}-item, ${ve}-submenu, ${ve}-submenu-title`]:{borderRadius:Ge.itemBorderRadius},[`${ve}-item-group-title`]:{padding:`${ht}px ${bt}px`,fontSize:He,lineHeight:Ce,transition:`all ${ye}`},[`&-horizontal ${ve}-submenu`]:{transition:[`border-color ${ye} ${tt}`,`background ${ye} ${tt}`].join(",")},[`${ve}-submenu, ${ve}-submenu-inline`]:{transition:[`border-color ${ye} ${tt}`,`background ${ye} ${tt}`,`padding ${Re} ${tt}`].join(",")},[`${ve}-submenu ${ve}-sub`]:{cursor:"initial",transition:[`background ${ye} ${tt}`,`padding ${ye} ${tt}`].join(",")},[`${ve}-title-content`]:{transition:`color ${ye}`},[`${ve}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ve}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:$t,borderStyle:qt,borderWidth:0,borderTopWidth:Dt,marginBlock:Dt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ye(Ge)),{[`${ve}-item-group`]:{[`${ve}-item-group-list`]:{margin:0,padding:0,[`${ve}-item, ${ve}-submenu-title`]:{paddingInline:`${pe*2}px ${bt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Lt,borderRadius:en,boxShadow:"none",transformOrigin:"0 0",[`&${ve}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${he}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:he},"\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:Ge.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ge.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ge.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ge.paddingXS},[`> ${ve}`]:Object.assign(Object.assign(Object.assign({borderRadius:en},Ye(Ge)),Ft(Ge)),{[`${ve}-item, ${ve}-submenu > ${ve}-submenu-title`]:{borderRadius:Ut},[`${ve}-submenu-title::after`]:{transition:`transform ${ye} ${tt}`}})}}),Ft(Ge)),{[`&-inline-collapsed ${ve}-submenu-arrow,
|
|
&-inline ${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Wt})`},"&::after":{transform:`rotate(45deg) translateX(-${Wt})`}},[`${ve}-submenu-open${ve}-submenu-inline > ${ve}-submenu-title > ${ve}-submenu-arrow`]:{transform:`translateY(-${Xt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Wt})`},"&::before":{transform:`rotate(45deg) translateX(${Wt})`}}})},{[`${we}-layout-header`]:{[ve]:{lineHeight:"inherit"}}}]};var mt=(Ge,we)=>(0,Vt.Z)("Menu",pe=>{if(we===!1)return[];const{colorBgElevated:ye,colorPrimary:Re,colorTextLightSolid:tt,controlHeightLG:ht,fontSize:bt,darkItemColor:$t,darkDangerItemColor:Dt,darkItemBg:Lt,darkSubMenuItemBg:en,darkItemSelectedColor:Ut,darkItemSelectedBg:Xt,darkDangerItemSelectedBg:Wt,darkItemHoverBg:qt,darkGroupTitleColor:he,darkItemHoverColor:Ce,darkItemDisabledColor:He,darkDangerItemHoverColor:st,darkDangerItemSelectedColor:ft,darkDangerItemActiveBg:Gt}=pe,zt=bt/7*5,Et=(0,Ee.TS)(pe,{menuArrowSize:zt,menuHorizontalHeight:ht*1.15,menuArrowOffset:`${zt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ye}),Ot=(0,Ee.TS)(Et,{itemColor:$t,itemHoverColor:Ce,groupTitleColor:he,itemSelectedColor:Ut,itemBg:Lt,popupBg:Lt,subMenuItemBg:en,itemActiveBg:"transparent",itemSelectedBg:Xt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:qt,itemDisabledColor:He,dangerItemColor:Dt,dangerItemHoverColor:st,dangerItemSelectedColor:ft,dangerItemActiveBg:Gt,dangerItemSelectedBg:Wt,menuSubMenuBg:en,horizontalItemSelectedColor:tt,horizontalItemSelectedBg:Re});return[Xe(Et),gt(Et),Ie(Et),it(Et,"light"),it(Ot,"dark"),dt(Et),(0,$e.Z)(Et),(0,St.oN)(Et,"slide-up"),(0,St.oN)(Et,"slide-down"),(0,It._y)(Et,"zoom-big")]},pe=>{const{colorPrimary:ye,colorError:Re,colorTextDisabled:tt,colorErrorBg:ht,colorText:bt,colorTextDescription:$t,colorBgContainer:Dt,colorFillAlter:Lt,colorFillContent:en,lineWidth:Ut,lineWidthBold:Xt,controlItemBgActive:Wt,colorBgTextHover:qt,controlHeightLG:he,lineHeight:Ce,colorBgElevated:He,marginXXS:st,padding:ft,fontSize:Gt,controlHeightSM:zt,fontSizeLG:Et,colorTextLightSolid:Ot,colorErrorHover:Kt}=pe,Zt=new le.C(Ot).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:pe.zIndexPopupBase+50,radiusItem:pe.borderRadiusLG,itemBorderRadius:pe.borderRadiusLG,radiusSubMenuItem:pe.borderRadiusSM,subMenuItemBorderRadius:pe.borderRadiusSM,colorItemText:bt,itemColor:bt,colorItemTextHover:bt,itemHoverColor:bt,colorItemTextHoverHorizontal:ye,horizontalItemHoverColor:ye,colorGroupTitle:$t,groupTitleColor:$t,colorItemTextSelected:ye,itemSelectedColor:ye,colorItemTextSelectedHorizontal:ye,horizontalItemSelectedColor:ye,colorItemBg:Dt,itemBg:Dt,colorItemBgHover:qt,itemHoverBg:qt,colorItemBgActive:en,itemActiveBg:Wt,colorSubItemBg:Lt,subMenuItemBg:Lt,colorItemBgSelected:Wt,itemSelectedBg:Wt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Xt,activeBarHeight:Xt,colorActiveBarBorderSize:Ut,activeBarBorderWidth:Ut,colorItemTextDisabled:tt,itemDisabledColor:tt,colorDangerItemText:Re,dangerItemColor:Re,colorDangerItemTextHover:Re,dangerItemHoverColor:Re,colorDangerItemTextSelected:Re,dangerItemSelectedColor:Re,colorDangerItemBgActive:ht,dangerItemActiveBg:ht,colorDangerItemBgSelected:ht,dangerItemSelectedBg:ht,itemMarginInline:pe.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:he,groupTitleLineHeight:Ce,collapsedWidth:he*2,popupBg:He,itemMarginBlock:st,itemPaddingInline:ft,horizontalLineHeight:`${he*1.15}px`,iconSize:Gt,iconMarginInlineEnd:zt-Gt,collapsedIconSize:Et,groupTitleFontSize:Gt,darkItemDisabledColor:new le.C(Ot).setAlpha(.25).toRgbString(),darkItemColor:Zt,darkDangerItemColor:Re,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ot,darkItemSelectedBg:ye,darkDangerItemSelectedBg:Re,darkItemHoverBg:"transparent",darkGroupTitleColor:Zt,darkItemHoverColor:Ot,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:Ot,darkDangerItemActiveBg:Re}},{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"]]})(Ge),de=function(Ge,we){var ve={};for(var pe in Ge)Object.prototype.hasOwnProperty.call(Ge,pe)&&we.indexOf(pe)<0&&(ve[pe]=Ge[pe]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,pe=Object.getOwnPropertySymbols(Ge);ye<pe.length;ye++)we.indexOf(pe[ye])<0&&Object.prototype.propertyIsEnumerable.call(Ge,pe[ye])&&(ve[pe[ye]]=Ge[pe[ye]]);return ve},kt=(0,Pe.forwardRef)((Ge,we)=>{var ve,pe;const ye=Pe.useContext(oe.Z),Re=ye||{},{getPrefixCls:tt,getPopupContainer:ht,direction:bt,menu:$t}=Pe.useContext(Ze.E_),Dt=tt(),{prefixCls:Lt,className:en,style:Ut,theme:Xt="light",expandIcon:Wt,_internalDisableMenuItemTitleTooltip:qt,inlineCollapsed:he,siderCollapsed:Ce,items:He,children:st,rootClassName:ft,mode:Gt,selectable:zt,onClick:Et,overflowedIndicatorPopupClassName:Ot}=Ge,Kt=de(Ge,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zt=(0,je.Z)(Kt,["collapsedWidth"]),gn=Se(He)||st;(ve=Re.validator)===null||ve===void 0||ve.call(Re,{mode:Gt});const rn=(0,ee.useEvent)(function(){var En;Et==null||Et.apply(void 0,arguments),(En=Re.onClick)===null||En===void 0||En.call(Re)}),hn=Re.mode||Gt,bn=zt!=null?zt:Re.selectable,on=Pe.useMemo(()=>Ce!==void 0?Ce:he,[he,Ce]),tn={horizontal:{motionName:`${Dt}-slide-up`},inline:(0,te.Z)(Dt),other:{motionName:`${Dt}-zoom-big`}},un=tt("menu",Lt||Re.prefixCls),[pn,wn]=mt(un,!ye),mn=ce()(`${un}-${Xt}`,$t==null?void 0:$t.className,en);let Bn;if(typeof Wt=="function")Bn=Wt;else if(Wt===null||Wt===!1)Bn=null;else if(Re.expandIcon===null||Re.expandIcon===!1)Bn=null;else{const En=Wt!=null?Wt:Re.expandIcon;Bn=(0,Te.Tm)(En,{className:ce()(`${un}-submenu-expand-icon`,(0,Te.l$)(En)?(pe=En.props)===null||pe===void 0?void 0:pe.className:"")})}const Rn=Pe.useMemo(()=>({prefixCls:un,inlineCollapsed:on||!1,direction:bt,firstLevel:!0,theme:Xt,mode:hn,disableMenuItemTitleTooltip:qt}),[un,on,bt,qt,Xt]);return pn(Pe.createElement(oe.Z.Provider,{value:null},Pe.createElement(a.Provider,{value:Rn},Pe.createElement(ne.ZP,Object.assign({getPopupContainer:ht,overflowedIndicator:Pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(un,`${un}-${Xt}`,Ot),mode:hn,selectable:bn,onClick:rn},Zt,{inlineCollapsed:on,style:Object.assign(Object.assign({},$t==null?void 0:$t.style),Ut),className:mn,prefixCls:un,direction:bt,defaultMotions:tn,expandIcon:Bn,ref:we,rootClassName:ce()(ft,wn)}),gn))))});const Qt=(0,Pe.forwardRef)((Ge,we)=>{const ve=(0,Pe.useRef)(null),pe=Pe.useContext(Ke.D);return(0,Pe.useImperativeHandle)(we,()=>({menu:ve.current,focus:ye=>{var Re;(Re=ve.current)===null||Re===void 0||Re.focus(ye)}})),Pe.createElement(kt,Object.assign({ref:ve},Ge,pe))});Qt.Item=E,Qt.SubMenu=x,Qt.Divider=Ne,Qt.ItemGroup=ne.BW;var pt=Qt},38703:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return qt}});var ne=re(67294),Pe=re(87725),Ke=re(18299),ke=re(16646),ce=re(73475),Ze=re(94184),se=re.n(Ze),_e=re(10366),Ne=re(53124),Ae=re(87462),je=re(1413),Me=re(45987),Te={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Ce=(0,ne.useRef)([]),He=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var st=Date.now(),ft=!1;Ce.current.forEach(function(Gt){if(Gt){ft=!0;var zt=Gt.style;zt.transitionDuration=".3s, .3s, .3s, .06s",He.current&&st-He.current<100&&(zt.transitionDuration="0s, 0s")}}),ft&&(He.current=Date.now())}),Ce.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ce){var He=(0,je.Z)((0,je.Z)({},Te),Ce),st=He.className,ft=He.percent,Gt=He.prefixCls,zt=He.strokeColor,Et=He.strokeLinecap,Ot=He.strokeWidth,Kt=He.style,Zt=He.trailColor,gn=He.trailWidth,rn=He.transition,hn=(0,Me.Z)(He,a);delete hn.gapPosition;var bn=Array.isArray(ft)?ft:[ft],on=Array.isArray(zt)?zt:[zt],tn=ae(),un=Ot/2,pn=100-Ot/2,wn="M ".concat(Et==="round"?un:0,",").concat(un,`
|
|
L `).concat(Et==="round"?pn:100,",").concat(un),mn="0 0 100 ".concat(Ot),Bn=0;return ne.createElement("svg",(0,Ae.Z)({className:se()("".concat(Gt,"-line"),st),viewBox:mn,preserveAspectRatio:"none",style:Kt},hn),ne.createElement("path",{className:"".concat(Gt,"-line-trail"),d:wn,strokeLinecap:Et,stroke:Zt,strokeWidth:gn||Ot,fillOpacity:"0"}),bn.map(function(Rn,En){var Tn=1;switch(Et){case"round":Tn=1-Ot/100;break;case"square":Tn=1-Ot/2/100;break;default:Tn=1;break}var Un={strokeDasharray:"".concat(Rn*Tn,"px, 100px"),strokeDashoffset:"-".concat(Bn,"px"),transition:rn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},jn=on[En]||on[on.length-1];return Bn+=Rn,ne.createElement("path",{key:En,className:"".concat(Gt,"-line-path"),d:wn,strokeLinecap:Et,stroke:jn,strokeWidth:Ot,fillOpacity:"0",ref:function(Le){tn[En]=Le},style:Un})}))},E=y,b=re(71002),x=re(97685),z=re(98924),ee=0,te=(0,z.Z)();function oe(){var he;return te?(he=ee,ee+=1):he="TEST_OR_SSR",he}var ge=function(he){var Ce=ne.useState(),He=(0,x.Z)(Ce,2),st=He[0],ft=He[1];return ne.useEffect(function(){ft("rc_progress_".concat(oe()))},[]),he||st},ie=function(Ce){var He=Ce.bg,st=Ce.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:He}},st)};function Se(he,Ce){return Object.keys(he).map(function(He){var st=parseFloat(He),ft="".concat(Math.floor(st*Ce),"%");return"".concat(he[He]," ").concat(ft)})}var le=ne.forwardRef(function(he,Ce){var He=he.prefixCls,st=he.color,ft=he.gradientId,Gt=he.radius,zt=he.style,Et=he.ptg,Ot=he.strokeLinecap,Kt=he.strokeWidth,Zt=he.size,gn=he.gapDegree,rn=st&&(0,b.Z)(st)==="object",hn=rn?"#FFF":void 0,bn=Zt/2,on=ne.createElement("circle",{className:"".concat(He,"-circle-path"),r:Gt,cx:bn,cy:bn,stroke:hn,strokeLinecap:Ot,strokeWidth:Kt,opacity:Et===0?0:1,style:zt,ref:Ce});if(!rn)return on;var tn="".concat(ft,"-conic"),un=gn?"".concat(180+gn/2,"deg"):"0deg",pn=Se(st,(360-gn)/360),wn=Se(st,1),mn="conic-gradient(from ".concat(un,", ").concat(pn.join(", "),")"),Bn="linear-gradient(to ".concat(gn?"bottom":"top",", ").concat(wn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:tn},on),ne.createElement("foreignObject",{x:0,y:0,width:Zt,height:Zt,mask:"url(#".concat(tn,")")},ne.createElement(ie,{bg:Bn},ne.createElement(ie,{bg:mn}))))}),ze=le,$e=100,St=function(Ce,He,st,ft,Gt,zt,Et,Ot,Kt,Zt){var gn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rn=st/100*360*((360-zt)/360),hn=zt===0?0:{bottom:0,top:180,left:90,right:-90}[Et],bn=(100-ft)/100*He;Kt==="round"&&ft!==100&&(bn+=Zt/2,bn>=He&&(bn=He-.01));var on=$e/2;return{stroke:typeof Ot=="string"?Ot:void 0,strokeDasharray:"".concat(He,"px ").concat(Ce),strokeDashoffset:bn+gn,transform:"rotate(".concat(Gt+rn+hn,"deg)"),transformOrigin:"".concat(on,"px ").concat(on,"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}},It=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Vt(he){var Ce=he!=null?he:[];return Array.isArray(Ce)?Ce:[Ce]}var Ee=function(Ce){var He=(0,je.Z)((0,je.Z)({},Te),Ce),st=He.id,ft=He.prefixCls,Gt=He.steps,zt=He.strokeWidth,Et=He.trailWidth,Ot=He.gapDegree,Kt=Ot===void 0?0:Ot,Zt=He.gapPosition,gn=He.trailColor,rn=He.strokeLinecap,hn=He.style,bn=He.className,on=He.strokeColor,tn=He.percent,un=(0,Me.Z)(He,It),pn=$e/2,wn=ge(st),mn="".concat(wn,"-gradient"),Bn=pn-zt/2,Rn=Math.PI*2*Bn,En=Kt>0?90+Kt/2:-90,Tn=Rn*((360-Kt)/360),Un=(0,b.Z)(Gt)==="object"?Gt:{count:Gt,space:2},jn=Un.count,ue=Un.space,Le=Vt(tn),fe=Vt(on),Qe=fe.find(function(Hn){return Hn&&(0,b.Z)(Hn)==="object"}),wt=Qe&&(0,b.Z)(Qe)==="object",Bt=wt?"butt":rn,Sn=St(Rn,Tn,0,100,En,Kt,Zt,gn,Bt,zt),Jt=ae(),ln=function(){var qe=0;return Le.map(function(dn,me){var Be=fe[me]||fe[fe.length-1],Fe=St(Rn,Tn,qe,dn,En,Kt,Zt,Be,Bt,zt);return qe+=dn,ne.createElement(ze,{key:me,color:Be,ptg:dn,radius:Bn,prefixCls:ft,gradientId:mn,style:Fe,strokeLinecap:Bt,strokeWidth:zt,gapDegree:Kt,ref:function(rt){Jt[me]=rt},size:$e})}).reverse()},xn=function(){var qe=Math.round(jn*(Le[0]/100)),dn=100/jn,me=0;return new Array(jn).fill(null).map(function(Be,Fe){var Oe=Fe<=qe-1?fe[0]:gn,rt=Oe&&(0,b.Z)(Oe)==="object"?"url(#".concat(mn,")"):void 0,We=St(Rn,Tn,me,dn,En,Kt,Zt,Oe,"butt",zt,ue);return me+=(Tn-We.strokeDashoffset+ue)*100/Tn,ne.createElement("circle",{key:Fe,className:"".concat(ft,"-circle-path"),r:Bn,cx:pn,cy:pn,stroke:rt,strokeWidth:zt,opacity:1,style:We,ref:function(De){Jt[Fe]=De}})})};return ne.createElement("svg",(0,Ae.Z)({className:se()("".concat(ft,"-circle"),bn),viewBox:"0 0 ".concat($e," ").concat($e),style:hn,id:st,role:"presentation"},un),!jn&&ne.createElement("circle",{className:"".concat(ft,"-circle-trail"),r:Bn,cx:pn,cy:pn,stroke:gn,strokeLinecap:Bt,strokeWidth:Et||zt,style:Sn}),jn?xn():ln())},nt=Ee,gt={Line:E,Circle:nt},at=re(83062),dt=re(47448);function et(he){return!he||he<0?0:he>100?100:he}function ot(he){let{success:Ce,successPercent:He}=he,st=He;return Ce&&"progress"in Ce&&(st=Ce.progress),Ce&&"percent"in Ce&&(st=Ce.percent),st}const it=he=>{let{percent:Ce,success:He,successPercent:st}=he;const ft=et(ot({success:He,successPercent:st}));return[ft,et(et(Ce)-ft)]},an=he=>{let{success:Ce={},strokeColor:He}=he;const{strokeColor:st}=Ce;return[st||dt.presetPrimaryColors.green,He||null]},be=(he,Ce,He)=>{var st,ft,Gt,zt;let Et=-1,Ot=-1;if(Ce==="step"){const Kt=He.steps,Zt=He.strokeWidth;typeof he=="string"||typeof he=="undefined"?(Et=he==="small"?2:14,Ot=Zt!=null?Zt:8):typeof he=="number"?[Et,Ot]=[he,he]:[Et=14,Ot=8]=he,Et*=Kt}else if(Ce==="line"){const Kt=He==null?void 0:He.strokeWidth;typeof he=="string"||typeof he=="undefined"?Ot=Kt||(he==="small"?6:8):typeof he=="number"?[Et,Ot]=[he,he]:[Et=-1,Ot=8]=he}else(Ce==="circle"||Ce==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[Et,Ot]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[Et,Ot]=[he,he]:(Et=(ft=(st=he[0])!==null&&st!==void 0?st:he[1])!==null&&ft!==void 0?ft:120,Ot=(zt=(Gt=he[0])!==null&&Gt!==void 0?Gt:he[1])!==null&&zt!==void 0?zt:120));return[Et,Ot]},Ie=3,Ye=he=>Ie/he*100;var Xe=he=>{const{prefixCls:Ce,trailColor:He=null,strokeLinecap:st="round",gapPosition:ft,gapDegree:Gt,width:zt=120,type:Et,children:Ot,success:Kt,size:Zt=zt}=he,[gn,rn]=be(Zt,"circle");let{strokeWidth:hn}=he;hn===void 0&&(hn=Math.max(Ye(gn),6));const bn={width:gn,height:rn,fontSize:gn*.15+6},on=ne.useMemo(()=>{if(Gt||Gt===0)return Gt;if(Et==="dashboard")return 75},[Gt,Et]),tn=ft||Et==="dashboard"&&"bottom"||void 0,un=Object.prototype.toString.call(he.strokeColor)==="[object Object]",pn=an({success:Kt,strokeColor:he.strokeColor}),wn=se()(`${Ce}-inner`,{[`${Ce}-circle-gradient`]:un}),mn=ne.createElement(nt,{percent:it(he),strokeWidth:hn,trailWidth:hn,strokeColor:pn,strokeLinecap:st,trailColor:He,prefixCls:Ce,gapDegree:on,gapPosition:tn});return ne.createElement("div",{className:wn,style:bn},gn<=20?ne.createElement(at.Z,{title:Ot},ne.createElement("span",null,mn)):ne.createElement(ne.Fragment,null,mn,Ot))},mt=function(he,Ce){var He={};for(var st in he)Object.prototype.hasOwnProperty.call(he,st)&&Ce.indexOf(st)<0&&(He[st]=he[st]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,st=Object.getOwnPropertySymbols(he);ft<st.length;ft++)Ce.indexOf(st[ft])<0&&Object.prototype.propertyIsEnumerable.call(he,st[ft])&&(He[st[ft]]=he[st[ft]]);return He};const de=he=>{let Ce=[];return Object.keys(he).forEach(He=>{const st=parseFloat(He.replace(/%/g,""));isNaN(st)||Ce.push({key:st,value:he[He]})}),Ce=Ce.sort((He,st)=>He.key-st.key),Ce.map(He=>{let{key:st,value:ft}=He;return`${ft} ${st}%`}).join(", ")},lt=(he,Ce)=>{const{from:He=dt.presetPrimaryColors.blue,to:st=dt.presetPrimaryColors.blue,direction:ft=Ce==="rtl"?"to left":"to right"}=he,Gt=mt(he,["from","to","direction"]);if(Object.keys(Gt).length!==0){const zt=de(Gt);return{backgroundImage:`linear-gradient(${ft}, ${zt})`}}return{backgroundImage:`linear-gradient(${ft}, ${He}, ${st})`}};var Qt=he=>{const{prefixCls:Ce,direction:He,percent:st,size:ft,strokeWidth:Gt,strokeColor:zt,strokeLinecap:Et="round",children:Ot,trailColor:Kt=null,success:Zt}=he,gn=zt&&typeof zt!="string"?lt(zt,He):{backgroundColor:zt},rn=Et==="square"||Et==="butt"?0:void 0,hn={backgroundColor:Kt||void 0,borderRadius:rn},bn=ft!=null?ft:[-1,Gt||(ft==="small"?6:8)],[on,tn]=be(bn,"line",{strokeWidth:Gt}),un=Object.assign({width:`${et(st)}%`,height:tn,borderRadius:rn},gn),pn=ot(he),wn={width:`${et(pn)}%`,height:tn,borderRadius:rn,backgroundColor:Zt==null?void 0:Zt.strokeColor},mn={width:on<0?"100%":on,height:tn};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Ce}-outer`,style:mn},ne.createElement("div",{className:`${Ce}-inner`,style:hn},ne.createElement("div",{className:`${Ce}-bg`,style:un}),pn!==void 0?ne.createElement("div",{className:`${Ce}-success-bg`,style:wn}):null)),Ot)},Ge=he=>{const{size:Ce,steps:He,percent:st=0,strokeWidth:ft=8,strokeColor:Gt,trailColor:zt=null,prefixCls:Et,children:Ot}=he,Kt=Math.round(He*(st/100)),Zt=Ce==="small"?2:14,gn=Ce!=null?Ce:[Zt,ft],[rn,hn]=be(gn,"step",{steps:He,strokeWidth:ft}),bn=rn/He,on=new Array(He);for(let tn=0;tn<He;tn++){const un=Array.isArray(Gt)?Gt[tn]:Gt;on[tn]=ne.createElement("div",{key:tn,className:se()(`${Et}-steps-item`,{[`${Et}-steps-item-active`]:tn<=Kt-1}),style:{backgroundColor:tn<=Kt-1?un:zt,width:bn,height:hn}})}return ne.createElement("div",{className:`${Et}-steps-outer`},on,Ot)},we=re(45930),ve=re(14747),pe=re(67968),ye=re(45503);const Re=he=>{const Ce=he?"100%":"-100%";return new we.Keyframes(`antProgress${he?"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}})},tt=he=>{const{componentCls:Ce,iconCls:He}=he;return{[Ce]:Object.assign(Object.assign({},(0,ve.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${Ce}-outer`]:{display:"inline-block",width:"100%"},[`&${Ce}-show-info`]:{[`${Ce}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${Ce}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:he.defaultColor}},[`${Ce}-success-bg, ${Ce}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${Ce}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${Ce}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[He]:{fontSize:he.fontSize}},[`&${Ce}-status-active`]:{[`${Ce}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:Re(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ce}-rtl${Ce}-status-active`]:{[`${Ce}-bg::before`]:{animationName:Re(!0)}},[`&${Ce}-status-exception`]:{[`${Ce}-bg`]:{backgroundColor:he.colorError},[`${Ce}-text`]:{color:he.colorError}},[`&${Ce}-status-exception ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:he.colorError}},[`&${Ce}-status-success`]:{[`${Ce}-bg`]:{backgroundColor:he.colorSuccess},[`${Ce}-text`]:{color:he.colorSuccess}},[`&${Ce}-status-success ${Ce}-inner:not(${Ce}-circle-gradient)`]:{[`${Ce}-circle-path`]:{stroke:he.colorSuccess}}})}},ht=he=>{const{componentCls:Ce,iconCls:He}=he;return{[Ce]:{[`${Ce}-circle-trail`]:{stroke:he.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:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[He]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${Ce}-circle&-status-exception`]:{[`${Ce}-text`]:{color:he.colorError}},[`${Ce}-circle&-status-success`]:{[`${Ce}-text`]:{color:he.colorSuccess}}},[`${Ce}-inline-circle`]:{lineHeight:1,[`${Ce}-inner`]:{verticalAlign:"bottom"}}}},bt=he=>{const{componentCls:Ce}=he;return{[Ce]:{[`${Ce}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},$t=he=>{const{componentCls:Ce,iconCls:He}=he;return{[Ce]:{[`${Ce}-small&-line, ${Ce}-small&-line ${Ce}-text ${He}`]:{fontSize:he.fontSizeSM}}}};var Dt=(0,pe.Z)("Progress",he=>{const Ce=he.marginXXS/2,He=(0,ye.TS)(he,{progressStepMarginInlineEnd:Ce,progressStepMinWidth:Ce,progressActiveMotionDuration:"2.4s"});return[tt(He),ht(He),bt(He),$t(He)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Lt=function(he,Ce){var He={};for(var st in he)Object.prototype.hasOwnProperty.call(he,st)&&Ce.indexOf(st)<0&&(He[st]=he[st]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,st=Object.getOwnPropertySymbols(he);ft<st.length;ft++)Ce.indexOf(st[ft])<0&&Object.prototype.propertyIsEnumerable.call(he,st[ft])&&(He[st[ft]]=he[st[ft]]);return He};const en=null,Ut=["normal","exception","active","success"];var Wt=ne.forwardRef((he,Ce)=>{const{prefixCls:He,className:st,rootClassName:ft,steps:Gt,strokeColor:zt,percent:Et=0,size:Ot="default",showInfo:Kt=!0,type:Zt="line",status:gn,format:rn,style:hn}=he,bn=Lt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),on=ne.useMemo(()=>{var Le,fe;const Qe=ot(he);return parseInt(Qe!==void 0?(Le=Qe!=null?Qe:0)===null||Le===void 0?void 0:Le.toString():(fe=Et!=null?Et:0)===null||fe===void 0?void 0:fe.toString(),10)},[Et,he.success,he.successPercent]),tn=ne.useMemo(()=>!Ut.includes(gn)&&on>=100?"success":gn||"normal",[gn,on]),{getPrefixCls:un,direction:pn,progress:wn}=ne.useContext(Ne.E_),mn=un("progress",He),[Bn,Rn]=Dt(mn),En=ne.useMemo(()=>{if(!Kt)return null;const Le=ot(he);let fe;const Qe=rn||(Bt=>`${Bt}%`),wt=Zt==="line";return rn||tn!=="exception"&&tn!=="success"?fe=Qe(et(Et),et(Le)):tn==="exception"?fe=wt?ne.createElement(ke.Z,null):ne.createElement(ce.Z,null):tn==="success"&&(fe=wt?ne.createElement(Pe.Z,null):ne.createElement(Ke.Z,null)),ne.createElement("span",{className:`${mn}-text`,title:typeof fe=="string"?fe:void 0},fe)},[Kt,Et,on,tn,Zt,mn,rn]),Tn=Array.isArray(zt)?zt[0]:zt,Un=typeof zt=="string"||Array.isArray(zt)?zt:void 0;let jn;Zt==="line"?jn=Gt?ne.createElement(Ge,Object.assign({},he,{strokeColor:Un,prefixCls:mn,steps:Gt}),En):ne.createElement(Qt,Object.assign({},he,{strokeColor:Tn,prefixCls:mn,direction:pn}),En):(Zt==="circle"||Zt==="dashboard")&&(jn=ne.createElement(Xe,Object.assign({},he,{strokeColor:Tn,prefixCls:mn,progressStatus:tn}),En));const ue=se()(mn,`${mn}-status-${tn}`,`${mn}-${Zt==="dashboard"&&"circle"||Gt&&"steps"||Zt}`,{[`${mn}-inline-circle`]:Zt==="circle"&&be(Ot,"circle")[0]<=20,[`${mn}-show-info`]:Kt,[`${mn}-${Ot}`]:typeof Ot=="string",[`${mn}-rtl`]:pn==="rtl"},wn==null?void 0:wn.className,st,ft,Rn);return Bn(ne.createElement("div",Object.assign({ref:Ce,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),hn),className:ue,role:"progressbar","aria-valuenow":on},(0,_e.Z)(bn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),jn))}),qt=Wt},59810:function(xe,ut,re){"use strict";re.d(ut,{default:function(){return dn}});var ne=re(67294),Pe=re(74902),Ke=re(94184),ke=re.n(Ke),ce=re(87462),Ze=re(15671),se=re(43144),_e=re(60136),Ne=re(51630),Ae=re(4942),je=re(45987),Me=re(74165),Te=re(71002),ae=re(15861),a=re(64217);function y(me,Be){var Fe="cannot ".concat(me.method," ").concat(me.action," ").concat(Be.status,"'"),Oe=new Error(Fe);return Oe.status=Be.status,Oe.method=me.method,Oe.url=me.action,Oe}function E(me){var Be=me.responseText||me.response;if(!Be)return Be;try{return JSON.parse(Be)}catch(Fe){return Be}}function b(me){var Be=new XMLHttpRequest;me.onProgress&&Be.upload&&(Be.upload.onprogress=function(We){We.total>0&&(We.percent=We.loaded/We.total*100),me.onProgress(We)});var Fe=new FormData;me.data&&Object.keys(me.data).forEach(function(rt){var We=me.data[rt];if(Array.isArray(We)){We.forEach(function(Je){Fe.append("".concat(rt,"[]"),Je)});return}Fe.append(rt,We)}),me.file instanceof Blob?Fe.append(me.filename,me.file,me.file.name):Fe.append(me.filename,me.file),Be.onerror=function(We){me.onError(We)},Be.onload=function(){return Be.status<200||Be.status>=300?me.onError(y(me,Be),E(Be)):me.onSuccess(E(Be),Be)},Be.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in Be&&(Be.withCredentials=!0);var Oe=me.headers||{};return Oe["X-Requested-With"]!==null&&Be.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Oe).forEach(function(rt){Oe[rt]!==null&&Be.setRequestHeader(rt,Oe[rt])}),Be.send(Fe),{abort:function(){Be.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=re(80334),oe=function(me,Be){if(me&&Be){var Fe=Array.isArray(Be)?Be:Be.split(","),Oe=me.name||"",rt=me.type||"",We=rt.replace(/\/.*$/,"");return Fe.some(function(Je){var De=Je.trim();if(/^\*(\/\*)?$/.test(Je))return!0;if(De.charAt(0)==="."){var Tt=Oe.toLowerCase(),Ct=De.toLowerCase(),Ht=[Ct];return(Ct===".jpg"||Ct===".jpeg")&&(Ht=[".jpg",".jpeg"]),Ht.some(function(nn){return Tt.endsWith(nn)})}return/\/\*$/.test(De)?We===De.replace(/\/.*$/,""):rt===De?!0:/^\w+$/.test(De)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(De,"'.Skip for check.")),!0):!1})}return!0};function ge(me,Be){var Fe=me.createReader(),Oe=[];function rt(){Fe.readEntries(function(We){var Je=Array.prototype.slice.apply(We);Oe=Oe.concat(Je);var De=!Je.length;De?Be(Oe):rt()})}rt()}var ie=function(Be,Fe,Oe){var rt=function We(Je,De){Je&&(Je.path=De||"",Je.isFile?Je.file(function(Tt){Oe(Tt)&&(Je.fullPath&&!Tt.webkitRelativePath&&(Object.defineProperties(Tt,{webkitRelativePath:{writable:!0}}),Tt.webkitRelativePath=Je.fullPath.replace(/^\//,""),Object.defineProperties(Tt,{webkitRelativePath:{writable:!1}})),Fe([Tt]))}):Je.isDirectory&&ge(Je,function(Tt){Tt.forEach(function(Ct){We(Ct,"".concat(De).concat(Je.name,"/"))})}))};Be.forEach(function(We){rt(We.webkitGetAsEntry())})},Se=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],ze=function(me){(0,_e.Z)(Fe,me);var Be=(0,Ne.Z)(Fe);function Fe(){var Oe;(0,Ze.Z)(this,Fe);for(var rt=arguments.length,We=new Array(rt),Je=0;Je<rt;Je++)We[Je]=arguments[Je];return Oe=Be.call.apply(Be,[this].concat(We)),Oe.state={uid:ee()},Oe.reqs={},Oe.fileInput=void 0,Oe._isMounted=void 0,Oe.onChange=function(De){var Tt=Oe.props,Ct=Tt.accept,Ht=Tt.directory,nn=De.target.files,sn=(0,Pe.Z)(nn).filter(function(fn){return!Ht||oe(fn,Ct)});Oe.uploadFiles(sn),Oe.reset()},Oe.onClick=function(De){var Tt=Oe.fileInput;if(Tt){var Ct=Oe.props,Ht=Ct.children,nn=Ct.onClick;if(Ht&&Ht.type==="button"){var sn=Tt.parentNode;sn.focus(),sn.querySelector("button").blur()}Tt.click(),nn&&nn(De)}},Oe.onKeyDown=function(De){De.key==="Enter"&&Oe.onClick(De)},Oe.onFileDrop=function(De){var Tt=Oe.props.multiple;if(De.preventDefault(),De.type!=="dragover")if(Oe.props.directory)Se(Array.prototype.slice.call(De.dataTransfer.items),Oe.uploadFiles,function(Ht){return oe(Ht,Oe.props.accept)});else{var Ct=(0,Pe.Z)(De.dataTransfer.files).filter(function(Ht){return oe(Ht,Oe.props.accept)});Tt===!1&&(Ct=Ct.slice(0,1)),Oe.uploadFiles(Ct)}},Oe.uploadFiles=function(De){var Tt=(0,Pe.Z)(De),Ct=Tt.map(function(Ht){return Ht.uid=ee(),Oe.processFile(Ht,Tt)});Promise.all(Ct).then(function(Ht){var nn=Oe.props.onBatchStart;nn==null||nn(Ht.map(function(sn){var fn=sn.origin,An=sn.parsedFile;return{file:fn,parsedFile:An}})),Ht.filter(function(sn){return sn.parsedFile!==null}).forEach(function(sn){Oe.post(sn)})})},Oe.processFile=function(){var De=(0,ae.Z)((0,Me.Z)().mark(function Tt(Ct,Ht){var nn,sn,fn,An,Ue,Xn,On,Ve,vt;return(0,Me.Z)().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:if(nn=Oe.props.beforeUpload,sn=Ct,!nn){ct.next=14;break}return ct.prev=3,ct.next=6,nn(Ct,Ht);case 6:sn=ct.sent,ct.next=12;break;case 9:ct.prev=9,ct.t0=ct.catch(3),sn=!1;case 12:if(sn!==!1){ct.next=14;break}return ct.abrupt("return",{origin:Ct,parsedFile:null,action:null,data:null});case 14:if(fn=Oe.props.action,typeof fn!="function"){ct.next=21;break}return ct.next=18,fn(Ct);case 18:An=ct.sent,ct.next=22;break;case 21:An=fn;case 22:if(Ue=Oe.props.data,typeof Ue!="function"){ct.next=29;break}return ct.next=26,Ue(Ct);case 26:Xn=ct.sent,ct.next=30;break;case 29:Xn=Ue;case 30:return On=((0,Te.Z)(sn)==="object"||typeof sn=="string")&&sn?sn:Ct,On instanceof File?Ve=On:Ve=new File([On],Ct.name,{type:Ct.type}),vt=Ve,vt.uid=Ct.uid,ct.abrupt("return",{origin:Ct,data:Xn,parsedFile:vt,action:An});case 35:case"end":return ct.stop()}},Tt,null,[[3,9]])}));return function(Tt,Ct){return De.apply(this,arguments)}}(),Oe.saveFileInput=function(De){Oe.fileInput=De},Oe}return(0,se.Z)(Fe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(rt){var We=this,Je=rt.data,De=rt.origin,Tt=rt.action,Ct=rt.parsedFile;if(this._isMounted){var Ht=this.props,nn=Ht.onStart,sn=Ht.customRequest,fn=Ht.name,An=Ht.headers,Ue=Ht.withCredentials,Xn=Ht.method,On=De.uid,Ve=sn||b,vt={action:Tt,filename:fn,data:Je,file:Ct,headers:An,withCredentials:Ue,method:Xn||"post",onProgress:function(ct){var cn=We.props.onProgress;cn==null||cn(ct,Ct)},onSuccess:function(ct,cn){var jt=We.props.onSuccess;jt==null||jt(ct,Ct,cn),delete We.reqs[On]},onError:function(ct,cn){var jt=We.props.onError;jt==null||jt(ct,cn,Ct),delete We.reqs[On]}};nn(De),this.reqs[On]=Ve(vt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(rt){var We=this.reqs;if(rt){var Je=rt.uid?rt.uid:rt;We[Je]&&We[Je].abort&&We[Je].abort(),delete We[Je]}else Object.keys(We).forEach(function(De){We[De]&&We[De].abort&&We[De].abort(),delete We[De]})}},{key:"render",value:function(){var rt,We=this.props,Je=We.component,De=We.prefixCls,Tt=We.className,Ct=We.disabled,Ht=We.id,nn=We.style,sn=We.multiple,fn=We.accept,An=We.capture,Ue=We.children,Xn=We.directory,On=We.openFileDialogOnClick,Ve=We.onMouseEnter,vt=We.onMouseLeave,Mt=(0,je.Z)(We,le),ct=ke()((rt={},(0,Ae.Z)(rt,De,!0),(0,Ae.Z)(rt,"".concat(De,"-disabled"),Ct),(0,Ae.Z)(rt,Tt,Tt),rt)),cn=Xn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},jt=Ct?{}:{onClick:On?this.onClick:function(){},onKeyDown:On?this.onKeyDown:function(){},onMouseEnter:Ve,onMouseLeave:vt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(Je,(0,ce.Z)({},jt,{className:ct,role:"button",style:nn}),ne.createElement("input",(0,ce.Z)({},(0,a.Z)(Mt,{aria:!0,data:!0}),{id:Ht,disabled:Ct,type:"file",ref:this.saveFileInput,onClick:function($n){return $n.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:fn},cn,{multiple:sn,onChange:this.onChange},An!=null?{capture:An}:{})),Ue)}}]),Fe}(ne.Component),$e=ze;function St(){}var It=function(me){(0,_e.Z)(Fe,me);var Be=(0,Ne.Z)(Fe);function Fe(){var Oe;(0,Ze.Z)(this,Fe);for(var rt=arguments.length,We=new Array(rt),Je=0;Je<rt;Je++)We[Je]=arguments[Je];return Oe=Be.call.apply(Be,[this].concat(We)),Oe.uploader=void 0,Oe.saveUploader=function(De){Oe.uploader=De},Oe}return(0,se.Z)(Fe,[{key:"abort",value:function(rt){this.uploader.abort(rt)}},{key:"render",value:function(){return ne.createElement($e,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Fe}(ne.Component);It.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 Vt=It,Ee=Vt,nt=re(5663),gt=re(73935),at=re(53124),dt=re(98866),et=re(10110),ot=re(24457),it={icon:function(Be,Fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Fe}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Be}}]}},name:"file",theme:"twotone"},an=it,be=re(74643),Ie=function(Be,Fe){return ne.createElement(be.Z,(0,ce.Z)({},Be,{ref:Fe,icon:an}))},Ye=ne.forwardRef(Ie),Ft=re(3407),Xe={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"},mt=Xe,de=function(Be,Fe){return ne.createElement(be.Z,(0,ce.Z)({},Be,{ref:Fe,icon:mt}))},lt=ne.forwardRef(de),kt={icon:function(Be,Fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Be}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Fe}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Fe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Fe}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Be}}]}},name:"picture",theme:"twotone"},Qt=kt,pt=function(Be,Fe){return ne.createElement(be.Z,(0,ce.Z)({},Be,{ref:Fe,icon:Qt}))},Ge=ne.forwardRef(pt),we=re(38379),ve=re(57838),pe=re(33603),ye=re(96159),Re=re(71577);function tt(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function ht(me,Be){const Fe=(0,Pe.Z)(Be),Oe=Fe.findIndex(rt=>{let{uid:We}=rt;return We===me.uid});return Oe===-1?Fe.push(me):Fe[Oe]=me,Fe}function bt(me,Be){const Fe=me.uid!==void 0?"uid":"name";return Be.filter(Oe=>Oe[Fe]===me[Fe])[0]}function $t(me,Be){const Fe=me.uid!==void 0?"uid":"name",Oe=Be.filter(rt=>rt[Fe]!==me[Fe]);return Oe.length===Be.length?null:Oe}const Dt=function(){const Be=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Oe=Be[Be.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Oe)||[""])[0]},Lt=me=>me.indexOf("image/")===0,en=me=>{if(me.type&&!me.thumbUrl)return Lt(me.type);const Be=me.thumbUrl||me.url||"",Fe=Dt(Be);return/^data:image\//.test(Be)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Fe)?!0:!(/^data:/.test(Be)||Fe)},Ut=200;function Xt(me){return new Promise(Be=>{if(!me.type||!Lt(me.type)){Be("");return}const Fe=document.createElement("canvas");Fe.width=Ut,Fe.height=Ut,Fe.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ut}px; height: ${Ut}px; z-index: 9999; display: none;`,document.body.appendChild(Fe);const Oe=Fe.getContext("2d"),rt=new Image;if(rt.onload=()=>{const{width:We,height:Je}=rt;let De=Ut,Tt=Ut,Ct=0,Ht=0;We>Je?(Tt=Je*(Ut/We),Ht=-(Tt-De)/2):(De=We*(Ut/Je),Ct=-(De-Tt)/2),Oe.drawImage(rt,Ct,Ht,De,Tt);const nn=Fe.toDataURL();document.body.removeChild(Fe),window.URL.revokeObjectURL(rt.src),Be(nn)},rt.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const We=new FileReader;We.onload=()=>{We.result&&(rt.src=We.result)},We.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const We=new FileReader;We.onload=()=>{We.result&&Be(We.result)},We.readAsDataURL(me)}else rt.src=window.URL.createObjectURL(me)})}var Wt=re(84249),qt=re(90674),he=re(99569),Ce=re(38703),He=re(83062),ft=ne.forwardRef((me,Be)=>{let{prefixCls:Fe,className:Oe,style:rt,locale:We,listType:Je,file:De,items:Tt,progress:Ct,iconRender:Ht,actionIconRender:nn,itemRender:sn,isImgUrl:fn,showPreviewIcon:An,showRemoveIcon:Ue,showDownloadIcon:Xn,previewIcon:On,removeIcon:Ve,downloadIcon:vt,onPreview:Mt,onDownload:ct,onClose:cn}=me;var jt,vn;const{status:$n}=De,[Nn,ea]=ne.useState($n);ne.useEffect(()=>{$n!=="removed"&&ea($n)},[$n]);const[ta,ua]=ne.useState(!1);ne.useEffect(()=>{const zn=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout(zn)}},[]);const na=Ht(De);let Vn=ne.createElement("div",{className:`${Fe}-icon`},na);if(Je==="picture"||Je==="picture-card"||Je==="picture-circle")if(Nn==="uploading"||!De.thumbUrl&&!De.url){const zn=ke()(`${Fe}-list-item-thumbnail`,{[`${Fe}-list-item-file`]:Nn!=="uploading"});Vn=ne.createElement("div",{className:zn},na)}else{const zn=fn!=null&&fn(De)?ne.createElement("img",{src:De.thumbUrl||De.url,alt:De.name,className:`${Fe}-list-item-image`,crossOrigin:De.crossOrigin}):na,yn=ke()(`${Fe}-list-item-thumbnail`,{[`${Fe}-list-item-file`]:fn&&!fn(De)});Vn=ne.createElement("a",{className:yn,onClick:ra=>Mt(De,ra),href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zn)}const Mn=ke()(`${Fe}-list-item`,`${Fe}-list-item-${Nn}`),da=typeof De.linkProps=="string"?JSON.parse(De.linkProps):De.linkProps,la=Ue?nn((typeof Ve=="function"?Ve(De):Ve)||ne.createElement(Wt.Z,null),()=>cn(De),Fe,We.removeFile):null,sa=Xn&&Nn==="done"?nn((typeof vt=="function"?vt(De):vt)||ne.createElement(qt.Z,null),()=>ct(De),Fe,We.downloadFile):null,aa=Je!=="picture-card"&&Je!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:ke()(`${Fe}-list-item-actions`,{picture:Je==="picture"})},sa,la),Kn=ke()(`${Fe}-list-item-name`),Yn=De.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Kn,title:De.name},da,{href:De.url,onClick:zn=>Mt(De,zn)}),De.name),aa]:[ne.createElement("span",{key:"view",className:Kn,onClick:zn=>Mt(De,zn),title:De.name},De.name),aa],_t={pointerEvents:"none",opacity:.5},Gn=An?ne.createElement("a",{href:De.url||De.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:De.url||De.thumbUrl?void 0:_t,onClick:zn=>Mt(De,zn),title:We.previewFile},typeof On=="function"?On(De):On||ne.createElement(he.Z,null)):null,Wn=(Je==="picture-card"||Je==="picture-circle")&&Nn!=="uploading"&&ne.createElement("span",{className:`${Fe}-list-item-actions`},Gn,Nn==="done"&&sa,la),{getPrefixCls:Zn}=ne.useContext(at.E_),oa=Zn(),Jn=ne.createElement("div",{className:Mn},Vn,Yn,Wn,ta&&ne.createElement(we.default,{motionName:`${oa}-fade`,visible:Nn==="uploading",motionDeadline:2e3},zn=>{let{className:yn}=zn;const ra="percent"in De?ne.createElement(Ce.Z,Object.assign({},Ct,{type:"line",percent:De.percent,"aria-label":De["aria-label"],"aria-labelledby":De["aria-labelledby"]})):null;return ne.createElement("div",{className:ke()(`${Fe}-list-item-progress`,yn)},ra)})),ca=De.response&&typeof De.response=="string"?De.response:((jt=De.error)===null||jt===void 0?void 0:jt.statusText)||((vn=De.error)===null||vn===void 0?void 0:vn.message)||We.uploadError,_n=Nn==="error"?ne.createElement(He.Z,{title:ca,getPopupContainer:zn=>zn.parentNode},Jn):Jn;return ne.createElement("div",{className:ke()(`${Fe}-list-item-container`,Oe),style:rt,ref:Be},sn?sn(_n,De,Tt,{download:ct.bind(null,De),preview:Mt.bind(null,De),remove:cn.bind(null,De)}):_n)});const Gt=(me,Be)=>{const{listType:Fe="text",previewFile:Oe=Xt,onPreview:rt,onDownload:We,onRemove:Je,locale:De,iconRender:Tt,isImageUrl:Ct=en,prefixCls:Ht,items:nn=[],showPreviewIcon:sn=!0,showRemoveIcon:fn=!0,showDownloadIcon:An=!1,removeIcon:Ue,previewIcon:Xn,downloadIcon:On,progress:Ve={size:[-1,2],showInfo:!1},appendAction:vt,appendActionVisible:Mt=!0,itemRender:ct,disabled:cn}=me,jt=(0,ve.Z)(),[vn,$n]=ne.useState(!1);ne.useEffect(()=>{Fe!=="picture"&&Fe!=="picture-card"&&Fe!=="picture-circle"||(nn||[]).forEach(_t=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(_t.originFileObj instanceof File||_t.originFileObj instanceof Blob)||_t.thumbUrl!==void 0||(_t.thumbUrl="",Oe&&Oe(_t.originFileObj).then(Gn=>{_t.thumbUrl=Gn||"",jt()}))})},[Fe,nn,Oe]),ne.useEffect(()=>{$n(!0)},[]);const Nn=(_t,Gn)=>{if(rt)return Gn==null||Gn.preventDefault(),rt(_t)},ea=_t=>{typeof We=="function"?We(_t):_t.url&&window.open(_t.url)},ta=_t=>{Je==null||Je(_t)},ua=_t=>{if(Tt)return Tt(_t,Fe);const Gn=_t.status==="uploading",Wn=Ct&&Ct(_t)?ne.createElement(Ge,null):ne.createElement(Ye,null);let Zn=Gn?ne.createElement(Ft.Z,null):ne.createElement(lt,null);return Fe==="picture"?Zn=Gn?ne.createElement(Ft.Z,null):Wn:(Fe==="picture-card"||Fe==="picture-circle")&&(Zn=Gn?De.uploading:Wn),Zn},na=(_t,Gn,Wn,Zn)=>{const oa={type:"text",size:"small",title:Zn,onClick:Jn=>{Gn(),(0,ye.l$)(_t)&&_t.props.onClick&&_t.props.onClick(Jn)},className:`${Wn}-list-item-action`,disabled:cn};if((0,ye.l$)(_t)){const Jn=(0,ye.Tm)(_t,Object.assign(Object.assign({},_t.props),{onClick:()=>{}}));return ne.createElement(Re.ZP,Object.assign({},oa,{icon:Jn}))}return ne.createElement(Re.ZP,Object.assign({},oa),ne.createElement("span",null,_t))};ne.useImperativeHandle(Be,()=>({handlePreview:Nn,handleDownload:ea}));const{getPrefixCls:Vn}=ne.useContext(at.E_),Mn=Vn("upload",Ht),da=Vn(),la=ke()(`${Mn}-list`,`${Mn}-list-${Fe}`),sa=(0,Pe.Z)(nn.map(_t=>({key:_t.uid,file:_t})));let Kn={motionDeadline:2e3,motionName:`${Mn}-${Fe==="picture-card"||Fe==="picture-circle"?"animate-inline":"animate"}`,keys:sa,motionAppear:vn};const Yn=ne.useMemo(()=>{const _t=Object.assign({},(0,pe.Z)(da));return delete _t.onAppearEnd,delete _t.onEnterEnd,delete _t.onLeaveEnd,_t},[da]);return Fe!=="picture-card"&&Fe!=="picture-circle"&&(Kn=Object.assign(Object.assign({},Yn),Kn)),ne.createElement("div",{className:la},ne.createElement(we.CSSMotionList,Object.assign({},Kn,{component:!1}),_t=>{let{key:Gn,file:Wn,className:Zn,style:oa}=_t;return ne.createElement(ft,{key:Gn,locale:De,prefixCls:Mn,className:Zn,style:oa,file:Wn,items:nn,progress:Ve,listType:Fe,isImgUrl:Ct,showPreviewIcon:sn,showRemoveIcon:fn,showDownloadIcon:An,removeIcon:Ue,previewIcon:Xn,downloadIcon:On,iconRender:ua,actionIconRender:na,itemRender:ct,onPreview:Nn,onDownload:ea,onClose:ta})}),vt&&ne.createElement(we.default,Object.assign({},Kn,{visible:Mt,forceRender:!0}),_t=>{let{className:Gn,style:Wn}=_t;return(0,ye.Tm)(vt,Zn=>({className:ke()(Zn.className,Gn),style:Object.assign(Object.assign(Object.assign({},Wn),{pointerEvents:Gn?"none":void 0}),Zn.style)}))}))};var Et=ne.forwardRef(Gt),Ot=re(14747),Kt=re(33507),Zt=re(67968),gn=re(45503),hn=me=>{const{componentCls:Be,iconCls:Fe}=me;return{[`${Be}-wrapper`]:{[`${Be}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[Be]:{padding:`${me.padding}px 0`},[`${Be}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Be}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Be}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${Be}-drag-icon`]:{marginBottom:me.margin,[Fe]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${Be}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${Be}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${Be}-disabled`]:{cursor:"not-allowed",[`p${Be}-drag-icon ${Fe},
|
|
p${Be}-text,
|
|
p${Be}-hint
|
|
`]:{color:me.colorTextDisabled}}}}}},on=me=>{const{componentCls:Be,antCls:Fe,iconCls:Oe,fontSize:rt,lineHeight:We}=me,Je=`${Be}-list-item`,De=`${Je}-actions`,Tt=`${Je}-action`,Ct=Math.round(rt*We);return{[`${Be}-wrapper`]:{[`${Be}-list`]:Object.assign(Object.assign({},(0,Ot.dF)()),{lineHeight:me.lineHeight,[Je]:{position:"relative",height:me.lineHeight*rt,marginTop:me.marginXS,fontSize:rt,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${Je}-name`]:Object.assign(Object.assign({},Ot.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:We,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[De]:{[Tt]:{opacity:0},[`${Tt}${Fe}-btn-sm`]:{height:Ct,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Tt}:focus-visible,
|
|
&.picture ${Tt}
|
|
`]:{opacity:1},[Oe]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${Oe}`]:{color:me.colorText}},[`${Be}-icon ${Oe}`]:{color:me.colorTextDescription,fontSize:rt},[`${Je}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:rt+me.paddingXS,fontSize:rt,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Je}:hover ${Tt}`]:{opacity:1,color:me.colorText},[`${Je}-error`]:{color:me.colorError,[`${Je}-name, ${Be}-icon ${Oe}`]:{color:me.colorError},[De]:{[`${Oe}, ${Oe}:hover`]:{color:me.colorError},[Tt]:{opacity:1}}},[`${Be}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},tn=re(45930),un=re(16932);const pn=new tn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),wn=new tn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Bn=me=>{const{componentCls:Be}=me,Fe=`${Be}-animate-inline`;return[{[`${Be}-wrapper`]:{[`${Fe}-appear, ${Fe}-enter, ${Fe}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Fe}-appear, ${Fe}-enter`]:{animationName:pn},[`${Fe}-leave`]:{animationName:wn}}},{[`${Be}-wrapper`]:(0,un.J$)(me)},pn,wn]},Rn=re(47448),En=re(84780);const Tn=me=>{const{componentCls:Be,iconCls:Fe,uploadThumbnailSize:Oe,uploadProgressOffset:rt}=me,We=`${Be}-list`,Je=`${We}-item`;return{[`${Be}-wrapper`]:{[`
|
|
${We}${We}-picture,
|
|
${We}${We}-picture-card,
|
|
${We}${We}-picture-circle
|
|
`]:{[Je]:{position:"relative",height:Oe+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${Je}-thumbnail`]:Object.assign(Object.assign({},Ot.vS),{width:Oe,height:Oe,lineHeight:`${Oe+me.paddingSM}px`,textAlign:"center",flex:"none",[Fe]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Je}-progress`]:{bottom:rt,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Oe+me.paddingXS}},[`${Je}-error`]:{borderColor:me.colorError,[`${Je}-thumbnail ${Fe}`]:{[`svg path[fill='${Rn.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${Rn.blue.primary}']`]:{fill:me.colorError}}},[`${Je}-uploading`]:{borderStyle:"dashed",[`${Je}-name`]:{marginBottom:rt}}},[`${We}${We}-picture-circle ${Je}`]:{[`&, &::before, ${Je}-thumbnail`]:{borderRadius:"50%"}}}}},Un=me=>{const{componentCls:Be,iconCls:Fe,fontSizeLG:Oe,colorTextLightSolid:rt}=me,We=`${Be}-list`,Je=`${We}-item`,De=me.uploadPicCardSize;return{[`
|
|
${Be}-wrapper${Be}-picture-card-wrapper,
|
|
${Be}-wrapper${Be}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Ot.dF)()),{display:"inline-block",width:"100%",[`${Be}${Be}-select`]:{width:De,height:De,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${Be}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Be}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${We}${We}-picture-card, ${We}${We}-picture-circle`]:{[`${We}-item-container`]:{display:"inline-block",width:De,height:De,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Je]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${Je}:hover`]:{[`&::before, ${Je}-actions`]:{opacity:1}},[`${Je}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{zIndex:10,width:Oe,margin:`0 ${me.marginXXS}px`,fontSize:Oe,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Je}-actions, ${Je}-actions:hover`]:{[`${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{color:new En.C(rt).setAlpha(.65).toRgbString(),"&:hover":{color:rt}}},[`${Je}-thumbnail, ${Je}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Je}-name`]:{display:"none",textAlign:"center"},[`${Je}-file + ${Je}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${Je}-uploading`]:{[`&${Je}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{display:"none"}},[`${Je}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Be}-wrapper${Be}-picture-circle-wrapper`]:{[`${Be}${Be}-select`]:{borderRadius:"50%"}}}};var ue=me=>{const{componentCls:Be}=me;return{[`${Be}-rtl`]:{direction:"rtl"}}};const Le=me=>{const{componentCls:Be,colorTextDisabled:Fe}=me;return{[`${Be}-wrapper`]:Object.assign(Object.assign({},(0,Ot.Wf)(me)),{[Be]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Be}-select`]:{display:"inline-block"},[`${Be}-disabled`]:{color:Fe,cursor:"not-allowed"}})}};var fe=(0,Zt.Z)("Upload",me=>{const{fontSizeHeading3:Be,fontSize:Fe,lineHeight:Oe,lineWidth:rt,controlHeightLG:We}=me,Je=Math.round(Fe*Oe),De=(0,gn.TS)(me,{uploadThumbnailSize:Be*2,uploadProgressOffset:Je/2+rt,uploadPicCardSize:We*2.55});return[Le(De),hn(De),Tn(De),Un(De),on(De),Bn(De),ue(De),(0,Kt.Z)(De)]},me=>({actionsColor:me.colorTextDescription})),Qe=function(me,Be,Fe,Oe){function rt(We){return We instanceof Fe?We:new Fe(function(Je){Je(We)})}return new(Fe||(Fe=Promise))(function(We,Je){function De(Ht){try{Ct(Oe.next(Ht))}catch(nn){Je(nn)}}function Tt(Ht){try{Ct(Oe.throw(Ht))}catch(nn){Je(nn)}}function Ct(Ht){Ht.done?We(Ht.value):rt(Ht.value).then(De,Tt)}Ct((Oe=Oe.apply(me,Be||[])).next())})};const wt=`__LIST_IGNORE_${Date.now()}__`,Bt=(me,Be)=>{const{fileList:Fe,defaultFileList:Oe,onRemove:rt,showUploadList:We=!0,listType:Je="text",onPreview:De,onDownload:Tt,onChange:Ct,onDrop:Ht,previewFile:nn,disabled:sn,locale:fn,iconRender:An,isImageUrl:Ue,progress:Xn,prefixCls:On,className:Ve,type:vt="select",children:Mt,style:ct,itemRender:cn,maxCount:jt,data:vn={},multiple:$n=!1,action:Nn="",accept:ea="",supportServerRender:ta=!0,rootClassName:ua}=me,na=ne.useContext(dt.Z),Vn=sn!=null?sn:na,[Mn,da]=(0,nt.Z)(Oe||[],{value:Fe,postState:At=>At!=null?At:[]}),[la,sa]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const At=Date.now();(Fe||[]).forEach((Yt,Ln)=>{!Yt.uid&&!Object.isFrozen(Yt)&&(Yt.uid=`__AUTO__${At}_${Ln}__`)})},[Fe]);const Kn=(At,Yt,Ln)=>{let Rt=(0,Pe.Z)(Yt),Cn=!1;jt===1?Rt=Rt.slice(-1):jt&&(Cn=Rt.length>jt,Rt=Rt.slice(0,jt)),(0,gt.flushSync)(()=>{da(Rt)});const Fn={file:At,fileList:Rt};Ln&&(Fn.event=Ln),(!Cn||Rt.some(Qn=>Qn.uid===At.uid))&&(0,gt.flushSync)(()=>{Ct==null||Ct(Fn)})},Yn=(At,Yt)=>Qe(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:Rt}=me;let Cn=At;if(Ln){const Fn=yield Ln(At,Yt);if(Fn===!1)return!1;if(delete At[wt],Fn===wt)return Object.defineProperty(At,wt,{value:!0,configurable:!0}),!1;typeof Fn=="object"&&Fn&&(Cn=Fn)}return Rt&&(Cn=yield Rt(Cn)),Cn}),_t=At=>{const Yt=At.filter(Cn=>!Cn.file[wt]);if(!Yt.length)return;const Ln=Yt.map(Cn=>tt(Cn.file));let Rt=(0,Pe.Z)(Mn);Ln.forEach(Cn=>{Rt=ht(Cn,Rt)}),Ln.forEach((Cn,Fn)=>{let Qn=Cn;if(Yt[Fn].parsedFile)Cn.status="uploading";else{const{originFileObj:ga}=Cn;let qn;try{qn=new File([ga],ga.name,{type:ga.type})}catch(ma){qn=new Blob([ga],{type:ga.type}),qn.name=ga.name,qn.lastModifiedDate=new Date,qn.lastModified=new Date().getTime()}qn.uid=Cn.uid,Qn=qn}Kn(Qn,Rt)})},Gn=(At,Yt,Ln)=>{try{typeof At=="string"&&(At=JSON.parse(At))}catch(Fn){}if(!bt(Yt,Mn))return;const Rt=tt(Yt);Rt.status="done",Rt.percent=100,Rt.response=At,Rt.xhr=Ln;const Cn=ht(Rt,Mn);Kn(Rt,Cn)},Wn=(At,Yt)=>{if(!bt(Yt,Mn))return;const Ln=tt(Yt);Ln.status="uploading",Ln.percent=At.percent;const Rt=ht(Ln,Mn);Kn(Ln,Rt,At)},Zn=(At,Yt,Ln)=>{if(!bt(Ln,Mn))return;const Rt=tt(Ln);Rt.error=At,Rt.response=Yt,Rt.status="error";const Cn=ht(Rt,Mn);Kn(Rt,Cn)},oa=At=>{let Yt;Promise.resolve(typeof rt=="function"?rt(At):rt).then(Ln=>{var Rt;if(Ln===!1)return;const Cn=$t(At,Mn);Cn&&(Yt=Object.assign(Object.assign({},At),{status:"removed"}),Mn==null||Mn.forEach(Fn=>{const Qn=Yt.uid!==void 0?"uid":"name";Fn[Qn]===Yt[Qn]&&!Object.isFrozen(Fn)&&(Fn.status="removed")}),(Rt=aa.current)===null||Rt===void 0||Rt.abort(Yt),Kn(Yt,Cn))})},Jn=At=>{sa(At.type),At.type==="drop"&&(Ht==null||Ht(At))};ne.useImperativeHandle(Be,()=>({onBatchStart:_t,onSuccess:Gn,onProgress:Wn,onError:Zn,fileList:Mn,upload:aa.current}));const{getPrefixCls:ca,direction:_n,upload:zn}=ne.useContext(at.E_),yn=ca("upload",On),ra=Object.assign(Object.assign({onBatchStart:_t,onError:Zn,onProgress:Wn,onSuccess:Gn},me),{data:vn,multiple:$n,action:Nn,accept:ea,supportServerRender:ta,prefixCls:yn,disabled:Vn,beforeUpload:Yn,onChange:void 0});delete ra.className,delete ra.style,(!Mt||Vn)&&delete ra.id;const[Sa,fa]=fe(yn),[ya]=(0,et.Z)("Upload",ot.Z.Upload),{showRemoveIcon:Pa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:Nt}=typeof We=="boolean"?{}:We,Pt=(At,Yt)=>We?ne.createElement(Et,{prefixCls:yn,listType:Je,items:Mn,previewFile:nn,onPreview:De,onDownload:Tt,onRemove:oa,showRemoveIcon:!Vn&&Pa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:Nt,iconRender:An,locale:Object.assign(Object.assign({},ya),fn),isImageUrl:Ue,progress:Xn,appendAction:At,appendActionVisible:Yt,itemRender:cn,disabled:Vn}):At,yt=ke()(`${yn}-wrapper`,Ve,ua,fa,zn==null?void 0:zn.className,{[`${yn}-rtl`]:_n==="rtl",[`${yn}-picture-card-wrapper`]:Je==="picture-card",[`${yn}-picture-circle-wrapper`]:Je==="picture-circle"}),xt=Object.assign(Object.assign({},zn==null?void 0:zn.style),ct);if(vt==="drag"){const At=ke()(fa,yn,`${yn}-drag`,{[`${yn}-drag-uploading`]:Mn.some(Yt=>Yt.status==="uploading"),[`${yn}-drag-hover`]:la==="dragover",[`${yn}-disabled`]:Vn,[`${yn}-rtl`]:_n==="rtl"});return Sa(ne.createElement("span",{className:yt},ne.createElement("div",{className:At,style:xt,onDrop:Jn,onDragOver:Jn,onDragLeave:Jn},ne.createElement(Ee,Object.assign({},ra,{ref:aa,className:`${yn}-btn`}),ne.createElement("div",{className:`${yn}-drag-container`},Mt))),Pt()))}const Pn=ke()(yn,`${yn}-select`,{[`${yn}-disabled`]:Vn}),In=(At=>ne.createElement("div",{className:Pn,style:At},ne.createElement(Ee,Object.assign({},ra,{ref:aa}))))(Mt?void 0:{display:"none"});return Sa(Je==="picture-card"||Je==="picture-circle"?ne.createElement("span",{className:yt},Pt(In,!!Mt)):ne.createElement("span",{className:yt},In,Pt()))};var Jt=ne.forwardRef(Bt),ln=function(me,Be){var Fe={};for(var Oe in me)Object.prototype.hasOwnProperty.call(me,Oe)&&Be.indexOf(Oe)<0&&(Fe[Oe]=me[Oe]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Oe=Object.getOwnPropertySymbols(me);rt<Oe.length;rt++)Be.indexOf(Oe[rt])<0&&Object.prototype.propertyIsEnumerable.call(me,Oe[rt])&&(Fe[Oe[rt]]=me[Oe[rt]]);return Fe},Hn=ne.forwardRef((me,Be)=>{var{style:Fe,height:Oe}=me,rt=ln(me,["style","height"]);return ne.createElement(Jt,Object.assign({ref:Be},rt,{type:"drag",style:Object.assign(Object.assign({},Fe),{height:Oe})}))});const qe=Jt;qe.Dragger=Hn,qe.LIST_IGNORE=wt;var dn=qe},72665:function(xe,ut){"use strict";var re;var ne=typeof Symbol=="function"&&Symbol.for,Pe=ne?Symbol.for("react.element"):60103,Ke=ne?Symbol.for("react.portal"):60106,ke=ne?Symbol.for("react.fragment"):60107,ce=ne?Symbol.for("react.strict_mode"):60108,Ze=ne?Symbol.for("react.profiler"):60114,se=ne?Symbol.for("react.provider"):60109,_e=ne?Symbol.for("react.context"):60110,Ne=ne?Symbol.for("react.async_mode"):60111,Ae=ne?Symbol.for("react.concurrent_mode"):60111,je=ne?Symbol.for("react.forward_ref"):60112,Me=ne?Symbol.for("react.suspense"):60113,Te=ne?Symbol.for("react.suspense_list"):60120,ae=ne?Symbol.for("react.memo"):60115,a=ne?Symbol.for("react.lazy"):60116,y=ne?Symbol.for("react.block"):60121,E=ne?Symbol.for("react.fundamental"):60117,b=ne?Symbol.for("react.responder"):60118,x=ne?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var oe=te.$$typeof;switch(oe){case Pe:switch(te=te.type,te){case Ne:case Ae:case ke:case Ze:case ce:case Me:return te;default:switch(te=te&&te.$$typeof,te){case _e:case je:case a:case ae:case se:return te;default:return oe}}case Ke:return oe}}}function ee(te){return z(te)===Ae}re=Ne,re=Ae,re=_e,re=se,re=Pe,re=je,re=ke,re=a,re=ae,re=Ke,re=Ze,re=ce,re=Me,re=function(te){return ee(te)||z(te)===Ne},re=ee,re=function(te){return z(te)===_e},re=function(te){return z(te)===se},re=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===Pe},re=function(te){return z(te)===je},re=function(te){return z(te)===ke},re=function(te){return z(te)===a},ut.isMemo=function(te){return z(te)===ae},re=function(te){return z(te)===Ke},re=function(te){return z(te)===Ze},re=function(te){return z(te)===ce},re=function(te){return z(te)===Me},re=function(te){return typeof te=="string"||typeof te=="function"||te===ke||te===Ae||te===Ze||te===ce||te===Me||te===Te||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ae||te.$$typeof===se||te.$$typeof===_e||te.$$typeof===je||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},re=z},12060:function(xe,ut,re){"use strict";xe.exports=re(72665)},64217:function(xe,ut,re){"use strict";re.d(ut,{Z:function(){return _e}});var ne=re(1413),Pe=`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`,Ke=`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`,ke="".concat(Pe," ").concat(Ke).split(/[\s\n]+/),ce="aria-",Ze="data-";function se(Ne,Ae){return Ne.indexOf(Ae)===0}function _e(Ne){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,je;Ae===!1?je={aria:!0,data:!0,attr:!0}:Ae===!0?je={aria:!0}:je=(0,ne.Z)({},Ae);var Me={};return Object.keys(Ne).forEach(function(Te){(je.aria&&(Te==="role"||se(Te,ce))||je.data&&se(Te,Ze)||je.attr&&ke.includes(Te))&&(Me[Te]=Ne[Te])}),Me}}}]);
|