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.
NewEduCoderBuild/p__Classrooms__Lists__Group...

150 lines
412 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[1582],{76466:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(5891),Se=oe(59301),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ie=Ve,ce=oe(31533),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ie}))},le=Se.forwardRef(Fe),$e=le},37364:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(5891),Se=oe(59301),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ie=Ve,ce=oe(31533),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ie}))},le=Se.forwardRef(Fe),$e=le},34023:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(5891),Se=oe(59301),Ve={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"},Ie=Ve,ce=oe(31533),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ie}))},le=Se.forwardRef(Fe),$e=le},81132:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(5891),Se=oe(59301),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ie=Ve,ce=oe(31533),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ie}))},le=Se.forwardRef(Fe),$e=le},72245:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(5891),Se=oe(59301),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Ie=Ve,ce=oe(31533),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ie}))},le=Se.forwardRef(Fe),$e=le},11597:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(5891),Se=oe(59301),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Ie=Ve,ce=oe(31533),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ie}))},le=Se.forwardRef(Fe),$e=le},38226:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return $e}});var ne=oe(5891),Se=oe(59301),Ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ie=Ve,ce=oe(31533),Fe=function(De,nt){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:nt,icon:Ie}))},le=Se.forwardRef(Fe),$e=le},93938:function(Oe,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function Oe(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(Oe.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(Oe.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(Oe.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(Oe.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 Oe))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 dt=[];function oe(ae,a){var y=dt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=dt.pop();return ae===void 0?new go.Point:ae}function Se(ae){dt.push(ae)}function Ve(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ge=b-z,ie=NaN,se=NaN;if(re===0)if(ge===0)ae===y&&(ie=ae,se=a);else{var me=(x-ee)/ge,xe=x-me*b;ie=ae,se=me*ie+xe}else if(ge===0){var We=(a-E)/re,Ft=a-We*ae;ie=b,se=We*ie+Ft}else{var We=(a-E)/re,me=(x-ee)/ge,Ft=a-We*ae,xe=x-me*b;ie=(xe-Ft)/(We-me),se=We*ie+Ft}return te.x=ie,te.y=se,te}function Ie(ae,a,y,E,b,x,z,ee,te,re,ge,ie,se,me){var xe=1-te,We=te,Ft=ae*xe+y*We,pt=a*xe+E*We,Lt=y*xe+b*We,Pe=E*xe+x*We,Te=b*xe+z*We,ze=x*xe+ee*We,et=Ft*xe+Lt*We,gt=pt*xe+Pe*We,Re=Lt*xe+Te*We,je=Pe*xe+ze*We,Ke=et*xe+Re*We,vt=gt*xe+je*We;re.x=Ft,re.y=pt,ge.x=et,ge.y=gt,ie.x=Ke,ie.y=vt,se.x=Re,se.y=je,me.x=Te,me.y=ze}var ce=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Oe("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*le,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=Fe,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,le*a,0,a,(1-le)*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,le*y,(1-le)*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,le*y,le*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-le)*a,0,0,(1-le)*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 Oe("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 Oe("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 Oe("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 Oe("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 Oe("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 Me(){var ae=$e.pop();return ae===void 0?[]:ae}function De(ae){ae.length=0,$e.push(ae)}function nt(ae){for(var a=Me(),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 He(ae){var a=Ae(ae),y=Me();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 De(a),y}function Ae(ae){for(var a=nt(ae),y=Me(),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],re=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ve(ee.x,ee.y,re.x,re.y,te.x,te.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],De(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=nt(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()),De(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=nt(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()),De(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=nt(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()),De(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=nt(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()),De(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=nt(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()),De(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=nt(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()),De(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=nt(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()),De(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=Ae(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()),De(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=Ae(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()),De(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=Ae(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()),De(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=Ae(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()),De(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=Ae(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()),De(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=Ae(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()),De(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=He(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),De(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=He(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),De(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=He(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),De(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=He(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),De(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=He(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),De(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=He(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<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(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Oe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Oe("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 Oe("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=Fe,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 Oe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Oe("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=le/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 Oe("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 Oe("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 Oe("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),re=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,re)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),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-re)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Oe("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 Oe("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 Oe("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,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*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*le;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*le,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*le,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=le*.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=le*.4;var re=ne(),ge=ne(),ie=ne(),se=ne();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ge,ie,se,se);var me=ne(),xe=ne(),We=ne();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,se,se,We,me,xe);var Ft=ne(),pt=ne(),Lt=ne();Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,Ft,pt,Lt,se,se);var Pe=ne(),Te=ne(),ze=ne();return Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,se,se,ze,Pe,Te),te.add(new go.PathSegment(go.PathSegment.Move,ze.x*a,ze.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Pe.x*a,Pe.y*y,Te.x*a,Te.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,re.x*a,re.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,ze.x*a,ze.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Lt.x*a,Lt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,We.x*a,We.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,me.x*a,me.y*y,xe.x*a,xe.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,Lt.x*a,Lt.y*y,Ft.x*a,Ft.y*y,pt.x*a,pt.y*y).close()),Se(re),Se(ge),Se(ie),Se(se),Se(me),Se(xe),Se(We),Se(Ft),Se(pt),Se(Lt),Se(Pe),Se(Te),Se(ze),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 Oe("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=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=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)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,ie,re,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y));var me=oe(re.x,re.y);Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ge,ie);var xe=oe(re.x,re.y);se.add(new go.PathSegment(go.PathSegment.Line,(me.x*.1+.95*.9)*a,me.y*.1*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,me.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,(xe.x*.1+.9)*a,.15*y)),se.add(new go.PathSegment(go.PathSegment.Line,(xe.x*.1+.9)*a,(xe.y*.1+.05*.9)*y)),se.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.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=le*.35;var We=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),We.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),We.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),We.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 Ft=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(Ft),Se(te),Se(re),Se(ge),Se(ie),Se(me),Se(xe),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*le,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*le;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 Oe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Oe("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,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ve(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ge.x,ge.y),Se(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new Oe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Oe("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,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ve(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ge.x,ge.y),Se(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 Oe("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=Ve(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Ve(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Oe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Oe("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 re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Ve(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ie.x,ie.y),ie=Ve(.7,te/y,1,.5,0,z/y,1,z/y,ie),re.spot2=new go.Spot(ie.x,ie.y),Se(ie),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Oe("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=Ve(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Oe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Oe("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 re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.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()),re.spot1=new go.Spot(0,x/y);var ie=Ve(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ie.x,ie.y),Se(ie),re}),go.Shape.setFigureParameter("Pointer",0,new Oe("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=Ve(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Oe("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=Ve(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Oe("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=Ve(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Oe("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=Ve(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Oe("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=le*.5,x=le*.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=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*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-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*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-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*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=le*.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,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*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-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*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-le*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-le*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=le*.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-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*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+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*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=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*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-le*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-le*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=le*b,ee=le*x,te=.5,re=.1,ge=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ie=.05,se=le*ie;te=.05,re=.25;var me=new go.PathFigure(.5*a,.2*y,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,re*y,(te+se)*a,(re-ie)*y,(te+ie)*a,(re-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,se=le*ie,te=.825,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ie)*y,(te+ie)*a,(re-se)*y,(te+se)*a,(re-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,re*y,(te-se)*a,(re-ie)*y,(te-ie)*a,(re-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,se=le*ie,te=.5,re=.7,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ie)*y,(te+ie)*a,(re-se)*y,(te+se)*a,(re-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,re*y,(te-se)*a,(re-ie)*y,(te-ie)*a,(re-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),me.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,se=le*ie,te=.175,re=.35,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ie)*y,(te+ie)*a,(re-se)*y,(te+se)*a,(re-ie)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,re*y,(te-se)*a,(re-ie)*y,(te-ie)*a,(re-se)*y)),me.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),me.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,se=le*ie,te=.05,re=.25,me.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ie)*y,(te-ie)*a,(re-se)*y,(te-se)*a,(re-ie)*y)),me.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 Oe("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=le*.5,x=le*.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=le*.5,x=le*.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=le*.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=le*.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 re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.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=le*.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=le*.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=le*.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=le*.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=le*.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 re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.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=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.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,re*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-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=le*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=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.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=le*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=le*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 re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.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=le*.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=le*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 re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.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=le*.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=le*.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=le*.8,ee=.8,te=0,re=.5,ge=(b-a)/2,ie=(x-y)/2,se=new go.PathFigure(te*a+ge,(re+ee)*y+ie,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,re*y+ie,(te-z)*a+ge,(re+ee)*y+ie,(te-ee)*a+ge,(re+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re-ee)*y+ie,(te-ee)*a+ge,(re-z)*y+ie,(te-z)*a+ge,(re-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,re*y+ie,te*a+ge,(re-ee)*y+ie,(te-ee+z*.5)*a+ge,(re-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re+ee)*y+ie,(te-ee+z*.5)*a+ge,(re+z)*y+ie,te*a+ge,(re+ee)*y+ie).close()),z=le*.4,ee=.4,te=.2,re=.5;var me=new go.PathFigure(te*a+ge,(re+ee)*y+ie,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,re*y+ie,(te-z)*a+ge,(re+ee)*y+ie,(te-ee)*a+ge,(re+z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re-ee)*y+ie,(te-ee)*a+ge,(re-z)*y+ie,(te-z)*a+ge,(re-ee)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,re*y+ie,te*a+ge,(re-ee)*y+ie,(te-ee+z*.5)*a+ge,(re-z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re+ee)*y+ie,(te-ee+z*.5)*a+ge,(re+z)*y+ie,te*a+ge,(re+ee)*y+ie).close()),z=le*.2,ee=.2,te=.5,re=.5;var xe=new go.PathFigure((te-ee)*a+ge,re*y+ie,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re-ee)*y+ie,(te-ee)*a+ge,(re-z)*y+ie,(te-z)*a+ge,(re-ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,re*y+ie,(te+z)*a+ge,(re-ee)*y+ie,(te+ee)*a+ge,(re-z)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re+ee)*y+ie,(te+ee)*a+ge,(re+z)*y+ie,(te+z)*a+ge,(re+ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,re*y+ie,(te-z)*a+ge,(re+ee)*y+ie,(te-ee)*a+ge,(re+z)*y+ie)),z=le*.4,ee=.4,te=.8,re=.5;var We=new go.PathFigure(te*a+ge,(re-ee)*y+ie,!0);E.add(We),We.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,re*y+ie,(te+z)*a+ge,(re-ee)*y+ie,(te+ee)*a+ge,(re-z)*y+ie)),We.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re+ee)*y+ie,(te+ee)*a+ge,(re+z)*y+ie,(te+z)*a+ge,(re+ee)*y+ie)),We.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,re*y+ie,te*a+ge,(re+ee)*y+ie,(te+ee-z*.5)*a+ge,(re+z)*y+ie)),We.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re-ee)*y+ie,(te+ee-z*.5)*a+ge,(re-z)*y+ie,te*a+ge,(re-ee)*y+ie).close()),z=le*.8,ee=.8,te=1,re=.5;var Ft=new go.PathFigure(te*a+ge,(re-ee)*y+ie,!0);return E.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,re*y+ie,(te+z)*a+ge,(re-ee)*y+ie,(te+ee)*a+ge,(re-z)*y+ie)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re+ee)*y+ie,(te+ee)*a+ge,(re+z)*y+ie,(te+z)*a+ge,(re+ee)*y+ie)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,re*y+ie,te*a+ge,(re+ee)*y+ie,(te+ee-z*.5)*a+ge,(re+z)*y+ie)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(re-ee)*y+ie,(te+ee-z*.5)*a+ge,(re-z)*y+ie,te*a+ge,(re-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=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ge=ne(),ie=ne();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ge,ie);var se=oe(re.x,re.y),me=new go.PathFigure(re.x*a,re.y*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,re,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),b=le*.3,x=.3,Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,re,te,te),me.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ge,ie),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y).close());var me=new go.PathFigure(.45*a,0,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),me.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Se(te),Se(re),Se(ge),Se(ie),Se(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*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ge=1,ie=.5,se=.5,me=0,xe=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(se+x)*a,(me+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),xe.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)),xe.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)),xe.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),xe.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),xe.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,re=Math.PI/4,ge=4*(1-Math.cos(re))/(3*Math.sin(re)),ie=ge*.5,se=z,me=z,xe=ge*se,We=ge*me;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*a,te*y,(ee-(xe+se)/2)*a,(te+(me+We)/2)*y,(ee-se)*a,(te+We)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-me)*y,(ee-se)*a,(te-We)*y,(ee-xe)*a,(te-me)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*a,te*y,(ee+xe)*a,(te-me)*y,(ee+se)*a,(te-We)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+se)*a,(te+We)*y,(ee+(xe+se)/2)*a,(te+(me+We)/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 Ft=new go.PathFigure(.2*a,y,!1);E.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var pt=new go.PathFigure(.8*a,y,!1);return E.add(pt),pt.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=le*.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=le*.1,te=.2,re=.9,ge=new go.PathFigure((te-z)*a,re*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,te=.8,re=.9;var ie=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+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,re=le*.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-re)*y,(ge-re)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+re)*a,(ie-te)*y,(ge+te)*a,(ie-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+re)*y,(ge+re)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-re)*a,(ie+te)*y,(ge-te)*a,(ie+re)*y)),te=.1,re=le*.1,ge=.4,ie=.9;var me=new go.PathFigure((ge-te)*a,ie*y,!0);return E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-re)*y,(ge-re)*a,(ie-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+re)*a,(ie-te)*y,(ge+te)*a,(ie-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+re)*y,(ge+re)*a,(ie+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-re)*a,(ie+te)*y,(ge-te)*a,(ie+re)*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=le*.05,se=.175,me=.95,ee=new go.PathFigure((se-ge)*a,me*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-ge)*y,(se-ge)*a,(me-ie)*y,(se-ie)*a,(me-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,me*y,(se+ie)*a,(me-ge)*y,(se+ge)*a,(me-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+ge)*y,(se+ge)*a,(me+ie)*y,(se+ie)*a,(me+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,me*y,(se-ie)*a,(me+ge)*y,(se-ge)*a,(me+ie)*y));var ge=.05,ie=le*.05,se=.375,me=.95,te=new go.PathFigure((se-ge)*a,me*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-ge)*y,(se-ge)*a,(me-ie)*y,(se-ie)*a,(me-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,me*y,(se+ie)*a,(me-ge)*y,(se+ge)*a,(me-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+ge)*y,(se+ge)*a,(me+ie)*y,(se+ie)*a,(me+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,me*y,(se-ie)*a,(me+ge)*y,(se-ge)*a,(me+ie)*y));var ge=.05,ie=le*.05,se=.625,me=.95,re=new go.PathFigure((se-ge)*a,me*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-ge)*y,(se-ge)*a,(me-ie)*y,(se-ie)*a,(me-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,me*y,(se+ie)*a,(me-ge)*y,(se+ge)*a,(me-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+ge)*y,(se+ge)*a,(me+ie)*y,(se+ie)*a,(me+ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,me*y,(se-ie)*a,(me+ge)*y,(se-ge)*a,(me+ie)*y));var ge=.05,ie=le*.05,se=.825,me=.95,xe=new go.PathFigure((se-ge)*a,me*y,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me-ge)*y,(se-ge)*a,(me-ie)*y,(se-ie)*a,(me-ge)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*a,me*y,(se+ie)*a,(me-ge)*y,(se+ge)*a,(me-ie)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,se*a,(me+ge)*y,(se+ge)*a,(me+ie)*y,(se+ie)*a,(me+ge)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*a,me*y,(se-ie)*a,(me+ge)*y,(se-ge)*a,(me+ie)*y).close());var We=new go.PathFigure(0,y,!1);return E.add(We),We.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=le*.05,re=.35,ge=.775,ie=new go.PathFigure((re-ee)*a,ge*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge-ee)*y,(re-ee)*a,(ge-te)*y,(re-te)*a,(ge-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ge*y,(re+te)*a,(ge-ee)*y,(re+ee)*a,(ge-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge+ee)*y,(re+ee)*a,(ge+te)*y,(re+te)*a,(ge+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ge*y,(re-te)*a,(ge+ee)*y,(re-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=le*.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 re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.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=le*.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 re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.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=le*.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=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.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()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.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*le,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 re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.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*le,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*le,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")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Oe={},dt="5.0",oe={},ne=null,Se=!1,Ve=!1,Ie=null,ce=!1,Fe=null,le=null,$e=0;$e<arguments.length;$e++){var Me=arguments[$e];if(Me!==null)switch(typeof Me){case"number":dt=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?dt=Me:Ie=Me;break;case"object":typeof Me.is3D!="undefined"?ne=Me:oe=Me;break;case"boolean":Se=Me,Ve=!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},oe.material_id!==void 0&&!Ve&&(Se=!0)),Ie!==null&&oe.id===void 0&&(oe.id=Ie);var De="",nt="",He=!1,Ae=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(he){return parseFloat(he)>4?parseFloat(he):5};Oe.setHTML5Codebase=function(he,Ee){le=he,je(he,Ee)},Oe.setJavaCodebase=Oe.setJavaCodebaseVersion=Oe.isCompiledInstalled=Oe.setPreCompiledScriptPath=Oe.setPreCompiledResourcePath=function(){},Oe.setHTML5CodebaseVersion=function(he,Ee){var Ye=parseFloat(he);if(Ye!==NaN&&Ye<5){console.log("The GeoGebra HTML5 codebase version "+Ye+" is deprecated. Using version latest instead.");return}Fe=he,Re(he,Ee)},Oe.getHTML5CodebaseVersion=function(){return ae},Oe.getParameters=function(){return oe},Oe.setFontsCSSURL=function(he){z=he},Oe.setGiacJSURL=function(he){},Oe.setJNLPFile=function(he){De=he},Oe.setJNLPBaseDir=function(he){},Oe.inject=function(){function he(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ee="auto",Ye=oe.id,ut,Ze=!1,tt=0;tt<arguments.length;tt++){var de=arguments[tt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ee=de:Ye=arguments[tt]):typeof de=="boolean"?Ze=de:de instanceof HTMLElement&&(ut=de)}Qe();function Qe(){if(!ce){setTimeout(Qe,200);return}Ee=et(Ee);var St=ut||document.getElementById(Ye);if(!St){console.log("possibly bug on ajax loading? ");return}if(Oe.removeExistingApplet(St,!1),oe.width===void 0&&St.clientWidth&&(oe.width=St.clientWidth),oe.height===void 0&&St.clientHeight&&(oe.height=St.clientHeight),!(oe.width&&oe.height)&&Ee==="html5"&&(delete oe.width,delete oe.height),Ae=Ee,Ee==="screenshot")pt(St,oe);else{var It=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?It=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(It=(!re()||he())&&ge()),It?(Ae="screenshot",Pe(St,oe,Ze,Ee)):Ft(St,oe,Ze)}}};function re(){try{return window.self!==window.top}catch(he){return!0}}function ge(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Oe.getViews=function(){return ne},Oe.isJavaInstalled=function(){return!1};var ie=function(he){var Ee=function(tt){var de=JSON.parse(tt),Qe=function(yt){return yt.type=="G"||yt.type=="E"},St=de.elements?de.elements.filter(Qe)[0]:de;if(!St||!St.url){Ye();return}oe.fileName=St.url,se(St.settings||{}),ne.is3D=!0;var It="https://www.geogebra.org/images/";Oe.setPreviewImage(E||St.previewUrl,It+"GeoGebra_loading.png",It+"applet_play.png"),he()},Ye=function(){oe.onError&&oe.onError(),Ke("Error: Fetching material (id "+oe.material_id+") failed.",oe)},ut=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ze="/materials/"+oe.material_id+"?scope=basic";me("https://"+ut+"/api/proxy.php?path="+encodeURIComponent(Ze),Ee,Ye)};function se(he){var Ee=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ye){he[Ye]=!!he[Ye]}),Ee.forEach(function(Ye){oe[Ye]===void 0&&he[Ye]!==void 0&&(oe[Ye]=he[Ye])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function me(he,Ee,Ye){var ut=new XMLHttpRequest;ut.open("GET",he),ut.onload=function(){Ee(ut.responseText)},ut.onerror=Ye,ut.send()}Oe.isHTML5Installed=function(){return!0},Oe.getLoadedAppletType=function(){return Ae},Oe.setPreviewImage=function(he,Ee,Ye){E=he,b=Ee,x=Ye},Oe.removeExistingApplet=function(he,Ee){var Ye;typeof he=="string"&&(he=document.getElementById(he)),Ae=null;var ut=null;for(Ye=0;Ye<he.childNodes.length;Ye++){var Ze=he.childNodes[Ye],tt=Ze.className;tt==="applet_screenshot"?Ee?(Ze.style.display="block",Ae="screenshot"):Ze.style.display="none":tt!=="applet_scaler prerender"&&(he.removeChild(Ze),ut=tt&&tt.indexOf("appletParameters")!=-1?Ze.id:null,Ye--)}var de=oe.id!==void 0?oe.id:ut,Qe=window[de];Qe&&typeof Qe.getBase64=="function"&&(Qe.remove(),window[de]=null)},Oe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var he=Oe.getAppletObject();return he&&typeof he.recalculateEnvironments=="function"?(he.recalculateEnvironments(),!0):!1},Oe.startAnimation=function(){var he=Oe.getAppletObject();return he&&typeof he.startAnimation=="function"?(he.startAnimation(),!0):!1},Oe.stopAnimation=function(){var he=Oe.getAppletObject();return he&&typeof he.stopAnimation=="function"?(he.stopAnimation(),!0):!1},Oe.getAppletObject=function(){var he=oe.id!==void 0?oe.id:"ggbApplet";return window[he]},Oe.resize=function(){};var xe=function(he,Ee,Ye){var ut=document.createElement("param");ut.setAttribute("name",Ee),ut.setAttribute("value",Ye),he.appendChild(ut)},We=function(he){return he&&he!=="false"},Ft=function(he,Ee,Ye){te(ae)<=4.2&&(Ye=!0);var ut=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ut=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ze=document.createElement("div");Ze.classList.add("appletParameters","notranslate");var tt=Ee.width,de=Ee.height;if(Ee.disableAutoScale=Ee.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ee.disableAutoScale,Ee.width!==void 0)if(te(ae)<=4.4)We(Ee.showToolBar)&&(Ee.height-=7),We(Ee.showAlgebraInput)&&(Ee.height-=37),Ee.width<605&&We(Ee.showToolBar)&&(Ee.width=605,tt=605);else{var Qe=100;(We(Ee.showToolBar)||We(Ee.showMenuBar))&&(Ee.hasOwnProperty("customToolBar")&&(Ee.customToolbar=Ee.customToolBar),Qe=We(Ee.showMenuBar)?245:155),tt<Qe&&(Ee.width=Qe,tt=Qe)}Ze.style.border="none",Ze.style.display="inline-block";for(var St in Ee)Ee.hasOwnProperty(St)&&St!=="appletOnLoad"&&Ze.setAttribute("data-param-"+St,Ee[St]);z&&Ze.setAttribute("data-param-fontscssurl",z),Oe.resize=function(){GGBAppletUtils.responsiveResize(he,Ee)},window.addEventListener("resize",function(Bt){Oe.resize()});var It=typeof Ee.appletOnLoad=="function"?Ee.appletOnLoad:function(){};if(!Ye&&Ee.width!==void 0){Ee.hasOwnProperty("showSplash")||Ze.setAttribute("data-param-showSplash","false");var yt=he.querySelector(".applet_scaler.prerender"),we=yt!==null;if(we)var pe=yt.querySelector(".ggb_preview");else{var pe=ze(tt,de,Ee.borderColor,!1);yt=document.createElement("div"),yt.className="applet_scaler",yt.style.position="relative",yt.style.display="block",yt.style.width=tt+"px",yt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(yt,"66%"),te(ae)>=5?(Ee.appletOnLoad=function(Bt){var bt=he.querySelector(".ggb_preview");bt&&bt.parentNode.removeChild(bt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(yt),window.GGBT_wsf_view&&$(window).trigger("resize"),It(Bt)},we||yt.appendChild(pe)):Ze.appendChild(pe),yt.appendChild(Ze),we||he.appendChild(yt),setTimeout(function(){Oe.resize()},1)}else{var fe=document.createElement("div");fe.className="applet_scaler",fe.style.position="relative",fe.style.display="block",fe.appendChild(Ze),he.appendChild(fe),Ee.appletOnLoad=function(Bt){Oe.resize(),It(Bt)}}function ke(Bt,bt){bt&&typeof bt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Bt,bt.appletOnLoad):renderGGBElement(Bt),Ke("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",bt)}function _e(Bt,bt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Bt,params:bt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Et){ke(Et.article,Et.params)}),html5AppletsToProcess=null)},te(ae)<5&&(Bt.className+=" geogebraweb")):ke(Bt,bt)}if(ut){scriptLoadStarted=!0;for(var lt=0;lt<Ze.childNodes.length;lt++){var Ot=Ze.childNodes[lt].tagName;Ot==="TABLE"&&(Ze.removeChild(Ze.childNodes[lt]),lt--)}if(ggbHTML5LoadedScript!==null){var Ct=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ct!=null&&Ct.parentNode.removeChild(Ct)}var At=document.createElement("script"),jt=function(){_e(Ze,Ee)};At.src=nt+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=At.src,Ke("GeoGebra HTML5 codebase loaded: '"+nt+"'.",Ee),!le&&(!Fe||Fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),jt()):nt.requirejs?__webpack_require__.e(7374).then(function(){var Bt=[__webpack_require__(97374)];jt.apply(null,Bt)}.bind(this)).catch(__webpack_require__.oe):(At.onload=jt,he.appendChild(At))}else _e(Ze,Ee);Ee.height=de,Ee.width=tt},pt=function(he,Ee,Ye){var ut=ze(Ee.width,Ee.height,Ee.borderColor,Ye),Ze=document.createElement("div");Ze.style.position="relative",Ze.style.display="block",Ze.style.width=Ee.width+"px",Ze.style.height=Ee.height+"px",Ze.className="applet_screenshot applet_scaler"+(Ye?" applet_screenshot_play":""),Ze.appendChild(ut);var tt=GGBAppletUtils.getScale(Ee,he,Ye);Ye?(he.appendChild(Te()),window.GGBT_wsf_view||(he.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ze,"66%"),he.appendChild(Ze),tt!==1&&!isNaN(tt)&&(GGBAppletUtils.scaleElement(Ze,tt),Ze.style.width=Ee.width+"px",Ze.style.height=Ee.height+"px",Ze.parentNode.style.width=Ee.width*tt+"px",Ze.parentNode.style.height=Ee.height*tt+"px"),Oe.resize=function(){Lt(he,ut,Ze,Ye)},window.addEventListener("resize",function(de){Oe.resize()}),Oe.resize()};function Lt(he,Ee,Ye,ut){if(he.contains(Ee)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(he.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(he)}var Ze=GGBAppletUtils.getScale(oe,he,ut);Ye.parentNode!==null&&(!isNaN(Ze)&&Ze!==1?(GGBAppletUtils.scaleElement(Ye,Ze),Ye.parentNode.style.width=oe.width*Ze+"px",Ye.parentNode.style.height=oe.height*Ze+"px"):(GGBAppletUtils.scaleElement(Ye,1),Ye.parentNode.style.width=oe.width+"px",Ye.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(he),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Oe.onExitFullscreen=function(he,Ee){Ee.appendChild(he)};var Pe=function(he,Ee,Ye,ut){pt(he,Ee,!0);for(var Ze=function(){var Qe=[];for(de=0;de<he.childNodes.length;de++)Qe.push(he.childNodes[de]);if(window.GGBT_wsf_view){var St=window.GGBT_wsf_view.renderFullScreen(he,Ee.id),It=document.getElementById("fullscreencontainer"),yt=jQuery(he).find(".fullscreencontent");yt.length>0?(St.remove(),yt.attr("id","fullscreencontent").show(),jQuery(It).append(yt),window.dispatchEvent(new Event("resize"))):Ft(St,Ee,!1),window.GGBT_wsf_view.launchFullScreen(It)}else Ae=ut,Ft(he,Ee,!1);if(!window.GGBT_wsf_view)for(de=0;de<Qe.length;de++)he.removeChild(Qe[de])},tt=he.getElementsByClassName("ggb_preview_play"),de=0;de<tt.length;de++)tt[de].addEventListener("click",Ze,!1),tt[de].addEventListener("ontouchstart",Ze,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(he),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Te=function(){var he=document.createElement("div");if(he.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ee='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ye=document.createElement("style");Ye.styleSheet?Ye.styleSheet.cssText=Ee:Ye.appendChild(document.createTextNode(Ee)),document.getElementsByTagName("head")[0].appendChild(Ye)}return he},ze=function(he,Ee,Ye,ut){var Ze=document.createElement("div");Ze.className="ggb_preview",Ze.style.position="absolute",Ze.style.zIndex="90",Ze.style.width=he-2+"px",Ze.style.height=Ee-2+"px",Ze.style.top="0px",Ze.style.left="0px",Ze.style.overflow="hidden",Ze.style.backgroundColor="white";var tt="lightgrey";Ye!==void 0&&(Ye==="none"?tt="transparent":tt=Ye),Ze.style.border="1px solid "+tt;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 Qe,St,It;if(!ut){Qe=document.createElement("img"),Qe.style.position="absolute",Qe.style.zIndex="1001",Qe.style.opacity=1,de.style.opacity=.3,St=360,St>he/4*3&&(St=he/4*3),It=St/5.8,Qe.setAttribute("src",b),Qe.setAttribute("width",St),Qe.setAttribute("height",It);var yt=(he-St)/2,we=(Ee-It)/2;Qe.style.left=yt+"px",Qe.style.top=we+"px",Ze.appendChild(Qe)}}return Ze.appendChild(de),Ze},et=function(he){return he=he.toLowerCase(),he==="html5"||he==="screenshot"?he:"html5"},gt=["web","webSimple","web3d","tablet","tablet3d","phone"],Re=function(he,Ee){if(ae=he,Ee){je(ae,!0);return}var Ye=!Se;if(Ye){var ut=te(ae);!isNaN(ut)&&ut<4.4&&(Ye=!1)}var Ze,tt;window.location.protocol.substr(0,4)==="http"?Ze=window.location.protocol:Ze="http:";var de=ae.indexOf("//");de>0?tt=ae:de===0?tt=Ze+ae:tt="https://www.geogebra.org/apps/5.2.814.0/";for(var Qe in gt)if(ae.slice(gt[Qe].length*-1)===gt[Qe]||ae.slice((gt[Qe].length+1)*-1)===gt[Qe]+"/"){je(tt,!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&&!We(oe.showToolBar)&&!We(oe.showMenuBar)&&!We(oe.showAlgebraInput)&&!We(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?tt+="webSimple/":tt+="web3d/",je(tt,!1)},je=function(he,Ee){if(he.requirejs){nt=he;return}he.slice(-1)!=="/"&&(he+="/"),nt=he,Ee===null&&(Ee=he.indexOf("http")===-1),He=Ee,a="web.nocache.js",y=!1;var Ye=nt.split("/");Ye.length>1&&(!Ee&&Ye[Ye.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):gt.indexOf(Ye[Ye.length-2])>=0&&(a=Ye[Ye.length-2]+".nocache.js")),Ye=he.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 ut=parseFloat(ae);ut!==NaN&&ut<5&&he.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ut+" is deprecated. Using version latest instead."),Re("5.0",Ee))},Ke=function(he,Ee){window.console&&window.console.log&&(!Ee||typeof Ee.showLogging=="undefined"||Ee.showLogging&&Ee.showLogging!=="false")&&console.log(he)};oe.material_id!==void 0?ie(vt):vt();function vt(){var he=dt;Fe!==null?he=Fe:parseFloat(he)<5&&(he="5.0"),Re(he,!1),le!==null&&je(le,He),ce=!0}return Oe},GGBAppletUtils=function(){"use strict";function Oe(){return window.GGBT_wsf_edit!==void 0}function dt(ce,Fe){Fe!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+Fe+","+Fe+")",ce.style.webkitTransform="scale("+Fe+","+Fe+")",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 oe(ce,Fe,le,$e,Me,De){var nt=null;if(De!=null&&De!="")for(var He=ce.parentNode;He!=null;)if((" "+He.className+" ").indexOf(" "+De+" ")>-1){nt=He;break}else He=He.parentNode;var Ae=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(nt)Ae=nt.offsetWidth,ae=Math.max($e?nt.offsetWidth:0,nt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ae=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ae):(Ae=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Ae&&(Me===void 0||!Me)&&(document.dir==="rtl"?(E=Ae-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&&((le===void 0||!le)&&Fe>0&&Fe+y<Ae?Ae=Fe:Ae-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:Ae,height:ae}}function ne(ce,Fe,le,$e,Me){if(ce.isScreenshoGenerator)return 1;var De=$e!==void 0&&$e,nt=ce.noScaleMargin!=null&&ce.noScaleMargin,He=function(ee){return ee&&ee!=="false"},Ae=He(ce.autoHeight),ae=oe(Fe,ce.width,le,Ae,De&&window.GGBT_wsf_view||nt,Me),a=parseInt(ae.width),y=ce.width,E=ce.height;if(y===void 0){var b=Fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=De?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Se(ce,Fe,le){var $e=1,Me,De=!1;if(ce.hasOwnProperty("allowUpscale")&&(De=ce.allowUpscale),ce.hasOwnProperty("scale")&&($e=parseFloat(ce.scale),(isNaN($e)||$e===null||$e===0)&&($e=1),$e>1&&(De=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Me=ne(ce,Fe,De,le,ce.scaleContainerClass);else return $e;return De&&(!ce.hasOwnProperty("scale")||$e===1)?Me:Math.min($e,Me)}function Ve(ce){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),$e=ce.getBoundingClientRect(),Me=(Fe-$e.width)/2,De=(le-$e.height)/2;De<0&&(De=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?ce.style.left="40px":ce.style.left=Me+"px",ce.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?ce.style.top="40px":ce.style.top=De+"px",ce.style.left=Me+"px")}function Ie(ce,Fe){var le=ce.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var $e=Se(Fe,ce);Oe()&&le.setAttribute("data-param-scale",$e);for(var Me=null,De=0;De<ce.childNodes.length;De++)if(ce.childNodes[De].className!==void 0&&ce.childNodes[De].className.match(/^applet_scaler/)){Me=ce.childNodes[De];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var nt=Fe.id!==void 0?Fe.id:"ggbApplet",He=window[nt];(He==null||!He.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN($e)&&$e!==1?(Me.parentNode.style.width=Fe.width*$e+"px",Me.parentNode.style.height=Fe.height*$e+"px",dt(Me,$e)):(dt(Me,1),Me.parentNode.style.width=Fe.width+"px",Me.parentNode.style.height=Fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ve(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:Oe,positionCenter:Ve,getScale:Se,scaleElement:dt}}();__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 Oe=n.location.search;return Oe.indexOf(J)!=-1||Oe.indexOf(K)!=-1}function q(Oe,dt){}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(Oe){var dt=s[L].bindings;s[L].bindings=function(){for(var oe=dt?dt():{},ne=Oe[webModule.__softPermutationId],Se=O;Se<ne.length;Se++){var Ve=ne[Se];oe[Ve[O]]=Ve[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Oe=o.createElement(Q);if(Oe.id=L,Oe.style.cssText=R+S,Oe.tabIndex=-1,o.body.appendChild(Oe),t=Oe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var dt=document.compatMode==U?V:W;t.write(dt+X),t.close()}}}function w(Oe){function dt(ne){function Se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ve=Se();if(Ve){ne();return}function Ie(){if(!Ve){if(!Se())return;Ve=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var ce=setInterval(function(){Ie()},$)}function oe(ne){var Se=u(),Ve=Se.body,Ie=Se.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=ne,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),Ve.appendChild(Ie)}dt(function(){oe(Oe)})}webModule.__startLoadingFragment=function(Oe){return C(Oe)},webModule.__installRunAsyncCode=function(Oe){var dt=u(),oe=dt.body,ne=dt.createElement(_);ne.language=ab,ne.text=Oe,oe.appendChild(ne),oe.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(Oe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Oe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Oe){var dt=c[Oe];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function Oe(ce){var Fe=ce.lastIndexOf(rb);Fe==-1&&(Fe=ce.length);var le=ce.indexOf(sb);le==-1&&(le=ce.length);var $e=ce.lastIndexOf(tb,Math.min(le,Fe));return $e>=O?ce.substring(O,$e+P):W}function dt(ce){if(!ce.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=ce+vb,ce=Oe(Fe.src)}return ce}function oe(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ne(){for(var ce=o.getElementsByTagName(_),Fe=O;Fe<ce.length;++Fe)if(ce[Fe].src.indexOf(xb)!=-1)return Oe(ce[Fe].src);return W}function Se(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Ve(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Ie=oe();return Ie==W&&(Ie=ne()),Ie==W&&(Ie=Se()),Ie==W&&Ve()&&(Ie=Oe(o.location.href)),Ie=dt(Ie),Ie}function C(Oe){return Oe.match(/^\//)||Oe.match(/^[a-zA-Z]+:\/\//)?Oe:webModule.__moduleBase+Oe}function D(){var Oe=[],dt=O,oe=[],ne=[];function Se(ce){var Fe=ne[ce](),le=oe[ce];if(Fe in le)return Fe;var $e=[];for(var Me in le)$e[le[Me]]=Me;throw r&&r(ce,$e,Fe),null}if(__gwt_isKnownPropertyValue=function(ce,Fe){return Fe in oe[ce]},webModule.__getPropMap=function(){var ce={};for(var Fe in oe)oe.hasOwnProperty(Fe)&&(ce[Fe]=Se(Fe));return ce},webModule.__computePropValue=Se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ve;try{Ve=Cb;var Ie=Ve.indexOf(Db);Ie!=-1&&(dt=parseInt(Ve.substring(Ie+P),$),Ve=Ve.substring(O,Ie))}catch(ce){}return webModule.__softPermutationId=dt,C(Ve+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},58788:function(Oe,dt,oe){"use strict";oe.d(dt,{Ax:function(){return Ie},Ds:function(){return ce},KI:function(){return le},SI:function(){return Ve},f1:function(){return Se}});var ne=oe(10148);function Se($e){let Me=!0;if($e.length>0){for(let De=0;De<$e.length;De++)if($e[De].compile_success==0||!$e[De].compile_success){Me=!1;break}}else Me=!1;return Me}function Ve($e,Me=""){let De=[];for(let nt=0;nt<$e.length;nt++){let He=$e[nt],Ae=Me?`${Me}/${He.name}`:`${He.name}`;De.push({title:He.name,type:He.type,isLeaf:He.type!=="tree",key:Ae})}return De}function Ie($e,Me,De){for(let nt=0;nt<$e.length;nt++){let He=$e[nt];if(He.key===Me){He.children=De;break}He.children&&Ie(He.children,Me,De)}return $e}function ce($e,Me,De){let nt;return function(){let He=this,Ae=arguments,ae=function(){nt=null,De||$e.apply(He,Ae)},a=De&&!nt;clearTimeout(nt),nt=setTimeout(ae,Me),a&&$e.apply(He,Ae)}}const Fe=!0,le=ne.Z.API_SERVER},10437:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Lt}});var ne=oe(59301),Se=oe(42203),Ve=oe(24905),Ie=oe(72245),ce=oe(11597),Fe=oe(70635),le=oe(78241),$e=oe(57809),Me={},De=Object.defineProperty,nt=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,ae=(Pe,Te,ze)=>Te in Pe?De(Pe,Te,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Pe[Te]=ze,a=(Pe,Te)=>{for(var ze in Te||(Te={}))He.call(Te,ze)&&ae(Pe,ze,Te[ze]);if(nt)for(var ze of nt(Te))Ae.call(Te,ze)&&ae(Pe,ze,Te[ze]);return Pe},y=(Pe,Te,ze)=>new Promise((et,gt)=>{var Re=vt=>{try{Ke(ze.next(vt))}catch(he){gt(he)}},je=vt=>{try{Ke(ze.throw(vt))}catch(he){gt(he)}},Ke=vt=>vt.done?et(vt.value):Promise.resolve(vt.value).then(Re,je);Ke((ze=ze.apply(Pe,Te)).next())});const E=Ve.default.Group,b=({classroomList:Pe,loading:Te,user:ze,exercise_id:et=null,homework_common_id:gt=null,setitem:Re,item:je,type:Ke,rz:vt,dispatch:he})=>{var Ee,Ye,ut,Ze,tt,de,Qe,St;const[It,yt]=(0,ne.useState)([]);let[we,pe]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const fe=(0,Se.useParams)(),[ke,_e]=(0,ne.useState)(!1),[lt,Ot]=(0,ne.useState)(!1),[Ct]=le.default.useForm();(0,ne.useEffect)(()=>{vt&&(we.zydatas=vt,pe(a({},we)),je!=null&&je.ec_course_id&&At())},[je,vt]);function At(){return y(this,null,function*(){console.log("----",je),yield jt(je==null?void 0:je.ec_major_school_id),yield Bt(je==null?void 0:je.ec_year_id),yield bt(je==null?void 0:je.ec_course_id),Ct.setFieldsValue({ec_course_id:je==null?void 0:je.ec_course_id,ec_major_school_id:je==null?void 0:je.ec_major_school_id,ec_point_ids:je==null?void 0:je.ec_point_ids,ec_year_id:je==null?void 0:je.ec_year_id})})}function jt(Et){return y(this,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_major_schools/${Et}/ec_years/get_year_list.json`,{method:"get"});we.jbdatas=Wt==null?void 0:Wt.data,pe(a({},we)),Ct.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Bt(Et){return y(this,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_years/${Et}/ec_courses/get_courses.json`,{method:"get"});we.kcdatas=Wt==null?void 0:Wt.data,pe(a({},we)),Ct.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const bt=Et=>y(void 0,null,function*(){const Wt=yield(0,Fe.ZP)(`/api/ec_courses/${Et}/ec_points.json`,{method:"get",params:{ec_course_id:Et}});we.zsdatas=Wt==null?void 0:Wt.data,pe(a({},we))});return ne.createElement("div",{className:Me.from},ne.createElement(le.default,{form:Ct,layout:"inline",onValuesChange:Et=>{console.log("----",Et),Et.ec_major_school_id&&(we.jbdatas=[],we.kcdatas=[],we.zsdatas=[],pe(a({},we)),jt(Et.ec_major_school_id)),Et.ec_year_id&&(we.kcdatas=[],we.zsdatas=[],pe(a({},we)),Bt(Et.ec_year_id)),Et.ec_course_id&&(we.zsdatas=[],pe(a({},we)),bt(Et.ec_course_id))},onFinish:Et=>y(void 0,null,function*(){Re(Et)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement($e.default,{style:{width:150},disabled:((Ee=we.zydatas)==null?void 0:Ee.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Ye=we==null?void 0:we.zydatas)==null?void 0:Ye.map((Et,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Et==null?void 0:Et.ec_major_school_id},Et==null?void 0:Et.name)))),ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement($e.default,{style:{width:150},disabled:((ut=we.jbdatas)==null?void 0:ut.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Ze=we==null?void 0:we.jbdatas)==null?void 0:Ze.map((Et,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Et==null?void 0:Et.ec_year_id},Et==null?void 0:Et.year)))),ne.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement($e.default,{style:{width:150},disabled:((tt=we.kcdatas)==null?void 0:tt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=we==null?void 0:we.kcdatas)==null?void 0:de.map((Et,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Et==null?void 0:Et.id},Et==null?void 0:Et.name)))),ne.createElement(le.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement($e.default,{onChange:()=>{Ct.submit()},style:{width:150},mode:"multiple",disabled:((Qe=we.zsdatas)==null?void 0:Qe.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(St=we==null?void 0:we.zsdatas)==null?void 0:St.map((Et,Wt)=>ne.createElement($e.default.Option,{key:Wt,value:Et==null?void 0:Et.id},Et==null?void 0:Et.name))))))};var x=(0,Se.connect)(({classroomList:Pe,loading:Te,globalSetting:ze,user:et})=>({classroomList:Pe,globalSetting:ze,loading:Te.effects,user:et}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,se=(Pe,Te,ze)=>Te in Pe?z(Pe,Te,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Pe[Te]=ze,me=(Pe,Te)=>{for(var ze in Te||(Te={}))ge.call(Te,ze)&&se(Pe,ze,Te[ze]);if(re)for(var ze of re(Te))ie.call(Te,ze)&&se(Pe,ze,Te[ze]);return Pe},xe=(Pe,Te)=>ee(Pe,te(Te)),We=(Pe,Te,ze)=>new Promise((et,gt)=>{var Re=vt=>{try{Ke(ze.next(vt))}catch(he){gt(he)}},je=vt=>{try{Ke(ze.throw(vt))}catch(he){gt(he)}},Ke=vt=>vt.done?et(vt.value):Promise.resolve(vt.value).then(Re,je);Ke((ze=ze.apply(Pe,Te)).next())});const Ft=Ve.default.Group,pt=({classroomList:Pe,loading:Te,user:ze,exercise_id:et=null,homework_common_id:gt=null,setitem:Re,type:je,dispatch:Ke})=>{var vt,he;let[Ee,Ye]=(0,ne.useState)([{}]),[ut,Ze]=(0,ne.useState)([]);function tt(){return We(this,null,function*(){var Qe,St,It;let yt=yield(0,Fe.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:et,homework_common_id:gt}});if(((Qe=yt==null?void 0:yt.data)==null?void 0:Qe.length)>0){let we=[];(St=yt==null?void 0:yt.data)==null||St.map(pe=>{var fe;(fe=pe==null?void 0:pe.ec_point_ids)==null||fe.map(ke=>{we.push(ke)})}),Re(xe(me({},(It=yt==null?void 0:yt.data)==null?void 0:It[0]),{ec_point_ids:we})),Ye(yt==null?void 0:yt.data)}})}(0,ne.useEffect)(()=>{var Qe,St;(St=(Qe=ze==null?void 0:ze.userInfo)==null?void 0:Qe.course)!=null&&St.course_school_id&&de()},[(he=(vt=ze==null?void 0:ze.userInfo)==null?void 0:vt.course)==null?void 0:he.course_school_id]);function de(){return We(this,null,function*(){var Qe,St;const It=yield(0,Fe.ZP)(`/api/schools/${(St=(Qe=ze==null?void 0:ze.userInfo)==null?void 0:Qe.course)==null?void 0:St.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ze(It==null?void 0:It.data),(gt||et)&&tt()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Ee==null?void 0:Ee.map((Qe,St)=>ne.createElement("div",{key:St,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:ut,item:Qe,type:St,setitem:It=>{Ee.splice(St,1,It),Ye([...Ee]);let yt=[];Ee==null||Ee.map(we=>{var pe;(pe=we==null?void 0:we.ec_point_ids)==null||pe.map(fe=>{yt.push(fe)})}),Re(xe(me({},It),{ec_point_ids:yt}))}}),St!=0&&ne.createElement(Ie.Z,{onClick:()=>{Ee.splice(St,1),Ye([...Ee])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(ce.Z,{onClick:()=>{Ee.push({}),Ye([...Ee])},style:{marginLeft:10,fontSize:"20px"}}))))};var Lt=(0,Se.connect)(({classroomList:Pe,loading:Te,globalSetting:ze,user:et})=>({classroomList:Pe,globalSetting:ze,loading:Te.effects,user:et}))(pt)},12963:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return nt}});var ne=oe(59301),Se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ve=oe(92310),Ie=oe.n(Ve),ce=oe(71418),Fe=oe(2859),le=oe(70635),$e=oe(58130),Me=(He,Ae,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(He,Ae)).next())}),nt=({data:He,className:Ae,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),re=(0,ne.useRef)(null),[ge,ie]=(0,ne.useState)(!1),[se,me]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),He!=null&&He.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",He!=null&&He.src&&xe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[He==null?void 0:He.visible]);const xe=()=>Me(void 0,null,function*(){ie(!0),me("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Lt=yield(0,$e.ZJ)(He==null?void 0:He.src);z.current.src="",z.current.src=Lt,z.current.onload=function(){pt()},ie(!1),me("")}),We=Lt=>Me(void 0,null,function*(){ie(!0),me("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Pe=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:He.title,file:Lt.dataUrl}});Pe!=null&&Pe.id&&!x?(yield(0,le.ZP)(`/api/attachments/${He.id}/add_subitem.json`,{method:"post",body:{subitem_id:Pe==null?void 0:Pe.id,settings:JSON.stringify(Lt.state)}})).status===0&&E():Pe!=null&&Pe.id&&E(Pe),ie(!1),me("")}),Ft=()=>{const Lt=document.querySelector('a[href="https://markerjs.com/"]');Lt&&Lt.parentNode&&(Lt.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(Te=>{const ze=document.querySelector(Te.name);ze&&ze.setAttribute("title",Te.title)})},pt=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",We),ee.current.addEventListener("beforeclose",y),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),He!=null&&He.snapshotData&&ee.current.restoreState(He.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ft()},300)};return ne.createElement(ne.Fragment,null,(He==null?void 0:He.visible)&&ne.createElement(ce.Z,{spinning:ge,tip:se,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:Ie()(Se.imageDimensions,Ae,ae?Se.fullWidth:""),style:a},ne.createElement("img",{className:Se.img,ref:z}))))}},75890:function(Oe,dt,oe){"use strict";var ne=oe(59301),Se=oe(95237),Ve=oe(43604),Ie=oe(99313),ce=oe(3113),Fe=oe(25711),le=oe(93938),$e=oe(48136),Me=oe(59301);const De=(0,ne.forwardRef)(({callback:nt,showSaveButton:He,value:Ae=""},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:Me.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>Me.createElement(Ve.Z,{flex:"110px",className:le.Z.item},Me.createElement("div",null,Me.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),Me.createElement("div",{className:le.Z.children},ee.children.map((re,ge)=>Me.createElement("div",{key:ge},Me.createElement("h1",null,re.name),Me.createElement(Se.Z,{gutter:[10,10]},re.data.map((ie,se)=>Me.createElement(Ve.Z,{key:se,onClick:()=>b(ie),className:le.Z.diamond},Me.createElement(Fe.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>Me.createElement(Ve.Z,{flex:"110px",className:le.Z.item},Me.createElement("div",null,Me.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Me.createElement("div",{className:le.Z.children},ee.children.map((re,ge)=>Me.createElement("div",{key:ge},re.name&&Me.createElement("h1",null,re.name),Me.createElement(Se.Z,{gutter:[10,10]},re.data.map((ie,se)=>Me.createElement(Ve.Z,{key:se,onClick:()=>b(ie),className:le.Z.diamond},Me.createElement(Fe.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return nt&&nt(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),Me.createElement("div",{className:le.Z.mathWrap},Me.createElement(Ie.default,{defaultActiveKey:"1",items:x}),Me.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ae||""),He&&Me.createElement("div",{className:le.Z.button},Me.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=De},57203:function(Oe,dt,oe){"use strict";oe.d(dt,{z:function(){return et},Z:function(){return gt}});var ne=oe(59301),Se=oe(41889),Ve=oe(8591),Ie=oe(43418),ce=oe(3113),Fe=oe(10148),le=oe(76904),$e=Object.defineProperty,Me=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,He=(Re,je,Ke)=>je in Re?$e(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Re[je]=Ke,Ae=(Re,je)=>{for(var Ke in je||(je={}))De.call(je,Ke)&&He(Re,Ke,je[Ke]);if(Me)for(var Ke of Me(je))nt.call(je,Ke)&&He(Re,Ke,je[Ke]);return Re},ae=(Re,je,Ke)=>new Promise((vt,he)=>{var Ee=Ze=>{try{ut(Ke.next(Ze))}catch(tt){he(tt)}},Ye=Ze=>{try{ut(Ke.throw(Ze))}catch(tt){he(tt)}},ut=Ze=>Ze.done?vt(Ze.value):Promise.resolve(Ze.value).then(Ee,Ye);ut((Ke=Ke.apply(Re,je)).next())});const a="\u3000\u3000";function y(Re){var je=["Bytes","KB","MB","GB","TB"];if(Re==0)return"0 Byte";var Ke=parseInt(""+Math.floor(Math.log(Re)/Math.log(1024)),10);return(Re/Math.pow(1024,Ke)).toFixed(1)+" "+je[Ke]}var E=({value:Re=[],action:je,onChange:Ke,className:vt,maxSize:he=150,title:Ee="\u6587\u4EF6\u4E0A\u4F20",accept:Ye=null})=>{const ut={multiple:!1,fileList:Re,accept:Ye,withCredentials:!0,beforeUpload:tt=>tt.size/1024/1024<he?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${he}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(tt){var de,Qe,St,It;let yt=[...tt.fileList];if(yt=yt.map(we=>(we.name.indexOf(a)===-1&&(we.name=`${we.name}${a}${y(we.size)}`),Ae({},we))),tt.file.status==="done"&&((Qe=(de=tt.file)==null?void 0:de.response)==null?void 0:Qe.status)===-1){message.error((It=(St=tt.file)==null?void 0:St.response)==null?void 0:It.message),Ke([]);return}Ke(yt)},onRemove:tt=>ae(void 0,null,function*(){const de=tt.size/1024/1024;return tt.status==="uploading"?!0:de<he&&(tt.response?tt.response.id:tt.uid)?yield removeAttachment(tt.response?tt.response.id:tt.id):!0})};function Ze(tt){tt.preventDefault(),tt.stopPropagation()}return React.createElement("div",{className:`single-upload ${vt||""}`},React.createElement(Upload,Ae({},ut),React.createElement(Button,{type:"primary",title:Re.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:Re.length>0,ghost:!0},Ee),React.createElement("span",{onClick:Ze,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",he,"M)"," ")))},b=oe(34023),x=oe(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ge=(Re,je,Ke)=>je in Re?z(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Re[je]=Ke,ie=(Re,je)=>{for(var Ke in je||(je={}))te.call(je,Ke)&&ge(Re,Ke,je[Ke]);if(ee)for(var Ke of ee(je))re.call(je,Ke)&&ge(Re,Ke,je[Ke]);return Re};const se=Re=>React.createElement("svg",ie({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Re),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 me="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",xe=Object.defineProperty,We=Object.getOwnPropertySymbols,Ft=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Lt=(Re,je,Ke)=>je in Re?xe(Re,je,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):Re[je]=Ke,Pe=(Re,je)=>{for(var Ke in je||(je={}))Ft.call(je,Ke)&&Lt(Re,Ke,je[Ke]);if(We)for(var Ke of We(je))pt.call(je,Ke)&&Lt(Re,Ke,je[Ke]);return Re},Te=(Re,je,Ke)=>new Promise((vt,he)=>{var Ee=Ze=>{try{ut(Ke.next(Ze))}catch(tt){he(tt)}},Ye=Ze=>{try{ut(Ke.throw(Ze))}catch(tt){he(tt)}},ut=Ze=>Ze.done?vt(Ze.value):Promise.resolve(Ze.value).then(Ee,Ye);ut((Ke=Ke.apply(Re,je)).next())});const{Dragger:ze}=Se.default;function et(Re){let je=[];return Re&&Re.length>0&&(je=Re.map(Ke=>({uid:Ke.id,id:Ke.id,name:Ke.title+a+Ke.filesize,url:Ke.url,filesize:Ke.filesize,status:"done",response:{id:Ke.id}}))),je}var gt=({value:Re,onChange:je,action:Ke,data:vt,className:he,maxSize:Ee=150,title:Ye="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:ut=!1,accept:Ze="",additionalText:tt,isDragger:de,number:Qe=1e3,aloneClear:St=!1,realTimeRemove:It=!0,uploadText:yt,setFileProgress:we,showFileProgress:pe})=>{const[fe,ke]=(0,ne.useState)(!1);let[_e,lt]=(0,ne.useState)(Re||[]),[Ot,Ct]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{Re&&(Ot===1&&lt([...Re]),Ct(2),Qe===(Re==null?void 0:Re.length)&&ke(!0))},[Re]);const At=()=>{setTimeout(()=>{_e.pop(),lt([..._e])},500)};pe&&we(_e.some(bt=>bt.status==="uploading"));const jt={multiple:!0,disabled:fe,accept:Ze,withCredentials:!0,fileList:_e,beforeUpload:(bt,Et)=>{const Wt=bt.size/1024/1024;return _e.concat(Et).length>Qe?(_e.pop(),lt([..._e]),Ve.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Qe}\u4E2A\u6587\u4EF6`),St?Promise.reject():(At(),!1)):Wt<Ee?!0:(Ve.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ee}MB).`),St?Promise.reject():(At(),!1))},data:vt,action:Ke||`${Fe.Z.API_SERVER}/api/attachments.json`,onChange(bt){var Et,Wt,mn,qt;if(bt.file.status==="removed"?_e=bt.fileList:_e=(0,x.uniqBy)([...bt.fileList,..._e],"uid"),bt.file.status==="done"&&((Wt=(Et=bt.file)==null?void 0:Et.response)==null?void 0:Wt.status)===-1){Ve.ZP.error((qt=(mn=bt.file)==null?void 0:mn.response)==null?void 0:qt.message);return}_e.length>=Qe?ke(!0):ke(!1),lt([..._e]),_e=_e.map(Ut=>{var ye,Be;return(ye=Ut==null?void 0:Ut.response)!=null&&ye.id&&(Ut.url=(Be=Ut==null?void 0:Ut.response)==null?void 0:Be.url),Ut.name.indexOf(a)===-1&&(Ut.name=`${Ut.name}${a}${y(Ut.size)}`),Pe({},Ut)}),console.log("info:",bt,_e),je(_e)},onRemove:bt=>Te(void 0,null,function*(){if(!It)return!0;const Et=()=>Te(void 0,null,function*(){if(bt.response?bt.response.id:bt.id){let mn=yield(0,le.JZ)(bt.response?bt.response.id:bt.uid);return Promise.resolve(mn)}else return!0});return ut?new Promise((Wt,mn)=>{Ie.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:()=>Te(void 0,null,function*(){const qt=yield Et();Ve.ZP.success("\u5220\u9664\u6210\u529F"),Wt(!0)}),onCancel:()=>Wt(!1)})}):yield Et()})};function Bt(bt){bt.preventDefault(),bt.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${he||""}`},de&&ne.createElement(ze,Pe({},jt),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",Ee,"MB)"," "),tt),!de&&ne.createElement(Se.default,Pe({},jt),ne.createElement(ce.ZP,{disabled:fe,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:me}),Ye),ne.createElement("span",{onClick:Bt,className:"upload_text"},yt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ee}MB)`)))}},1568:function(Oe,dt,oe){"use strict";oe.d(dt,{h:function(){return ee}});var ne=oe(59301),Se=oe(57809),Ve=oe(78241),Ie=oe(3113),ce=oe(89780),Fe=oe.n(ce),le=oe(79906),$e=oe(44383),Me=Object.defineProperty,De=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ge)=>re in te?Me(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[re]=ge,y=(te,re)=>{for(var ge in re||(re={}))Ae.call(re,ge)&&a(te,ge,re[ge]);if(He)for(var ge of He(re))ae.call(re,ge)&&a(te,ge,re[ge]);return te},E=(te,re)=>De(te,nt(re));const b=Se.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"]};dt.Z=({callback:te,onCancel:re})=>{const[ge,ie]=(0,ne.useState)("python");function se(xe){ie(z[xe][1])}function me(xe){te(xe)}return ne.createElement(Ve.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:me,style:{width:500}}),ne.createElement(Ve.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(Se.default,{getPopupContainer:xe=>xe.parentNode,onChange:se},Object.keys(z).map(xe=>ne.createElement(b,{key:xe,value:xe},z[xe][0])))),ne.createElement(Ve.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(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ie.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ge,options:ie={}}){const se=(0,ne.useRef)(),[me,xe]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(me){let We=function(Ft){const pt=Ft.getValue();re&&re(pt)};return me.on("change",We),()=>{me.off("change",We)}}},[me,re]),(0,ne.useEffect)(()=>{me&&me.setOption("mode",ge)},[me,ge]),(0,ne.useEffect)(()=>{me&&(te!==me.getValue()||te==="")&&setTimeout(()=>{me.setValue(te||"")},300)},[me,te]),(0,ne.useEffect)(()=>{if(se.current&&!me){const We=Fe().fromTextArea(se.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));xe(We)}},[se.current,me]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:se}))}},23469:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Jn}});var ne=oe(59301),Se=oe(89780),Ve=oe.n(Se),Ie=oe(76374),ce=oe(79906),Fe=oe(6313),le=oe(25717),$e=oe(99498),Me=oe(25419),De=oe(67549),nt=oe(25711),He=({value:Le="",className:be,showTextOnly:ve,showLines:st,style:Nt={}})=>{const xt=(0,ne.useMemo)(()=>"",[Le]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:xt}}))},Ae=oe(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,be,ve)=>be in Le?ae(Le,be,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[be]=ve,ee=(Le,be)=>{for(var ve in be||(be={}))b.call(be,ve)&&z(Le,ve,be[ve]);if(E)for(var ve of E(be))x.call(be,ve)&&z(Le,ve,be[ve]);return Le},te=(Le,be)=>a(Le,y(be));let re=[{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:Le,title:be,icon:ve,actionName:st,className:Nt="",children:xt}){function ln(){Le(st)}return Ae.createElement("a",{title:be,className:Nt,onClick:ln},Ae.createElement("i",{className:`${ve}`}),xt)}var ie=({watch:Le,showNullButton:be,showNullProgramButton:ve,onActionCallback:st,fullScreen:Nt,insertTemp:xt,hidetoolBar:ln,extraUse:Zt})=>{const en=[...re,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ae.createElement("ul",{className:"markdown-toolbar-container"},!ln&&en.map((Ln,_n)=>Ae.createElement("li",{key:_n},Ln.actionName?Ae.createElement(ge,te(ee({},Ln),{onActionCallback:st})):Ae.createElement("span",{className:"v-line"}))),be?Ae.createElement("li",null,Ae.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:st},Ae.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,ve?Ae.createElement(Ae.Fragment,null,Ae.createElement("li",null,Ae.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:st},Ae.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ae.createElement("li",null,Ae.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:st},Ae.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,xt&&Ae.createElement("li",null,Ae.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${xt}`,onActionCallback:st},Ae.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Zt&&Ae.createElement("li",null,Zt),Ae.createElement("li",{className:"btn-full-screen"},Ae.createElement(ge,{icon:`${Nt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Nt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:st})))},se=oe(50474),me=oe(78241),xe=oe(92832),We=oe(3113),Ft=Object.defineProperty,pt=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,Pe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,et=(Le,be,ve)=>be in Le?Ft(Le,be,{enumerable:!0,configurable:!0,writable:!0,value:ve}):Le[be]=ve,gt=(Le,be)=>{for(var ve in be||(be={}))Te.call(be,ve)&&et(Le,ve,be[ve]);if(Pe)for(var ve of Pe(be))ze.call(be,ve)&&et(Le,ve,be[ve]);return Le},Re=(Le,be)=>pt(Le,Lt(be));const je={labelCol:{span:4},wrapperCol:{span:20}};var Ke=({callback:Le,onCancel:be})=>{function ve(st){Le(st)}return ne.createElement(me.default,Re(gt({},je),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:ve,style:{width:500}}),ne.createElement(me.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(xe.default,null)),ne.createElement(me.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(xe.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(We.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},vt=oe(1568),he=oe(56701),Ee=oe(43418),Ye=oe(95237),ut=oe(12963),Ze=oe(59301),tt=({callback:Le,onCancel:be})=>{const ve=document.createElement("canvas"),st=ve.getContext("2d");ve.width=1e3,ve.height=800,st.fillStyle="#ffffff",st.fillRect(0,0,ve.width,ve.height);const Nt=ve.toDataURL("image/png");return Ze.createElement(Ee.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ze.createElement(Ye.Z,{style:{height:"100vh"}},Ze.createElement(ut.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Nt,visible:!0,title:String(Date.now())},onOk:xt=>{Le({src:xt.url})},onClose:be})))},de=oe(12378);function Qe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Qe,go.CommandHandler),Qe.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},Qe.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var be=1/0;Le.selection.each(function(ve){ve instanceof go.Link||(be=Math.min(ve.position.x,be))}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(be,ve.position.y))}),Le.commitTransaction("aligning left")},Qe.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var be=-1/0;Le.selection.each(function(ve){if(!(ve instanceof go.Link)){var st=ve.actualBounds.x+ve.actualBounds.width;be=Math.max(st,be)}}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(be-ve.actualBounds.width,ve.position.y))}),Le.commitTransaction("aligning right")},Qe.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var be=1/0;Le.selection.each(function(ve){ve instanceof go.Link||(be=Math.min(ve.position.y,be))}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.position.x,be))}),Le.commitTransaction("alignTop")},Qe.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var be=-1/0;Le.selection.each(function(ve){if(!(ve instanceof go.Link)){var st=ve.actualBounds.y+ve.actualBounds.height;be=Math.max(st,be)}}),Le.selection.each(function(ve){ve instanceof go.Link||ve.move(new go.Point(ve.actualBounds.x,be-ve.actualBounds.height))}),Le.commitTransaction("aligning bottom")},Qe.prototype.alignCenterX=function(){var Le=this.diagram,be=Le.selection.first();if(be){Le.startTransaction("aligning Center X");var ve=be.actualBounds.x+be.actualBounds.width/2;Le.selection.each(function(st){st instanceof go.Link||st.move(new go.Point(ve-st.actualBounds.width/2,st.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},Qe.prototype.alignCenterY=function(){var Le=this.diagram,be=Le.selection.first();if(be){Le.startTransaction("aligning Center Y");var ve=be.actualBounds.y+be.actualBounds.height/2;Le.selection.each(function(st){st instanceof go.Link||st.move(new go.Point(st.actualBounds.x,ve-st.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},Qe.prototype.alignColumn=function(Le){var be=this.diagram;be.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var ve=new Array;be.selection.each(function(Zt){Zt instanceof go.Link||ve.push(Zt)});for(var st=0;st<ve.length-1;st++){var Nt=ve[st],xt=Nt.actualBounds.y+Nt.actualBounds.height+Le,ln=ve[st+1];ln.move(new go.Point(Nt.actualBounds.x,xt))}be.commitTransaction("align Column")},Qe.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var be=this.diagram;be.startTransaction("align Row");var ve=new Array;be.selection.each(function(Zt){Zt instanceof go.Link||ve.push(Zt)});for(var st=0;st<ve.length-1;st++){var Nt=ve[st],xt=Nt.actualBounds.x+Nt.actualBounds.width+Le,ln=ve[st+1];ln.move(new go.Point(xt,Nt.actualBounds.y))}be.commitTransaction("align Row")},Qe.prototype.canRotate=function(Le){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<1)},Qe.prototype.rotate=function(Le){Le===void 0&&(Le=90);var be=this.diagram;be.startTransaction("rotate "+Le.toString());var be=this.diagram;be.selection.each(function(ve){ve instanceof go.Link||ve instanceof go.Group||(ve.angle+=Le)}),be.commitTransaction("rotate "+Le.toString())},Qe.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var be=new go.Map;Le.selection.each(function(ve){be.set(ve.layer,0)}),be.iteratorKeys.each(function(ve){var st=0;ve.parts.each(function(Nt){if(!Nt.isSelected){var xt=Nt.zOrder;isNaN(xt)?Nt.zOrder=0:st=Math.max(st,xt)}}),be.set(ve,st)}),Le.selection.each(function(ve){Qe._assignZOrder(ve,be.get(ve.layer)+1)}),Le.commitTransaction("pullToFront")},Qe.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var be=new go.Map;Le.selection.each(function(ve){be.set(ve.layer,0)}),be.iteratorKeys.each(function(ve){var st=0;ve.parts.each(function(Nt){if(!Nt.isSelected){var xt=Nt.zOrder;isNaN(xt)?Nt.zOrder=0:st=Math.min(st,xt)}}),be.set(ve,st)}),Le.selection.each(function(ve){Qe._assignZOrder(ve,be.get(ve.layer)-1-Qe._findGroupDepth(ve))}),Le.commitTransaction("pushToBack")},Qe._assignZOrder=function(Le,be,ve){ve===void 0&&(ve=Le),Le.layer===ve.layer&&(Le.zOrder=be),Le instanceof go.Group&&Le.memberParts.each(function(st){Qe._assignZOrder(st,be+1,ve)})},Qe._findGroupDepth=function(Le){if(Le instanceof go.Group){var be=0;return Le.memberParts.each(function(ve){be=Math.max(be,Qe._findGroupDepth(ve))}),be+1}else return 0},Qe.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var be=Le.lastInput;if(be.key==="Up"||be.key==="Down"||be.key==="Left"||be.key==="Right"){var ve=this.arrowKeyBehavior;if(ve==="none")return;if(ve==="select"){this._arrowKeySelect();return}else if(ve==="move"){this._arrowKeyMove();return}else if(ve==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Qe.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(be){Le.push(be)}),this.diagram.parts.each(function(be){Le.push(be)}),Le},Qe.prototype._arrowKeyMove=function(){var Le=this.diagram,be=Le.lastInput,ve=0,st=0;if(be.control||be.meta)ve=1,st=1;else if(Le.grid!==null){var Nt=Le.grid.gridCellSize;st=Nt.width,ve=Nt.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(xt){be.key==="Up"?xt.move(new go.Point(xt.actualBounds.x,xt.actualBounds.y-ve)):be.key==="Down"?xt.move(new go.Point(xt.actualBounds.x,xt.actualBounds.y+ve)):be.key==="Left"?xt.move(new go.Point(xt.actualBounds.x-st,xt.actualBounds.y)):be.key==="Right"&&xt.move(new go.Point(xt.actualBounds.x+st,xt.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},Qe.prototype._arrowKeySelect=function(){var Le=this.diagram,be=Le.lastInput,ve=null;be.key==="Up"?ve=this._findNearestPartTowards(270):be.key==="Down"?ve=this._findNearestPartTowards(90):be.key==="Left"?ve=this._findNearestPartTowards(180):be.key==="Right"&&(ve=this._findNearestPartTowards(0)),ve!==null&&(be.shift?ve.isSelected=!0:be.control||be.meta?ve.isSelected=!ve.isSelected:Le.select(ve))},Qe.prototype._findNearestPartTowards=function(Le){var be=this.diagram.selection.first();if(be===null)return null;for(var ve=be.actualBounds.center,st=this._getAllParts(),Nt=1/0,xt=be,ln=0;ln<st.length;ln++){var Zt=st[ln];if(Zt!==be&&Zt.canSelect()){var en=Zt.actualBounds.center,Ln=ve.directionPoint(en),_n=this._angleCloseness(Ln,Le);if(_n<=45){var it=ve.distanceSquaredPoint(en);it*=1+Math.sin(_n*Math.PI/180),it<Nt&&(Nt=it,xt=Zt)}}}return xt},Qe.prototype._angleCloseness=function(Le,be){return Math.min(Math.abs(be-Le),Math.min(Math.abs(be+360-Le),Math.abs(be-360-Le)))},Qe.prototype._arrowKeyTree=function(){var Le=this.diagram,be=Le.selection.first();if(be instanceof go.Node){var ve=Le.lastInput;if(ve.key==="Right"){if(!be.isTreeLeaf)if(!be.isTreeExpanded)Le.commandHandler.canExpandTree(be)&&Le.commandHandler.expandTree(be);else{var st=this._sortTreeChildrenByY(be).first();st!==null&&Le.select(st)}}else if(ve.key==="Left")if(!be.isTreeLeaf&&be.isTreeExpanded)Le.commandHandler.canCollapseTree(be)&&Le.commandHandler.collapseTree(be);else{var Nt=be.findTreeParentNode();Nt!==null&&Le.select(Nt)}else if(ve.key==="Up"){var Nt=be.findTreeParentNode();if(Nt!==null){var xt=this._sortTreeChildrenByY(Nt),ln=xt.indexOf(be);if(ln>0){for(var Zt=xt.elt(ln-1);Zt!==null&&Zt.isTreeExpanded&&!Zt.isTreeLeaf;){var en=this._sortTreeChildrenByY(Zt);Zt=en.last()}Zt!==null&&Le.select(Zt)}else Le.select(Nt)}}else if(ve.key==="Down")if(be.isTreeExpanded&&!be.isTreeLeaf){var st=this._sortTreeChildrenByY(be).first();st!==null&&Le.select(st)}else for(;be!==null;){var Nt=be.findTreeParentNode();if(Nt===null)break;var xt=this._sortTreeChildrenByY(Nt),ln=xt.indexOf(be);if(ln<xt.length-1){Le.select(xt.elt(ln+1));break}else be=Nt}var Ln=Le.selection.first();Ln!==null&&Le.scrollToRect(Ln.actualBounds)}},Qe.prototype._sortTreeChildrenByY=function(Le){var be=new go.List().addAll(Le.findTreeChildrenNodes());return be.sort(function(ve,st){var Nt=ve.location,xt=st.location;return Nt.y<xt.y?-1:Nt.y>xt.y?1:Nt.x<xt.x?-1:Nt.x>xt.x?1:0}),be},Qe.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},Qe.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(Qe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(Qe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var St=Qe,It=oe(37404),yt=oe(43604),we=oe(70635),pe={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},fe=oe(59301),ke=(Le,be,ve)=>new Promise((st,Nt)=>{var xt=en=>{try{Zt(ve.next(en))}catch(Ln){Nt(Ln)}},ln=en=>{try{Zt(ve.throw(en))}catch(Ln){Nt(Ln)}},Zt=en=>en.done?st(en.value):Promise.resolve(en.value).then(xt,ln);Zt((ve=ve.apply(Le,be)).next())});function _e({onCancel:Le,callback:be}){let ve=(0,ne.useRef)(),st=(0,ne.useRef)(),Nt=(0,ne.useRef)(),xt=(0,ne.useRef)(!1);const ln=(0,ne.useRef)(!1),[Zt,en]=(0,ne.useState)(0);function Ln(){const it=de.bx.make,tn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};ve.current=new de.S0(st.current,{padding:20,grid:it(de.s_,"Grid",it(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),it(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ot=>{var ht=ot.diagram.commandHandler.addTopLevelParts(ot.diagram.selection,!0);ht||ot.diagram.currentTool.doCancel()},commandHandler:it(St),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ot=>{var ht=ot.subject;ht.location=ht.location.copy().snapToGridPoint(ot.diagram.grid.gridOrigin,ot.diagram.grid.gridCellSize),setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ot=>{var ht=ot.subject;setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()})},LinkRelinked:ot=>{var ht=ot.parameter.part;ht.invalidateConnectedLinks();var Mt=ot.subject;ot.diagram.toolManager.linkingTool.isForwards?Mt.toNode.invalidateConnectedLinks():Mt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),ve.current.nodeTemplate=it(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),it(de.bn,{name:"SHAPE",fill:tn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),it(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),it(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ve.current.nodeTemplate.toolTip=it("ToolTip",it(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},it(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),it(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Dn(ot,ht){var Mt=(ft,Yt)=>{ft.handled=!0,ft.diagram.model.commit(Qt=>{var Ht=Yt.part.adornedPart,Pn=new de.E9().setRectSpot(Ht.actualBounds,ot);Pn.subtract(Ht.location),Pn.scale(2,2),Pn.x+=Math.sign(Pn.x)*130,Pn.y+=Math.sign(Pn.y)*130,Pn.add(Ht.location),Pn.snapToGridPoint(ft.diagram.grid.gridOrigin,ft.diagram.grid.gridCellSize);var fn=Qt.copyNodeData(Ht.data);Qt.setGroupKeyForNodeData(fn,Qt.getGroupKeyForNodeData(Ht.data)),Qt.addNodeData(fn);var oa={from:Ht.key,to:Qt.getKeyForNodeData(fn)};Qt.addLinkData(oa);var Qn=ft.diagram.findNodeForData(fn);Qn.location=Pn,ft.diagram.select(Qn),setTimeout(()=>{ft.diagram.commandHandler.editTextBlock()},20)})};return it(de.bn,{figure:ht,alignment:ot,alignmentFocus:ot.opposite(),width:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?25:18,height:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:tn.white,strokeWidth:4,mouseEnter:(ft,Yt)=>Yt.fill="dodgerblue",mouseLeave:(ft,Yt)=>Yt.fill="orange",isActionable:!0,click:Mt,contextClick:Mt})}function Zn(ot){return it(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:(ht,Mt)=>Mt.fill="dodgerblue",mouseLeave:(ht,Mt)=>Mt.fill="orange",click:(ht,Mt)=>{ht.diagram.commandHandler.showContextMenu(Mt.part.adornedPart)}},ot||{})}ve.current.nodeTemplate.selectionAdornmentTemplate=it(de.uz,"Spot",it(de.Vm,{padding:10}),Dn(de.z6.Top,"TriangleUp"),Dn(de.z6.Left,"TriangleLeft"),Dn(de.z6.Right,"TriangleRight"),Dn(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Fn(ot,ht){return(Mt,ft)=>{Mt.handled=!0,Mt.diagram.model.commit(Yt=>{Yt.set(ft.part.adornedPart.data,ot,ht)})}}function ue(ot,ht){return ht||(ht="color"),it(de.bn,{width:16,height:16,stroke:"lightgray",fill:ot,margin:1,background:"transparent",mouseEnter:(Mt,ft)=>ft.stroke="dodgerblue",mouseLeave:(Mt,ft)=>ft.stroke="lightgray",click:Fn(ht,ot),contextClick:Fn(ht,ot)})}function Ne(){return[it("ContextMenuButton",it(de.s_,"Horizontal",ue(tn.white,"fill"),ue(tn.beige,"fill"),ue(tn.extralightblue,"fill"),ue(tn.extralightred,"fill"))),it("ContextMenuButton",it(de.s_,"Horizontal",ue(tn.lightgray,"fill"),ue(tn.lightgreen,"fill"),ue(tn.lightblue,"fill"),ue(tn.lightred,"fill")))]}function Ge(){return[it("ContextMenuButton",it(de.s_,"Horizontal",ue(tn.black),ue(tn.green),ue(tn.blue),ue(tn.red))),it("ContextMenuButton",it(de.s_,"Horizontal",ue(tn.white),ue(tn.magenta),ue(tn.purple),ue(tn.orange)))]}function Ue(ot,ht){return ht||(ht="thickness"),it(de.bn,"LineH",{width:16,height:16,strokeWidth:ot,margin:1,background:"transparent",mouseEnter:(Mt,ft)=>ft.background="dodgerblue",mouseLeave:(Mt,ft)=>ft.background="transparent",click:Fn(ht,ot),contextClick:Fn(ht,ot)})}function at(ot,ht){return ht||(ht="dash"),it(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ot,margin:1,background:"transparent",mouseEnter:(Mt,ft)=>ft.background="dodgerblue",mouseLeave:(Mt,ft)=>ft.background="transparent",click:Fn(ht,ot),contextClick:Fn(ht,ot)})}function rt(){return[it("ContextMenuButton",it(de.s_,"Horizontal",Ue(1),Ue(2),Ue(3),Ue(4))),it("ContextMenuButton",it(de.s_,"Horizontal",at(null),at([2,4]),at([4,4])))]}function qe(ot,ht){return ht||(ht="figure"),it(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ot,margin:1,background:"transparent",mouseEnter:(Mt,ft)=>ft.fill="dodgerblue",mouseLeave:(Mt,ft)=>ft.fill="lightgray",click:Fn(ht,ot),contextClick:Fn(ht,ot)})}ve.current.nodeTemplate.contextMenu=it("ContextMenu",it("ContextMenuButton",it(de.s_,"Horizontal",qe("Rectangle"),qe("RoundedRectangle"),qe("Ellipse"),qe("Diamond"))),it("ContextMenuButton",it(de.s_,"Horizontal",qe("Parallelogram2"),qe("ManualOperation"),qe("Procedure"),qe("Cylinder1"))),it("ContextMenuButton",it(de.s_,"Horizontal",qe("Terminator"),qe("CreateRequest"),qe("Document"),qe("TriangleDown"))),Ne(),Ge(),rt()),ve.current.groupTemplate=it(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ot,ht)=>{var Mt=ht.addMembers(ht.diagram.selection,!0);Mt||ht.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),it(de.s_,"Auto",{name:"BODY"},it(de.bn,{parameter1:10,fill:tn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),it(de.Vm,{background:"transparent",margin:20})),it(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"))),ve.current.groupTemplate.selectionAdornmentTemplate=it(de.uz,"Spot",it(de.s_,"Auto",it(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),it(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),ve.current.groupTemplate.contextMenu=it("ContextMenu",Ne(),Ge(),rt()),ve.current.linkTemplate=it(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",ot=>ot>=1?10:0),new de.KX("toShortLength","dir",ot=>ot>=1?10:0),new de.KX("points").makeTwoWay(),it(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),it(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",ot=>ot===1)),it(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",ot=>ot>=1),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),it(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",ot=>ot===2),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),it(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),ve.current.linkTemplate.selectionAdornmentTemplate=it(de.uz,it(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Xe(2)},new de.KX("pathPattern","thickness",Xe)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Xe(ot){return it(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ot+4).toString()+" H3"})}function Dt(ot){var ht="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ot===0?ht="M0 0 M16 16 M0 8 L16 8":ot===2&&(ht="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),it(de.bn,{geometryString:ht,margin:2,background:"transparent",mouseEnter:(Mt,ft)=>ft.background="dodgerblue",mouseLeave:(Mt,ft)=>ft.background="transparent",click:Fn("dir",ot),contextClick:Fn("dir",ot)})}function Tt(ot){var ht=(Mt,ft)=>{Mt.handled=!0,Mt.diagram.model.commit(Yt=>{var Qt=ft.part.adornedPart;Yt.set(Qt.data,ot?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(ot?Qt.toNode:Qt.fromNode).invalidateConnectedLinks()})};return it(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Mt,ft)=>ft.background="dodgerblue",mouseLeave:(Mt,ft)=>ft.background="transparent",click:ht,contextClick:ht})}function Ce(ot,ht){var Mt=0,ft=de.z6.RightSide;ot.equals(de.z6.Top)?(Mt=270,ft=de.z6.TopSide):ot.equals(de.z6.Left)?(Mt=180,ft=de.z6.LeftSide):ot.equals(de.z6.Bottom)&&(Mt=90,ft=de.z6.BottomSide),ht||(Mt-=180);var Yt=(Qt,Ht)=>{Qt.handled=!0,Qt.diagram.model.commit(Pn=>{var fn=Ht.part.adornedPart;Pn.set(fn.data,ht?"toSpot":"fromSpot",de.z6.stringify(ft)),(ht?fn.toNode:fn.fromNode).invalidateConnectedLinks()})};return it(de.bn,{alignment:ot,alignmentFocus:ot.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Mt,background:"transparent",mouseEnter:(Qt,Ht)=>Ht.background="dodgerblue",mouseLeave:(Qt,Ht)=>Ht.background="transparent",click:Yt,contextClick:Yt})}ve.current.linkTemplate.contextMenu=it("ContextMenu",Ge(),rt(),it("ContextMenuButton",it(de.s_,"Horizontal",Dt(0),Dt(1),Dt(2))),it("ContextMenuButton",it(de.s_,"Horizontal",it(de.s_,"Spot",Tt(!1),Ce(de.z6.Top,!1),Ce(de.z6.Left,!1),Ce(de.z6.Right,!1),Ce(de.z6.Bottom,!1)),it(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Tt(!0),Ce(de.z6.Top,!0),Ce(de.z6.Left,!0),Ce(de.z6.Right,!0),Ce(de.z6.Bottom,!0)))));const rn=`{ "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 an=["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 pn(ot){return console.log("shapeName:",ot),an.indexOf(ot)>=0}var En=new de.YI(Nt.current,{maxSelectionCount:1,linkTemplate:it(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:it(de.uz,"Link",{locationSpot:de.z6.Center},it(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),it(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),it(de.bn,{isPanelMain:!0,strokeWidth:2}),it(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(ot=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ot.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return ve.current.addDiagramListener("TextEdited",function(ot){var ht;const Mt=ot.subject.part;var ft=(ht=document.activeElement)==null?void 0:ht.value;typeof ft=="string"&&ft.trim()===""&&ve.current.model.commit(function(Yt){Yt.set(Mt.data,"text","\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}),En.nodeTemplate=it(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),it(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")),it(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(()=>{ve.current.grid=it(de.s_,"Grid",it(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),it(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),ve.current.grid.visible=!0,ve.current.grid.gridCellStroke="darkgray",ve.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=ve.current,ve.current}const _n=()=>ke(this,null,function*(){var it=ve.current.makeImage();const tn=yield(0,we.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:it.src}});be({src:tn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{Ln()},500),en(Zt+1),()=>{ve.current=null}),[]),fe.createElement("div",{ref:ln,className:xt.current?`${pe.maxH60} body-overflow-initial`:"body-overflow-initial"},fe.createElement(Ee.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Zt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:fe.createElement(Ye.Z,null,fe.createElement(yt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),fe.createElement(yt.Z,{onClick:()=>{var it,tn,Dn=ve.current.selection.first();if(xt.current=!xt.current,document.activeElement&&Dn){let Zn=(tn=(it=document.activeElement)==null?void 0:it.value)==null?void 0:tn.trim();typeof Zn=="string"&&ve.current.model.commit(function(Fn){Fn.set(Dn.data,"text",Zn||"\u672A\u547D\u540D"),ve.current.commandHandler.stopCommand()},"increment")}en(Zt+1)}},fe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},fe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:pe.flowChartWrp},fe.createElement("div",{style:{display:"flex",height:"100%"}},fe.createElement("div",{style:{width:"300px",height:"100%"}},fe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),fe.createElement("div",{style:{height:"calc(100% - 50px)"},className:pe.myPaletteDiv,ref:Nt})),fe.createElement("div",{style:{flex:1,position:"relative"}},fe.createElement("div",{ref:st,style:{height:"80vh"}}))),fe.createElement("div",{className:"tr"},fe.createElement(We.ZP,{size:"large",onClick:_n,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var lt=_e,Ot=oe(5112),Ct=oe(88897);const At=Ot.ZP.Group,jt={margin:"0 8px"};var Bt=({callback:Le,onCancel:be})=>{function ve(st){Le(st)}return ne.createElement(me.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:ve},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:jt},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:jt},"\u884C\u6570"),ne.createElement(me.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(Ct.Z,null)),ne.createElement("span",{style:jt},"\u5217\u6570"),ne.createElement(me.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(Ct.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:jt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(me.default.Item,{name:"align"},ne.createElement(At,null,ne.createElement(Ot.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(Ot.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(Ot.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(Ot.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(We.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(We.ZP,{type:"ghost",onClick:be},"\u53D6\u6D88")))},bt=oe(78673),Et=oe(98598),Wt=oe.n(Et),qt=(0,ne.forwardRef)(({use3d:Le,width:be,height:ve,callback:st,showSaveButton:Nt},xt)=>{const ln=(0,ne.useRef)(),Zt=(0,ne.useRef)(),[en,Ln]=(0,ne.useState)(!1),_n=(0,ne.useRef)({id:ln,appName:"graphing",width:be||1e3,height:ve||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)(()=>{Zt.current=new(Wt())(_n.current,!0),window.onload=function(){Zt.current.inject("applet_container")}},[]);const it=()=>{var tn=window.ggbApplet.getPNGBase64(1,!0,72);return st&&st(tn),tn};return(0,ne.useEffect)(()=>{_n.current.appName=en?"3D":"graphing",Zt.current.inject("applet_container")},[en]),(0,ne.useEffect)(()=>{Ln(Le)},[Le]),(0,ne.useImperativeHandle)(xt,()=>({getImgData:it})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ln}),ne.createElement(Ye.Z,{align:"middle"},ne.createElement(yt.Z,{flex:1},ne.createElement(bt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:en,onChange:tn=>Ln(tn)})),ne.createElement(yt.Z,null,ne.createElement(We.ZP,{size:"large",onClick:it,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ut=oe(75890),ye=oe(1012),Be=oe(8591);const Je="link",mt="upload-image",Pt="add-flowchart",Rt="draw-image",kt="add-flowchart",Gt="code-block",_t="add-table",Jt="------------",Kt={default:Jt,left:`:${Jt}`,center:`:${Jt}:`,right:`${Jt}:`};var nn=oe(91300),hn=(Le,be,ve)=>new Promise((st,Nt)=>{var xt=en=>{try{Zt(ve.next(en))}catch(Ln){Nt(Ln)}},ln=en=>{try{Zt(ve.throw(en))}catch(Ln){Nt(Ln)}},Zt=en=>en.done?st(en.value):Promise.resolve(en.value).then(xt,ln);Zt((ve=ve.apply(Le,be)).next())});function vn(){}let wn=0;const dn=1e4,on="\u2581",yn="@\u2581\u2581@",Cn="@\u2581@",Bn=`
**\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`,cn=["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 zn(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},na={[Je]:"\u6DFB\u52A0\u94FE\u63A5",[Gt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mt]:"\u6DFB\u52A0\u56FE\u7247",[Rt]:"\u6DFB\u52A0\u753B\u56FE",[Pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[_t]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:Le="",onChange:be,width:ve="100%",height:st=400,miniToolbar:Nt=!1,isFocus:xt=!1,watch:ln,insertTemp:Zt,mode:en="markdown",id:Ln="markdown-editor-id",showResizeBar:_n=!1,noStorage:it=!1,showNullButton:tn=!1,showNullProgramButton:Dn=!1,hidetoolBar:Zn=!1,fullScreen:Fn=!1,onBlur:ue,onCMBeforeChange:Ne,onFullScreen:Ge,className:Ue="",disablePaste:at=!1,disabled:rt=!1,disabledFill:qe=!1,placeholder:Xe="",values:Dt="",extraUse:Tt})=>{const[Ce,rn]=(0,ne.useState)(null),[an,pn]=(0,ne.useState)(Le),[En,ot]=(0,ne.useState)(ln),[ht,Mt]=(0,ne.useState)(Fn),[ft,Yt]=(0,ne.useState)(""),[Qt,Ht]=(0,ne.useState)(0),[Pn,fn]=(0,ne.useState)(st),[oa,Qn]=(0,ne.useState)(!1),qn=(0,ne.useRef)((0,ye.Z)()),ca=(0,ne.useRef)(!1),Sa=(0,ne.useRef)(),[Pa,da]=(0,ne.useState)(0),[Kn,xn]=(0,ne.useState)(0),ta=(0,ne.useRef)(),ga=(0,ne.useRef)(),ia=(0,ne.useRef)(),aa=(0,ne.useRef)(),ea=()=>hn(void 0,null,function*(){var zt;const ct=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(zt=ct==null?void 0:ct.attachments)!=null&&zt.length&&(console.log("cm:",Ce,ta),ct.attachments.map(wt=>{wt.content_type.indexOf("image")>-1?Ce.replaceSelection(`![,](/api/attachments/${wt.id}?type=${wt.content_type})`):wt.content_type.indexOf("video")>-1?Ce.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):wt.content_type.indexOf("pdf")>-1?Ce.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${wt.id}?type=${wt.content_type}&disposition=inline" target="_blank">${wt.name}</a>`):Ce.replaceSelection(`[${wt.name}](${ENV.API_SERVER}/api/attachments/${wt.id}?type=${wt.content_type})`)}))});(0,ne.useEffect)(()=>{const zt=window.scrollY||window.pageYOffset;pn(Dt),Ce==null||Ce.setValue(Dt),window.scrollTo(0,zt)},[Dt]),(0,ne.useEffect)(()=>{Ge==null||Ge(ht)},[ht]),(0,ne.useEffect)(()=>{if(ta.current){let zt=function(wt,$t){var un;if(at){$t.preventDefault();return}const Gn=$t.clipboardData;if(Gn){const Rn=Gn.types.toString(),An=Gn.items;if(Rn==="Files"||Gn.types.indexOf("Files")>-1){if($t.preventDefault(),en=="stex")return;try{let jn=An[1];((un=An[0])==null?void 0:un.kind)==="file"&&(jn=An[0]);const kn=jn.getAsFile(),sa=kn.name.split(".").pop();(0,he.I)(kn,Vn=>{var Vt,sn,bn;Vn.id?((Vt=kn==null?void 0:kn.type)==null?void 0:Vt.indexOf("image"))>-1?ct.replaceSelection(`![,](/api/attachments/${Vn.id}?type=${Vn.content_type})`):((sn=kn==null?void 0:kn.type)==null?void 0:sn.indexOf("video"))>-1?ct.replaceSelection(`<video width="100%" controls src="/api/attachments/${Vn.id}"></video>`):((bn=kn==null?void 0:kn.type)==null?void 0:bn.indexOf("pdf"))>-1?ct.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):cn.includes(sa)?ct.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):ct.replaceSelection(`[${kn.name}](/api/attachments/${Vn.id}?type=${Vn.content_type})`):(Vn==null?void 0:Vn.status)===401&&(Be.ZP.warning((Vn==null?void 0:Vn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ct=Ve().fromTextArea(ta.current,{mode:en,lineNumbers:!Nt,lineWrapping:!0,value:Le,autoCloseTags:!Dn,autoCloseBrackets:!0});return ct.on("keyup",function(wt,$t){$t.keyCode===8&&(wt.getValue()==""?ct.setOption("placeholder",Xe):ct.setOption("placeholder",null))}),ct.on("keydown",function(wt,$t){if($t.keyCode===8){var un=Xt(wt);un&&$t.preventDefault()}}),xt&&ct.focus(),ct.on("paste",zt),ct.on("dragleave",function(wt,$t){ga.current.classList.remove("mouse-hover-md")}),rt&&ct.on("beforeChange",function(wt,$t){($t.origin==="paste"||$t.origin==="+input")&&$t.cancel()}),rn(ct),()=>{ct.off("paste",zt)}}},[]);const fa=(0,ne.useCallback)(()=>{if(ga.current)try{}catch(zt){console.log(zt,"---- to set md editor body height")}},[Pn,ga,ht]);(0,ne.useEffect)(()=>{function zt(){let ct=new Ie.Z(wt=>{for(let $t of wt)($t.target.offsetHeight>0||$t.target.offsetWidth>0)&&(fa(),Ce.setSize("100%","100%"),Ce.refresh())});return ct.observe(ta.current.parentElement),ct}if(Ce){const ct=zt();return()=>{var wt,$t;(wt=ta.current)!=null&&wt.parentElement&&ct.unobserve(($t=ta.current)==null?void 0:$t.parentElement)}}},[Ce,fa]),(0,ne.useEffect)(()=>{if(Ce){let zt=[];for(const[ct,wt]of Object.entries(Wn)){let $t={[ct]:()=>{$n(wt)}};zt.push($t),Ce.addKeyMap($t)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let ct of zt)Ce.removeKeyMap(ct)}}},[Ce]),(0,ne.useEffect)(()=>{Fn!==ht&&Mt(Fn)},[Fn]),(0,nn.Z)(()=>{if(!it&&Qt>0){let zt=new Date().getTime(),ct=window.sessionStorage.getItem(Ln);zt>=Qt+dn&&(!ct||ct!==an)&&(window.sessionStorage.setItem(Ln,an),Qn(!0))}},dn),(0,ne.useEffect)(()=>{ot(ln)},[Ce,ln]),(0,ne.useEffect)(()=>{Ce&&xt&&Ce.focus()},[Ce,xt]),(0,ne.useEffect)(()=>{if(En&&Ce){let zt=function(wt){let $t=wt.target;if(aa.current){let un=$t.scrollTop/$t.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*un}};const ct=Ce.getScrollerElement();return ct.addEventListener("scroll",zt),()=>{ct.removeEventListener("scroll",zt)}}},[Ce,En]),(0,ne.useEffect)(()=>{if(Ce&&Ne){let zt=function(ct,wt){Ne(ct,wt)};return Ce.on("beforeChange",zt),()=>{Ce.off("beforeChange",zt)}}},[Ce,Ne]),(0,ne.useEffect)(()=>{if(Ce&&ue){let zt=function(){ue(Ce.getValue())};return Ce.on("blur",zt),()=>{Ce.off("blur",zt)}}},[Ce,ue]);function Xt(zt,ct){var wt=zt.getDoc(),$t=wt.getCursor(),un=wt.getLine($t.line),Gn=un.charAt($t.ch-1),Rn=un.lastIndexOf("@\u2581@",$t.ch),An=un.lastIndexOf("@\u2581\u2581@",$t.ch),jn=Rn>An?Rn:An,kn=Rn>An?3:4;if(yn.indexOf(Gn)===-1)return null;if(console.log("change1:",ct,zt,un,$t,jn,Rn,An,Gn),jn>=0&&$t.ch-jn<5){var sa=jn+kn;return wt.replaceRange("",{line:$t.line,ch:jn},{line:$t.line,ch:sa}),{line:$t.line,ch:sa}}return null}(0,ne.useEffect)(()=>{if(Ce){let zt=function(ct,wt){const $t=ct.getValue();pn($t),Ht(new Date().getTime()),ct.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),be&&(Dn?be($t,On($t)):be($t))};return Ce.on("change",zt),()=>{Ce.off("change",zt)}}},[Ce,be]),(0,ne.useEffect)(()=>{if(Ce)if(Le==null)Ce.setValue(""),pn("");else{const zt=window.scrollY||window.pageYOffset;Le!==Ce.getValue()&&(Ce.setValue(Le),pn(Le),Ce.setCursor(rt?1:Ce.lineCount(),0),window.scrollTo(0,zt))}},[Ce,Le]);const $n=(0,ne.useCallback)(zt=>{const ct=Ce.getCursor(),wt=Ce.getSelection();let $t=wt.split(`
`);switch(zt){case"bold":return Ce.replaceSelection("**"+wt+"**"),wt===""&&Ce.setCursor(ct.line,ct.ch+2),Ce.focus();case"italic":return Ce.replaceSelection("*"+wt+"*"),wt===""&&Ce.setCursor(ct.line,ct.ch+1),Ce.focus();case"code":return Ce.replaceSelection("`"+wt+"`"),wt===""&&Ce.setCursor(ct.line,ct.ch+1),Ce.focus();case"inline-latex":return Yt("inline-latex"),Ce.focus();case"latex":return Ce.replaceSelection("```latex\n"+wt+"\n```"),Ce.setCursor(ct.line+1,wt.length+1),Ce.focus();case"line-break":return Ce.replaceSelection(`<br/>
`),Ce.focus();case"list-ul":return wt===""?Ce.replaceSelection("- "+wt):Ce.replaceSelection($t.map(un=>un===""?"":`- ${un}`).join(`
`)),Ce.focus();case"list-ol":return wt===""?Ce.replaceSelection("1. "+wt):Ce.replaceSelection($t.map((un,Gn)=>un===""?"":`${Gn+1}. ${un}`).join(`
`)),Ce.focus();case"add-null-ch":return wt===""&&Ce.setCursor(ct.line,ct.ch),Ce.replaceSelection(on),Ce.focus();case"add-signal":return wt===""&&Ce.setCursor(ct.line,ct.ch),Ce.replaceSelection(Cn),Ce.focus();case"add-multiple":return wt===""&&Ce.setCursor(ct.line,ct.ch),Ce.replaceSelection(yn),Ce.focus();case"inster-template-1":return wt===""&&Ce.setCursor(ct.line,ct.ch),Ce.replaceSelection(Bn),Ce.focus();case"eraser":return Ce.setValue(""),Ce.focus();case"trigger-watch":return ot(!En),Ce.focus();case"trigger-full-screen":return Mt(!ht),Ce.focus();case Je:Yt(Je);return;case Gt:Yt(Gt);return;case mt:Yt(mt);return;case Rt:Yt(Rt);return;case"maths-latex":Yt("maths-latex");return;case Pt:Yt(Pt);return;case _t:Yt(_t);return;default:throw new Error}},[Ce,En,ht]),In=(0,ne.useCallback)((zt,ct)=>{var wt,$t,un,Gn,Rn,An;switch(Yt(""),ft){case Je:const{title:Vt,link:sn}=zt;return Ce.replaceSelection(`[${Vt}](${sn})`),Ce.focus();case Gt:const{language:bn,content:gn}=zt;return Ce.replaceSelection(["```"+bn,gn,"```"].join(`
`)),Ce.focus();case"maths-latex":for(var jn=atob(zt),kn=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)kn[sa]=jn.charCodeAt(sa);var Vn=new Blob([kn],{type:"image/png"});(0,he.I)(Vn,ma=>{ma.id?Ce.replaceSelection(`![,](/api/attachments/${ma.id}?type=${ma.content_type})`):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ce.replaceSelection("`$$"+zt+"$$`");break;case mt:case Rt:case kt:const{src:Sn,alt:Hn}=zt,Tn=ct,ha=(un=($t=(wt=Tn==null?void 0:Tn.name)==null?void 0:wt.split("."))==null?void 0:$t.pop)==null?void 0:un.call($t);return((Gn=Tn==null?void 0:Tn.type)==null?void 0:Gn.indexOf("image"))>-1||!(Tn!=null&&Tn.type)?Hn?Ce.replaceSelection(`![ ${Hn} ]( ${Sn} "${Hn}" )`):Ce.replaceSelection(`![,](${Sn})`):((Rn=Tn==null?void 0:Tn.type)==null?void 0:Rn.indexOf("video"))>-1?Ce.replaceSelection(`<video width="100%" controls src="${Sn}"></video>`):((An=Tn==null?void 0:Tn.type)==null?void 0:An.indexOf("pdf"))>-1?Ce.replaceSelection(`<a href="${Sn}?type=${Tn.type}&disposition=inline" target="_blank">${Tn.name}</a>`):cn.includes(ha)?Ce.replaceSelection(`<a href="${Sn}?type=office&disposition=inline" target="_blank">${Tn.name}</a>`):Ce.replaceSelection(`[${Tn.name}](${Sn})`),Ce.focus();case _t:const{row:ua,col:wa,align:xa}=zt;let Fa=`
`;for(let ma=0;ma<ua;ma++){let Ea=[],Ca=[];for(let Ba=0;Ba<wa;Ba++)ma===1&&Ca.push(Kt[xa]),Ea.push(" ");ma===1&&(Fa+=`| ${Ca.join(" | ")} |
`),Fa+=`| ${Ea.join(wa===1?"":" | ")} |
`}return Ce.replaceSelection(Fa+`
`),Ce.focus();default:throw new Error}},[Ce,ft]),Un=(0,ne.useMemo)(()=>{switch(ft){case Je:return ne.createElement(Ke,{callback:In,onCancel:Xn});case Gt:return ne.createElement(vt.Z,{callback:In,onCancel:Xn});case mt:return ne.createElement(he.Z,{callback:In,onCancel:Xn});case Pt:return ne.createElement(lt,{callback:In,onCancel:Xn});case _t:return ne.createElement(Bt,{callback:In,onCancel:Xn});case"maths-latex":return ne.createElement(qt,{showSaveButton:!0,callback:In});case"inline-latex":return ne.createElement(Ut.Z,{showSaveButton:!0,callback:In});default:return null}},[ft]);function Xn(){Yt("")}(0,ne.useEffect)(()=>{if(ia.current){let zt=function(Rn){un=!0,Gn=Rn.pageY},ct=function(){un=!1},wt=function(Rn){if(un){let An=Rn.pageY-Gn;An<0&&(An=0),An>300&&(An=300);let jn=st+An+"px";fn(jn)}},$t=ia.current,un=!1,Gn=0;return $t.addEventListener("mousedown",zt),document.addEventListener("mousemove",wt),document.addEventListener("mouseup",ct),()=>{$t.removeEventListener("mousedown",zt),document.removeEventListener("mousemove",wt),document.removeEventListener("mouseup",ct)}}},[Ce,ia]),(0,ne.useEffect)(()=>{fn(st)},[st]);const ra=zn(ve),va=zn(Pn),pa={width:ra,height:va},Mn=(0,ne.useMemo)(()=>{if(Qt){let zt=new Date(Qt),ct=zt.getHours(),wt=zt.getMinutes(),$t=zt.getSeconds();return ct=ct<10?"0"+ct:ct,wt=wt<10?"0"+wt:wt,$t=$t<10?"0"+$t:$t,`${ct}:${wt}:${$t}`}return 0},[Qt]),On=zt=>{const ct=[];if(Dn){let wt=-1;zt=zt.replace(/(@▁▁@|@▁@)/g,function($t,un,Gn){ct.push({multiLine:$t!==Cn})})}return ct};function la(){window.sessionStorage.removeItem(Ln),Qn(!1),Ht(0)}function ya(){Qn(!1),Ht(0),Ce.setValue(window.sessionStorage.getItem(Ln))}(0,ne.useEffect)(()=>{na[ft]&&ft!==Rt&&ft!==Pt&&setTimeout(()=>{const zt=document.getElementsByClassName("markdown-popup-form")[0],ct=window.innerWidth/2-zt.offsetWidth/2,wt=window.innerHeight/2-zt.offsetHeight/2;da(ct),xn(wt)},0)},[ft]);const La=zt=>{zt.preventDefault();const ct=zt.clientX-Pa,wt=zt.clientY-Kn;document.body.onmousemove=$t=>{let un=$t.clientX-ct,Gn=$t.clientY-wt;const Rn=document.getElementsByClassName("markdown-popup-form")[0],An=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;un=Math.max(0,Math.min(un,An)),Gn=Math.max(0,Math.min(Gn,jn)),ba($t.clientX,$t.clientY,ct,wt)&&(da(un),xn(Gn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(zt,ct,wt,$t)=>{const un=document.body.clientHeight,Gn=document.body.clientWidth;return zt<20&&wt>zt||zt>Gn-20&&wt<zt||ct<20&&$t>ct||ct>un-20&&$t<ct?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:ga},ne.createElement("div",{className:`markdown-editor-container ${Ue} ${En?"on-preview":""} ${Nt?"mini":""} ${ht?"full-screen":""}`,style:pa},ne.createElement(ie,{insertTemp:Zt,watch:En,fullScreen:ht,showNullButton:tn,showNullProgramButton:Dn,onActionCallback:$n,hidetoolBar:Zn,extraUse:Tt}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:ta,placeholder:Xe})),En?ne.createElement("div",{ref:aa,className:"preview-container"},en==="stex"&&ne.createElement(He,{value:an}),en!=="stex"&&ne.createElement(nt.Z,{disabledFill:qe,showProgramFill:Dn,value:an})):null))),_n?ne.createElement("a",{ref:ia,className:"editor-resize"}):null,ft===Rt&&ne.createElement(tt,{callback:In,onCancel:Xn}),ft===Pt&&ne.createElement(lt,{callback:In,onCancel:Xn}),ne.createElement(se.Z,null,na[ft]&&ft!==Rt&&ft!==Pt?ne.createElement(Ee.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Kn},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[ft]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:ft===Pt?"1200px":null,height:ft===Pt?"80vh":null,className:"markdown-popup-form"},Un):null))}},56701:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return ee},I:function(){return re}});var ne=oe(78241),Se=oe(8591),Ve=oe(92832),Ie=oe(3113),ce=oe(58788),Fe=oe(59301),le=oe(2119),$e=oe(59301),Me=Object.defineProperty,De=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,He=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ge,ie,se)=>ie in ge?Me(ge,ie,{enumerable:!0,configurable:!0,writable:!0,value:se}):ge[ie]=se,y=(ge,ie)=>{for(var se in ie||(ie={}))Ae.call(ie,se)&&a(ge,se,ie[se]);if(He)for(var se of He(ie))ae.call(ie,se)&&a(ge,se,ie[se]);return ge},E=(ge,ie)=>De(ge,nt(ie));const{useForm:b}=ne.default,x={width:280,marginRight:10},z={labelCol:{span:5},wrapperCol:{span:19}};var ee=({callback:ge,onCancel:ie})=>{const[se]=b();let me=(0,Fe.useRef)();function xe(pt){ge(pt,me.current)}function We(pt,Lt){if(pt.status===-1){Se.ZP.error(pt.message);return}se.setFieldsValue({src:`/api/attachments/${pt.id}`,type:Lt.type})}function Ft(pt){let Lt=pt.target.files[0];me.current=Lt,re(Lt,We)}return $e.createElement(ne.default,E(y({form:se},z),{className:"upload-image-panel",onFinish:xe,style:{width:470,overflow:"hidden"}}),$e.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},$e.createElement("div",{className:"flex-container"},$e.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},$e.createElement(Ve.default,{style:x})),$e.createElement(te,{onFileChange:Ft}))),$e.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},$e.createElement(Ve.default,{style:{width:264}})),$e.createElement(ne.default.Item,{style:{textAlign:"right"}},$e.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),$e.createElement(Ie.ZP,{type:"default",onClick:ie},"\u53D6\u6D88")))};function te({onFileChange:ge}){return $e.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",$e.createElement("input",{type:"file",onChange:ge}))}function re(ge,ie){if(!ge)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,le.bg)())throw Se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let se=new FormData;se.append("editormd-image-file",ge),se.append("file_param_name","editormd-image-file"),se.append("byxhr","true");var me=new window.XMLHttpRequest;me.withCredentials=!0,me.addEventListener("load",function(xe){ie(JSON.parse(xe.target.responseText),ge)},!1),me.addEventListener("error",function(xe){console.error(xe)},!1),me.open("POST",`${ce.KI}/api/attachments.json`),me.send(se)}},50474:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ve}});var ne=oe(59301),Se=oe(4676);class Ve extends ne.Component{constructor(ce){super(ce);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Se.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},91300:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(Ve,Ie){const ce=(0,ne.useRef)();(0,ne.useEffect)(()=>{ce.current=Ve}),(0,ne.useEffect)(()=>{function Fe(){ce.current()}if(Ie!==null){let le=setInterval(Fe,Ie);return()=>clearInterval(le)}},[Ie])}},53332:function(Oe,dt,oe){"use strict";oe.r(dt),oe.d(dt,{default:function(){return Ft}});var ne=oe(59301),Se=oe(42203),Ve=oe(78241),Ie=oe(8591),ce=oe(66104),Fe=oe(92832),le=oe(95237),$e=oe(43604),Me=oe(88897),De=oe(24905),nt=oe(3113),He=oe(58130),Ae=oe(23469),ae=oe(32583),a={bg:"bg___wrwMu",flexRow:"flexRow___tXDGx",flexJustifyCenter:"flexJustifyCenter___FJrBL",flexAlignEnd:"flexAlignEnd___Y_tEj",flexAlignCenter:"flexAlignCenter___KQIWk",flexColumn:"flexColumn___bt5NB",formWrap:"formWrap___zb3yW",titleWrap:"titleWrap___Tqypo",fieldWrap:"fieldWrap___LZQ8o",mdWrap:"mdWrap___oYoPg",backgroundFa:"backgroundFa___ilebm",button:"button___JhLyG"},y=oe(57203),E=oe(10437),b=oe(70635),x=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,te=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ie=(pt,Lt,Pe)=>Lt in pt?x(pt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):pt[Lt]=Pe,se=(pt,Lt)=>{for(var Pe in Lt||(Lt={}))re.call(Lt,Pe)&&ie(pt,Pe,Lt[Pe]);if(te)for(var Pe of te(Lt))ge.call(Lt,Pe)&&ie(pt,Pe,Lt[Pe]);return pt},me=(pt,Lt)=>z(pt,ee(Lt)),xe=(pt,Lt,Pe)=>new Promise((Te,ze)=>{var et=je=>{try{Re(Pe.next(je))}catch(Ke){ze(Ke)}},gt=je=>{try{Re(Pe.throw(je))}catch(Ke){ze(Ke)}},Re=je=>je.done?Te(je.value):Promise.resolve(je.value).then(et,gt);Re((Pe=Pe.apply(pt,Lt)).next())});const We=({shixunHomeworks:pt,newCourse:Lt,globalSetting:Pe,loading:Te,user:ze,dispatch:et})=>{var gt,Re,je,Ke;const vt=(0,Se.useParams)(),[he]=Ve.default.useForm(),[Ee,Ye]=(0,ne.useState)({}),ut=(0,ne.useRef)(),{commonHomeWorkAddDefaultData:Ze}=pt;let[tt,de]=(0,ne.useState)({});(0,ne.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:It,categoryId:yt}=vt;et({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:yt,coursesId:It,type:3}})},[]);const Qe=It=>xe(void 0,null,function*(){var yt,we;if(Ee.min_num>Ee.max_num){Ie.ZP.info("\u6700\u5927\u4EBA\u6570\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u4EBA\u6570");return}const pe=se({},Ee);pe.attachment_ids&&(pe.attachment_ids=(yt=pe==null?void 0:pe.attachment_ids)==null?void 0:yt.map(lt=>lt.response.id)),pe.reference_attachment_ids&&(pe.reference_attachment_ids=(we=pe==null?void 0:pe.reference_attachment_ids)==null?void 0:we.map(lt=>lt.response.id));const{coursesId:fe,categoryId:ke}=vt,_e=yield(0,ae.H1)(me(se({coursesId:fe,category:ke},pe),{type:3}));_e.status===0&&(St(_e.homework_id),(0,He.L9)(["\u6559\u5B66\u8BFE\u5802","\u5206\u7EC4\u4F5C\u4E1A","\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"]),Se.history.push(`/classrooms/${fe}/group_homework/${_e.homework_id}/detail`))});function St(It){return xe(this,null,function*(){if(!(tt!=null&&tt.ec_point_ids))return;let yt=yield(0,b.ZP)(`/api/ec_courses/${tt==null?void 0:tt.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:se({homework_common_id:It},tt)})})}return ne.createElement("section",{className:a.bg},Ze.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},Ze.category&&ne.createElement(ce.Z,{separator:">"},ne.createElement(ce.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Ze.course_id}/group_homework`},Ze.course_name)),ne.createElement(ce.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Ze.course_id}/group_homework`},Ze.category.category_name)),ne.createElement(ce.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"),ne.createElement(Ve.default,{form:he,className:a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{Ye(se({},he.getFieldsValue()))},initialValues:{base_on_project:!1},onFinish:Qe},ne.createElement("div",{className:a.fieldWrap},ne.createElement(Ve.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(Fe.default,{maxLength:60,suffix:`${((gt=Ee.name)==null?void 0:gt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:a.mdWrap},ne.createElement(Ve.default.Item,{name:"description",label:"\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ne.createElement(Ae.Z,{watch:!0,defaultValue:Ee.intro})),ne.createElement("div",null,ne.createElement(Ve.default.Item,{name:"attachment_ids"},ne.createElement(y.Z,null))),ne.createElement(le.Z,{gutter:[20,20]},ne.createElement($e.Z,{flex:"230px"},ne.createElement(Ve.default.Item,{name:"min_num",label:"\u5206\u7EC4\u8BBE\u7F6E",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},ne.createElement(Me.Z,{style:{width:200},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),ne.createElement($e.Z,{flex:"230px"},ne.createElement(Ve.default.Item,{name:"max_num",label:ne.createElement("div",null,"\xA0"),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},ne.createElement(Me.Z,{style:{width:200},max:100,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),ne.createElement($e.Z,null,ne.createElement("div",{className:"mt30"},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),ne.createElement(le.Z,{style:{display:(Re=Pe==null?void 0:Pe.setting)!=null&&Re.hide_project?"none":""}},ne.createElement($e.Z,null,ne.createElement(Ve.default.Item,{name:"base_on_project",valuePropName:"checked"},ne.createElement(De.default,{value:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),ne.createElement("span",{className:"c-light-black"},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),ne.createElement("div",{className:a.mdWrap},ne.createElement(Ve.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(Ae.Z,{watch:!0,defaultValue:Ee.notice})),ne.createElement("div",null,ne.createElement(Ve.default.Item,{name:"reference_attachment_ids"},ne.createElement(y.Z,null))))),ne.createElement("div",{className:a.mdWrap,style:{display:(je=Pe==null?void 0:Pe.setting)!=null&&je.hide_ec?"none":(Ke=ze.userInfo.course)!=null&&Ke.is_openengineering?"":"none"}},ne.createElement(E.Z,{setitem:It=>de(se({},It))})),ne.createElement("div",{className:a.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Ve.default.Item,null,ne.createElement(nt.ZP,{size:"middle",type:"primary",onClick:()=>{he.submit()},className:`${a.button} mr20`,htmlType:"submit",loading:Te["newCourse/editCourse"]||Te["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(nt.ZP,{size:"middle",type:"primary",ghost:!0,className:a.button,onClick:()=>Se.history.push(`/classrooms/${vt.coursesId}/group_homework`)},"\u53D6\u6D88")))))};var Ft=(0,Se.connect)(({shixunHomeworks:pt,newCourse:Lt,loading:Pe,user:Te,globalSetting:ze})=>({shixunHomeworks:pt,newCourse:Lt,globalSetting:ze,user:Te,loading:Pe.effects}))(We)},76904:function(Oe,dt,oe){"use strict";oe.d(dt,{$J:function(){return Ve},JZ:function(){return ce},bN:function(){return le},jP:function(){return Fe},rO:function(){return Ie}});var ne=oe(70635),Se=($e,Me,De)=>new Promise((nt,He)=>{var Ae=y=>{try{a(De.next(y))}catch(E){He(E)}},ae=y=>{try{a(De.throw(y))}catch(E){He(E)}},a=y=>y.done?nt(y.value):Promise.resolve(y.value).then(Ae,ae);a((De=De.apply($e,Me)).next())});function Ve($e){return(0,ne.U2)(`libraries/${$e}.json`)}function Ie($e){return(0,ne.U2)("library_tags.json",$e)}function ce($e){return Se(this,null,function*(){return(yield(0,ne.IV)(`attachments/${$e}.json`)).status===0})}function Fe($e){return(0,ne.v_)("libraries.json",$e)}function le($e,Me){return(0,ne.gz)(`libraries/${$e}.json`,Me)}},56762:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(){const[,Ve]=ne.useReducer(Ie=>Ie+1,0);return Ve}},66104:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Lt}});var ne=oe(92310),Se=oe.n(ne),Ve=oe(38298),Ie=oe(36994),ce=oe(59301),Fe=oe(92343),le=oe(36355),$e=oe(76995),Me=oe(91857);const De=Pe=>{let{children:Te}=Pe;const{getPrefixCls:ze}=ce.useContext(le.E_),et=ze("breadcrumb");return ce.createElement("li",{className:`${et}-separator`,"aria-hidden":"true"},Te===""?Te:Te||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var nt=De,He=function(Pe,Te){var ze={};for(var et in Pe)Object.prototype.hasOwnProperty.call(Pe,et)&&Te.indexOf(et)<0&&(ze[et]=Pe[et]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(Pe);gt<et.length;gt++)Te.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,et[gt])&&(ze[et[gt]]=Pe[et[gt]]);return ze};function Ae(Pe,Te){if(Pe.title===void 0||Pe.title===null)return null;const ze=Object.keys(Te).join("|");return typeof Pe.title=="object"?Pe.title:String(Pe.title).replace(new RegExp(`:(${ze})`,"g"),(et,gt)=>Te[gt]||et)}function ae(Pe,Te,ze,et){if(ze==null)return null;const{className:gt,onClick:Re}=Te,je=He(Te,["className","onClick"]),Ke=Object.assign(Object.assign({},(0,Ie.Z)(je,{data:!0,aria:!0})),{onClick:Re});return et!==void 0?ce.createElement("a",Object.assign({},Ke,{className:Se()(`${Pe}-link`,gt),href:et}),ze):ce.createElement("span",Object.assign({},Ke,{className:Se()(`${Pe}-link`,gt)}),ze)}function a(Pe,Te){return(et,gt,Re,je,Ke)=>{if(Te)return Te(et,gt,Re,je);const vt=Ae(et,gt);return ae(Pe,et,vt,Ke)}}var y=function(Pe,Te){var ze={};for(var et in Pe)Object.prototype.hasOwnProperty.call(Pe,et)&&Te.indexOf(et)<0&&(ze[et]=Pe[et]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(Pe);gt<et.length;gt++)Te.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,et[gt])&&(ze[et[gt]]=Pe[et[gt]]);return ze};const E=Pe=>{const{prefixCls:Te,separator:ze="/",children:et,menu:gt,overlay:Re,dropdownProps:je,href:Ke}=Pe,he=(Ee=>{if(gt||Re){const Ye=Object.assign({},je);if(gt){const ut=gt||{},{items:Ze}=ut,tt=y(ut,["items"]);Ye.menu=Object.assign(Object.assign({},tt),{items:Ze==null?void 0:Ze.map((de,Qe)=>{var{key:St,title:It,label:yt,path:we}=de,pe=y(de,["key","title","label","path"]);let fe=yt!=null?yt:It;return we&&(fe=ce.createElement("a",{href:`${Ke}${we}`},fe)),Object.assign(Object.assign({},pe),{key:St!=null?St:Qe,label:fe})})})}else Re&&(Ye.overlay=Re);return ce.createElement(Me.Z,Object.assign({placement:"bottom"},Ye),ce.createElement("span",{className:`${Te}-overlay-link`},Ee,ce.createElement($e.Z,null)))}return Ee})(et);return he!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,he),ze&&ce.createElement(nt,null,ze)):null},b=Pe=>{const{prefixCls:Te,children:ze,href:et}=Pe,gt=y(Pe,["prefixCls","children","href"]),{getPrefixCls:Re}=ce.useContext(le.E_),je=Re("breadcrumb",Te);return ce.createElement(E,Object.assign({},gt,{prefixCls:je}),ae(je,gt,ze,et))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(17313),ee=oe(83116),te=oe(37613);const re=Pe=>{const{componentCls:Te,iconCls:ze}=Pe;return{[Te]:Object.assign(Object.assign({},(0,z.Wf)(Pe)),{color:Pe.itemColor,fontSize:Pe.fontSize,[ze]:{fontSize:Pe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Pe.linkColor,transition:`color ${Pe.motionDurationMid}`,padding:`0 ${Pe.paddingXXS}px`,borderRadius:Pe.borderRadiusSM,height:Pe.lineHeight*Pe.fontSize,display:"inline-block",marginInline:-Pe.marginXXS,"&:hover":{color:Pe.linkHoverColor,backgroundColor:Pe.colorBgTextHover}},(0,z.Qy)(Pe)),"li:last-child":{color:Pe.lastItemColor},[`${Te}-separator`]:{marginInline:Pe.separatorMargin,color:Pe.separatorColor},[`${Te}-link`]:{[`
> ${ze} + span,
> ${ze} + a
`]:{marginInlineStart:Pe.marginXXS}},[`${Te}-overlay-link`]:{borderRadius:Pe.borderRadiusSM,height:Pe.lineHeight*Pe.fontSize,display:"inline-block",padding:`0 ${Pe.paddingXXS}px`,marginInline:-Pe.marginXXS,[`> ${ze}`]:{marginInlineStart:Pe.marginXXS,fontSize:Pe.fontSizeIcon},"&:hover":{color:Pe.linkHoverColor,backgroundColor:Pe.colorBgTextHover,a:{color:Pe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Pe.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",Pe=>{const Te=(0,te.TS)(Pe,{});return[re(Te)]},Pe=>({itemColor:Pe.colorTextDescription,lastItemColor:Pe.colorText,iconFontSize:Pe.fontSize,linkColor:Pe.colorTextDescription,linkHoverColor:Pe.colorText,separatorColor:Pe.colorTextDescription,separatorMargin:Pe.marginXS})),ie=function(Pe,Te){var ze={};for(var et in Pe)Object.prototype.hasOwnProperty.call(Pe,et)&&Te.indexOf(et)<0&&(ze[et]=Pe[et]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(Pe);gt<et.length;gt++)Te.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,et[gt])&&(ze[et[gt]]=Pe[et[gt]]);return ze};function se(Pe){const{breadcrumbName:Te,children:ze}=Pe,et=ie(Pe,["breadcrumbName","children"]),gt=Object.assign({title:Te},et);return ze&&(gt.menu={items:ze.map(Re=>{var{breadcrumbName:je}=Re,Ke=ie(Re,["breadcrumbName"]);return Object.assign(Object.assign({},Ke),{title:je})})}),gt}function me(Pe,Te){return(0,ce.useMemo)(()=>Pe||(Te?Te.map(se):null),[Pe,Te])}var xe=function(Pe,Te){var ze={};for(var et in Pe)Object.prototype.hasOwnProperty.call(Pe,et)&&Te.indexOf(et)<0&&(ze[et]=Pe[et]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(Pe);gt<et.length;gt++)Te.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,et[gt])&&(ze[et[gt]]=Pe[et[gt]]);return ze};const We=(Pe,Te)=>{if(Te===void 0)return Te;let ze=(Te||"").replace(/^\//,"");return Object.keys(Pe).forEach(et=>{ze=ze.replace(`:${et}`,Pe[et])}),ze},Ft=Pe=>{const{prefixCls:Te,separator:ze="/",style:et,className:gt,rootClassName:Re,routes:je,items:Ke,children:vt,itemRender:he,params:Ee={}}=Pe,Ye=xe(Pe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ut,direction:Ze,breadcrumb:tt}=ce.useContext(le.E_);let de;const Qe=ut("breadcrumb",Te),[St,It]=ge(Qe),yt=me(Ke,je),we=a(Qe,he);if(yt&&yt.length>0){const ke=[],_e=Ke||je;de=yt.map((lt,Ot)=>{const{path:Ct,key:At,type:jt,menu:Bt,overlay:bt,onClick:Et,className:Wt,separator:mn,dropdownProps:qt}=lt,Ut=We(Ee,Ct);Ut!==void 0&&ke.push(Ut);const ye=At!=null?At:Ot;if(jt==="separator")return ce.createElement(nt,{key:ye},mn);const Be={},Je=Ot===yt.length-1;Bt?Be.menu=Bt:bt&&(Be.overlay=bt);let{href:mt}=lt;return ke.length&&Ut!==void 0&&(mt=`#/${ke.join("/")}`),ce.createElement(E,Object.assign({key:ye},Be,(0,Ie.Z)(lt,{data:!0,aria:!0}),{className:Wt,dropdownProps:qt,href:mt,separator:Je?"":ze,onClick:Et,prefixCls:Qe}),we(lt,Ee,_e,ke,mt))})}else if(vt){const ke=(0,Ve.Z)(vt).length;de=(0,Ve.Z)(vt).map((_e,lt)=>{if(!_e)return _e;const Ot=lt===ke-1;return(0,Fe.Tm)(_e,{separator:Ot?"":ze,key:lt})})}const pe=Se()(Qe,tt==null?void 0:tt.className,{[`${Qe}-rtl`]:Ze==="rtl"},gt,Re,It),fe=Object.assign(Object.assign({},tt==null?void 0:tt.style),et);return St(ce.createElement("nav",Object.assign({className:pe,style:fe},Ye),ce.createElement("ol",null,de)))};Ft.Item=x,Ft.Separator=nt;var pt=Ft,Lt=pt},24905:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return ge}});var ne=oe(92310),Se=oe.n(ne),Ve=oe(5630),Ie=oe(59301),ce=oe(36355),Fe=oe(1684),le=oe(32441),Me=Ie.createContext(null),De=oe(98447),nt=oe(14088),He=oe(4572),Ae=function(ie,se){var me={};for(var xe in ie)Object.prototype.hasOwnProperty.call(ie,xe)&&se.indexOf(xe)<0&&(me[xe]=ie[xe]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,xe=Object.getOwnPropertySymbols(ie);We<xe.length;We++)se.indexOf(xe[We])<0&&Object.prototype.propertyIsEnumerable.call(ie,xe[We])&&(me[xe[We]]=ie[xe[We]]);return me};const ae=(ie,se)=>{var me;const{prefixCls:xe,className:We,rootClassName:Ft,children:pt,indeterminate:Lt=!1,style:Pe,onMouseEnter:Te,onMouseLeave:ze,skipGroup:et=!1,disabled:gt}=ie,Re=Ae(ie,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:je,direction:Ke,checkbox:vt}=Ie.useContext(ce.E_),he=Ie.useContext(Me),{isFormItemInput:Ee}=Ie.useContext(le.aM),Ye=Ie.useContext(Fe.Z),ut=(me=(he==null?void 0:he.disabled)||gt)!==null&&me!==void 0?me:Ye,Ze=Ie.useRef(Re.value);Ie.useEffect(()=>{he==null||he.registerValue(Re.value)},[]),Ie.useEffect(()=>{if(!et)return Re.value!==Ze.current&&(he==null||he.cancelValue(Ze.current),he==null||he.registerValue(Re.value),Ze.current=Re.value),()=>he==null?void 0:he.cancelValue(Re.value)},[Re.value]);const tt=je("checkbox",xe),[de,Qe]=(0,De.ZP)(tt),St=Object.assign({},Re);he&&!et&&(St.onChange=function(){Re.onChange&&Re.onChange.apply(Re,arguments),he.toggleOption&&he.toggleOption({label:pt,value:Re.value})},St.name=he.name,St.checked=he.value.includes(Re.value));const It=Se()(`${tt}-wrapper`,{[`${tt}-rtl`]:Ke==="rtl",[`${tt}-wrapper-checked`]:St.checked,[`${tt}-wrapper-disabled`]:ut,[`${tt}-wrapper-in-form-item`]:Ee},vt==null?void 0:vt.className,We,Ft,Qe),yt=Se()({[`${tt}-indeterminate`]:Lt},He.A,Qe),we=Lt?"mixed":void 0;return de(Ie.createElement(nt.Z,{component:"Checkbox",disabled:ut},Ie.createElement("label",{className:It,style:Object.assign(Object.assign({},vt==null?void 0:vt.style),Pe),onMouseEnter:Te,onMouseLeave:ze},Ie.createElement(Ve.Z,Object.assign({"aria-checked":we},St,{prefixCls:tt,className:yt,disabled:ut,ref:se})),pt!==void 0&&Ie.createElement("span",null,pt))))};var y=Ie.forwardRef(ae),E=oe(26390),b=oe(64002),x=function(ie,se){var me={};for(var xe in ie)Object.prototype.hasOwnProperty.call(ie,xe)&&se.indexOf(xe)<0&&(me[xe]=ie[xe]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,xe=Object.getOwnPropertySymbols(ie);We<xe.length;We++)se.indexOf(xe[We])<0&&Object.prototype.propertyIsEnumerable.call(ie,xe[We])&&(me[xe[We]]=ie[xe[We]]);return me};const z=(ie,se)=>{const{defaultValue:me,children:xe,options:We=[],prefixCls:Ft,className:pt,rootClassName:Lt,style:Pe,onChange:Te}=ie,ze=x(ie,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:et,direction:gt}=Ie.useContext(ce.E_),[Re,je]=Ie.useState(ze.value||me||[]),[Ke,vt]=Ie.useState([]);Ie.useEffect(()=>{"value"in ze&&je(ze.value||[])},[ze.value]);const he=Ie.useMemo(()=>We.map(pe=>typeof pe=="string"||typeof pe=="number"?{label:pe,value:pe}:pe),[We]),Ee=pe=>{vt(fe=>fe.filter(ke=>ke!==pe))},Ye=pe=>{vt(fe=>[].concat((0,E.Z)(fe),[pe]))},ut=pe=>{const fe=Re.indexOf(pe.value),ke=(0,E.Z)(Re);fe===-1?ke.push(pe.value):ke.splice(fe,1),"value"in ze||je(ke),Te==null||Te(ke.filter(_e=>Ke.includes(_e)).sort((_e,lt)=>{const Ot=he.findIndex(At=>At.value===_e),Ct=he.findIndex(At=>At.value===lt);return Ot-Ct}))},Ze=et("checkbox",Ft),tt=`${Ze}-group`,[de,Qe]=(0,De.ZP)(Ze),St=(0,b.Z)(ze,["value","disabled"]),It=We.length?he.map(pe=>Ie.createElement(y,{prefixCls:Ze,key:pe.value.toString(),disabled:"disabled"in pe?pe.disabled:ze.disabled,value:pe.value,checked:Re.includes(pe.value),onChange:pe.onChange,className:`${tt}-item`,style:pe.style,title:pe.title},pe.label)):xe,yt={toggleOption:ut,value:Re,disabled:ze.disabled,name:ze.name,registerValue:Ye,cancelValue:Ee},we=Se()(tt,{[`${tt}-rtl`]:gt==="rtl"},pt,Lt,Qe);return de(Ie.createElement("div",Object.assign({className:we,style:Pe},St,{ref:se}),Ie.createElement(Me.Provider,{value:yt},It)))},ee=Ie.forwardRef(z);var te=Ie.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ge=re},98447:function(Oe,dt,oe){"use strict";oe.d(dt,{C2:function(){return ce}});var ne=oe(17313),Se=oe(37613),Ve=oe(83116);const Ie=Fe=>{const{checkboxCls:le}=Fe,$e=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[$e]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${$e}`]:{marginInlineStart:0},[`&${$e}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(Fe))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[`
${$e}:not(${$e}-disabled),
${le}:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{borderColor:Fe.colorPrimary}},[`${$e}:not(${$e}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Fe.colorPrimary,borderColor:Fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseOutBack} ${Fe.motionDurationFast}`}}},[`
${$e}-checked:not(${$e}-disabled),
${le}-checked:not(${le}-disabled)
`]:{[`&:hover ${le}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${$e}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function ce(Fe,le){const $e=(0,Se.TS)(le,{checkboxCls:`.${Fe}`,checkboxSize:le.controlInteractiveSize});return[Ie($e)]}dt.ZP=(0,Ve.Z)("Checkbox",(Fe,le)=>{let{prefixCls:$e}=le;return[ce($e,Fe)]})},91857:function(Oe,dt,oe){"use strict";var ne=oe(59301),Se=oe(38226),Ve=oe(92310),Ie=oe.n(Ve),ce=oe(31561),Fe=oe(80764),le=oe(35788),$e=oe(64002),Me=oe(79676),De=oe(53487),nt=oe(92343),He=oe(36355),Ae=oe(20834),ae=oe(40875),a=oe(88088),y=oe(47211);const E=null,b=te=>{const{menu:re,arrow:ge,prefixCls:ie,children:se,trigger:me,disabled:xe,dropdownRender:We,getPopupContainer:Ft,overlayClassName:pt,rootClassName:Lt,open:Pe,onOpenChange:Te,visible:ze,onVisibleChange:et,mouseEnterDelay:gt=.15,mouseLeaveDelay:Re=.1,autoAdjustOverflow:je=!0,placement:Ke="",overlay:vt,transitionName:he}=te,{getPopupContainer:Ee,getPrefixCls:Ye,direction:ut}=ne.useContext(He.E_),Ze=ne.useMemo(()=>{const Bt=Ye();return he!==void 0?he:Ke.includes("top")?`${Bt}-slide-down`:`${Bt}-slide-up`},[Ye,Ke,he]),tt=ne.useMemo(()=>Ke?Ke.includes("Center")?Ke.slice(0,Ke.indexOf("Center")):Ke:ut==="rtl"?"bottomRight":"bottomLeft",[Ke,ut]),de=Ye("dropdown",ie),[Qe,St]=(0,y.Z)(de),[,It]=(0,a.Z)(),yt=ne.Children.only(se),we=(0,nt.Tm)(yt,{className:Ie()(`${de}-trigger`,{[`${de}-rtl`]:ut==="rtl"},yt.props.className),disabled:xe}),pe=xe?[]:me;let fe;pe&&pe.includes("contextMenu")&&(fe=!0);const[ke,_e]=(0,le.Z)(!1,{value:Pe!=null?Pe:ze}),lt=(0,Fe.useEvent)(Bt=>{Te==null||Te(Bt),et==null||et(Bt),_e(Bt)}),Ot=Ie()(pt,Lt,St,{[`${de}-rtl`]:ut==="rtl"}),Ct=(0,Me.Z)({arrowPointAtCenter:typeof ge=="object"&&ge.pointAtCenter,autoAdjustOverflow:je,offset:It.marginXXS,arrowWidth:ge?It.sizePopupArrow:0,borderRadius:It.borderRadius}),At=ne.useCallback(()=>{_e(!1)},[]),jt=()=>{let Bt;return re!=null&&re.items?Bt=ne.createElement(Ae.default,Object.assign({},re)):typeof vt=="function"?Bt=vt():Bt=vt,We&&(Bt=We(Bt)),Bt=ne.Children.only(typeof Bt=="string"?ne.createElement("span",null,Bt):Bt),ne.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:ne.createElement("span",{className:`${de}-menu-submenu-arrow`},ne.createElement(Se.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:At,validator:bt=>{let{mode:Et}=bt}},Bt)};return Qe(ne.createElement(ce.Z,Object.assign({alignPoint:fe},(0,$e.Z)(te,["rootClassName"]),{mouseEnterDelay:gt,mouseLeaveDelay:Re,visible:ke,builtinPlacements:Ct,arrow:!!ge,overlayClassName:Ot,prefixCls:de,getPopupContainer:Ft||Ee,transitionName:Ze,trigger:pe,overlay:jt,placement:tt,onVisibleChange:lt}),we))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,De.Z)(b,"dropdown",te=>te,x),ee=te=>ne.createElement(z,Object.assign({},te),ne.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,dt.Z=b},47211:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return nt}});var ne=oe(17313),Se=oe(13826),Ve=oe(92899),Ie=oe(29878),ce=oe(19447),Fe=oe(83116),le=oe(37613),Me=He=>{const{componentCls:Ae,menuCls:ae,colorError:a,colorTextLightSolid:y}=He,E=`${ae}-item`;return{[`${Ae}, ${Ae}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const De=He=>{const{componentCls:Ae,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ge,fontSizeIcon:ie,controlPaddingHorizontal:se,colorBgElevated:me}=He;return[{[Ae]:Object.assign(Object.assign({},(0,ne.Wf)(He)),{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}},[`${Ae}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ie},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Ae}-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${Ae}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ae}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ae}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ae}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ae}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ae}-placement-bottomRight`]:{animationName:Se.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ae}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ae}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ae}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ae}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ae}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ae}-placement-topRight`]:{animationName:Se.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ae}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ae}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ae}-placement-bottomRight`]:{animationName:Se.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ae}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ae}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ae}-placement-topRight`]:{animationName:Se.ly}})},(0,ce.ZP)(He,{colorBg:me,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ae} ${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}},[`${Ae}, ${Ae}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:me,backgroundClip:"padding-box",borderRadius:He.borderRadiusLG,outline:"none",boxShadow:He.boxShadowSecondary},(0,ne.Qy)(He)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${se}px`,color:He.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:He.marginXS,fontSize:He.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:He.colorText,fontWeight:"normal",fontSize:te,lineHeight:He.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:He.borderRadiusSM,"&:hover, &-active":{backgroundColor:He.controlItemBgHover}},(0,ne.Qy)(He)),{"&-selected":{color:He.colorPrimary,backgroundColor:He.controlItemBgActive,"&:hover, &-active":{backgroundColor:He.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:me,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${He.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:He.colorSplit},[`${Ae}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:He.paddingXS,[`${Ae}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:He.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${He.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:se+He.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Ae}-menu-submenu-title`]:{[`&, ${Ae}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:me,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Ae}-menu-submenu-title`]:{color:He.colorPrimary}})}},[(0,Se.oN)(He,"slide-up"),(0,Se.oN)(He,"slide-down"),(0,Ve.Fm)(He,"move-up"),(0,Ve.Fm)(He,"move-down"),(0,Ie._y)(He,"zoom-big")]]};var nt=(0,Fe.Z)("Dropdown",(He,Ae)=>{let{rootPrefixCls:ae}=Ae;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=He,re=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,ce.fS)({contentRadius:te}),ie=(0,le.TS)(He,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[De(ie),Me(ie)]},He=>({zIndexPopup:He.zIndexPopupBase+50}))},71413:function(Oe,dt,oe){"use strict";oe.d(dt,{D:function(){return z},Z:function(){return re}});var ne=oe(5891),Se=oe(59301),Ve={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ie=Ve,ce=oe(31533),Fe=function(ie,se){return Se.createElement(ce.Z,(0,ne.Z)({},ie,{ref:se,icon:Ie}))},le=Se.forwardRef(Fe),$e=le,Me=oe(81132),De=oe(38226),nt=oe(92310),He=oe.n(nt),Ae=oe(64002),a=ge=>!isNaN(parseFloat(ge))&&isFinite(ge),y=oe(36355),E=oe(84966),b=function(ge,ie){var se={};for(var me in ge)Object.prototype.hasOwnProperty.call(ge,me)&&ie.indexOf(me)<0&&(se[me]=ge[me]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,me=Object.getOwnPropertySymbols(ge);xe<me.length;xe++)ie.indexOf(me[xe])<0&&Object.prototype.propertyIsEnumerable.call(ge,me[xe])&&(se[me[xe]]=ge[me[xe]]);return se};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Se.createContext({}),ee=(()=>{let ge=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ge+=1,`${ie}${ge}`}})();var re=Se.forwardRef((ge,ie)=>{const{prefixCls:se,className:me,trigger:xe,children:We,defaultCollapsed:Ft=!1,theme:pt="dark",style:Lt={},collapsible:Pe=!1,reverseArrow:Te=!1,width:ze=200,collapsedWidth:et=80,zeroWidthTriggerStyle:gt,breakpoint:Re,onCollapse:je,onBreakpoint:Ke}=ge,vt=b(ge,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:he}=(0,Se.useContext)(E.Gs),[Ee,Ye]=(0,Se.useState)("collapsed"in ge?ge.collapsed:Ft),[ut,Ze]=(0,Se.useState)(!1);(0,Se.useEffect)(()=>{"collapsed"in ge&&Ye(ge.collapsed)},[ge.collapsed]);const tt=(we,pe)=>{"collapsed"in ge||Ye(we),je==null||je(we,pe)},de=(0,Se.useRef)();de.current=we=>{Ze(we.matches),Ke==null||Ke(we.matches),Ee!==we.matches&&tt(we.matches,"responsive")},(0,Se.useEffect)(()=>{function we(fe){return de.current(fe)}let pe;if(typeof window!="undefined"){const{matchMedia:fe}=window;if(fe&&Re&&Re in x){pe=fe(`(max-width: ${x[Re]})`);try{pe.addEventListener("change",we)}catch(ke){pe.addListener(we)}we(pe)}}return()=>{try{pe==null||pe.removeEventListener("change",we)}catch(fe){pe==null||pe.removeListener(we)}}},[Re]),(0,Se.useEffect)(()=>{const we=ee("ant-sider-");return he.addSider(we),()=>he.removeSider(we)},[]);const Qe=()=>{tt(!Ee,"clickTrigger")},{getPrefixCls:St}=(0,Se.useContext)(y.E_),It=()=>{const we=St("layout-sider",se),pe=(0,Ae.Z)(vt,["collapsed"]),fe=Ee?et:ze,ke=a(fe)?`${fe}px`:String(fe),_e=parseFloat(String(et||0))===0?Se.createElement("span",{onClick:Qe,className:He()(`${we}-zero-width-trigger`,`${we}-zero-width-trigger-${Te?"right":"left"}`),style:gt},xe||Se.createElement($e,null)):null,Ct={expanded:Te?Se.createElement(De.Z,null):Se.createElement(Me.Z,null),collapsed:Te?Se.createElement(Me.Z,null):Se.createElement(De.Z,null)}[Ee?"collapsed":"expanded"],At=xe!==null?_e||Se.createElement("div",{className:`${we}-trigger`,onClick:Qe,style:{width:ke}},xe||Ct):null,jt=Object.assign(Object.assign({},Lt),{flex:`0 0 ${ke}`,maxWidth:ke,minWidth:ke,width:ke}),Bt=He()(we,`${we}-${pt}`,{[`${we}-collapsed`]:!!Ee,[`${we}-has-trigger`]:Pe&&xe!==null&&!_e,[`${we}-below`]:!!ut,[`${we}-zero-width`]:parseFloat(ke)===0},me);return Se.createElement("aside",Object.assign({className:Bt},pe,{style:jt,ref:ie}),Se.createElement("div",{className:`${we}-children`},We),Pe||ut&&_e?At:null)},yt=Se.useMemo(()=>({siderCollapsed:Ee}),[Ee]);return Se.createElement(z.Provider,{value:yt},It())})},84966:function(Oe,dt,oe){"use strict";oe.d(dt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Ae},ZP:function(){return ee}});var ne=oe(26390),Se=oe(92310),Ve=oe.n(Se),Ie=oe(64002),ce=oe(59301),Fe=oe(36355),le=oe(83116),Me=te=>{const{componentCls:re,bodyBg:ge,lightSiderBg:ie,lightTriggerBg:se,lightTriggerColor:me}=te;return{[`${re}-sider-light`]:{background:ie,[`${re}-sider-trigger`]:{color:me,background:se},[`${re}-sider-zero-width-trigger`]:{color:me,background:se,border:`1px solid ${ge}`,borderInlineStart:0}}}};const De=te=>{const{antCls:re,componentCls:ge,colorText:ie,triggerColor:se,footerBg:me,triggerBg:xe,headerHeight:We,headerPadding:Ft,headerColor:pt,footerPadding:Lt,triggerHeight:Pe,zeroTriggerHeight:Te,zeroTriggerWidth:ze,motionDurationMid:et,motionDurationSlow:gt,fontSize:Re,borderRadius:je,bodyBg:Ke,headerBg:vt,siderBg:he}=te;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ke,"&, *":{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:he,transition:`all ${et}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Pe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Pe,color:se,lineHeight:`${Pe}px`,textAlign:"center",background:xe,cursor:"pointer",transition:`all ${et}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:We,insetInlineEnd:-ze,zIndex:1,width:ze,height:Te,color:se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:he,borderStartStartRadius:0,borderStartEndRadius:je,borderEndEndRadius:je,borderEndStartRadius:0,cursor:"pointer",transition:`background ${gt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${gt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ze,borderStartStartRadius:je,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:je}}}}},Me(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:We,padding:Ft,color:pt,lineHeight:`${We}px`,background:vt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:Lt,color:ie,fontSize:Re,background:me},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var nt=(0,le.Z)("Layout",te=>[De(te)],te=>{const{colorBgLayout:re,controlHeight:ge,controlHeightLG:ie,colorText:se,controlHeightSM:me,marginXXS:xe,colorTextLightSolid:We,colorBgContainer:Ft}=te,pt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${pt}px`,headerColor:se,footerPadding:`${me}px ${pt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ie+xe*2,triggerBg:"#002140",triggerColor:We,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:Ft,lightTriggerBg:Ft,lightTriggerColor:se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),He=function(te,re){var ge={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&re.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++)re.indexOf(ie[se])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[se])&&(ge[ie[se]]=te[ie[se]]);return ge};const Ae=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ge,displayName:ie}=te;return se=>ce.forwardRef((xe,We)=>ce.createElement(se,Object.assign({ref:We,suffixCls:re,tagName:ge},xe)))}const a=ce.forwardRef((te,re)=>{const{prefixCls:ge,suffixCls:ie,className:se,tagName:me}=te,xe=He(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:We}=ce.useContext(Fe.E_),Ft=We("layout",ge),[pt,Lt]=nt(Ft),Pe=ie?`${Ft}-${ie}`:Ft;return pt(ce.createElement(me,Object.assign({className:Ve()(ge||Pe,se,Lt),ref:re},xe)))}),y=ce.forwardRef((te,re)=>{const{direction:ge}=ce.useContext(Fe.E_),[ie,se]=ce.useState([]),{prefixCls:me,className:xe,rootClassName:We,children:Ft,hasSider:pt,tagName:Lt,style:Pe}=te,Te=He(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ze=(0,Ie.Z)(Te,["suffixCls"]),{getPrefixCls:et,layout:gt}=ce.useContext(Fe.E_),Re=et("layout",me),[je,Ke]=nt(Re),vt=Ve()(Re,{[`${Re}-has-sider`]:typeof pt=="boolean"?pt:ie.length>0,[`${Re}-rtl`]:ge==="rtl"},gt==null?void 0:gt.className,xe,We,Ke),he=ce.useMemo(()=>({siderHook:{addSider:Ee=>{se(Ye=>[].concat((0,ne.Z)(Ye),[Ee]))},removeSider:Ee=>{se(Ye=>Ye.filter(ut=>ut!==Ee))}}}),[]);return je(ce.createElement(Ae.Provider,{value:he},ce.createElement(Lt,Object.assign({ref:re,className:vt,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),Pe)},ze),Ft)))}),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},40875:function(Oe,dt,oe){"use strict";oe.d(dt,{J:function(){return Fe}});var ne=oe(59301),Se=oe(33234),Ve=oe(80764),Ie=function(le,$e){var Me={};for(var De in le)Object.prototype.hasOwnProperty.call(le,De)&&$e.indexOf(De)<0&&(Me[De]=le[De]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,De=Object.getOwnPropertySymbols(le);nt<De.length;nt++)$e.indexOf(De[nt])<0&&Object.prototype.propertyIsEnumerable.call(le,De[nt])&&(Me[De[nt]]=le[De[nt]]);return Me};const ce=ne.createContext(null),Fe=ne.forwardRef((le,$e)=>{const{children:Me}=le,De=Ie(le,["children"]),nt=ne.useContext(ce),He=ne.useMemo(()=>Object.assign(Object.assign({},nt),De),[nt,De.prefixCls,De.mode,De.selectable]);return ne.createElement(ce.Provider,{value:He},ne.createElement(Se.BR,null,(0,Ve.supportNodeRef)(Me)?ne.cloneElement(Me,{ref:$e}):Me))});dt.Z=ce},20834:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return yt}});var ne=oe(22798),Se=oe(59301),Ve=oe(71413),Ie=oe(92310),ce=oe.n(Ie),Fe=oe(36355),le=function(we,pe){var fe={};for(var ke in we)Object.prototype.hasOwnProperty.call(we,ke)&&pe.indexOf(ke)<0&&(fe[ke]=we[ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ke=Object.getOwnPropertySymbols(we);_e<ke.length;_e++)pe.indexOf(ke[_e])<0&&Object.prototype.propertyIsEnumerable.call(we,ke[_e])&&(fe[ke[_e]]=we[ke[_e]]);return fe},Me=we=>{const{prefixCls:pe,className:fe,dashed:ke}=we,_e=le(we,["prefixCls","className","dashed"]),{getPrefixCls:lt}=Se.useContext(Fe.E_),Ot=lt("menu",pe),Ct=ce()({[`${Ot}-item-divider-dashed`]:!!ke},fe);return Se.createElement(ne.iz,Object.assign({className:Ct},_e))},De=oe(38298),nt=oe(64002),He=oe(6848),Ae=oe(92343),a=(0,Se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=we=>{var pe;const{className:fe,children:ke,icon:_e,title:lt,danger:Ot}=we,{prefixCls:Ct,firstLevel:At,direction:jt,disableMenuItemTitleTooltip:Bt,inlineCollapsed:bt}=Se.useContext(a),Et=Be=>{const Je=Se.createElement("span",{className:`${Ct}-title-content`},ke);return(!_e||(0,Ae.l$)(ke)&&ke.type==="span")&&ke&&Be&&At&&typeof ke=="string"?Se.createElement("div",{className:`${Ct}-inline-collapsed-noicon`},ke.charAt(0)):Je},{siderCollapsed:Wt}=Se.useContext(Ve.D);let mn=lt;typeof lt=="undefined"?mn=At?ke:"":lt===!1&&(mn="");const qt={title:mn};!Wt&&!bt&&(qt.title=null,qt.open=!1);const Ut=(0,De.Z)(ke).length;let ye=Se.createElement(ne.ck,Object.assign({},(0,nt.Z)(we,["title","icon","danger"]),{className:ce()({[`${Ct}-item-danger`]:Ot,[`${Ct}-item-only-child`]:(_e?Ut+1:Ut)===1},fe),title:typeof lt=="string"?lt:void 0}),(0,Ae.Tm)(_e,{className:ce()((0,Ae.l$)(_e)?(pe=_e.props)===null||pe===void 0?void 0:pe.className:"",`${Ct}-item-icon`)}),Et(bt));return Bt||(ye=Se.createElement(He.Z,Object.assign({},qt,{placement:jt==="rtl"?"left":"right",overlayClassName:`${Ct}-inline-collapsed-tooltip`}),ye)),ye},x=we=>{var pe;const{popupClassName:fe,icon:ke,title:_e,theme:lt}=we,Ot=Se.useContext(a),{prefixCls:Ct,inlineCollapsed:At,theme:jt}=Ot,Bt=(0,ne.Xl)();let bt;if(!ke)bt=At&&!Bt.length&&_e&&typeof _e=="string"?Se.createElement("div",{className:`${Ct}-inline-collapsed-noicon`},_e.charAt(0)):Se.createElement("span",{className:`${Ct}-title-content`},_e);else{const Wt=(0,Ae.l$)(_e)&&_e.type==="span";bt=Se.createElement(Se.Fragment,null,(0,Ae.Tm)(ke,{className:ce()((0,Ae.l$)(ke)?(pe=ke.props)===null||pe===void 0?void 0:pe.className:"",`${Ct}-item-icon`)}),Wt?_e:Se.createElement("span",{className:`${Ct}-title-content`},_e))}const Et=Se.useMemo(()=>Object.assign(Object.assign({},Ot),{firstLevel:!1}),[Ot]);return Se.createElement(a.Provider,{value:Et},Se.createElement(ne.Wd,Object.assign({},(0,nt.Z)(we,["icon"]),{title:bt,popupClassName:ce()(Ct,fe,`${Ct}-${lt||jt}`)})))},z=oe(24764),ee=oe(80764),te=oe(62892),re=oe(40875),ge=function(we,pe){var fe={};for(var ke in we)Object.prototype.hasOwnProperty.call(we,ke)&&pe.indexOf(ke)<0&&(fe[ke]=we[ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ke=Object.getOwnPropertySymbols(we);_e<ke.length;_e++)pe.indexOf(ke[_e])<0&&Object.prototype.propertyIsEnumerable.call(we,ke[_e])&&(fe[ke[_e]]=we[ke[_e]]);return fe};function ie(we){return(we||[]).map((pe,fe)=>{if(pe&&typeof pe=="object"){const ke=pe,{label:_e,children:lt,key:Ot,type:Ct}=ke,At=ge(ke,["label","children","key","type"]),jt=Ot!=null?Ot:`tmp-${fe}`;return lt||Ct==="group"?Ct==="group"?Se.createElement(ne.BW,Object.assign({key:jt},At,{title:_e}),ie(lt)):Se.createElement(x,Object.assign({key:jt},At,{title:_e}),ie(lt)):Ct==="divider"?Se.createElement(Me,Object.assign({key:jt},At)):Se.createElement(E,Object.assign({key:jt},At),_e)}return null}).filter(pe=>pe)}function se(we){return Se.useMemo(()=>we&&ie(we),[we])}var me=oe(64993),xe=oe(17313),We=oe(8378),Ft=oe(13826),pt=oe(29878),Lt=oe(83116),Pe=oe(37613),ze=we=>{const{componentCls:pe,motionDurationSlow:fe,horizontalLineHeight:ke,colorSplit:_e,lineWidth:lt,lineType:Ot,itemPaddingInline:Ct}=we;return{[`${pe}-horizontal`]:{lineHeight:ke,border:0,borderBottom:`${lt}px ${Ot} ${_e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${pe}-item, ${pe}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ct},[`> ${pe}-item:hover,
> ${pe}-item-active,
> ${pe}-submenu ${pe}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${pe}-item, ${pe}-submenu-title`]:{transition:[`border-color ${fe}`,`background ${fe}`].join(",")},[`${pe}-submenu-arrow`]:{display:"none"}}}},gt=we=>{let{componentCls:pe,menuArrowOffset:fe}=we;return{[`${pe}-rtl`]:{direction:"rtl"},[`${pe}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${pe}-rtl${pe}-vertical,
${pe}-submenu-rtl ${pe}-vertical`]:{[`${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${fe})`},"&::after":{transform:`rotate(45deg) translateY(${fe})`}}}}};const Re=we=>Object.assign({},(0,xe.oN)(we));var Ke=(we,pe)=>{const{componentCls:fe,itemColor:ke,itemSelectedColor:_e,groupTitleColor:lt,itemBg:Ot,subMenuItemBg:Ct,itemSelectedBg:At,activeBarHeight:jt,activeBarWidth:Bt,activeBarBorderWidth:bt,motionDurationSlow:Et,motionEaseInOut:Wt,motionEaseOut:mn,itemPaddingInline:qt,motionDurationMid:Ut,itemHoverColor:ye,lineType:Be,colorSplit:Je,itemDisabledColor:mt,dangerItemColor:Pt,dangerItemHoverColor:Rt,dangerItemSelectedColor:kt,dangerItemActiveBg:Gt,dangerItemSelectedBg:_t,itemHoverBg:Jt,itemActiveBg:Kt,menuSubMenuBg:nn,horizontalItemSelectedColor:hn,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:wn,horizontalItemHoverBg:dn,popupBg:on}=we;return{[`${fe}-${pe}, ${fe}-${pe} > ${fe}`]:{color:ke,background:Ot,[`&${fe}-root:focus-visible`]:Object.assign({},Re(we)),[`${fe}-item-group-title`]:{color:lt},[`${fe}-submenu-selected`]:{[`> ${fe}-submenu-title`]:{color:_e}},[`${fe}-item-disabled, ${fe}-submenu-disabled`]:{color:`${mt} !important`},[`${fe}-item:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{[`&:hover, > ${fe}-submenu-title:hover`]:{color:ye}},[`&:not(${fe}-horizontal)`]:{[`${fe}-item:not(${fe}-item-selected)`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}},[`${fe}-submenu-title`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}}},[`${fe}-item-danger`]:{color:Pt,[`&${fe}-item:hover`]:{[`&:not(${fe}-item-selected):not(${fe}-submenu-selected)`]:{color:Rt}},[`&${fe}-item:active`]:{background:Gt}},[`${fe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${fe}-item-selected`]:{color:_e,[`&${fe}-item-danger`]:{color:kt},"a, a:hover":{color:"inherit"}},[`& ${fe}-item-selected`]:{backgroundColor:At,[`&${fe}-item-danger`]:{backgroundColor:_t}},[`${fe}-item, ${fe}-submenu-title`]:{[`&:not(${fe}-item-disabled):focus-visible`]:Object.assign({},Re(we))},[`&${fe}-submenu > ${fe}`]:{backgroundColor:nn},[`&${fe}-popup > ${fe}`]:{backgroundColor:on},[`&${fe}-horizontal`]:Object.assign(Object.assign({},pe==="dark"?{borderBottom:0}:{}),{[`> ${fe}-item, > ${fe}-submenu`]:{top:bt,marginTop:-bt,marginBottom:0,borderRadius:wn,"&::after":{position:"absolute",insetInline:qt,bottom:0,borderBottom:`${jt}px solid transparent`,transition:`border-color ${Et} ${Wt}`,content:'""'},"&:hover, &-active, &-open":{background:dn,"&::after":{borderBottomWidth:jt,borderBottomColor:hn}},"&-selected":{color:hn,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:jt,borderBottomColor:hn}}}}),[`&${fe}-root`]:{[`&${fe}-inline, &${fe}-vertical`]:{borderInlineEnd:`${bt}px ${Be} ${Je}`}},[`&${fe}-inline`]:{[`${fe}-sub${fe}-inline`]:{background:Ct},[`${fe}-item, ${fe}-submenu-title`]:bt&&Bt?{width:`calc(100% + ${bt}px)`}:{},[`${fe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Bt}px solid ${_e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ut} ${mn}`,`opacity ${Ut} ${mn}`].join(","),content:'""'},[`&${fe}-item-danger`]:{"&::after":{borderInlineEndColor:kt}}},[`${fe}-selected, ${fe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ut} ${Wt}`,`opacity ${Ut} ${Wt}`].join(",")}}}}}};const vt=we=>{const{componentCls:pe,itemHeight:fe,itemMarginInline:ke,padding:_e,menuArrowSize:lt,marginXS:Ot,itemMarginBlock:Ct}=we,At=_e+lt+Ot;return{[`${pe}-item`]:{position:"relative",overflow:"hidden"},[`${pe}-item, ${pe}-submenu-title`]:{height:fe,lineHeight:`${fe}px`,paddingInline:_e,overflow:"hidden",textOverflow:"ellipsis",marginInline:ke,marginBlock:Ct,width:`calc(100% - ${ke*2}px)`},[`> ${pe}-item,
> ${pe}-submenu > ${pe}-submenu-title`]:{height:fe,lineHeight:`${fe}px`},[`${pe}-item-group-list ${pe}-submenu-title,
${pe}-submenu-title`]:{paddingInlineEnd:At}}};var Ee=we=>{const{componentCls:pe,iconCls:fe,itemHeight:ke,colorTextLightSolid:_e,dropdownWidth:lt,controlHeightLG:Ot,motionDurationMid:Ct,motionEaseOut:At,paddingXL:jt,itemMarginInline:Bt,fontSizeLG:bt,motionDurationSlow:Et,paddingXS:Wt,boxShadowSecondary:mn,collapsedWidth:qt,collapsedIconSize:Ut}=we,ye={height:ke,lineHeight:`${ke}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[pe]:{"&-inline, &-vertical":Object.assign({[`&${pe}-root`]:{boxShadow:"none"}},vt(we))},[`${pe}-submenu-popup`]:{[`${pe}-vertical`]:Object.assign(Object.assign({},vt(we)),{boxShadow:mn})}},{[`${pe}-submenu-popup ${pe}-vertical${pe}-sub`]:{minWidth:lt,maxHeight:`calc(100vh - ${Ot*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${pe}-inline`]:{width:"100%",[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Et}`,`background ${Et}`,`padding ${Ct} ${At}`].join(","),[`> ${pe}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${pe}-sub${pe}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${pe}-submenu > ${pe}-submenu-title`]:ye,[`& ${pe}-item-group-title`]:{paddingInlineStart:jt}},[`${pe}-item`]:ye}},{[`${pe}-inline-collapsed`]:{width:qt,[`&${pe}-root`]:{[`${pe}-item, ${pe}-submenu ${pe}-submenu-title`]:{[`> ${pe}-inline-collapsed-noicon`]:{fontSize:bt,textAlign:"center"}}},[`> ${pe}-item,
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-item,
> ${pe}-item-group > ${pe}-item-group-list > ${pe}-submenu > ${pe}-submenu-title,
> ${pe}-submenu > ${pe}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${bt/2}px - ${Bt}px)`,textOverflow:"clip",[`
${pe}-submenu-arrow,
${pe}-submenu-expand-icon
`]:{opacity:0},[`${pe}-item-icon, ${fe}`]:{margin:0,fontSize:Ut,lineHeight:`${ke}px`,"+ span":{display:"inline-block",opacity:0}}},[`${pe}-item-icon, ${fe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${pe}-item-icon, ${fe}`]:{display:"none"},"a, a:hover":{color:_e}},[`${pe}-item-group-title`]:Object.assign(Object.assign({},xe.vS),{paddingInline:Wt})}}]};const Ye=we=>{const{componentCls:pe,motionDurationSlow:fe,motionDurationMid:ke,motionEaseInOut:_e,motionEaseOut:lt,iconCls:Ot,iconSize:Ct,iconMarginInlineEnd:At}=we;return{[`${pe}-item, ${pe}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${fe}`,`background ${fe}`,`padding ${fe} ${_e}`].join(","),[`${pe}-item-icon, ${Ot}`]:{minWidth:Ct,fontSize:Ct,transition:[`font-size ${ke} ${lt}`,`margin ${fe} ${_e}`,`color ${fe}`].join(","),"+ span":{marginInlineStart:At,opacity:1,transition:[`opacity ${fe} ${_e}`,`margin ${fe}`,`color ${fe}`].join(",")}},[`${pe}-item-icon`]:Object.assign({},(0,xe.Ro)()),[`&${pe}-item-only-child`]:{[`> ${Ot}, > ${pe}-item-icon`]:{marginInlineEnd:0}}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${pe}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ut=we=>{const{componentCls:pe,motionDurationSlow:fe,motionEaseInOut:ke,borderRadius:_e,menuArrowSize:lt,menuArrowOffset:Ot}=we;return{[`${pe}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:we.margin,width:lt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${fe} ${ke}, opacity ${fe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:lt*.6,height:lt*.15,backgroundColor:"currentcolor",borderRadius:_e,transition:[`background ${fe} ${ke}`,`transform ${fe} ${ke}`,`top ${fe} ${ke}`,`color ${fe} ${ke}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Ot})`},"&::after":{transform:`rotate(-45deg) translateY(${Ot})`}}}}},Ze=we=>{const{antCls:pe,componentCls:fe,fontSize:ke,motionDurationSlow:_e,motionDurationMid:lt,motionEaseInOut:Ot,paddingXS:Ct,padding:At,colorSplit:jt,lineWidth:Bt,zIndexPopup:bt,borderRadiusLG:Et,subMenuItemBorderRadius:Wt,menuArrowSize:mn,menuArrowOffset:qt,lineType:Ut,menuPanelMaskInset:ye,groupTitleLineHeight:Be,groupTitleFontSize:Je}=we;return[{"":{[`${fe}`]:Object.assign(Object.assign({},(0,xe.dF)()),{"&-hidden":{display:"none"}})},[`${fe}-submenu-hidden`]:{display:"none"}},{[fe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,xe.Wf)(we)),(0,xe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ke,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${_e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${fe}-item`]:{flex:"none"}},[`${fe}-item, ${fe}-submenu, ${fe}-submenu-title`]:{borderRadius:we.itemBorderRadius},[`${fe}-item-group-title`]:{padding:`${Ct}px ${At}px`,fontSize:Je,lineHeight:Be,transition:`all ${_e}`},[`&-horizontal ${fe}-submenu`]:{transition:[`border-color ${_e} ${Ot}`,`background ${_e} ${Ot}`].join(",")},[`${fe}-submenu, ${fe}-submenu-inline`]:{transition:[`border-color ${_e} ${Ot}`,`background ${_e} ${Ot}`,`padding ${lt} ${Ot}`].join(",")},[`${fe}-submenu ${fe}-sub`]:{cursor:"initial",transition:[`background ${_e} ${Ot}`,`padding ${_e} ${Ot}`].join(",")},[`${fe}-title-content`]:{transition:`color ${_e}`},[`${fe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${fe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:jt,borderStyle:Ut,borderWidth:0,borderTopWidth:Bt,marginBlock:Bt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ye(we)),{[`${fe}-item-group`]:{[`${fe}-item-group-list`]:{margin:0,padding:0,[`${fe}-item, ${fe}-submenu-title`]:{paddingInline:`${ke*2}px ${At}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:bt,borderRadius:Et,boxShadow:"none",transformOrigin:"0 0",[`&${fe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ye}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ye},"\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:we.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:we.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:we.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:we.paddingXS},[`> ${fe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Et},Ye(we)),ut(we)),{[`${fe}-item, ${fe}-submenu > ${fe}-submenu-title`]:{borderRadius:Wt},[`${fe}-submenu-title::after`]:{transition:`transform ${_e} ${Ot}`}})}}),ut(we)),{[`&-inline-collapsed ${fe}-submenu-arrow,
&-inline ${fe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${qt})`},"&::after":{transform:`rotate(45deg) translateX(-${qt})`}},[`${fe}-submenu-open${fe}-submenu-inline > ${fe}-submenu-title > ${fe}-submenu-arrow`]:{transform:`translateY(-${mn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${qt})`},"&::before":{transform:`rotate(45deg) translateX(${qt})`}}})},{[`${pe}-layout-header`]:{[fe]:{lineHeight:"inherit"}}}]};var tt=(we,pe)=>(0,Lt.Z)("Menu",ke=>{if(pe===!1)return[];const{colorBgElevated:_e,colorPrimary:lt,colorTextLightSolid:Ot,controlHeightLG:Ct,fontSize:At,darkItemColor:jt,darkDangerItemColor:Bt,darkItemBg:bt,darkSubMenuItemBg:Et,darkItemSelectedColor:Wt,darkItemSelectedBg:mn,darkDangerItemSelectedBg:qt,darkItemHoverBg:Ut,darkGroupTitleColor:ye,darkItemHoverColor:Be,darkItemDisabledColor:Je,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:Pt,darkDangerItemActiveBg:Rt}=ke,kt=At/7*5,Gt=(0,Pe.TS)(ke,{menuArrowSize:kt,menuHorizontalHeight:Ct*1.15,menuArrowOffset:`${kt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:_e}),_t=(0,Pe.TS)(Gt,{itemColor:jt,itemHoverColor:Be,groupTitleColor:ye,itemSelectedColor:Wt,itemBg:bt,popupBg:bt,subMenuItemBg:Et,itemActiveBg:"transparent",itemSelectedBg:mn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ut,itemDisabledColor:Je,dangerItemColor:Bt,dangerItemHoverColor:mt,dangerItemSelectedColor:Pt,dangerItemActiveBg:Rt,dangerItemSelectedBg:qt,menuSubMenuBg:Et,horizontalItemSelectedColor:Ot,horizontalItemSelectedBg:lt});return[Ze(Gt),ze(Gt),Ee(Gt),Ke(Gt,"light"),Ke(_t,"dark"),gt(Gt),(0,We.Z)(Gt),(0,Ft.oN)(Gt,"slide-up"),(0,Ft.oN)(Gt,"slide-down"),(0,pt._y)(Gt,"zoom-big")]},ke=>{const{colorPrimary:_e,colorError:lt,colorTextDisabled:Ot,colorErrorBg:Ct,colorText:At,colorTextDescription:jt,colorBgContainer:Bt,colorFillAlter:bt,colorFillContent:Et,lineWidth:Wt,lineWidthBold:mn,controlItemBgActive:qt,colorBgTextHover:Ut,controlHeightLG:ye,lineHeight:Be,colorBgElevated:Je,marginXXS:mt,padding:Pt,fontSize:Rt,controlHeightSM:kt,fontSizeLG:Gt,colorTextLightSolid:_t,colorErrorHover:Jt}=ke,Kt=new me.C(_t).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ke.zIndexPopupBase+50,radiusItem:ke.borderRadiusLG,itemBorderRadius:ke.borderRadiusLG,radiusSubMenuItem:ke.borderRadiusSM,subMenuItemBorderRadius:ke.borderRadiusSM,colorItemText:At,itemColor:At,colorItemTextHover:At,itemHoverColor:At,colorItemTextHoverHorizontal:_e,horizontalItemHoverColor:_e,colorGroupTitle:jt,groupTitleColor:jt,colorItemTextSelected:_e,itemSelectedColor:_e,colorItemTextSelectedHorizontal:_e,horizontalItemSelectedColor:_e,colorItemBg:Bt,itemBg:Bt,colorItemBgHover:Ut,itemHoverBg:Ut,colorItemBgActive:Et,itemActiveBg:qt,colorSubItemBg:bt,subMenuItemBg:bt,colorItemBgSelected:qt,itemSelectedBg:qt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:mn,activeBarHeight:mn,colorActiveBarBorderSize:Wt,activeBarBorderWidth:Wt,colorItemTextDisabled:Ot,itemDisabledColor:Ot,colorDangerItemText:lt,dangerItemColor:lt,colorDangerItemTextHover:lt,dangerItemHoverColor:lt,colorDangerItemTextSelected:lt,dangerItemSelectedColor:lt,colorDangerItemBgActive:Ct,dangerItemActiveBg:Ct,colorDangerItemBgSelected:Ct,dangerItemSelectedBg:Ct,itemMarginInline:ke.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ye,groupTitleLineHeight:Be,collapsedWidth:ye*2,popupBg:Je,itemMarginBlock:mt,itemPaddingInline:Pt,horizontalLineHeight:`${ye*1.15}px`,iconSize:Rt,iconMarginInlineEnd:kt-Rt,collapsedIconSize:Gt,groupTitleFontSize:Rt,darkItemDisabledColor:new me.C(_t).setAlpha(.25).toRgbString(),darkItemColor:Kt,darkDangerItemColor:lt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_t,darkItemSelectedBg:_e,darkDangerItemSelectedBg:lt,darkItemHoverBg:"transparent",darkGroupTitleColor:Kt,darkItemHoverColor:_t,darkDangerItemHoverColor:Jt,darkDangerItemSelectedColor:_t,darkDangerItemActiveBg:lt}},{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"]]})(we),de=function(we,pe){var fe={};for(var ke in we)Object.prototype.hasOwnProperty.call(we,ke)&&pe.indexOf(ke)<0&&(fe[ke]=we[ke]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,ke=Object.getOwnPropertySymbols(we);_e<ke.length;_e++)pe.indexOf(ke[_e])<0&&Object.prototype.propertyIsEnumerable.call(we,ke[_e])&&(fe[ke[_e]]=we[ke[_e]]);return fe},St=(0,Se.forwardRef)((we,pe)=>{var fe,ke;const _e=Se.useContext(re.Z),lt=_e||{},{getPrefixCls:Ot,getPopupContainer:Ct,direction:At,menu:jt}=Se.useContext(Fe.E_),Bt=Ot(),{prefixCls:bt,className:Et,style:Wt,theme:mn="light",expandIcon:qt,_internalDisableMenuItemTitleTooltip:Ut,inlineCollapsed:ye,siderCollapsed:Be,items:Je,children:mt,rootClassName:Pt,mode:Rt,selectable:kt,onClick:Gt,overflowedIndicatorPopupClassName:_t}=we,Jt=de(we,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kt=(0,nt.Z)(Jt,["collapsedWidth"]),nn=se(Je)||mt;(fe=lt.validator)===null||fe===void 0||fe.call(lt,{mode:Rt});const hn=(0,ee.useEvent)(function(){var Nn;Gt==null||Gt.apply(void 0,arguments),(Nn=lt.onClick)===null||Nn===void 0||Nn.call(lt)}),vn=lt.mode||Rt,wn=kt!=null?kt:lt.selectable,dn=Se.useMemo(()=>Be!==void 0?Be:ye,[ye,Be]),on={horizontal:{motionName:`${Bt}-slide-up`},inline:(0,te.Z)(Bt),other:{motionName:`${Bt}-zoom-big`}},yn=Ot("menu",bt||lt.prefixCls),[Cn,Bn]=tt(yn,!_e),cn=ce()(`${yn}-${mn}`,jt==null?void 0:jt.className,Et);let zn;if(typeof qt=="function")zn=qt;else if(qt===null||qt===!1)zn=null;else if(lt.expandIcon===null||lt.expandIcon===!1)zn=null;else{const Nn=qt!=null?qt:lt.expandIcon;zn=(0,Ae.Tm)(Nn,{className:ce()(`${yn}-submenu-expand-icon`,(0,Ae.l$)(Nn)?(ke=Nn.props)===null||ke===void 0?void 0:ke.className:"")})}const Yn=Se.useMemo(()=>({prefixCls:yn,inlineCollapsed:dn||!1,direction:At,firstLevel:!0,theme:mn,mode:vn,disableMenuItemTitleTooltip:Ut}),[yn,dn,At,Ut,mn]);return Cn(Se.createElement(re.Z.Provider,{value:null},Se.createElement(a.Provider,{value:Yn},Se.createElement(ne.ZP,Object.assign({getPopupContainer:Ct,overflowedIndicator:Se.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(yn,`${yn}-${mn}`,_t),mode:vn,selectable:wn,onClick:hn},Kt,{inlineCollapsed:dn,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Wt),className:cn,prefixCls:yn,direction:At,defaultMotions:on,expandIcon:zn,ref:pe,rootClassName:ce()(Pt,Bn)}),nn))))});const It=(0,Se.forwardRef)((we,pe)=>{const fe=(0,Se.useRef)(null),ke=Se.useContext(Ve.D);return(0,Se.useImperativeHandle)(pe,()=>({menu:fe.current,focus:_e=>{var lt;(lt=fe.current)===null||lt===void 0||lt.focus(_e)}})),Se.createElement(St,Object.assign({ref:fe},we,ke))});It.Item=E,It.SubMenu=x,It.Divider=Me,It.ItemGroup=ne.BW;var yt=It},93948:function(Oe,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ut}});var ne=oe(59301),Se=oe(5242),Ve=oe(89699),Ie=oe(37637),ce=oe(77318),Fe=oe(92310),le=oe.n(Fe),$e=oe(64002),Me=oe(36355),De=oe(5891),nt=oe(57259),He=oe(19149),Ae={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Be=(0,ne.useRef)([]),Je=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var mt=Date.now(),Pt=!1;Be.current.forEach(function(Rt){if(Rt){Pt=!0;var kt=Rt.style;kt.transitionDuration=".3s, .3s, .3s, .06s",Je.current&&mt-Je.current<100&&(kt.transitionDuration="0s, 0s")}}),Pt&&(Je.current=Date.now())}),Be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Be){var Je=(0,nt.Z)((0,nt.Z)({},Ae),Be),mt=Je.className,Pt=Je.percent,Rt=Je.prefixCls,kt=Je.strokeColor,Gt=Je.strokeLinecap,_t=Je.strokeWidth,Jt=Je.style,Kt=Je.trailColor,nn=Je.trailWidth,hn=Je.transition,vn=(0,He.Z)(Je,a);delete vn.gapPosition;var wn=Array.isArray(Pt)?Pt:[Pt],dn=Array.isArray(kt)?kt:[kt],on=ae(),yn=_t/2,Cn=100-_t/2,Bn="M ".concat(Gt==="round"?yn:0,",").concat(yn,`
L `).concat(Gt==="round"?Cn:100,",").concat(yn),cn="0 0 100 ".concat(_t),zn=0;return ne.createElement("svg",(0,De.Z)({className:le()("".concat(Rt,"-line"),mt),viewBox:cn,preserveAspectRatio:"none",style:Jt},vn),ne.createElement("path",{className:"".concat(Rt,"-line-trail"),d:Bn,strokeLinecap:Gt,stroke:Kt,strokeWidth:nn||_t,fillOpacity:"0"}),wn.map(function(Yn,Nn){var Wn=1;switch(Gt){case"round":Wn=1-_t/100;break;case"square":Wn=1-_t/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(zn,"px"),transition:hn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=dn[Nn]||dn[dn.length-1];return zn+=Yn,ne.createElement("path",{key:Nn,className:"".concat(Rt,"-line-path"),d:Bn,strokeLinecap:Gt,stroke:Jn,strokeWidth:_t,fillOpacity:"0",ref:function(be){on[Nn]=be},style:na})}))},E=y,b=oe(80665),x=oe(29043),z=oe(87746),ee=0,te=(0,z.Z)();function re(){var ye;return te?(ye=ee,ee+=1):ye="TEST_OR_SSR",ye}var ge=function(ye){var Be=ne.useState(),Je=(0,x.Z)(Be,2),mt=Je[0],Pt=Je[1];return ne.useEffect(function(){Pt("rc_progress_".concat(re()))},[]),ye||mt},ie=function(Be){var Je=Be.bg,mt=Be.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Je}},mt)};function se(ye,Be){return Object.keys(ye).map(function(Je){var mt=parseFloat(Je),Pt="".concat(Math.floor(mt*Be),"%");return"".concat(ye[Je]," ").concat(Pt)})}var me=ne.forwardRef(function(ye,Be){var Je=ye.prefixCls,mt=ye.color,Pt=ye.gradientId,Rt=ye.radius,kt=ye.style,Gt=ye.ptg,_t=ye.strokeLinecap,Jt=ye.strokeWidth,Kt=ye.size,nn=ye.gapDegree,hn=mt&&(0,b.Z)(mt)==="object",vn=hn?"#FFF":void 0,wn=Kt/2,dn=ne.createElement("circle",{className:"".concat(Je,"-circle-path"),r:Rt,cx:wn,cy:wn,stroke:vn,strokeLinecap:_t,strokeWidth:Jt,opacity:Gt===0?0:1,style:kt,ref:Be});if(!hn)return dn;var on="".concat(Pt,"-conic"),yn=nn?"".concat(180+nn/2,"deg"):"0deg",Cn=se(mt,(360-nn)/360),Bn=se(mt,1),cn="conic-gradient(from ".concat(yn,", ").concat(Cn.join(", "),")"),zn="linear-gradient(to ".concat(nn?"bottom":"top",", ").concat(Bn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:on},dn),ne.createElement("foreignObject",{x:0,y:0,width:Kt,height:Kt,mask:"url(#".concat(on,")")},ne.createElement(ie,{bg:zn},ne.createElement(ie,{bg:cn}))))}),xe=me,We=100,Ft=function(Be,Je,mt,Pt,Rt,kt,Gt,_t,Jt,Kt){var nn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,hn=mt/100*360*((360-kt)/360),vn=kt===0?0:{bottom:0,top:180,left:90,right:-90}[Gt],wn=(100-Pt)/100*Je;Jt==="round"&&Pt!==100&&(wn+=Kt/2,wn>=Je&&(wn=Je-.01));var dn=We/2;return{stroke:typeof _t=="string"?_t:void 0,strokeDasharray:"".concat(Je,"px ").concat(Be),strokeDashoffset:wn+nn,transform:"rotate(".concat(Rt+hn+vn,"deg)"),transformOrigin:"".concat(dn,"px ").concat(dn,"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}},pt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Lt(ye){var Be=ye!=null?ye:[];return Array.isArray(Be)?Be:[Be]}var Pe=function(Be){var Je=(0,nt.Z)((0,nt.Z)({},Ae),Be),mt=Je.id,Pt=Je.prefixCls,Rt=Je.steps,kt=Je.strokeWidth,Gt=Je.trailWidth,_t=Je.gapDegree,Jt=_t===void 0?0:_t,Kt=Je.gapPosition,nn=Je.trailColor,hn=Je.strokeLinecap,vn=Je.style,wn=Je.className,dn=Je.strokeColor,on=Je.percent,yn=(0,He.Z)(Je,pt),Cn=We/2,Bn=ge(mt),cn="".concat(Bn,"-gradient"),zn=Cn-kt/2,Yn=Math.PI*2*zn,Nn=Jt>0?90+Jt/2:-90,Wn=Yn*((360-Jt)/360),na=(0,b.Z)(Rt)==="object"?Rt:{count:Rt,space:2},Jn=na.count,Le=na.space,be=Lt(on),ve=Lt(dn),st=ve.find(function(_n){return _n&&(0,b.Z)(_n)==="object"}),Nt=st&&(0,b.Z)(st)==="object",xt=Nt?"butt":hn,ln=Ft(Yn,Wn,0,100,Nn,Jt,Kt,nn,xt,kt),Zt=ae(),en=function(){var it=0;return be.map(function(tn,Dn){var Zn=ve[Dn]||ve[ve.length-1],Fn=Ft(Yn,Wn,it,tn,Nn,Jt,Kt,Zn,xt,kt);return it+=tn,ne.createElement(xe,{key:Dn,color:Zn,ptg:tn,radius:zn,prefixCls:Pt,gradientId:cn,style:Fn,strokeLinecap:xt,strokeWidth:kt,gapDegree:Jt,ref:function(Ne){Zt[Dn]=Ne},size:We})}).reverse()},Ln=function(){var it=Math.round(Jn*(be[0]/100)),tn=100/Jn,Dn=0;return new Array(Jn).fill(null).map(function(Zn,Fn){var ue=Fn<=it-1?ve[0]:nn,Ne=ue&&(0,b.Z)(ue)==="object"?"url(#".concat(cn,")"):void 0,Ge=Ft(Yn,Wn,Dn,tn,Nn,Jt,Kt,ue,"butt",kt,Le);return Dn+=(Wn-Ge.strokeDashoffset+Le)*100/Wn,ne.createElement("circle",{key:Fn,className:"".concat(Pt,"-circle-path"),r:zn,cx:Cn,cy:Cn,stroke:Ne,strokeWidth:kt,opacity:1,style:Ge,ref:function(at){Zt[Fn]=at}})})};return ne.createElement("svg",(0,De.Z)({className:le()("".concat(Pt,"-circle"),wn),viewBox:"0 0 ".concat(We," ").concat(We),style:vn,id:mt,role:"presentation"},yn),!Jn&&ne.createElement("circle",{className:"".concat(Pt,"-circle-trail"),r:zn,cx:Cn,cy:Cn,stroke:nn,strokeLinecap:xt,strokeWidth:Gt||kt,style:ln}),Jn?Ln():en())},Te=Pe,ze={Line:E,Circle:Te},et=oe(6848),gt=oe(93398);function Re(ye){return!ye||ye<0?0:ye>100?100:ye}function je(ye){let{success:Be,successPercent:Je}=ye,mt=Je;return Be&&"progress"in Be&&(mt=Be.progress),Be&&"percent"in Be&&(mt=Be.percent),mt}const Ke=ye=>{let{percent:Be,success:Je,successPercent:mt}=ye;const Pt=Re(je({success:Je,successPercent:mt}));return[Pt,Re(Re(Be)-Pt)]},vt=ye=>{let{success:Be={},strokeColor:Je}=ye;const{strokeColor:mt}=Be;return[mt||gt.presetPrimaryColors.green,Je||null]},he=(ye,Be,Je)=>{var mt,Pt,Rt,kt;let Gt=-1,_t=-1;if(Be==="step"){const Jt=Je.steps,Kt=Je.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?(Gt=ye==="small"?2:14,_t=Kt!=null?Kt:8):typeof ye=="number"?[Gt,_t]=[ye,ye]:[Gt=14,_t=8]=ye,Gt*=Jt}else if(Be==="line"){const Jt=Je==null?void 0:Je.strokeWidth;typeof ye=="string"||typeof ye=="undefined"?_t=Jt||(ye==="small"?6:8):typeof ye=="number"?[Gt,_t]=[ye,ye]:[Gt=-1,_t=8]=ye}else(Be==="circle"||Be==="dashboard")&&(typeof ye=="string"||typeof ye=="undefined"?[Gt,_t]=ye==="small"?[60,60]:[120,120]:typeof ye=="number"?[Gt,_t]=[ye,ye]:(Gt=(Pt=(mt=ye[0])!==null&&mt!==void 0?mt:ye[1])!==null&&Pt!==void 0?Pt:120,_t=(kt=(Rt=ye[0])!==null&&Rt!==void 0?Rt:ye[1])!==null&&kt!==void 0?kt:120));return[Gt,_t]},Ee=3,Ye=ye=>Ee/ye*100;var Ze=ye=>{const{prefixCls:Be,trailColor:Je=null,strokeLinecap:mt="round",gapPosition:Pt,gapDegree:Rt,width:kt=120,type:Gt,children:_t,success:Jt,size:Kt=kt}=ye,[nn,hn]=he(Kt,"circle");let{strokeWidth:vn}=ye;vn===void 0&&(vn=Math.max(Ye(nn),6));const wn={width:nn,height:hn,fontSize:nn*.15+6},dn=ne.useMemo(()=>{if(Rt||Rt===0)return Rt;if(Gt==="dashboard")return 75},[Rt,Gt]),on=Pt||Gt==="dashboard"&&"bottom"||void 0,yn=Object.prototype.toString.call(ye.strokeColor)==="[object Object]",Cn=vt({success:Jt,strokeColor:ye.strokeColor}),Bn=le()(`${Be}-inner`,{[`${Be}-circle-gradient`]:yn}),cn=ne.createElement(Te,{percent:Ke(ye),strokeWidth:vn,trailWidth:vn,strokeColor:Cn,strokeLinecap:mt,trailColor:Je,prefixCls:Be,gapDegree:dn,gapPosition:on});return ne.createElement("div",{className:Bn,style:wn},nn<=20?ne.createElement(et.Z,{title:_t},ne.createElement("span",null,cn)):ne.createElement(ne.Fragment,null,cn,_t))},tt=function(ye,Be){var Je={};for(var mt in ye)Object.prototype.hasOwnProperty.call(ye,mt)&&Be.indexOf(mt)<0&&(Je[mt]=ye[mt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,mt=Object.getOwnPropertySymbols(ye);Pt<mt.length;Pt++)Be.indexOf(mt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ye,mt[Pt])&&(Je[mt[Pt]]=ye[mt[Pt]]);return Je};const de=ye=>{let Be=[];return Object.keys(ye).forEach(Je=>{const mt=parseFloat(Je.replace(/%/g,""));isNaN(mt)||Be.push({key:mt,value:ye[Je]})}),Be=Be.sort((Je,mt)=>Je.key-mt.key),Be.map(Je=>{let{key:mt,value:Pt}=Je;return`${Pt} ${mt}%`}).join(", ")},Qe=(ye,Be)=>{const{from:Je=gt.presetPrimaryColors.blue,to:mt=gt.presetPrimaryColors.blue,direction:Pt=Be==="rtl"?"to left":"to right"}=ye,Rt=tt(ye,["from","to","direction"]);if(Object.keys(Rt).length!==0){const kt=de(Rt);return{backgroundImage:`linear-gradient(${Pt}, ${kt})`}}return{backgroundImage:`linear-gradient(${Pt}, ${Je}, ${mt})`}};var It=ye=>{const{prefixCls:Be,direction:Je,percent:mt,size:Pt,strokeWidth:Rt,strokeColor:kt,strokeLinecap:Gt="round",children:_t,trailColor:Jt=null,success:Kt}=ye,nn=kt&&typeof kt!="string"?Qe(kt,Je):{backgroundColor:kt},hn=Gt==="square"||Gt==="butt"?0:void 0,vn={backgroundColor:Jt||void 0,borderRadius:hn},wn=Pt!=null?Pt:[-1,Rt||(Pt==="small"?6:8)],[dn,on]=he(wn,"line",{strokeWidth:Rt}),yn=Object.assign({width:`${Re(mt)}%`,height:on,borderRadius:hn},nn),Cn=je(ye),Bn={width:`${Re(Cn)}%`,height:on,borderRadius:hn,backgroundColor:Kt==null?void 0:Kt.strokeColor},cn={width:dn<0?"100%":dn,height:on};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Be}-outer`,style:cn},ne.createElement("div",{className:`${Be}-inner`,style:vn},ne.createElement("div",{className:`${Be}-bg`,style:yn}),Cn!==void 0?ne.createElement("div",{className:`${Be}-success-bg`,style:Bn}):null)),_t)},we=ye=>{const{size:Be,steps:Je,percent:mt=0,strokeWidth:Pt=8,strokeColor:Rt,trailColor:kt=null,prefixCls:Gt,children:_t}=ye,Jt=Math.round(Je*(mt/100)),Kt=Be==="small"?2:14,nn=Be!=null?Be:[Kt,Pt],[hn,vn]=he(nn,"step",{steps:Je,strokeWidth:Pt}),wn=hn/Je,dn=new Array(Je);for(let on=0;on<Je;on++){const yn=Array.isArray(Rt)?Rt[on]:Rt;dn[on]=ne.createElement("div",{key:on,className:le()(`${Gt}-steps-item`,{[`${Gt}-steps-item-active`]:on<=Jt-1}),style:{backgroundColor:on<=Jt-1?yn:kt,width:wn,height:vn}})}return ne.createElement("div",{className:`${Gt}-steps-outer`},dn,_t)},pe=oe(88252),fe=oe(17313),ke=oe(83116),_e=oe(37613);const lt=ye=>{const Be=ye?"100%":"-100%";return new pe.Keyframes(`antProgress${ye?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ot=ye=>{const{componentCls:Be,iconCls:Je}=ye;return{[Be]:Object.assign(Object.assign({},(0,fe.Wf)(ye)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ye.fontSize,marginInlineEnd:ye.marginXS,marginBottom:ye.marginXS},[`${Be}-outer`]:{display:"inline-block",width:"100%"},[`&${Be}-show-info`]:{[`${Be}-outer`]:{marginInlineEnd:`calc(-2em - ${ye.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ye.paddingXS}px)`}},[`${Be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ye.remainingColor,borderRadius:ye.lineBorderRadius},[`${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ye.defaultColor}},[`${Be}-success-bg, ${Be}-bg`]:{position:"relative",backgroundColor:ye.defaultColor,borderRadius:ye.lineBorderRadius,transition:`all ${ye.motionDurationSlow} ${ye.motionEaseInOutCirc}`},[`${Be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ye.colorSuccess},[`${Be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ye.marginXS,color:ye.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Je]:{fontSize:ye.fontSize}},[`&${Be}-status-active`]:{[`${Be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ye.colorBgContainer,borderRadius:ye.lineBorderRadius,opacity:0,animationName:lt(),animationDuration:ye.progressActiveMotionDuration,animationTimingFunction:ye.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Be}-rtl${Be}-status-active`]:{[`${Be}-bg::before`]:{animationName:lt(!0)}},[`&${Be}-status-exception`]:{[`${Be}-bg`]:{backgroundColor:ye.colorError},[`${Be}-text`]:{color:ye.colorError}},[`&${Be}-status-exception ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ye.colorError}},[`&${Be}-status-success`]:{[`${Be}-bg`]:{backgroundColor:ye.colorSuccess},[`${Be}-text`]:{color:ye.colorSuccess}},[`&${Be}-status-success ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:ye.colorSuccess}}})}},Ct=ye=>{const{componentCls:Be,iconCls:Je}=ye;return{[Be]:{[`${Be}-circle-trail`]:{stroke:ye.remainingColor},[`&${Be}-circle ${Be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Be}-circle ${Be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ye.circleTextColor,fontSize:ye.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Je]:{fontSize:`${ye.fontSize/ye.fontSizeSM}em`}},[`${Be}-circle&-status-exception`]:{[`${Be}-text`]:{color:ye.colorError}},[`${Be}-circle&-status-success`]:{[`${Be}-text`]:{color:ye.colorSuccess}}},[`${Be}-inline-circle`]:{lineHeight:1,[`${Be}-inner`]:{verticalAlign:"bottom"}}}},At=ye=>{const{componentCls:Be}=ye;return{[Be]:{[`${Be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ye.progressStepMinWidth,marginInlineEnd:ye.progressStepMarginInlineEnd,backgroundColor:ye.remainingColor,transition:`all ${ye.motionDurationSlow}`,"&-active":{backgroundColor:ye.defaultColor}}}}}},jt=ye=>{const{componentCls:Be,iconCls:Je}=ye;return{[Be]:{[`${Be}-small&-line, ${Be}-small&-line ${Be}-text ${Je}`]:{fontSize:ye.fontSizeSM}}}};var Bt=(0,ke.Z)("Progress",ye=>{const Be=ye.marginXXS/2,Je=(0,_e.TS)(ye,{progressStepMarginInlineEnd:Be,progressStepMinWidth:Be,progressActiveMotionDuration:"2.4s"});return[Ot(Je),Ct(Je),At(Je),jt(Je)]},ye=>({circleTextColor:ye.colorText,defaultColor:ye.colorInfo,remainingColor:ye.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),bt=function(ye,Be){var Je={};for(var mt in ye)Object.prototype.hasOwnProperty.call(ye,mt)&&Be.indexOf(mt)<0&&(Je[mt]=ye[mt]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,mt=Object.getOwnPropertySymbols(ye);Pt<mt.length;Pt++)Be.indexOf(mt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ye,mt[Pt])&&(Je[mt[Pt]]=ye[mt[Pt]]);return Je};const Et=null,Wt=["normal","exception","active","success"];var qt=ne.forwardRef((ye,Be)=>{const{prefixCls:Je,className:mt,rootClassName:Pt,steps:Rt,strokeColor:kt,percent:Gt=0,size:_t="default",showInfo:Jt=!0,type:Kt="line",status:nn,format:hn,style:vn}=ye,wn=bt(ye,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),dn=ne.useMemo(()=>{var be,ve;const st=je(ye);return parseInt(st!==void 0?(be=st!=null?st:0)===null||be===void 0?void 0:be.toString():(ve=Gt!=null?Gt:0)===null||ve===void 0?void 0:ve.toString(),10)},[Gt,ye.success,ye.successPercent]),on=ne.useMemo(()=>!Wt.includes(nn)&&dn>=100?"success":nn||"normal",[nn,dn]),{getPrefixCls:yn,direction:Cn,progress:Bn}=ne.useContext(Me.E_),cn=yn("progress",Je),[zn,Yn]=Bt(cn),Nn=ne.useMemo(()=>{if(!Jt)return null;const be=je(ye);let ve;const st=hn||(xt=>`${xt}%`),Nt=Kt==="line";return hn||on!=="exception"&&on!=="success"?ve=st(Re(Gt),Re(be)):on==="exception"?ve=Nt?ne.createElement(Ie.Z,null):ne.createElement(ce.Z,null):on==="success"&&(ve=Nt?ne.createElement(Se.Z,null):ne.createElement(Ve.Z,null)),ne.createElement("span",{className:`${cn}-text`,title:typeof ve=="string"?ve:void 0},ve)},[Jt,Gt,dn,on,Kt,cn,hn]),Wn=Array.isArray(kt)?kt[0]:kt,na=typeof kt=="string"||Array.isArray(kt)?kt:void 0;let Jn;Kt==="line"?Jn=Rt?ne.createElement(we,Object.assign({},ye,{strokeColor:na,prefixCls:cn,steps:Rt}),Nn):ne.createElement(It,Object.assign({},ye,{strokeColor:Wn,prefixCls:cn,direction:Cn}),Nn):(Kt==="circle"||Kt==="dashboard")&&(Jn=ne.createElement(Ze,Object.assign({},ye,{strokeColor:Wn,prefixCls:cn,progressStatus:on}),Nn));const Le=le()(cn,`${cn}-status-${on}`,`${cn}-${Kt==="dashboard"&&"circle"||Rt&&"steps"||Kt}`,{[`${cn}-inline-circle`]:Kt==="circle"&&he(_t,"circle")[0]<=20,[`${cn}-show-info`]:Jt,[`${cn}-${_t}`]:typeof _t=="string",[`${cn}-rtl`]:Cn==="rtl"},Bn==null?void 0:Bn.className,mt,Pt,Yn);return zn(ne.createElement("div",Object.assign({ref:Be,style:Object.assign(Object.assign({},Bn==null?void 0:Bn.style),vn),className:Le,role:"progressbar","aria-valuenow":dn},(0,$e.Z)(wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),Ut=qt},41889:function(Oe,dt,oe){"use strict";oe.d(dt,{default:function(){return Fn}});var ne=oe(59301),Se=oe(26390),Ve=oe(92310),Ie=oe.n(Ve),ce=oe(5891),Fe=oe(79545),le=oe(68550),$e=oe(17928),Me=oe(7711),De=oe(80962),nt=oe(19149),He=oe(50204),Ae=oe(80665),ae=oe(20959),a=oe(36994);function y(ue,Ne){var Ge="cannot ".concat(ue.method," ").concat(ue.action," ").concat(Ne.status,"'"),Ue=new Error(Ge);return Ue.status=Ne.status,Ue.method=ue.method,Ue.url=ue.action,Ue}function E(ue){var Ne=ue.responseText||ue.response;if(!Ne)return Ne;try{return JSON.parse(Ne)}catch(Ge){return Ne}}function b(ue){var Ne=new XMLHttpRequest;ue.onProgress&&Ne.upload&&(Ne.upload.onprogress=function(rt){rt.total>0&&(rt.percent=rt.loaded/rt.total*100),ue.onProgress(rt)});var Ge=new FormData;ue.data&&Object.keys(ue.data).forEach(function(at){var rt=ue.data[at];if(Array.isArray(rt)){rt.forEach(function(qe){Ge.append("".concat(at,"[]"),qe)});return}Ge.append(at,rt)}),ue.file instanceof Blob?Ge.append(ue.filename,ue.file,ue.file.name):Ge.append(ue.filename,ue.file),Ne.onerror=function(rt){ue.onError(rt)},Ne.onload=function(){return Ne.status<200||Ne.status>=300?ue.onError(y(ue,Ne),E(Ne)):ue.onSuccess(E(Ne),Ne)},Ne.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in Ne&&(Ne.withCredentials=!0);var Ue=ue.headers||{};return Ue["X-Requested-With"]!==null&&Ne.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ue).forEach(function(at){Ue[at]!==null&&Ne.setRequestHeader(at,Ue[at])}),Ne.send(Ge),{abort:function(){Ne.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(51395),re=function(ue,Ne){if(ue&&Ne){var Ge=Array.isArray(Ne)?Ne:Ne.split(","),Ue=ue.name||"",at=ue.type||"",rt=at.replace(/\/.*$/,"");return Ge.some(function(qe){var Xe=qe.trim();if(/^\*(\/\*)?$/.test(qe))return!0;if(Xe.charAt(0)==="."){var Dt=Ue.toLowerCase(),Tt=Xe.toLowerCase(),Ce=[Tt];return(Tt===".jpg"||Tt===".jpeg")&&(Ce=[".jpg",".jpeg"]),Ce.some(function(rn){return Dt.endsWith(rn)})}return/\/\*$/.test(Xe)?rt===Xe.replace(/\/.*$/,""):at===Xe?!0:/^\w+$/.test(Xe)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Xe,"'.Skip for check.")),!0):!1})}return!0};function ge(ue,Ne){var Ge=ue.createReader(),Ue=[];function at(){Ge.readEntries(function(rt){var qe=Array.prototype.slice.apply(rt);Ue=Ue.concat(qe);var Xe=!qe.length;Xe?Ne(Ue):at()})}at()}var ie=function(Ne,Ge,Ue){var at=function rt(qe,Xe){qe&&(qe.path=Xe||"",qe.isFile?qe.file(function(Dt){Ue(Dt)&&(qe.fullPath&&!Dt.webkitRelativePath&&(Object.defineProperties(Dt,{webkitRelativePath:{writable:!0}}),Dt.webkitRelativePath=qe.fullPath.replace(/^\//,""),Object.defineProperties(Dt,{webkitRelativePath:{writable:!1}})),Ge([Dt]))}):qe.isDirectory&&ge(qe,function(Dt){Dt.forEach(function(Tt){rt(Tt,"".concat(Xe).concat(qe.name,"/"))})}))};Ne.forEach(function(rt){at(rt.webkitGetAsEntry())})},se=ie,me=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],xe=function(ue){(0,$e.Z)(Ge,ue);var Ne=(0,Me.Z)(Ge);function Ge(){var Ue;(0,Fe.Z)(this,Ge);for(var at=arguments.length,rt=new Array(at),qe=0;qe<at;qe++)rt[qe]=arguments[qe];return Ue=Ne.call.apply(Ne,[this].concat(rt)),Ue.state={uid:ee()},Ue.reqs={},Ue.fileInput=void 0,Ue._isMounted=void 0,Ue.onChange=function(Xe){var Dt=Ue.props,Tt=Dt.accept,Ce=Dt.directory,rn=Xe.target.files,an=(0,Se.Z)(rn).filter(function(pn){return!Ce||re(pn,Tt)});Ue.uploadFiles(an),Ue.reset()},Ue.onClick=function(Xe){var Dt=Ue.fileInput;if(Dt){var Tt=Xe.target,Ce=Ue.props.onClick;if(Tt&&Tt.tagName==="BUTTON"){var rn=Dt.parentNode;rn.focus(),Tt.blur()}Dt.click(),Ce&&Ce(Xe)}},Ue.onKeyDown=function(Xe){Xe.key==="Enter"&&Ue.onClick(Xe)},Ue.onFileDrop=function(Xe){var Dt=Ue.props.multiple;if(Xe.preventDefault(),Xe.type!=="dragover")if(Ue.props.directory)se(Array.prototype.slice.call(Xe.dataTransfer.items),Ue.uploadFiles,function(Ce){return re(Ce,Ue.props.accept)});else{var Tt=(0,Se.Z)(Xe.dataTransfer.files).filter(function(Ce){return re(Ce,Ue.props.accept)});Dt===!1&&(Tt=Tt.slice(0,1)),Ue.uploadFiles(Tt)}},Ue.uploadFiles=function(Xe){var Dt=(0,Se.Z)(Xe),Tt=Dt.map(function(Ce){return Ce.uid=ee(),Ue.processFile(Ce,Dt)});Promise.all(Tt).then(function(Ce){var rn=Ue.props.onBatchStart;rn==null||rn(Ce.map(function(an){var pn=an.origin,En=an.parsedFile;return{file:pn,parsedFile:En}})),Ce.filter(function(an){return an.parsedFile!==null}).forEach(function(an){Ue.post(an)})})},Ue.processFile=function(){var Xe=(0,ae.Z)((0,He.Z)().mark(function Dt(Tt,Ce){var rn,an,pn,En,ot,ht,Mt,ft,Yt;return(0,He.Z)().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(rn=Ue.props.beforeUpload,an=Tt,!rn){Ht.next=14;break}return Ht.prev=3,Ht.next=6,rn(Tt,Ce);case 6:an=Ht.sent,Ht.next=12;break;case 9:Ht.prev=9,Ht.t0=Ht.catch(3),an=!1;case 12:if(an!==!1){Ht.next=14;break}return Ht.abrupt("return",{origin:Tt,parsedFile:null,action:null,data:null});case 14:if(pn=Ue.props.action,typeof pn!="function"){Ht.next=21;break}return Ht.next=18,pn(Tt);case 18:En=Ht.sent,Ht.next=22;break;case 21:En=pn;case 22:if(ot=Ue.props.data,typeof ot!="function"){Ht.next=29;break}return Ht.next=26,ot(Tt);case 26:ht=Ht.sent,Ht.next=30;break;case 29:ht=ot;case 30:return Mt=((0,Ae.Z)(an)==="object"||typeof an=="string")&&an?an:Tt,Mt instanceof File?ft=Mt:ft=new File([Mt],Tt.name,{type:Tt.type}),Yt=ft,Yt.uid=Tt.uid,Ht.abrupt("return",{origin:Tt,data:ht,parsedFile:Yt,action:En});case 35:case"end":return Ht.stop()}},Dt,null,[[3,9]])}));return function(Dt,Tt){return Xe.apply(this,arguments)}}(),Ue.saveFileInput=function(Xe){Ue.fileInput=Xe},Ue}return(0,le.Z)(Ge,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(at){var rt=this,qe=at.data,Xe=at.origin,Dt=at.action,Tt=at.parsedFile;if(this._isMounted){var Ce=this.props,rn=Ce.onStart,an=Ce.customRequest,pn=Ce.name,En=Ce.headers,ot=Ce.withCredentials,ht=Ce.method,Mt=Xe.uid,ft=an||b,Yt={action:Dt,filename:pn,data:qe,file:Tt,headers:En,withCredentials:ot,method:ht||"post",onProgress:function(Ht){var Pn=rt.props.onProgress;Pn==null||Pn(Ht,Tt)},onSuccess:function(Ht,Pn){var fn=rt.props.onSuccess;fn==null||fn(Ht,Tt,Pn),delete rt.reqs[Mt]},onError:function(Ht,Pn){var fn=rt.props.onError;fn==null||fn(Ht,Pn,Tt),delete rt.reqs[Mt]}};rn(Xe),this.reqs[Mt]=ft(Yt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(at){var rt=this.reqs;if(at){var qe=at.uid?at.uid:at;rt[qe]&&rt[qe].abort&&rt[qe].abort(),delete rt[qe]}else Object.keys(rt).forEach(function(Xe){rt[Xe]&&rt[Xe].abort&&rt[Xe].abort(),delete rt[Xe]})}},{key:"render",value:function(){var at=this.props,rt=at.component,qe=at.prefixCls,Xe=at.className,Dt=at.disabled,Tt=at.id,Ce=at.style,rn=at.multiple,an=at.accept,pn=at.capture,En=at.children,ot=at.directory,ht=at.openFileDialogOnClick,Mt=at.onMouseEnter,ft=at.onMouseLeave,Yt=(0,nt.Z)(at,me),Qt=Ie()((0,De.Z)((0,De.Z)((0,De.Z)({},qe,!0),"".concat(qe,"-disabled"),Dt),Xe,Xe)),Ht=ot?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Pn=Dt?{}:{onClick:ht?this.onClick:function(){},onKeyDown:ht?this.onKeyDown:function(){},onMouseEnter:Mt,onMouseLeave:ft,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(rt,(0,ce.Z)({},Pn,{className:Qt,role:"button",style:Ce}),ne.createElement("input",(0,ce.Z)({},(0,a.Z)(Yt,{aria:!0,data:!0}),{id:Tt,disabled:Dt,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:an},Ht,{multiple:rn,onChange:this.onChange},pn!=null?{capture:pn}:{})),En)}}]),Ge}(ne.Component),We=xe;function Ft(){}var pt=function(ue){(0,$e.Z)(Ge,ue);var Ne=(0,Me.Z)(Ge);function Ge(){var Ue;(0,Fe.Z)(this,Ge);for(var at=arguments.length,rt=new Array(at),qe=0;qe<at;qe++)rt[qe]=arguments[qe];return Ue=Ne.call.apply(Ne,[this].concat(rt)),Ue.uploader=void 0,Ue.saveUploader=function(Xe){Ue.uploader=Xe},Ue}return(0,le.Z)(Ge,[{key:"abort",value:function(at){this.uploader.abort(at)}},{key:"render",value:function(){return ne.createElement(We,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Ge}(ne.Component);pt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Ft,onError:Ft,onSuccess:Ft,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Lt=pt,Pe=Lt,Te=oe(35788),ze=oe(4676),et=oe(36355),gt=oe(1684),Re=oe(9763),je=oe(31724),Ke={icon:function(Ne,Ge){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ge}},{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:Ne}}]}},name:"file",theme:"twotone"},vt=Ke,he=oe(31533),Ee=function(Ne,Ge){return ne.createElement(he.Z,(0,ce.Z)({},Ne,{ref:Ge,icon:vt}))},Ye=ne.forwardRef(Ee),ut=Ye,Ze=oe(78714),tt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=tt,Qe=function(Ne,Ge){return ne.createElement(he.Z,(0,ce.Z)({},Ne,{ref:Ge,icon:de}))},St=ne.forwardRef(Qe),It=St,yt={icon:function(Ne,Ge){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:Ne}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ge}},{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:Ge}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ge}},{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:Ne}}]}},name:"picture",theme:"twotone"},we=yt,pe=function(Ne,Ge){return ne.createElement(he.Z,(0,ce.Z)({},Ne,{ref:Ge,icon:we}))},fe=ne.forwardRef(pe),ke=fe,_e=oe(43469),lt=oe(56762),Ot=oe(62892),Ct=oe(92343),At=oe(3113);function jt(ue){return Object.assign(Object.assign({},ue),{lastModified:ue.lastModified,lastModifiedDate:ue.lastModifiedDate,name:ue.name,size:ue.size,type:ue.type,uid:ue.uid,percent:0,originFileObj:ue})}function Bt(ue,Ne){const Ge=(0,Se.Z)(Ne),Ue=Ge.findIndex(at=>{let{uid:rt}=at;return rt===ue.uid});return Ue===-1?Ge.push(ue):Ge[Ue]=ue,Ge}function bt(ue,Ne){const Ge=ue.uid!==void 0?"uid":"name";return Ne.filter(Ue=>Ue[Ge]===ue[Ge])[0]}function Et(ue,Ne){const Ge=ue.uid!==void 0?"uid":"name",Ue=Ne.filter(at=>at[Ge]!==ue[Ge]);return Ue.length===Ne.length?null:Ue}const Wt=function(){const Ne=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ue=Ne[Ne.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ue)||[""])[0]},mn=ue=>ue.indexOf("image/")===0,qt=ue=>{if(ue.type&&!ue.thumbUrl)return mn(ue.type);const Ne=ue.thumbUrl||ue.url||"",Ge=Wt(Ne);return/^data:image\//.test(Ne)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ge)?!0:!(/^data:/.test(Ne)||Ge)},Ut=200;function ye(ue){return new Promise(Ne=>{if(!ue.type||!mn(ue.type)){Ne("");return}const Ge=document.createElement("canvas");Ge.width=Ut,Ge.height=Ut,Ge.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ut}px; height: ${Ut}px; z-index: 9999; display: none;`,document.body.appendChild(Ge);const Ue=Ge.getContext("2d"),at=new Image;if(at.onload=()=>{const{width:rt,height:qe}=at;let Xe=Ut,Dt=Ut,Tt=0,Ce=0;rt>qe?(Dt=qe*(Ut/rt),Ce=-(Dt-Xe)/2):(Xe=rt*(Ut/qe),Tt=-(Xe-Dt)/2),Ue.drawImage(at,Tt,Ce,Xe,Dt);const rn=Ge.toDataURL();document.body.removeChild(Ge),window.URL.revokeObjectURL(at.src),Ne(rn)},at.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const rt=new FileReader;rt.onload=()=>{rt.result&&(at.src=rt.result)},rt.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const rt=new FileReader;rt.onload=()=>{rt.result&&Ne(rt.result)},rt.readAsDataURL(ue)}else at.src=window.URL.createObjectURL(ue)})}var Be=oe(76466),Je=oe(37364),mt=oe(20970),Pt=oe(93948),Rt=oe(6848),Gt=ne.forwardRef((ue,Ne)=>{let{prefixCls:Ge,className:Ue,style:at,locale:rt,listType:qe,file:Xe,items:Dt,progress:Tt,iconRender:Ce,actionIconRender:rn,itemRender:an,isImgUrl:pn,showPreviewIcon:En,showRemoveIcon:ot,showDownloadIcon:ht,previewIcon:Mt,removeIcon:ft,downloadIcon:Yt,onPreview:Qt,onDownload:Ht,onClose:Pn}=ue;var fn,oa;const{status:Qn}=Xe,[qn,ca]=ne.useState(Qn);ne.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ne.useState(!1);ne.useEffect(()=>{const Mn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Mn)}},[]);const da=Ce(Xe);let Kn=ne.createElement("div",{className:`${Ge}-icon`},da);if(qe==="picture"||qe==="picture-card"||qe==="picture-circle")if(qn==="uploading"||!Xe.thumbUrl&&!Xe.url){const Mn=Ie()(`${Ge}-list-item-thumbnail`,{[`${Ge}-list-item-file`]:qn!=="uploading"});Kn=ne.createElement("div",{className:Mn},da)}else{const Mn=pn!=null&&pn(Xe)?ne.createElement("img",{src:Xe.thumbUrl||Xe.url,alt:Xe.name,className:`${Ge}-list-item-image`,crossOrigin:Xe.crossOrigin}):da,On=Ie()(`${Ge}-list-item-thumbnail`,{[`${Ge}-list-item-file`]:pn&&!pn(Xe)});Kn=ne.createElement("a",{className:On,onClick:la=>Qt(Xe,la),href:Xe.url||Xe.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mn)}const xn=Ie()(`${Ge}-list-item`,`${Ge}-list-item-${qn}`),ta=typeof Xe.linkProps=="string"?JSON.parse(Xe.linkProps):Xe.linkProps,ga=ot?rn((typeof ft=="function"?ft(Xe):ft)||ne.createElement(Be.Z,null),()=>Pn(Xe),Ge,rt.removeFile):null,ia=ht&&qn==="done"?rn((typeof Yt=="function"?Yt(Xe):Yt)||ne.createElement(Je.Z,null),()=>Ht(Xe),Ge,rt.downloadFile):null,aa=qe!=="picture-card"&&qe!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Ie()(`${Ge}-list-item-actions`,{picture:qe==="picture"})},ia,ga),ea=Ie()(`${Ge}-list-item-name`),fa=Xe.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Xe.name},ta,{href:Xe.url,onClick:Mn=>Qt(Xe,Mn)}),Xe.name),aa]:[ne.createElement("span",{key:"view",className:ea,onClick:Mn=>Qt(Xe,Mn),title:Xe.name},Xe.name),aa],Xt={pointerEvents:"none",opacity:.5},$n=En?ne.createElement("a",{href:Xe.url||Xe.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Xe.url||Xe.thumbUrl?void 0:Xt,onClick:Mn=>Qt(Xe,Mn),title:rt.previewFile},typeof Mt=="function"?Mt(Xe):Mt||ne.createElement(mt.Z,null)):null,In=(qe==="picture-card"||qe==="picture-circle")&&qn!=="uploading"&&ne.createElement("span",{className:`${Ge}-list-item-actions`},$n,qn==="done"&&ia,ga),{getPrefixCls:Un}=ne.useContext(et.E_),Xn=Un(),ra=ne.createElement("div",{className:xn},Kn,fa,In,Sa&&ne.createElement(_e.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Mn=>{let{className:On}=Mn;const la="percent"in Xe?ne.createElement(Pt.Z,Object.assign({},Tt,{type:"line",percent:Xe.percent,"aria-label":Xe["aria-label"],"aria-labelledby":Xe["aria-labelledby"]})):null;return ne.createElement("div",{className:Ie()(`${Ge}-list-item-progress`,On)},la)})),va=Xe.response&&typeof Xe.response=="string"?Xe.response:((fn=Xe.error)===null||fn===void 0?void 0:fn.statusText)||((oa=Xe.error)===null||oa===void 0?void 0:oa.message)||rt.uploadError,pa=qn==="error"?ne.createElement(Rt.Z,{title:va,getPopupContainer:Mn=>Mn.parentNode},ra):ra;return ne.createElement("div",{className:Ie()(`${Ge}-list-item-container`,Ue),style:at,ref:Ne},an?an(pa,Xe,Dt,{download:Ht.bind(null,Xe),preview:Qt.bind(null,Xe),remove:Pn.bind(null,Xe)}):pa)});const _t=(ue,Ne)=>{const{listType:Ge="text",previewFile:Ue=ye,onPreview:at,onDownload:rt,onRemove:qe,locale:Xe,iconRender:Dt,isImageUrl:Tt=qt,prefixCls:Ce,items:rn=[],showPreviewIcon:an=!0,showRemoveIcon:pn=!0,showDownloadIcon:En=!1,removeIcon:ot,previewIcon:ht,downloadIcon:Mt,progress:ft={size:[-1,2],showInfo:!1},appendAction:Yt,appendActionVisible:Qt=!0,itemRender:Ht,disabled:Pn}=ue,fn=(0,lt.Z)(),[oa,Qn]=ne.useState(!1);ne.useEffect(()=>{Ge!=="picture"&&Ge!=="picture-card"&&Ge!=="picture-circle"||(rn||[]).forEach(Xt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Xt.originFileObj instanceof File||Xt.originFileObj instanceof Blob)||Xt.thumbUrl!==void 0||(Xt.thumbUrl="",Ue&&Ue(Xt.originFileObj).then($n=>{Xt.thumbUrl=$n||"",fn()}))})},[Ge,rn,Ue]),ne.useEffect(()=>{Qn(!0)},[]);const qn=(Xt,$n)=>{if(at)return $n==null||$n.preventDefault(),at(Xt)},ca=Xt=>{typeof rt=="function"?rt(Xt):Xt.url&&window.open(Xt.url)},Sa=Xt=>{qe==null||qe(Xt)},Pa=Xt=>{if(Dt)return Dt(Xt,Ge);const $n=Xt.status==="uploading",In=Tt&&Tt(Xt)?ne.createElement(ke,null):ne.createElement(ut,null);let Un=$n?ne.createElement(Ze.Z,null):ne.createElement(It,null);return Ge==="picture"?Un=$n?ne.createElement(Ze.Z,null):In:(Ge==="picture-card"||Ge==="picture-circle")&&(Un=$n?Xe.uploading:In),Un},da=(Xt,$n,In,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{$n(),(0,Ct.l$)(Xt)&&Xt.props.onClick&&Xt.props.onClick(ra)},className:`${In}-list-item-action`,disabled:Pn};if((0,Ct.l$)(Xt)){const ra=(0,Ct.Tm)(Xt,Object.assign(Object.assign({},Xt.props),{onClick:()=>{}}));return ne.createElement(At.ZP,Object.assign({},Xn,{icon:ra}))}return ne.createElement(At.ZP,Object.assign({},Xn),ne.createElement("span",null,Xt))};ne.useImperativeHandle(Ne,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Kn}=ne.useContext(et.E_),xn=Kn("upload",Ce),ta=Kn(),ga=Ie()(`${xn}-list`,`${xn}-list-${Ge}`),ia=(0,Se.Z)(rn.map(Xt=>({key:Xt.uid,file:Xt})));let ea={motionDeadline:2e3,motionName:`${xn}-${Ge==="picture-card"||Ge==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:oa};const fa=ne.useMemo(()=>{const Xt=Object.assign({},(0,Ot.Z)(ta));return delete Xt.onAppearEnd,delete Xt.onEnterEnd,delete Xt.onLeaveEnd,Xt},[ta]);return Ge!=="picture-card"&&Ge!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ne.createElement("div",{className:ga},ne.createElement(_e.CSSMotionList,Object.assign({},ea,{component:!1}),Xt=>{let{key:$n,file:In,className:Un,style:Xn}=Xt;return ne.createElement(Gt,{key:$n,locale:Xe,prefixCls:xn,className:Un,style:Xn,file:In,items:rn,progress:ft,listType:Ge,isImgUrl:Tt,showPreviewIcon:an,showRemoveIcon:pn,showDownloadIcon:En,removeIcon:ot,previewIcon:ht,downloadIcon:Mt,iconRender:Pa,actionIconRender:da,itemRender:Ht,onPreview:qn,onDownload:ca,onClose:Sa})}),Yt&&ne.createElement(_e.default,Object.assign({},ea,{visible:Qt,forceRender:!0}),Xt=>{let{className:$n,style:In}=Xt;return(0,Ct.Tm)(Yt,Un=>({className:Ie()(Un.className,$n),style:Object.assign(Object.assign(Object.assign({},In),{pointerEvents:$n?"none":void 0}),Un.style)}))}))};var Kt=ne.forwardRef(_t),nn=oe(17313),hn=oe(8378),vn=oe(83116),wn=oe(37613),on=ue=>{const{componentCls:Ne,iconCls:Ge}=ue;return{[`${Ne}-wrapper`]:{[`${Ne}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[Ne]:{padding:`${ue.padding}px 0`},[`${Ne}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ne}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ne}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${Ne}-drag-icon`]:{marginBottom:ue.margin,[Ge]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${Ne}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${Ne}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${Ne}-disabled`]:{cursor:"not-allowed",[`p${Ne}-drag-icon ${Ge},
p${Ne}-text,
p${Ne}-hint
`]:{color:ue.colorTextDisabled}}}}}},Cn=ue=>{const{componentCls:Ne,antCls:Ge,iconCls:Ue,fontSize:at,lineHeight:rt}=ue,qe=`${Ne}-list-item`,Xe=`${qe}-actions`,Dt=`${qe}-action`,Tt=Math.round(at*rt);return{[`${Ne}-wrapper`]:{[`${Ne}-list`]:Object.assign(Object.assign({},(0,nn.dF)()),{lineHeight:ue.lineHeight,[qe]:{position:"relative",height:ue.lineHeight*at,marginTop:ue.marginXS,fontSize:at,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${qe}-name`]:Object.assign(Object.assign({},nn.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:rt,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[Xe]:{[Dt]:{opacity:0},[`${Dt}${Ge}-btn-sm`]:{height:Tt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Dt}:focus-visible,
&.picture ${Dt}
`]:{opacity:1},[Ue]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${Ue}`]:{color:ue.colorText}},[`${Ne}-icon ${Ue}`]:{color:ue.colorTextDescription,fontSize:at},[`${qe}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:at+ue.paddingXS,fontSize:at,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${qe}:hover ${Dt}`]:{opacity:1,color:ue.colorText},[`${qe}-error`]:{color:ue.colorError,[`${qe}-name, ${Ne}-icon ${Ue}`]:{color:ue.colorError},[Xe]:{[`${Ue}, ${Ue}:hover`]:{color:ue.colorError},[Dt]:{opacity:1}}},[`${Ne}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Bn=oe(88252),cn=oe(1950);const zn=new Bn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new Bn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=ue=>{const{componentCls:Ne}=ue,Ge=`${Ne}-animate-inline`;return[{[`${Ne}-wrapper`]:{[`${Ge}-appear, ${Ge}-enter, ${Ge}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ge}-appear, ${Ge}-enter`]:{animationName:zn},[`${Ge}-leave`]:{animationName:Yn}}},{[`${Ne}-wrapper`]:(0,cn.J$)(ue)},zn,Yn]},na=oe(93398),Jn=oe(64993);const Le=ue=>{const{componentCls:Ne,iconCls:Ge,uploadThumbnailSize:Ue,uploadProgressOffset:at}=ue,rt=`${Ne}-list`,qe=`${rt}-item`;return{[`${Ne}-wrapper`]:{[`
${rt}${rt}-picture,
${rt}${rt}-picture-card,
${rt}${rt}-picture-circle
`]:{[qe]:{position:"relative",height:Ue+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${qe}-thumbnail`]:Object.assign(Object.assign({},nn.vS),{width:Ue,height:Ue,lineHeight:`${Ue+ue.paddingSM}px`,textAlign:"center",flex:"none",[Ge]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${qe}-progress`]:{bottom:at,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ue+ue.paddingXS}},[`${qe}-error`]:{borderColor:ue.colorError,[`${qe}-thumbnail ${Ge}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:ue.colorError}}},[`${qe}-uploading`]:{borderStyle:"dashed",[`${qe}-name`]:{marginBottom:at}}},[`${rt}${rt}-picture-circle ${qe}`]:{[`&, &::before, ${qe}-thumbnail`]:{borderRadius:"50%"}}}}},be=ue=>{const{componentCls:Ne,iconCls:Ge,fontSizeLG:Ue,colorTextLightSolid:at}=ue,rt=`${Ne}-list`,qe=`${rt}-item`,Xe=ue.uploadPicCardSize;return{[`
${Ne}-wrapper${Ne}-picture-card-wrapper,
${Ne}-wrapper${Ne}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,nn.dF)()),{display:"inline-block",width:"100%",[`${Ne}${Ne}-select`]:{width:Xe,height:Xe,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${Ne}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ne}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${rt}${rt}-picture-card, ${rt}${rt}-picture-circle`]:{[`${rt}-item-container`]:{display:"inline-block",width:Xe,height:Xe,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[qe]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${qe}:hover`]:{[`&::before, ${qe}-actions`]:{opacity:1}},[`${qe}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${Ge}-eye, ${Ge}-download, ${Ge}-delete`]:{zIndex:10,width:Ue,margin:`0 ${ue.marginXXS}px`,fontSize:Ue,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${qe}-actions, ${qe}-actions:hover`]:{[`${Ge}-eye, ${Ge}-download, ${Ge}-delete`]:{color:new Jn.C(at).setAlpha(.65).toRgbString(),"&:hover":{color:at}}},[`${qe}-thumbnail, ${qe}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${qe}-name`]:{display:"none",textAlign:"center"},[`${qe}-file + ${qe}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${qe}-uploading`]:{[`&${qe}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${Ge}-eye, ${Ge}-download, ${Ge}-delete`]:{display:"none"}},[`${qe}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ne}-wrapper${Ne}-picture-circle-wrapper`]:{[`${Ne}${Ne}-select`]:{borderRadius:"50%"}}}};var st=ue=>{const{componentCls:Ne}=ue;return{[`${Ne}-rtl`]:{direction:"rtl"}}};const Nt=ue=>{const{componentCls:Ne,colorTextDisabled:Ge}=ue;return{[`${Ne}-wrapper`]:Object.assign(Object.assign({},(0,nn.Wf)(ue)),{[Ne]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ne}-select`]:{display:"inline-block"},[`${Ne}-disabled`]:{color:Ge,cursor:"not-allowed"}})}};var xt=(0,vn.Z)("Upload",ue=>{const{fontSizeHeading3:Ne,fontSize:Ge,lineHeight:Ue,lineWidth:at,controlHeightLG:rt}=ue,qe=Math.round(Ge*Ue),Xe=(0,wn.TS)(ue,{uploadThumbnailSize:Ne*2,uploadProgressOffset:qe/2+at,uploadPicCardSize:rt*2.55});return[Nt(Xe),on(Xe),Le(Xe),be(Xe),Cn(Xe),Wn(Xe),st(Xe),(0,hn.Z)(Xe)]},ue=>({actionsColor:ue.colorTextDescription})),ln=function(ue,Ne,Ge,Ue){function at(rt){return rt instanceof Ge?rt:new Ge(function(qe){qe(rt)})}return new(Ge||(Ge=Promise))(function(rt,qe){function Xe(Ce){try{Tt(Ue.next(Ce))}catch(rn){qe(rn)}}function Dt(Ce){try{Tt(Ue.throw(Ce))}catch(rn){qe(rn)}}function Tt(Ce){Ce.done?rt(Ce.value):at(Ce.value).then(Xe,Dt)}Tt((Ue=Ue.apply(ue,Ne||[])).next())})};const Zt=`__LIST_IGNORE_${Date.now()}__`,en=(ue,Ne)=>{const{fileList:Ge,defaultFileList:Ue,onRemove:at,showUploadList:rt=!0,listType:qe="text",onPreview:Xe,onDownload:Dt,onChange:Tt,onDrop:Ce,previewFile:rn,disabled:an,locale:pn,iconRender:En,isImageUrl:ot,progress:ht,prefixCls:Mt,className:ft,type:Yt="select",children:Qt,style:Ht,itemRender:Pn,maxCount:fn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=ue,da=ne.useContext(gt.Z),Kn=an!=null?an:da,[xn,ta]=(0,Te.Z)(Ue||[],{value:Ge,postState:Vt=>Vt!=null?Vt:[]}),[ga,ia]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const Vt=Date.now();(Ge||[]).forEach((sn,bn)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Vt}_${bn}__`)})},[Ge]);const ea=(Vt,sn,bn)=>{let gn=(0,Se.Z)(sn),Sn=!1;fn===1?gn=gn.slice(-1):fn&&(Sn=gn.length>fn,gn=gn.slice(0,fn)),(0,ze.flushSync)(()=>{ta(gn)});const Hn={file:Vt,fileList:gn};bn&&(Hn.event=bn),(!Sn||gn.some(Tn=>Tn.uid===Vt.uid))&&(0,ze.flushSync)(()=>{Tt==null||Tt(Hn)})},fa=(Vt,sn)=>ln(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:gn}=ue;let Sn=Vt;if(bn){const Hn=yield bn(Vt,sn);if(Hn===!1)return!1;if(delete Vt[Zt],Hn===Zt)return Object.defineProperty(Vt,Zt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(Sn=Hn)}return gn&&(Sn=yield gn(Sn)),Sn}),Xt=Vt=>{const sn=Vt.filter(Sn=>!Sn.file[Zt]);if(!sn.length)return;const bn=sn.map(Sn=>jt(Sn.file));let gn=(0,Se.Z)(xn);bn.forEach(Sn=>{gn=Bt(Sn,gn)}),bn.forEach((Sn,Hn)=>{let Tn=Sn;if(sn[Hn].parsedFile)Sn.status="uploading";else{const{originFileObj:ha}=Sn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=Sn.uid,Tn=ua}ea(Tn,gn)})},$n=(Vt,sn,bn)=>{try{typeof Vt=="string"&&(Vt=JSON.parse(Vt))}catch(Hn){}if(!bt(sn,xn))return;const gn=jt(sn);gn.status="done",gn.percent=100,gn.response=Vt,gn.xhr=bn;const Sn=Bt(gn,xn);ea(gn,Sn)},In=(Vt,sn)=>{if(!bt(sn,xn))return;const bn=jt(sn);bn.status="uploading",bn.percent=Vt.percent;const gn=Bt(bn,xn);ea(bn,gn,Vt)},Un=(Vt,sn,bn)=>{if(!bt(bn,xn))return;const gn=jt(bn);gn.error=Vt,gn.response=sn,gn.status="error";const Sn=Bt(gn,xn);ea(gn,Sn)},Xn=Vt=>{let sn;Promise.resolve(typeof at=="function"?at(Vt):at).then(bn=>{var gn;if(bn===!1)return;const Sn=Et(Vt,xn);Sn&&(sn=Object.assign(Object.assign({},Vt),{status:"removed"}),xn==null||xn.forEach(Hn=>{const Tn=sn.uid!==void 0?"uid":"name";Hn[Tn]===sn[Tn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(gn=aa.current)===null||gn===void 0||gn.abort(sn),ea(sn,Sn))})},ra=Vt=>{ia(Vt.type),Vt.type==="drop"&&(Ce==null||Ce(Vt))};ne.useImperativeHandle(Ne,()=>({onBatchStart:Xt,onSuccess:$n,onProgress:In,onError:Un,fileList:xn,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Mn}=ne.useContext(et.E_),On=va("upload",Mt),la=Object.assign(Object.assign({onBatchStart:Xt,onError:Un,onProgress:In,onSuccess:$n},ue),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:On,disabled:Kn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Qt||Kn)&&delete la.id;const[ya,La]=xt(On),[ba]=(0,Re.Z)("Upload",je.Z.Upload),{showRemoveIcon:zt,showPreviewIcon:ct,showDownloadIcon:wt,removeIcon:$t,previewIcon:un,downloadIcon:Gn}=typeof rt=="boolean"?{}:rt,Rn=(Vt,sn)=>rt?ne.createElement(Kt,{prefixCls:On,listType:qe,items:xn,previewFile:rn,onPreview:Xe,onDownload:Dt,onRemove:Xn,showRemoveIcon:!Kn&&zt,showPreviewIcon:ct,showDownloadIcon:wt,removeIcon:$t,previewIcon:un,downloadIcon:Gn,iconRender:En,locale:Object.assign(Object.assign({},ba),pn),isImageUrl:ot,progress:ht,appendAction:Vt,appendActionVisible:sn,itemRender:Pn,disabled:Kn}):Vt,An=Ie()(`${On}-wrapper`,ft,Pa,La,Mn==null?void 0:Mn.className,{[`${On}-rtl`]:pa==="rtl",[`${On}-picture-card-wrapper`]:qe==="picture-card",[`${On}-picture-circle-wrapper`]:qe==="picture-circle"}),jn=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),Ht);if(Yt==="drag"){const Vt=Ie()(La,On,`${On}-drag`,{[`${On}-drag-uploading`]:xn.some(sn=>sn.status==="uploading"),[`${On}-drag-hover`]:ga==="dragover",[`${On}-disabled`]:Kn,[`${On}-rtl`]:pa==="rtl"});return ya(ne.createElement("span",{className:An},ne.createElement("div",{className:Vt,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ne.createElement(Pe,Object.assign({},la,{ref:aa,className:`${On}-btn`}),ne.createElement("div",{className:`${On}-drag-container`},Qt))),Rn()))}const kn=Ie()(On,`${On}-select`,{[`${On}-disabled`]:Kn}),Vn=(Vt=>ne.createElement("div",{className:kn,style:Vt},ne.createElement(Pe,Object.assign({},la,{ref:aa}))))(Qt?void 0:{display:"none"});return ya(qe==="picture-card"||qe==="picture-circle"?ne.createElement("span",{className:An},Rn(Vn,!!Qt)):ne.createElement("span",{className:An},Vn,Rn()))};var _n=ne.forwardRef(en),it=function(ue,Ne){var Ge={};for(var Ue in ue)Object.prototype.hasOwnProperty.call(ue,Ue)&&Ne.indexOf(Ue)<0&&(Ge[Ue]=ue[Ue]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ue=Object.getOwnPropertySymbols(ue);at<Ue.length;at++)Ne.indexOf(Ue[at])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ue[at])&&(Ge[Ue[at]]=ue[Ue[at]]);return Ge},Dn=ne.forwardRef((ue,Ne)=>{var{style:Ge,height:Ue}=ue,at=it(ue,["style","height"]);return ne.createElement(_n,Object.assign({ref:Ne},at,{type:"drag",style:Object.assign(Object.assign({},Ge),{height:Ue})}))});const Zn=_n;Zn.Dragger=Dn,Zn.LIST_IGNORE=Zt;var Fn=Zn}}]);