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__Commo...

150 lines
412 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[9715],{26227:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ae}});var ne=oe(54476),Se=oe(59301),Qe={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=Qe,ce=oe(7657),Fe=function(De,We){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:We,icon:Ie}))},se=Se.forwardRef(Fe),Ae=se},41464:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ae}});var ne=oe(54476),Se=oe(59301),Qe={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=Qe,ce=oe(7657),Fe=function(De,We){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:We,icon:Ie}))},se=Se.forwardRef(Fe),Ae=se},61481:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ae}});var ne=oe(54476),Se=oe(59301),Qe={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=Qe,ce=oe(7657),Fe=function(De,We){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:We,icon:Ie}))},se=Se.forwardRef(Fe),Ae=se},33853:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ae}});var ne=oe(54476),Se=oe(59301),Qe={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=Qe,ce=oe(7657),Fe=function(De,We){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:We,icon:Ie}))},se=Se.forwardRef(Fe),Ae=se},12893:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ae}});var ne=oe(54476),Se=oe(59301),Qe={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=Qe,ce=oe(7657),Fe=function(De,We){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:We,icon:Ie}))},se=Se.forwardRef(Fe),Ae=se},32134:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ae}});var ne=oe(54476),Se=oe(59301),Qe={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=Qe,ce=oe(7657),Fe=function(De,We){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:We,icon:Ie}))},se=Se.forwardRef(Fe),Ae=se},38819:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ae}});var ne=oe(54476),Se=oe(59301),Qe={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=Qe,ce=oe(7657),Fe=function(De,We){return Se.createElement(ce.Z,(0,ne.Z)({},De,{ref:We,icon:Ie}))},se=Se.forwardRef(Fe),Ae=se},69453:function(Ge,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"}},72179:function(){"use strict";function Ge(ae,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(Ge.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(Ge.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(Ge.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(Ge.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 Ge))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ae];x||(x=[],go.Shape._FigureParameters[ae]=x),x[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 Qe(ae,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,me=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,me=a);else{var le=(E-ee)/ie,Ce=E-le*b;ge=ae,me=le*ge+Ce}else if(ie===0){var xe=(a-x)/re,ct=a-xe*ae;ge=b,me=xe*ge+ct}else{var xe=(a-x)/re,le=(E-ee)/ie,ct=a-xe*ae,Ce=E-le*b;ge=(Ce-ct)/(xe-le),me=xe*ge+ct}return te.x=ge,te.y=me,te}function Ie(ae,a,y,x,b,E,z,ee,te,re,ie,ge,me,le){var Ce=1-te,xe=te,ct=ae*Ce+y*xe,Nt=a*Ce+x*xe,Zt=y*Ce+b*xe,ve=x*Ce+E*xe,Ee=b*Ce+z*xe,Oe=E*Ce+ee*xe,et=ct*Ce+Zt*xe,gt=Nt*Ce+ve*xe,je=Zt*Ce+Ee*xe,Ve=ve*Ce+Oe*xe,Ke=et*Ce+je*xe,pt=gt*Ce+Ve*xe;re.x=ct,re.y=Nt,ie.x=et,ie.y=gt,ge.x=Ke,ge.y=pt,me.x=je,me.y=Ve,le.x=Ee,le.y=Oe}var ce=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*se,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(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 x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(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 x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=ce,b.spot2=Fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,se*a,0,a,(1-se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,se*y,(1-se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,se*y,se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-se)*a,0,0,(1-se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ge("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ge("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ge("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var Ae=[];function ze(){var ae=Ae.pop();return ae===void 0?[]:ae}function De(ae){ae.length=0,Ae.push(ae)}function We(ae){for(var a=ze(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ae;z++)E=2*Math.PI/ae*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function _e(ae){var a=Te(ae),y=ze();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return De(a),y}function Te(ae){for(var a=We(ae),y=ze(),x=Math.floor(a.length/2),b=a.length-1,E=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],re=a[(x+z-1)%b],ie=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Qe(ee.x,ee.y,re.x,re.y,te.x,te.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],De(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var x=We(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var x=We(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var x=We(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var x=We(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var x=We(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var x=We(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var x=We(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var x=Te(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var x=Te(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var x=Te(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var x=Te(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var x=Te(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var x=Te(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),De(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var x=_e(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var x=_e(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var x=_e(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var x=_e(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var x=_e(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var x=_e(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),De(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var x=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new Ge("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=ce,E.spot2=Fe,E.defaultStretch=go.GraphObject.Uniform,E}),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 x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var x=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var x=se/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var x=ae?ae.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),re=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ge("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ge("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*se;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*se,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=se*.4;var re=ne(),ie=ne(),ge=ne(),me=ne();Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,re,ie,ge,me,me);var le=ne(),Ce=ne(),xe=ne();Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,me,me,xe,le,Ce);var ct=ne(),Nt=ne(),Zt=ne();Ie(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,ct,Nt,Zt,me,me);var ve=ne(),Ee=ne(),Oe=ne();return Ie(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,me,me,Oe,ve,Ee),te.add(new go.PathSegment(go.PathSegment.Move,Oe.x*a,Oe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ve.x*a,ve.y*y,Ee.x*a,Ee.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Oe.x*a,Oe.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Zt.x*a,Zt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,le.x*a,le.y*y,Ce.x*a,Ce.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Zt.x*a,Zt.y*y,ct.x*a,ct.y*y,Nt.x*a,Nt.y*y).close()),Se(re),Se(ie),Se(ge),Se(me),Se(le),Se(Ce),Se(xe),Se(ct),Se(Nt),Se(Zt),Se(ve),Se(Ee),Se(Oe),x.defaultStretch=go.GraphObject.Uniform,x}),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 Ge("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(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 x=new go.Geometry,b=se*.4,E=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),me=new go.PathFigure((z-E)*a,ee*y,!1);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,ie,ge,re,te,te),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));var le=oe(re.x,re.y);Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,re,ie,ge);var Ce=oe(re.x,re.y);me.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,(Ce.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Ce.x*a,Ce.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*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+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=se*.35;var xe=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var ct=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(ct),Se(te),Se(re),Se(ie),Se(ge),Se(le),Se(Ce),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*se,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*se;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var x=ae?ae.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var x=ae?ae.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(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 x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(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 x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,z)),re.add(new go.PathSegment(go.PathSegment.Line,E,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,E,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Qe(0,ee/y,1,ee/y,E/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,z)),re.add(new go.PathSegment(go.PathSegment.Line,E,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,E,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Qe(0,ee/y,1,ee/y,E/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ge("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Qe(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Qe(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=Qe(0,.5,.3,ee/y,0,E/y,1,E/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=Qe(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Qe(.7,1,1,.5,0,E/y,1,E/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,E/y);var ge=Qe(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Ge("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=Qe(.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 Ge("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=Qe(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 Ge("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Qe(.7,1,1,.5,0,E/y,1,E/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Qe(.7,1,1,.5,0,E/y,1,E/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var x=new go.Geometry,b=se*.5,E=se*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=se*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,se*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-se*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-se*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-se*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-se*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=se*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,se*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-se*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-se*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-se*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-se*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=se*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+se*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+se*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=se*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-se*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,se*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-se*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-se*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var x=new go.Geometry,b=.2,E=.1,z=se*b,ee=se*E,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+E)*y,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+E)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-E)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-E)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-E)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+E)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+E)*y));var ge=.05,me=se*ge;te=.05,re=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+me)*a,(re-ge)*y,(te+ge)*a,(re-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,me=se*ge,te=.825,re=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,me=se*ge,te=.5,re=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,me=se*ge,te=.175,re=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,me=se*ge,te=.05,re=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-me)*y,(te-me)*a,(re-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Ge("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var x=ae?ae.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var x=new go.Geometry,b=se*.5,E=se*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var x=new go.Geometry,b=se*.5,E=se*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=se*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),re.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN,E=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var x=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var x=new go.Geometry,b=se*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var x=new go.Geometry,b=se*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var x=new go.Geometry,b=se*.5,E=se*.4,z=se*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=se*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*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+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=se*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var x=new go.Geometry,b=.5,E=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var x=new go.Geometry,b=se*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var x=new go.Geometry,b=se*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(E-y)/2,me=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=se*.4,ee=.4,te=.2,re=.5;var le=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=se*.2,ee=.2,te=.5,re=.5;var Ce=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=se*.4,ee=.4,te=.8,re=.5;var xe=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=se*.8,ee=.8,te=1,re=.5;var ct=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return x.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),ct.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),ct.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),x}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var x=new go.Geometry,b=se*.4,E=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne();Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,re,ie,ge);var me=oe(re.x,re.y),le=new go.PathFigure(re.x*a,re.y*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Ie(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ie,ge,re,te,te),le.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)),b=se*.3,E=.3,Ie(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ie,ge,re,te,te),le.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Ie(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,re,ie,ge),le.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).close());var le=new go.PathFigure(.45*a,0,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Se(te),Se(re),Se(ie),Se(ge),Se(me),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*se,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,me=.5,le=0,Ce=new go.PathFigure(te*a,(1-re)*y,!1);return x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me+E)*a,(le+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Ce.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,me=z,le=z,Ce=ie*me,xe=ie*le;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Ce+me)/2)*a,(te+(le+xe)/2)*y,(ee-me)*a,(te+xe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-me)*a,(te-xe)*y,(ee-Ce)*a,(te-le)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Ce)*a,(te-le)*y,(ee+me)*a,(te-xe)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+xe)*y,(ee+(Ce+me)/2)*a,(te+(le+xe)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var ct=new go.PathFigure(.2*a,y,!1);x.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Nt=new go.PathFigure(.8*a,y,!1);return x.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=se*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);x.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()),z=.1,ee=se*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return x.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()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=se*.1,ie=.1,ge=.9,me=new go.PathFigure((ie-te)*a,ge*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=se*.1,ie=.4,ge=.9;var le=new go.PathFigure((ie-te)*a,ge*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=se*.05,me=.175,le=.95,ee=new go.PathFigure((me-ie)*a,le*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,me=.375,le=.95,te=new go.PathFigure((me-ie)*a,le*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,me=.625,le=.95,re=new go.PathFigure((me-ie)*a,le*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,me=.825,le=.95,Ce=new go.PathFigure((me-ie)*a,le*y,!0);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y).close());var xe=new go.PathFigure(0,y,!1);return x.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=se*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var x=new go.Geometry,b=.3,E=se*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var re=new go.PathFigure(0,.7*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var x=new go.Geometry,b=.5,E=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=se*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),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)),x}),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 x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(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 x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(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 x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var x=new go.Geometry,b=8,E=b*se,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return x.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()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var x=ae?ae.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*se,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(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 x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var x=new go.Geometry,b=15,E=b*se,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},25730: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 Ge={},dt="5.0",oe={},ne=null,Se=!1,Qe=!1,Ie=null,ce=!1,Fe=null,se=null,Ae=0;Ae<arguments.length;Ae++){var ze=arguments[Ae];if(ze!==null)switch(typeof ze){case"number":dt=ze.toFixed(1);break;case"string":ze.match(new RegExp("^[0-9]\\.[0-9]+$"))?dt=ze:Ie=ze;break;case"object":typeof ze.is3D!="undefined"?ne=ze:oe=ze;break;case"boolean":Se=ze,Qe=!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&&!Qe&&(Se=!0)),Ie!==null&&oe.id===void 0&&(oe.id=Ie);var De="",We="",_e=!1,Te=null,ae=null,a=null,y=!1,x=null,b=null,E=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(fe){return parseFloat(fe)>4?parseFloat(fe):5};Ge.setHTML5Codebase=function(fe,Be){se=fe,Ve(fe,Be)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(fe,Be){var Ye=parseFloat(fe);if(Ye!==NaN&&Ye<5){console.log("The GeoGebra HTML5 codebase version "+Ye+" is deprecated. Using version latest instead.");return}Fe=fe,je(fe,Be)},Ge.getHTML5CodebaseVersion=function(){return ae},Ge.getParameters=function(){return oe},Ge.setFontsCSSURL=function(fe){z=fe},Ge.setGiacJSURL=function(fe){},Ge.setJNLPFile=function(fe){De=fe},Ge.setJNLPBaseDir=function(fe){},Ge.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Be="auto",Ye=oe.id,St,Xe=!1,Je=0;Je<arguments.length;Je++){var de=arguments[Je];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Be=de:Ye=arguments[Je]):typeof de=="boolean"?Xe=de:de instanceof HTMLElement&&(St=de)}tt();function tt(){if(!ce){setTimeout(tt,200);return}Be=et(Be);var st=St||document.getElementById(Ye);if(!st){console.log("possibly bug on ajax loading? ");return}if(Ge.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)&&Be==="html5"&&(delete oe.width,delete oe.height),Te=Be,Be==="screenshot")Nt(st,oe);else{var At=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?At=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(At=(!re()||fe())&&ie()),At?(Te="screenshot",ve(st,oe,Xe,Be)):ct(st,oe,Xe)}}};function re(){try{return window.self!==window.top}catch(fe){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return ne},Ge.isJavaInstalled=function(){return!1};var ge=function(fe){var Be=function(Je){var de=JSON.parse(Je),tt=function(vt){return vt.type=="G"||vt.type=="E"},st=de.elements?de.elements.filter(tt)[0]:de;if(!st||!st.url){Ye();return}oe.fileName=st.url,me(st.settings||{}),ne.is3D=!0;var At="https://www.geogebra.org/images/";Ge.setPreviewImage(x||st.previewUrl,At+"GeoGebra_loading.png",At+"applet_play.png"),fe()},Ye=function(){oe.onError&&oe.onError(),Ke("Error: Fetching material (id "+oe.material_id+") failed.",oe)},St=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Xe="/materials/"+oe.material_id+"?scope=basic";le("https://"+St+"/api/proxy.php?path="+encodeURIComponent(Xe),Be,Ye)};function me(fe){var Be=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ye){fe[Ye]=!!fe[Ye]}),Be.forEach(function(Ye){oe[Ye]===void 0&&fe[Ye]!==void 0&&(oe[Ye]=fe[Ye])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function le(fe,Be,Ye){var St=new XMLHttpRequest;St.open("GET",fe),St.onload=function(){Be(St.responseText)},St.onerror=Ye,St.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return Te},Ge.setPreviewImage=function(fe,Be,Ye){x=fe,b=Be,E=Ye},Ge.removeExistingApplet=function(fe,Be){var Ye;typeof fe=="string"&&(fe=document.getElementById(fe)),Te=null;var St=null;for(Ye=0;Ye<fe.childNodes.length;Ye++){var Xe=fe.childNodes[Ye],Je=Xe.className;Je==="applet_screenshot"?Be?(Xe.style.display="block",Te="screenshot"):Xe.style.display="none":Je!=="applet_scaler prerender"&&(fe.removeChild(Xe),St=Je&&Je.indexOf("appletParameters")!=-1?Xe.id:null,Ye--)}var de=oe.id!==void 0?oe.id:St,tt=window[de];tt&&typeof tt.getBase64=="function"&&(tt.remove(),window[de]=null)},Ge.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var fe=Ge.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var fe=Ge.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},Ge.stopAnimation=function(){var fe=Ge.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var fe=oe.id!==void 0?oe.id:"ggbApplet";return window[fe]},Ge.resize=function(){};var Ce=function(fe,Be,Ye){var St=document.createElement("param");St.setAttribute("name",Be),St.setAttribute("value",Ye),fe.appendChild(St)},xe=function(fe){return fe&&fe!=="false"},ct=function(fe,Be,Ye){te(ae)<=4.2&&(Ye=!0);var St=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(St=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Xe=document.createElement("div");Xe.classList.add("appletParameters","notranslate");var Je=Be.width,de=Be.height;if(Be.disableAutoScale=Be.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Be.disableAutoScale,Be.width!==void 0)if(te(ae)<=4.4)xe(Be.showToolBar)&&(Be.height-=7),xe(Be.showAlgebraInput)&&(Be.height-=37),Be.width<605&&xe(Be.showToolBar)&&(Be.width=605,Je=605);else{var tt=100;(xe(Be.showToolBar)||xe(Be.showMenuBar))&&(Be.hasOwnProperty("customToolBar")&&(Be.customToolbar=Be.customToolBar),tt=xe(Be.showMenuBar)?245:155),Je<tt&&(Be.width=tt,Je=tt)}Xe.style.border="none",Xe.style.display="inline-block";for(var st in Be)Be.hasOwnProperty(st)&&st!=="appletOnLoad"&&Xe.setAttribute("data-param-"+st,Be[st]);z&&Xe.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(fe,Be)},window.addEventListener("resize",function(wt){Ge.resize()});var At=typeof Be.appletOnLoad=="function"?Be.appletOnLoad:function(){};if(!Ye&&Be.width!==void 0){Be.hasOwnProperty("showSplash")||Xe.setAttribute("data-param-showSplash","false");var vt=fe.querySelector(".applet_scaler.prerender"),be=vt!==null;if(be)var ye=vt.querySelector(".ggb_preview");else{var ye=Oe(Je,de,Be.borderColor,!1);vt=document.createElement("div"),vt.className="applet_scaler",vt.style.position="relative",vt.style.display="block",vt.style.width=Je+"px",vt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(vt,"66%"),te(ae)>=5?(Be.appletOnLoad=function(wt){var ht=fe.querySelector(".ggb_preview");ht&&ht.parentNode.removeChild(ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(vt),window.GGBT_wsf_view&&$(window).trigger("resize"),At(wt)},be||vt.appendChild(ye)):Xe.appendChild(ye),vt.appendChild(Xe),be||fe.appendChild(vt),setTimeout(function(){Ge.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(Xe),fe.appendChild(Pe),Be.appletOnLoad=function(wt){Ge.resize(),At(wt)}}function ke(wt,ht){ht&&typeof ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(wt,ht.appletOnLoad):renderGGBElement(wt),Ke("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ht)}function He(wt,ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:wt,params:ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(yt){ke(yt.article,yt.params)}),html5AppletsToProcess=null)},te(ae)<5&&(wt.className+=" geogebraweb")):ke(wt,ht)}if(St){scriptLoadStarted=!0;for(var ut=0;ut<Xe.childNodes.length;ut++){var xt=Xe.childNodes[ut].tagName;xt==="TABLE"&&(Xe.removeChild(Xe.childNodes[ut]),ut--)}if(ggbHTML5LoadedScript!==null){var bt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');bt!=null&&bt.parentNode.removeChild(bt)}var It=document.createElement("script"),jt=function(){He(Xe,Be)};It.src=We+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=It.src,Ke("GeoGebra HTML5 codebase loaded: '"+We+"'.",Be),!se&&(!Fe||Fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),jt()):We.requirejs?__webpack_require__.e(3690).then(function(){var wt=[__webpack_require__(63690)];jt.apply(null,wt)}.bind(this)).catch(__webpack_require__.oe):(It.onload=jt,fe.appendChild(It))}else He(Xe,Be);Be.height=de,Be.width=Je},Nt=function(fe,Be,Ye){var St=Oe(Be.width,Be.height,Be.borderColor,Ye),Xe=document.createElement("div");Xe.style.position="relative",Xe.style.display="block",Xe.style.width=Be.width+"px",Xe.style.height=Be.height+"px",Xe.className="applet_screenshot applet_scaler"+(Ye?" applet_screenshot_play":""),Xe.appendChild(St);var Je=GGBAppletUtils.getScale(Be,fe,Ye);Ye?(fe.appendChild(Ee()),window.GGBT_wsf_view||(fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Xe,"66%"),fe.appendChild(Xe),Je!==1&&!isNaN(Je)&&(GGBAppletUtils.scaleElement(Xe,Je),Xe.style.width=Be.width+"px",Xe.style.height=Be.height+"px",Xe.parentNode.style.width=Be.width*Je+"px",Xe.parentNode.style.height=Be.height*Je+"px"),Ge.resize=function(){Zt(fe,St,Xe,Ye)},window.addEventListener("resize",function(de){Ge.resize()}),Ge.resize()};function Zt(fe,Be,Ye,St){if(fe.contains(Be)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}var Xe=GGBAppletUtils.getScale(oe,fe,St);Ye.parentNode!==null&&(!isNaN(Xe)&&Xe!==1?(GGBAppletUtils.scaleElement(Ye,Xe),Ye.parentNode.style.width=oe.width*Xe+"px",Ye.parentNode.style.height=oe.height*Xe+"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(fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(fe,Be){Be.appendChild(fe)};var ve=function(fe,Be,Ye,St){Nt(fe,Be,!0);for(var Xe=function(){var tt=[];for(de=0;de<fe.childNodes.length;de++)tt.push(fe.childNodes[de]);if(window.GGBT_wsf_view){var st=window.GGBT_wsf_view.renderFullScreen(fe,Be.id),At=document.getElementById("fullscreencontainer"),vt=jQuery(fe).find(".fullscreencontent");vt.length>0?(st.remove(),vt.attr("id","fullscreencontent").show(),jQuery(At).append(vt),window.dispatchEvent(new Event("resize"))):ct(st,Be,!1),window.GGBT_wsf_view.launchFullScreen(At)}else Te=St,ct(fe,Be,!1);if(!window.GGBT_wsf_view)for(de=0;de<tt.length;de++)fe.removeChild(tt[de])},Je=fe.getElementsByClassName("ggb_preview_play"),de=0;de<Je.length;de++)Je[de].addEventListener("click",Xe,!1),Je[de].addEventListener("ontouchstart",Xe,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(fe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ee=function(){var fe=document.createElement("div");if(fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Be='.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=Be:Ye.appendChild(document.createTextNode(Be)),document.getElementsByTagName("head")[0].appendChild(Ye)}return fe},Oe=function(fe,Be,Ye,St){var Xe=document.createElement("div");Xe.className="ggb_preview",Xe.style.position="absolute",Xe.style.zIndex="90",Xe.style.width=fe-2+"px",Xe.style.height=Be-2+"px",Xe.style.top="0px",Xe.style.left="0px",Xe.style.overflow="hidden",Xe.style.backgroundColor="white";var Je="lightgrey";Ye!==void 0&&(Ye==="none"?Je="transparent":Je=Ye),Xe.style.border="1px solid "+Je;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var tt,st,At;if(!St){tt=document.createElement("img"),tt.style.position="absolute",tt.style.zIndex="1001",tt.style.opacity=1,de.style.opacity=.3,st=360,st>fe/4*3&&(st=fe/4*3),At=st/5.8,tt.setAttribute("src",b),tt.setAttribute("width",st),tt.setAttribute("height",At);var vt=(fe-st)/2,be=(Be-At)/2;tt.style.left=vt+"px",tt.style.top=be+"px",Xe.appendChild(tt)}}return Xe.appendChild(de),Xe},et=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},gt=["web","webSimple","web3d","tablet","tablet3d","phone"],je=function(fe,Be){if(ae=fe,Be){Ve(ae,!0);return}var Ye=!Se;if(Ye){var St=te(ae);!isNaN(St)&&St<4.4&&(Ye=!1)}var Xe,Je;window.location.protocol.substr(0,4)==="http"?Xe=window.location.protocol:Xe="http:";var de=ae.indexOf("//");de>0?Je=ae:de===0?Je=Xe+ae:Je="https://www.geogebra.org/apps/5.2.814.0/";for(var tt in gt)if(ae.slice(gt[tt].length*-1)===gt[tt]||ae.slice((gt[tt].length+1)*-1)===gt[tt]+"/"){Ve(Je,!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&&!xe(oe.showToolBar)&&!xe(oe.showMenuBar)&&!xe(oe.showAlgebraInput)&&!xe(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Je+="webSimple/":Je+="web3d/",Ve(Je,!1)},Ve=function(fe,Be){if(fe.requirejs){We=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),We=fe,Be===null&&(Be=fe.indexOf("http")===-1),_e=Be,a="web.nocache.js",y=!1;var Ye=We.split("/");Ye.length>1&&(!Be&&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=fe.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 St=parseFloat(ae);St!==NaN&&St<5&&fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+St+" is deprecated. Using version latest instead."),je("5.0",Be))},Ke=function(fe,Be){window.console&&window.console.log&&(!Be||typeof Be.showLogging=="undefined"||Be.showLogging&&Be.showLogging!=="false")&&console.log(fe)};oe.material_id!==void 0?ge(pt):pt();function pt(){var fe=dt;Fe!==null?fe=Fe:parseFloat(fe)<5&&(fe="5.0"),je(fe,!1),se!==null&&Ve(se,_e),ce=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){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,se,Ae,ze,De){var We=null;if(De!=null&&De!="")for(var _e=ce.parentNode;_e!=null;)if((" "+_e.className+" ").indexOf(" "+De+" ")>-1){We=_e;break}else _e=_e.parentNode;var Te=0,ae=0,a=0,y=0,x=0,b=0,E=0;if(We)Te=We.offsetWidth,ae=Math.max(Ae?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Te=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Te):(Te=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Te&&(ze===void 0||!ze)&&(document.dir==="rtl"?(x=Te-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}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,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ce&&((se===void 0||!se)&&Fe>0&&Fe+y<Te?Te=Fe:Te-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ae-=E)),{width:Te,height:ae}}function ne(ce,Fe,se,Ae,ze){if(ce.isScreenshoGenerator)return 1;var De=Ae!==void 0&&Ae,We=ce.noScaleMargin!=null&&ce.noScaleMargin,_e=function(ee){return ee&&ee!=="false"},Te=_e(ce.autoHeight),ae=oe(Fe,ce.width,se,Te,De&&window.GGBT_wsf_view||We,ze),a=parseInt(ae.width),y=ce.width,x=ce.height;if(y===void 0){var b=Fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=De?1:ae.height/x;return se!==void 0&&!se&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function Se(ce,Fe,se){var Ae=1,ze,De=!1;if(ce.hasOwnProperty("allowUpscale")&&(De=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Ae=parseFloat(ce.scale),(isNaN(Ae)||Ae===null||Ae===0)&&(Ae=1),Ae>1&&(De=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))ze=ne(ce,Fe,De,se,ce.scaleContainerClass);else return Ae;return De&&(!ce.hasOwnProperty("scale")||Ae===1)?ze:Math.min(Ae,ze)}function Qe(ce){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),Ae=ce.getBoundingClientRect(),ze=(Fe-Ae.width)/2,De=(se-Ae.height)/2;De<0&&(De=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ze<40?ce.style.left="40px":ce.style.left=ze+"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=ze+"px")}function Ie(ce,Fe){var se=ce.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var Ae=Se(Fe,ce);Ge()&&se.setAttribute("data-param-scale",Ae);for(var ze=null,De=0;De<ce.childNodes.length;De++)if(ce.childNodes[De].className!==void 0&&ce.childNodes[De].className.match(/^applet_scaler/)){ze=ce.childNodes[De];break}if(ze!==null&&ze.querySelector(".noscale")!==null)return;var We=Fe.id!==void 0?Fe.id:"ggbApplet",_e=window[We];(_e==null||!_e.recalculateEnvironments)&&ze!==null&&!ze.className.match(/fullscreen/)&&(ze.parentNode.style.transform="",!isNaN(Ae)&&Ae!==1?(ze.parentNode.style.width=Fe.width*Ae+"px",ze.parentNode.style.height=Fe.height*Ae+"px",dt(ze,Ae)):(dt(ze,1),ze.parentNode.style.width=Fe.width+"px",ze.parentNode.style.height=Fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Qe(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:Ge,positionCenter:Qe,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 Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,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(Ge){var dt=s[L].bindings;s[L].bindings=function(){for(var oe=dt?dt():{},ne=Ge[webModule.__softPermutationId],Se=O;Se<ne.length;Se++){var Qe=ne[Se];oe[Qe[O]]=Qe[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var dt=document.compatMode==U?V:W;t.write(dt+X),t.close()}}}function w(Ge){function dt(ne){function Se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Qe=Se();if(Qe){ne();return}function Ie(){if(!Qe){if(!Se())return;Qe=!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(),Qe=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))}),Qe.appendChild(Ie)}dt(function(){oe(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var dt=u(),oe=dt.body,ne=dt.createElement(_);ne.language=ab,ne.text=Ge,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(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var dt=c[Ge];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function Ge(ce){var Fe=ce.lastIndexOf(rb);Fe==-1&&(Fe=ce.length);var se=ce.indexOf(sb);se==-1&&(se=ce.length);var Ae=ce.lastIndexOf(tb,Math.min(se,Fe));return Ae>=O?ce.substring(O,Ae+P):W}function dt(ce){if(!ce.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=ce+vb,ce=Ge(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 Ge(ce[Fe].src);return W}function Se(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Qe(){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&&Qe()&&(Ie=Ge(o.location.href)),Ie=dt(Ie),Ie}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],dt=O,oe=[],ne=[];function Se(ce){var Fe=ne[ce](),se=oe[ce];if(Fe in se)return Fe;var Ae=[];for(var ze in se)Ae[se[ze]]=ze;throw r&&r(ce,Ae,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 Qe;try{Qe=Cb;var Ie=Qe.indexOf(Db);Ie!=-1&&(dt=parseInt(Qe.substring(Ie+P),$),Qe=Qe.substring(O,Ie))}catch(ce){}return webModule.__softPermutationId=dt,C(Qe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},82977:function(Ge,dt,oe){"use strict";oe.d(dt,{Ax:function(){return Ie},Ds:function(){return ce},KI:function(){return se},SI:function(){return Qe},f1:function(){return Se}});var ne=oe(49647);function Se(Ae){let ze=!0;if(Ae.length>0){for(let De=0;De<Ae.length;De++)if(Ae[De].compile_success==0||!Ae[De].compile_success){ze=!1;break}}else ze=!1;return ze}function Qe(Ae,ze=""){let De=[];for(let We=0;We<Ae.length;We++){let _e=Ae[We],Te=ze?`${ze}/${_e.name}`:`${_e.name}`;De.push({title:_e.name,type:_e.type,isLeaf:_e.type!=="tree",key:Te})}return De}function Ie(Ae,ze,De){for(let We=0;We<Ae.length;We++){let _e=Ae[We];if(_e.key===ze){_e.children=De;break}_e.children&&Ie(_e.children,ze,De)}return Ae}function ce(Ae,ze,De){let We;return function(){let _e=this,Te=arguments,ae=function(){We=null,De||Ae.apply(_e,Te)},a=De&&!We;clearTimeout(We),We=setTimeout(ae,ze),a&&Ae.apply(_e,Te)}}const Fe=!0,se=ne.Z.API_SERVER},99099:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Zt}});var ne=oe(59301),Se=oe(75790),Qe=oe(24905),Ie=oe(12893),ce=oe(32134),Fe=oe(98280),se=oe(78241),Ae=oe(57809),ze={},De=Object.defineProperty,We=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,ae=(ve,Ee,Oe)=>Ee in ve?De(ve,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ve[Ee]=Oe,a=(ve,Ee)=>{for(var Oe in Ee||(Ee={}))_e.call(Ee,Oe)&&ae(ve,Oe,Ee[Oe]);if(We)for(var Oe of We(Ee))Te.call(Ee,Oe)&&ae(ve,Oe,Ee[Oe]);return ve},y=(ve,Ee,Oe)=>new Promise((et,gt)=>{var je=pt=>{try{Ke(Oe.next(pt))}catch(fe){gt(fe)}},Ve=pt=>{try{Ke(Oe.throw(pt))}catch(fe){gt(fe)}},Ke=pt=>pt.done?et(pt.value):Promise.resolve(pt.value).then(je,Ve);Ke((Oe=Oe.apply(ve,Ee)).next())});const x=Qe.default.Group,b=({classroomList:ve,loading:Ee,user:Oe,exercise_id:et=null,homework_common_id:gt=null,setitem:je,item:Ve,type:Ke,rz:pt,dispatch:fe})=>{var Be,Ye,St,Xe,Je,de,tt,st;const[At,vt]=(0,ne.useState)([]);let[be,ye]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const Pe=(0,Se.useParams)(),[ke,He]=(0,ne.useState)(!1),[ut,xt]=(0,ne.useState)(!1),[bt]=se.default.useForm();(0,ne.useEffect)(()=>{pt&&(be.zydatas=pt,ye(a({},be)),Ve!=null&&Ve.ec_course_id&&It())},[Ve,pt]);function It(){return y(this,null,function*(){console.log("----",Ve),yield jt(Ve==null?void 0:Ve.ec_major_school_id),yield wt(Ve==null?void 0:Ve.ec_year_id),yield ht(Ve==null?void 0:Ve.ec_course_id),bt.setFieldsValue({ec_course_id:Ve==null?void 0:Ve.ec_course_id,ec_major_school_id:Ve==null?void 0:Ve.ec_major_school_id,ec_point_ids:Ve==null?void 0:Ve.ec_point_ids,ec_year_id:Ve==null?void 0:Ve.ec_year_id})})}function jt(yt){return y(this,null,function*(){const Ut=yield(0,Fe.ZP)(`/api/ec_major_schools/${yt}/ec_years/get_year_list.json`,{method:"get"});be.jbdatas=Ut==null?void 0:Ut.data,ye(a({},be)),bt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function wt(yt){return y(this,null,function*(){const Ut=yield(0,Fe.ZP)(`/api/ec_years/${yt}/ec_courses/get_courses.json`,{method:"get"});be.kcdatas=Ut==null?void 0:Ut.data,ye(a({},be)),bt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const ht=yt=>y(void 0,null,function*(){const Ut=yield(0,Fe.ZP)(`/api/ec_courses/${yt}/ec_points.json`,{method:"get",params:{ec_course_id:yt}});be.zsdatas=Ut==null?void 0:Ut.data,ye(a({},be))});return ne.createElement("div",{className:ze.from},ne.createElement(se.default,{form:bt,layout:"inline",onValuesChange:yt=>{console.log("----",yt),yt.ec_major_school_id&&(be.jbdatas=[],be.kcdatas=[],be.zsdatas=[],ye(a({},be)),jt(yt.ec_major_school_id)),yt.ec_year_id&&(be.kcdatas=[],be.zsdatas=[],ye(a({},be)),wt(yt.ec_year_id)),yt.ec_course_id&&(be.zsdatas=[],ye(a({},be)),ht(yt.ec_course_id))},onFinish:yt=>y(void 0,null,function*(){je(yt)})},ne.createElement(se.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement(Ae.default,{style:{width:150},disabled:((Be=be.zydatas)==null?void 0:Be.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Ye=be==null?void 0:be.zydatas)==null?void 0:Ye.map((yt,Ut)=>ne.createElement(Ae.default.Option,{key:Ut,value:yt==null?void 0:yt.ec_major_school_id},yt==null?void 0:yt.name)))),ne.createElement(se.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement(Ae.default,{style:{width:150},disabled:((St=be.jbdatas)==null?void 0:St.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Xe=be==null?void 0:be.jbdatas)==null?void 0:Xe.map((yt,Ut)=>ne.createElement(Ae.default.Option,{key:Ut,value:yt==null?void 0:yt.ec_year_id},yt==null?void 0:yt.year)))),ne.createElement(se.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement(Ae.default,{style:{width:150},disabled:((Je=be.kcdatas)==null?void 0:Je.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=be==null?void 0:be.kcdatas)==null?void 0:de.map((yt,Ut)=>ne.createElement(Ae.default.Option,{key:Ut,value:yt==null?void 0:yt.id},yt==null?void 0:yt.name)))),ne.createElement(se.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement(Ae.default,{onChange:()=>{bt.submit()},style:{width:150},mode:"multiple",disabled:((tt=be.zsdatas)==null?void 0:tt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(st=be==null?void 0:be.zsdatas)==null?void 0:st.map((yt,Ut)=>ne.createElement(Ae.default.Option,{key:Ut,value:yt==null?void 0:yt.id},yt==null?void 0:yt.name))))))};var E=(0,Se.connect)(({classroomList:ve,loading:Ee,globalSetting:Oe,user:et})=>({classroomList:ve,globalSetting:Oe,loading:Ee.effects,user:et}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(ve,Ee,Oe)=>Ee in ve?z(ve,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ve[Ee]=Oe,le=(ve,Ee)=>{for(var Oe in Ee||(Ee={}))ie.call(Ee,Oe)&&me(ve,Oe,Ee[Oe]);if(re)for(var Oe of re(Ee))ge.call(Ee,Oe)&&me(ve,Oe,Ee[Oe]);return ve},Ce=(ve,Ee)=>ee(ve,te(Ee)),xe=(ve,Ee,Oe)=>new Promise((et,gt)=>{var je=pt=>{try{Ke(Oe.next(pt))}catch(fe){gt(fe)}},Ve=pt=>{try{Ke(Oe.throw(pt))}catch(fe){gt(fe)}},Ke=pt=>pt.done?et(pt.value):Promise.resolve(pt.value).then(je,Ve);Ke((Oe=Oe.apply(ve,Ee)).next())});const ct=Qe.default.Group,Nt=({classroomList:ve,loading:Ee,user:Oe,exercise_id:et=null,homework_common_id:gt=null,setitem:je,type:Ve,dispatch:Ke})=>{var pt,fe;let[Be,Ye]=(0,ne.useState)([{}]),[St,Xe]=(0,ne.useState)([]);function Je(){return xe(this,null,function*(){var tt,st,At;let vt=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(((tt=vt==null?void 0:vt.data)==null?void 0:tt.length)>0){let be=[];(st=vt==null?void 0:vt.data)==null||st.map(ye=>{var Pe;(Pe=ye==null?void 0:ye.ec_point_ids)==null||Pe.map(ke=>{be.push(ke)})}),je(Ce(le({},(At=vt==null?void 0:vt.data)==null?void 0:At[0]),{ec_point_ids:be})),Ye(vt==null?void 0:vt.data)}})}(0,ne.useEffect)(()=>{var tt,st;(st=(tt=Oe==null?void 0:Oe.userInfo)==null?void 0:tt.course)!=null&&st.course_school_id&&de()},[(fe=(pt=Oe==null?void 0:Oe.userInfo)==null?void 0:pt.course)==null?void 0:fe.course_school_id]);function de(){return xe(this,null,function*(){var tt,st;const At=yield(0,Fe.ZP)(`/api/schools/${(st=(tt=Oe==null?void 0:Oe.userInfo)==null?void 0:tt.course)==null?void 0:st.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Xe(At==null?void 0:At.data),(gt||et)&&Je()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Be==null?void 0:Be.map((tt,st)=>ne.createElement("div",{key:st,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(E,{rz:St,item:tt,type:st,setitem:At=>{Be.splice(st,1,At),Ye([...Be]);let vt=[];Be==null||Be.map(be=>{var ye;(ye=be==null?void 0:be.ec_point_ids)==null||ye.map(Pe=>{vt.push(Pe)})}),je(Ce(le({},At),{ec_point_ids:vt}))}}),st!=0&&ne.createElement(Ie.Z,{onClick:()=>{Be.splice(st,1),Ye([...Be])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(ce.Z,{onClick:()=>{Be.push({}),Ye([...Be])},style:{marginLeft:10,fontSize:"20px"}}))))};var Zt=(0,Se.connect)(({classroomList:ve,loading:Ee,globalSetting:Oe,user:et})=>({classroomList:ve,globalSetting:Oe,loading:Ee.effects,user:et}))(Nt)},5140:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return We}});var ne=oe(59301),Se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Qe=oe(92310),Ie=oe.n(Qe),ce=oe(71418),Fe=oe(2859),se=oe(98280),Ae=oe(19374),ze=(_e,Te,ae)=>new Promise((a,y)=>{var x=z=>{try{E(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ae.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ae=ae.apply(_e,Te)).next())}),We=({data:_e,className:Te,fullWidth:ae,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),[ie,ge]=(0,ne.useState)(!1),[me,le]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),_e!=null&&_e.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",_e!=null&&_e.src&&Ce()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[_e==null?void 0:_e.visible]);const Ce=()=>ze(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ve=yield(0,Ae.ZJ)(_e==null?void 0:_e.src);z.current.src="",z.current.src=ve,z.current.onload=function(){Zt()},ge(!1),le("")}),xe=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},ct=ve=>ze(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ee=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:_e.title,file:ve.dataUrl}});Ee!=null&&Ee.id&&!E?(yield(0,se.ZP)(`/api/attachments/${_e.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ee==null?void 0:Ee.id,settings:JSON.stringify(ve.state)}})).status===0&&x():Ee!=null&&Ee.id&&x(Ee),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),le("")}),Nt=()=>{const ve=document.querySelector('a[href="https://markerjs.com/"]');ve&&ve.parentNode&&(ve.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(Oe=>{const et=document.querySelector(Oe.name);et&&et.setAttribute("title",Oe.title)})},Zt=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",ct),ee.current.addEventListener("beforeclose",xe),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),_e!=null&&_e.snapshotData&&ee.current.restoreState(_e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Nt()},300)};return ne.createElement(ne.Fragment,null,(_e==null?void 0:_e.visible)&&ne.createElement(ce.Z,{spinning:ie,tip:me,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:Ie()(Se.imageDimensions,Te,ae?Se.fullWidth:""),style:a},ne.createElement("img",{className:Se.img,ref:z}))))}},88601:function(Ge,dt,oe){"use strict";var ne=oe(59301),Se=oe(95237),Qe=oe(43604),Ie=oe(99313),ce=oe(3113),Fe=oe(12470),se=oe(69453),Ae=oe(48136),ze=oe(59301);const De=(0,ne.forwardRef)(({callback:We,showSaveButton:_e,value:Te=""},ae)=>{const a=(0,ne.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ze.createElement(Se.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,te)=>ze.createElement(Qe.Z,{flex:"110px",className:se.Z.item},ze.createElement("div",null,ze.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),ze.createElement("div",{className:se.Z.children},ee.children.map((re,ie)=>ze.createElement("div",{key:ie},ze.createElement("h1",null,re.name),ze.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,me)=>ze.createElement(Qe.Z,{key:me,onClick:()=>b(ge),className:se.Z.diamond},ze.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ze.createElement(Se.Z,{className:se.Z.lists,gutter:[10,10]},x.map((ee,te)=>ze.createElement(Qe.Z,{flex:"110px",className:se.Z.item},ze.createElement("div",null,ze.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),ze.createElement("div",{className:se.Z.children},ee.children.map((re,ie)=>ze.createElement("div",{key:ie},re.name&&ze.createElement("h1",null,re.name),ze.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,me)=>ze.createElement(Qe.Z,{key:me,onClick:()=>b(ge),className:se.Z.diamond},ze.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return We&&We(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),ze.createElement("div",{className:se.Z.mathWrap},ze.createElement(Ie.default,{defaultActiveKey:"1",items:E}),ze.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Te||""),_e&&ze.createElement("div",{className:se.Z.button},ze.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=De},49318:function(Ge,dt,oe){"use strict";oe.d(dt,{z:function(){return et},Z:function(){return gt}});var ne=oe(59301),Se=oe(54580),Qe=oe(8591),Ie=oe(43418),ce=oe(3113),Fe=oe(49647),se=oe(90278),Ae=Object.defineProperty,ze=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,_e=(je,Ve,Ke)=>Ve in je?Ae(je,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):je[Ve]=Ke,Te=(je,Ve)=>{for(var Ke in Ve||(Ve={}))De.call(Ve,Ke)&&_e(je,Ke,Ve[Ke]);if(ze)for(var Ke of ze(Ve))We.call(Ve,Ke)&&_e(je,Ke,Ve[Ke]);return je},ae=(je,Ve,Ke)=>new Promise((pt,fe)=>{var Be=Xe=>{try{St(Ke.next(Xe))}catch(Je){fe(Je)}},Ye=Xe=>{try{St(Ke.throw(Xe))}catch(Je){fe(Je)}},St=Xe=>Xe.done?pt(Xe.value):Promise.resolve(Xe.value).then(Be,Ye);St((Ke=Ke.apply(je,Ve)).next())});const a="\u3000\u3000";function y(je){var Ve=["Bytes","KB","MB","GB","TB"];if(je==0)return"0 Byte";var Ke=parseInt(""+Math.floor(Math.log(je)/Math.log(1024)),10);return(je/Math.pow(1024,Ke)).toFixed(1)+" "+Ve[Ke]}var x=({value:je=[],action:Ve,onChange:Ke,className:pt,maxSize:fe=150,title:Be="\u6587\u4EF6\u4E0A\u4F20",accept:Ye=null})=>{const St={multiple:!1,fileList:je,accept:Ye,withCredentials:!0,beforeUpload:Je=>Je.size/1024/1024<fe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${fe}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(Je){var de,tt,st,At;let vt=[...Je.fileList];if(vt=vt.map(be=>(be.name.indexOf(a)===-1&&(be.name=`${be.name}${a}${y(be.size)}`),Te({},be))),Je.file.status==="done"&&((tt=(de=Je.file)==null?void 0:de.response)==null?void 0:tt.status)===-1){message.error((At=(st=Je.file)==null?void 0:st.response)==null?void 0:At.message),Ke([]);return}Ke(vt)},onRemove:Je=>ae(void 0,null,function*(){const de=Je.size/1024/1024;return Je.status==="uploading"?!0:de<fe&&(Je.response?Je.response.id:Je.uid)?yield removeAttachment(Je.response?Je.response.id:Je.id):!0})};function Xe(Je){Je.preventDefault(),Je.stopPropagation()}return React.createElement("div",{className:`single-upload ${pt||""}`},React.createElement(Upload,Te({},St),React.createElement(Button,{type:"primary",title:je.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:je.length>0,ghost:!0},Be),React.createElement("span",{onClick:Xe,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",fe,"M)"," ")))},b=oe(61481),E=oe(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(je,Ve,Ke)=>Ve in je?z(je,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):je[Ve]=Ke,ge=(je,Ve)=>{for(var Ke in Ve||(Ve={}))te.call(Ve,Ke)&&ie(je,Ke,Ve[Ke]);if(ee)for(var Ke of ee(Ve))re.call(Ve,Ke)&&ie(je,Ke,Ve[Ke]);return je};const me=je=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},je),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var le="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Ce=Object.defineProperty,xe=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,Zt=(je,Ve,Ke)=>Ve in je?Ce(je,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):je[Ve]=Ke,ve=(je,Ve)=>{for(var Ke in Ve||(Ve={}))ct.call(Ve,Ke)&&Zt(je,Ke,Ve[Ke]);if(xe)for(var Ke of xe(Ve))Nt.call(Ve,Ke)&&Zt(je,Ke,Ve[Ke]);return je},Ee=(je,Ve,Ke)=>new Promise((pt,fe)=>{var Be=Xe=>{try{St(Ke.next(Xe))}catch(Je){fe(Je)}},Ye=Xe=>{try{St(Ke.throw(Xe))}catch(Je){fe(Je)}},St=Xe=>Xe.done?pt(Xe.value):Promise.resolve(Xe.value).then(Be,Ye);St((Ke=Ke.apply(je,Ve)).next())});const{Dragger:Oe}=Se.default;function et(je){let Ve=[];return je&&je.length>0&&(Ve=je.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}}))),Ve}var gt=({value:je,onChange:Ve,action:Ke,data:pt,className:fe,maxSize:Be=150,title:Ye="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:St=!1,accept:Xe="",additionalText:Je,isDragger:de,number:tt=1e3,aloneClear:st=!1,realTimeRemove:At=!0,uploadText:vt,setFileProgress:be,showFileProgress:ye})=>{const[Pe,ke]=(0,ne.useState)(!1);let[He,ut]=(0,ne.useState)(je||[]),[xt,bt]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{je&&(xt===1&&ut([...je]),bt(2),tt===(je==null?void 0:je.length)&&ke(!0))},[je]);const It=()=>{setTimeout(()=>{He.pop(),ut([...He])},500)};ye&&be(He.some(ht=>ht.status==="uploading"));const jt={multiple:!0,disabled:Pe,accept:Xe,withCredentials:!0,fileList:He,beforeUpload:(ht,yt)=>{const Ut=ht.size/1024/1024;return He.concat(yt).length>tt?(He.pop(),ut([...He]),Qe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${tt}\u4E2A\u6587\u4EF6`),st?Promise.reject():(It(),!1)):Ut<Be?!0:(Qe.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Be}MB).`),st?Promise.reject():(It(),!1))},data:pt,action:Ke||`${Fe.Z.API_SERVER}/api/attachments.json`,onChange(ht){var yt,Ut,mn,tn;if(ht.file.status==="removed"?He=ht.fileList:He=(0,E.uniqBy)([...ht.fileList,...He],"uid"),ht.file.status==="done"&&((Ut=(yt=ht.file)==null?void 0:yt.response)==null?void 0:Ut.status)===-1){Qe.ZP.error((tn=(mn=ht.file)==null?void 0:mn.response)==null?void 0:tn.message);return}He.length>=tt?ke(!0):ke(!1),ut([...He]),He=He.map(Kt=>{var pe,$e;return(pe=Kt==null?void 0:Kt.response)!=null&&pe.id&&(Kt.url=($e=Kt==null?void 0:Kt.response)==null?void 0:$e.url),Kt.name.indexOf(a)===-1&&(Kt.name=`${Kt.name}${a}${y(Kt.size)}`),ve({},Kt)}),console.log("info:",ht,He),Ve(He)},onRemove:ht=>Ee(void 0,null,function*(){if(!At)return!0;const yt=()=>Ee(void 0,null,function*(){if(ht.response?ht.response.id:ht.id){let mn=yield(0,se.JZ)(ht.response?ht.response.id:ht.uid);return Promise.resolve(mn)}else return!0});return St?new Promise((Ut,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:()=>Ee(void 0,null,function*(){const tn=yield yt();Qe.ZP.success("\u5220\u9664\u6210\u529F"),Ut(!0)}),onCancel:()=>Ut(!1)})}):yield yt()})};function wt(ht){ht.preventDefault(),ht.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${fe||""}`},de&&ne.createElement(Oe,ve({},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",Be,"MB)"," "),Je),!de&&ne.createElement(Se.default,ve({},jt),ne.createElement(ce.ZP,{disabled:Pe,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:le}),Ye),ne.createElement("span",{onClick:wt,className:"upload_text"},vt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Be}MB)`)))}},45923:function(Ge,dt,oe){"use strict";oe.d(dt,{h:function(){return ee}});var ne=oe(59301),Se=oe(57809),Qe=oe(78241),Ie=oe(3113),ce=oe(89780),Fe=oe.n(ce),se=oe(6303),Ae=oe(87671),ze=Object.defineProperty,De=Object.defineProperties,We=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?ze(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))Te.call(re,ie)&&a(te,ie,re[ie]);if(_e)for(var ie of _e(re))ae.call(re,ie)&&a(te,ie,re[ie]);return te},x=(te,re)=>De(te,We(re));const b=Se.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};dt.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function me(Ce){ge(z[Ce][1])}function le(Ce){te(Ce)}return ne.createElement(Qe.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ne.createElement(Qe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(Se.default,{getPopupContainer:Ce=>Ce.parentNode,onChange:me},Object.keys(z).map(Ce=>ne.createElement(b,{key:Ce,value:Ce},z[Ce][0])))),ne.createElement(Qe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ee,{mode:ie})),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:ie,options:ge={}}){const me=(0,ne.useRef)(),[le,Ce]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(le){let xe=function(ct){const Nt=ct.getValue();re&&re(Nt)};return le.on("change",xe),()=>{le.off("change",xe)}}},[le,re]),(0,ne.useEffect)(()=>{le&&le.setOption("mode",ie)},[le,ie]),(0,ne.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ne.useEffect)(()=>{if(me.current&&!le){const xe=Fe().fromTextArea(me.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Ce(xe)}},[me.current,le]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:me}))}},48551:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Qn}});var ne=oe(59301),Se=oe(89780),Qe=oe.n(Se),Ie=oe(76374),ce=oe(6303),Fe=oe(6313),se=oe(25717),Ae=oe(99498),ze=oe(25419),De=oe(67549),We=oe(12470),_e=({value:Le="",className:we,showTextOnly:he,showLines:lt,style:Gt={}})=>{const Ct=(0,ne.useMemo)(()=>"",[Le]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Ct}}))},Te=oe(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(Le,we,he)=>we in Le?ae(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:he}):Le[we]=he,ee=(Le,we)=>{for(var he in we||(we={}))b.call(we,he)&&z(Le,he,we[he]);if(x)for(var he of x(we))E.call(we,he)&&z(Le,he,we[he]);return Le},te=(Le,we)=>a(Le,y(we));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 ie({onActionCallback:Le,title:we,icon:he,actionName:lt,className:Gt="",children:Ct}){function dn(){Le(lt)}return Te.createElement("a",{title:we,className:Gt,onClick:dn},Te.createElement("i",{className:`${he}`}),Ct)}var ge=({watch:Le,showNullButton:we,showNullProgramButton:he,onActionCallback:lt,fullScreen:Gt,insertTemp:Ct,hidetoolBar:dn,extraUse:Xt})=>{const nn=[...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 Te.createElement("ul",{className:"markdown-toolbar-container"},!dn&&nn.map((yn,jn)=>Te.createElement("li",{key:jn},yn.actionName?Te.createElement(ie,te(ee({},yn),{onActionCallback:lt})):Te.createElement("span",{className:"v-line"}))),we?Te.createElement("li",null,Te.createElement(ie,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:lt},Te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,he?Te.createElement(Te.Fragment,null,Te.createElement("li",null,Te.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:lt},Te.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Te.createElement("li",null,Te.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:lt},Te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ct&&Te.createElement("li",null,Te.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ct}`,onActionCallback:lt},Te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Xt&&Te.createElement("li",null,Xt),Te.createElement("li",{className:"btn-full-screen"},Te.createElement(ie,{icon:`${Gt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Gt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:lt})))},me=oe(44991),le=oe(78241),Ce=oe(92832),xe=oe(3113),ct=Object.defineProperty,Nt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,ve=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,et=(Le,we,he)=>we in Le?ct(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:he}):Le[we]=he,gt=(Le,we)=>{for(var he in we||(we={}))Ee.call(we,he)&&et(Le,he,we[he]);if(ve)for(var he of ve(we))Oe.call(we,he)&&et(Le,he,we[he]);return Le},je=(Le,we)=>Nt(Le,Zt(we));const Ve={labelCol:{span:4},wrapperCol:{span:20}};var Ke=({callback:Le,onCancel:we})=>{function he(lt){Le(lt)}return ne.createElement(le.default,je(gt({},Ve),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:he,style:{width:500}}),ne.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(Ce.default,null)),ne.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(Ce.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(xe.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},pt=oe(45923),fe=oe(76021),Be=oe(43418),Ye=oe(95237),St=oe(5140),Xe=oe(59301),Je=({callback:Le,onCancel:we})=>{const he=document.createElement("canvas"),lt=he.getContext("2d");he.width=1e3,he.height=800,lt.fillStyle="#ffffff",lt.fillRect(0,0,he.width,he.height);const Gt=he.toDataURL("image/png");return Xe.createElement(Be.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Xe.createElement(Ye.Z,{style:{height:"100vh"}},Xe.createElement(St.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Gt,visible:!0,title:String(Date.now())},onOk:Ct=>{Le({src:Ct.url})},onClose:we})))},de=oe(12378);function tt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(tt,go.CommandHandler),tt.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},tt.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var we=1/0;Le.selection.each(function(he){he instanceof go.Link||(we=Math.min(he.position.x,we))}),Le.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(we,he.position.y))}),Le.commitTransaction("aligning left")},tt.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var we=-1/0;Le.selection.each(function(he){if(!(he instanceof go.Link)){var lt=he.actualBounds.x+he.actualBounds.width;we=Math.max(lt,we)}}),Le.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(we-he.actualBounds.width,he.position.y))}),Le.commitTransaction("aligning right")},tt.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var we=1/0;Le.selection.each(function(he){he instanceof go.Link||(we=Math.min(he.position.y,we))}),Le.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.position.x,we))}),Le.commitTransaction("alignTop")},tt.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var we=-1/0;Le.selection.each(function(he){if(!(he instanceof go.Link)){var lt=he.actualBounds.y+he.actualBounds.height;we=Math.max(lt,we)}}),Le.selection.each(function(he){he instanceof go.Link||he.move(new go.Point(he.actualBounds.x,we-he.actualBounds.height))}),Le.commitTransaction("aligning bottom")},tt.prototype.alignCenterX=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center X");var he=we.actualBounds.x+we.actualBounds.width/2;Le.selection.each(function(lt){lt instanceof go.Link||lt.move(new go.Point(he-lt.actualBounds.width/2,lt.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},tt.prototype.alignCenterY=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center Y");var he=we.actualBounds.y+we.actualBounds.height/2;Le.selection.each(function(lt){lt instanceof go.Link||lt.move(new go.Point(lt.actualBounds.x,he-lt.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},tt.prototype.alignColumn=function(Le){var we=this.diagram;we.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var he=new Array;we.selection.each(function(Xt){Xt instanceof go.Link||he.push(Xt)});for(var lt=0;lt<he.length-1;lt++){var Gt=he[lt],Ct=Gt.actualBounds.y+Gt.actualBounds.height+Le,dn=he[lt+1];dn.move(new go.Point(Gt.actualBounds.x,Ct))}we.commitTransaction("align Column")},tt.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var we=this.diagram;we.startTransaction("align Row");var he=new Array;we.selection.each(function(Xt){Xt instanceof go.Link||he.push(Xt)});for(var lt=0;lt<he.length-1;lt++){var Gt=he[lt],Ct=Gt.actualBounds.x+Gt.actualBounds.width+Le,dn=he[lt+1];dn.move(new go.Point(Ct,Gt.actualBounds.y))}we.commitTransaction("align Row")},tt.prototype.canRotate=function(Le){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},tt.prototype.rotate=function(Le){Le===void 0&&(Le=90);var we=this.diagram;we.startTransaction("rotate "+Le.toString());var we=this.diagram;we.selection.each(function(he){he instanceof go.Link||he instanceof go.Group||(he.angle+=Le)}),we.commitTransaction("rotate "+Le.toString())},tt.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var we=new go.Map;Le.selection.each(function(he){we.set(he.layer,0)}),we.iteratorKeys.each(function(he){var lt=0;he.parts.each(function(Gt){if(!Gt.isSelected){var Ct=Gt.zOrder;isNaN(Ct)?Gt.zOrder=0:lt=Math.max(lt,Ct)}}),we.set(he,lt)}),Le.selection.each(function(he){tt._assignZOrder(he,we.get(he.layer)+1)}),Le.commitTransaction("pullToFront")},tt.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var we=new go.Map;Le.selection.each(function(he){we.set(he.layer,0)}),we.iteratorKeys.each(function(he){var lt=0;he.parts.each(function(Gt){if(!Gt.isSelected){var Ct=Gt.zOrder;isNaN(Ct)?Gt.zOrder=0:lt=Math.min(lt,Ct)}}),we.set(he,lt)}),Le.selection.each(function(he){tt._assignZOrder(he,we.get(he.layer)-1-tt._findGroupDepth(he))}),Le.commitTransaction("pushToBack")},tt._assignZOrder=function(Le,we,he){he===void 0&&(he=Le),Le.layer===he.layer&&(Le.zOrder=we),Le instanceof go.Group&&Le.memberParts.each(function(lt){tt._assignZOrder(lt,we+1,he)})},tt._findGroupDepth=function(Le){if(Le instanceof go.Group){var we=0;return Le.memberParts.each(function(he){we=Math.max(we,tt._findGroupDepth(he))}),we+1}else return 0},tt.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var we=Le.lastInput;if(we.key==="Up"||we.key==="Down"||we.key==="Left"||we.key==="Right"){var he=this.arrowKeyBehavior;if(he==="none")return;if(he==="select"){this._arrowKeySelect();return}else if(he==="move"){this._arrowKeyMove();return}else if(he==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},tt.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(we){Le.push(we)}),this.diagram.parts.each(function(we){Le.push(we)}),Le},tt.prototype._arrowKeyMove=function(){var Le=this.diagram,we=Le.lastInput,he=0,lt=0;if(we.control||we.meta)he=1,lt=1;else if(Le.grid!==null){var Gt=Le.grid.gridCellSize;lt=Gt.width,he=Gt.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(Ct){we.key==="Up"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y-he)):we.key==="Down"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y+he)):we.key==="Left"?Ct.move(new go.Point(Ct.actualBounds.x-lt,Ct.actualBounds.y)):we.key==="Right"&&Ct.move(new go.Point(Ct.actualBounds.x+lt,Ct.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},tt.prototype._arrowKeySelect=function(){var Le=this.diagram,we=Le.lastInput,he=null;we.key==="Up"?he=this._findNearestPartTowards(270):we.key==="Down"?he=this._findNearestPartTowards(90):we.key==="Left"?he=this._findNearestPartTowards(180):we.key==="Right"&&(he=this._findNearestPartTowards(0)),he!==null&&(we.shift?he.isSelected=!0:we.control||we.meta?he.isSelected=!he.isSelected:Le.select(he))},tt.prototype._findNearestPartTowards=function(Le){var we=this.diagram.selection.first();if(we===null)return null;for(var he=we.actualBounds.center,lt=this._getAllParts(),Gt=1/0,Ct=we,dn=0;dn<lt.length;dn++){var Xt=lt[dn];if(Xt!==we&&Xt.canSelect()){var nn=Xt.actualBounds.center,yn=he.directionPoint(nn),jn=this._angleCloseness(yn,Le);if(jn<=45){var it=he.distanceSquaredPoint(nn);it*=1+Math.sin(jn*Math.PI/180),it<Gt&&(Gt=it,Ct=Xt)}}}return Ct},tt.prototype._angleCloseness=function(Le,we){return Math.min(Math.abs(we-Le),Math.min(Math.abs(we+360-Le),Math.abs(we-360-Le)))},tt.prototype._arrowKeyTree=function(){var Le=this.diagram,we=Le.selection.first();if(we instanceof go.Node){var he=Le.lastInput;if(he.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)Le.commandHandler.canExpandTree(we)&&Le.commandHandler.expandTree(we);else{var lt=this._sortTreeChildrenByY(we).first();lt!==null&&Le.select(lt)}}else if(he.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)Le.commandHandler.canCollapseTree(we)&&Le.commandHandler.collapseTree(we);else{var Gt=we.findTreeParentNode();Gt!==null&&Le.select(Gt)}else if(he.key==="Up"){var Gt=we.findTreeParentNode();if(Gt!==null){var Ct=this._sortTreeChildrenByY(Gt),dn=Ct.indexOf(we);if(dn>0){for(var Xt=Ct.elt(dn-1);Xt!==null&&Xt.isTreeExpanded&&!Xt.isTreeLeaf;){var nn=this._sortTreeChildrenByY(Xt);Xt=nn.last()}Xt!==null&&Le.select(Xt)}else Le.select(Gt)}}else if(he.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var lt=this._sortTreeChildrenByY(we).first();lt!==null&&Le.select(lt)}else for(;we!==null;){var Gt=we.findTreeParentNode();if(Gt===null)break;var Ct=this._sortTreeChildrenByY(Gt),dn=Ct.indexOf(we);if(dn<Ct.length-1){Le.select(Ct.elt(dn+1));break}else we=Gt}var yn=Le.selection.first();yn!==null&&Le.scrollToRect(yn.actualBounds)}},tt.prototype._sortTreeChildrenByY=function(Le){var we=new go.List().addAll(Le.findTreeChildrenNodes());return we.sort(function(he,lt){var Gt=he.location,Ct=lt.location;return Gt.y<Ct.y?-1:Gt.y>Ct.y?1:Gt.x<Ct.x?-1:Gt.x>Ct.x?1:0}),we},tt.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},tt.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(tt.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(tt.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=tt,At=oe(72179),vt=oe(43604),be=oe(98280),ye={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=oe(59301),ke=(Le,we,he)=>new Promise((lt,Gt)=>{var Ct=nn=>{try{Xt(he.next(nn))}catch(yn){Gt(yn)}},dn=nn=>{try{Xt(he.throw(nn))}catch(yn){Gt(yn)}},Xt=nn=>nn.done?lt(nn.value):Promise.resolve(nn.value).then(Ct,dn);Xt((he=he.apply(Le,we)).next())});function He({onCancel:Le,callback:we}){let he=(0,ne.useRef)(),lt=(0,ne.useRef)(),Gt=(0,ne.useRef)(),Ct=(0,ne.useRef)(!1);const dn=(0,ne.useRef)(!1),[Xt,nn]=(0,ne.useState)(0);function yn(){const it=de.bx.make,an={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"};he.current=new de.S0(lt.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:at=>{var Ft=at.diagram.commandHandler.addTopLevelParts(at.diagram.selection,!0);Ft||at.diagram.currentTool.doCancel()},commandHandler:it(st),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:at=>{var Ft=at.subject;Ft.location=Ft.location.copy().snapToGridPoint(at.diagram.grid.gridOrigin,at.diagram.grid.gridCellSize),setTimeout(()=>{at.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:at=>{var Ft=at.subject;setTimeout(()=>{at.diagram.commandHandler.editTextBlock()})},LinkRelinked:at=>{var Ft=at.parameter.part;Ft.invalidateConnectedLinks();var $t=at.subject;at.diagram.toolManager.linkingTool.isForwards?$t.toNode.invalidateConnectedLinks():$t.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),he.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:an.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"))),he.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(at,Ft){var $t=(zt,Vt)=>{zt.handled=!0,zt.diagram.model.commit(Jt=>{var Ht=Vt.part.adornedPart,Sn=new de.E9().setRectSpot(Ht.actualBounds,at);Sn.subtract(Ht.location),Sn.scale(2,2),Sn.x+=Math.sign(Sn.x)*130,Sn.y+=Math.sign(Sn.y)*130,Sn.add(Ht.location),Sn.snapToGridPoint(zt.diagram.grid.gridOrigin,zt.diagram.grid.gridCellSize);var Pn=Jt.copyNodeData(Ht.data);Jt.setGroupKeyForNodeData(Pn,Jt.getGroupKeyForNodeData(Ht.data)),Jt.addNodeData(Pn);var qn={from:Ht.key,to:Jt.getKeyForNodeData(Pn)};Jt.addLinkData(qn);var aa=zt.diagram.findNodeForData(Pn);aa.location=Sn,zt.diagram.select(aa),setTimeout(()=>{zt.diagram.commandHandler.editTextBlock()},20)})};return it(de.bn,{figure:Ft,alignment:at,alignmentFocus:at.opposite(),width:at.equals(de.z6.Top)||at.equals(de.z6.Bottom)?25:18,height:at.equals(de.z6.Top)||at.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:an.white,strokeWidth:4,mouseEnter:(zt,Vt)=>Vt.fill="dodgerblue",mouseLeave:(zt,Vt)=>Vt.fill="orange",isActionable:!0,click:$t,contextClick:$t})}function Xn(at){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:(Ft,$t)=>$t.fill="dodgerblue",mouseLeave:(Ft,$t)=>$t.fill="orange",click:(Ft,$t)=>{Ft.diagram.commandHandler.showContextMenu($t.part.adornedPart)}},at||{})}he.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"),Xn({alignment:new de.z6(.75,0)}));function Bn(at,Ft){return($t,zt)=>{$t.handled=!0,$t.diagram.model.commit(Vt=>{Vt.set(zt.part.adornedPart.data,at,Ft)})}}function ue(at,Ft){return Ft||(Ft="color"),it(de.bn,{width:16,height:16,stroke:"lightgray",fill:at,margin:1,background:"transparent",mouseEnter:($t,zt)=>zt.stroke="dodgerblue",mouseLeave:($t,zt)=>zt.stroke="lightgray",click:Bn(Ft,at),contextClick:Bn(Ft,at)})}function Me(){return[it("ContextMenuButton",it(de.s_,"Horizontal",ue(an.white,"fill"),ue(an.beige,"fill"),ue(an.extralightblue,"fill"),ue(an.extralightred,"fill"))),it("ContextMenuButton",it(de.s_,"Horizontal",ue(an.lightgray,"fill"),ue(an.lightgreen,"fill"),ue(an.lightblue,"fill"),ue(an.lightred,"fill")))]}function Ne(){return[it("ContextMenuButton",it(de.s_,"Horizontal",ue(an.black),ue(an.green),ue(an.blue),ue(an.red))),it("ContextMenuButton",it(de.s_,"Horizontal",ue(an.white),ue(an.magenta),ue(an.purple),ue(an.orange)))]}function Ze(at,Ft){return Ft||(Ft="thickness"),it(de.bn,"LineH",{width:16,height:16,strokeWidth:at,margin:1,background:"transparent",mouseEnter:($t,zt)=>zt.background="dodgerblue",mouseLeave:($t,zt)=>zt.background="transparent",click:Bn(Ft,at),contextClick:Bn(Ft,at)})}function ot(at,Ft){return Ft||(Ft="dash"),it(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:at,margin:1,background:"transparent",mouseEnter:($t,zt)=>zt.background="dodgerblue",mouseLeave:($t,zt)=>zt.background="transparent",click:Bn(Ft,at),contextClick:Bn(Ft,at)})}function rt(){return[it("ContextMenuButton",it(de.s_,"Horizontal",Ze(1),Ze(2),Ze(3),Ze(4))),it("ContextMenuButton",it(de.s_,"Horizontal",ot(null),ot([2,4]),ot([4,4])))]}function nt(at,Ft){return Ft||(Ft="figure"),it(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:at,margin:1,background:"transparent",mouseEnter:($t,zt)=>zt.fill="dodgerblue",mouseLeave:($t,zt)=>zt.fill="lightgray",click:Bn(Ft,at),contextClick:Bn(Ft,at)})}he.current.nodeTemplate.contextMenu=it("ContextMenu",it("ContextMenuButton",it(de.s_,"Horizontal",nt("Rectangle"),nt("RoundedRectangle"),nt("Ellipse"),nt("Diamond"))),it("ContextMenuButton",it(de.s_,"Horizontal",nt("Parallelogram2"),nt("ManualOperation"),nt("Procedure"),nt("Cylinder1"))),it("ContextMenuButton",it(de.s_,"Horizontal",nt("Terminator"),nt("CreateRequest"),nt("Document"),nt("TriangleDown"))),Me(),Ne(),rt()),he.current.groupTemplate=it(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(at,Ft)=>{var $t=Ft.addMembers(Ft.diagram.selection,!0);$t||Ft.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:an.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"))),he.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})),Xn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),he.current.groupTemplate.contextMenu=it("ContextMenu",Me(),Ne(),rt()),he.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",at=>at>=1?10:0),new de.KX("toShortLength","dir",at=>at>=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",at=>at===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",at=>at>=1),new de.KX("width","thickness",at=>7+3*at),new de.KX("height","thickness",at=>7+3*at),new de.KX("segmentOffset","thickness",at=>new de.E9(-15,4+1.5*at))),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",at=>at===2),new de.KX("width","thickness",at=>7+3*at),new de.KX("height","thickness",at=>7+3*at),new de.KX("segmentOffset","thickness",at=>new de.E9(-15,4+1.5*at))),it(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),he.current.linkTemplate.selectionAdornmentTemplate=it(de.uz,it(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ue(2)},new de.KX("pathPattern","thickness",Ue)),Xn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ue(at){return it(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(at+4).toString()+" H3"})}function Mt(at){var Ft="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return at===0?Ft="M0 0 M16 16 M0 8 L16 8":at===2&&(Ft="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),it(de.bn,{geometryString:Ft,margin:2,background:"transparent",mouseEnter:($t,zt)=>zt.background="dodgerblue",mouseLeave:($t,zt)=>zt.background="transparent",click:Bn("dir",at),contextClick:Bn("dir",at)})}function Dt(at){var Ft=($t,zt)=>{$t.handled=!0,$t.diagram.model.commit(Vt=>{var Jt=zt.part.adornedPart;Vt.set(Jt.data,at?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(at?Jt.toNode:Jt.fromNode).invalidateConnectedLinks()})};return it(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:($t,zt)=>zt.background="dodgerblue",mouseLeave:($t,zt)=>zt.background="transparent",click:Ft,contextClick:Ft})}function Tt(at,Ft){var $t=0,zt=de.z6.RightSide;at.equals(de.z6.Top)?($t=270,zt=de.z6.TopSide):at.equals(de.z6.Left)?($t=180,zt=de.z6.LeftSide):at.equals(de.z6.Bottom)&&($t=90,zt=de.z6.BottomSide),Ft||($t-=180);var Vt=(Jt,Ht)=>{Jt.handled=!0,Jt.diagram.model.commit(Sn=>{var Pn=Ht.part.adornedPart;Sn.set(Pn.data,Ft?"toSpot":"fromSpot",de.z6.stringify(zt)),(Ft?Pn.toNode:Pn.fromNode).invalidateConnectedLinks()})};return it(de.bn,{alignment:at,alignmentFocus:at.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:$t,background:"transparent",mouseEnter:(Jt,Ht)=>Ht.background="dodgerblue",mouseLeave:(Jt,Ht)=>Ht.background="transparent",click:Vt,contextClick:Vt})}he.current.linkTemplate.contextMenu=it("ContextMenu",Ne(),rt(),it("ContextMenuButton",it(de.s_,"Horizontal",Mt(0),Mt(1),Mt(2))),it("ContextMenuButton",it(de.s_,"Horizontal",it(de.s_,"Spot",Dt(!1),Tt(de.z6.Top,!1),Tt(de.z6.Left,!1),Tt(de.z6.Right,!1),Tt(de.z6.Bottom,!1)),it(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Dt(!0),Tt(de.z6.Top,!0),Tt(de.z6.Left,!0),Tt(de.z6.Right,!0),Tt(de.z6.Bottom,!0)))));const Re=`{ "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 ln=["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 hn(at){return console.log("shapeName:",at),ln.indexOf(at)>=0}var Tn=new de.YI(Gt.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(at=>({text:"\u672A\u547D\u540D",size:"100 100",figure:at.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return he.current.addDiagramListener("TextEdited",function(at){var Ft;const $t=at.subject.part;var zt=(Ft=document.activeElement)==null?void 0:Ft.value;typeof zt=="string"&&zt.trim()===""&&he.current.model.commit(function(Vt){Vt.set($t.data,"text","\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}),Tn.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(()=>{he.current.grid=it(de.s_,"Grid",it(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),it(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),he.current.grid.visible=!0,he.current.grid.gridCellStroke="darkgray",he.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=he.current,he.current}const jn=()=>ke(this,null,function*(){var it=he.current.makeImage();const an=yield(0,be.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:it.src}});we({src:an.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{yn()},500),nn(Xt+1),()=>{he.current=null}),[]),Pe.createElement("div",{ref:dn,className:Ct.current?`${ye.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(Be.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Xt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(Ye.Z,null,Pe.createElement(vt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(vt.Z,{onClick:()=>{var it,an,Dn=he.current.selection.first();if(Ct.current=!Ct.current,document.activeElement&&Dn){let Xn=(an=(it=document.activeElement)==null?void 0:it.value)==null?void 0:an.trim();typeof Xn=="string"&&he.current.model.commit(function(Bn){Bn.set(Dn.data,"text",Xn||"\u672A\u547D\u540D"),he.current.commandHandler.stopCommand()},"increment")}nn(Xt+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:ye.flowChartWrp},Pe.createElement("div",{style:{display:"flex",height:"100%"}},Pe.createElement("div",{style:{width:"300px",height:"100%"}},Pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:ye.myPaletteDiv,ref:Gt})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:lt,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement(xe.ZP,{size:"large",onClick:jn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ut=He,xt=oe(5112),bt=oe(5871);const It=xt.ZP.Group,jt={margin:"0 8px"};var wt=({callback:Le,onCancel:we})=>{function he(lt){Le(lt)}return ne.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:he},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(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(bt.Z,null)),ne.createElement("span",{style:jt},"\u5217\u6570"),ne.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(bt.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(le.default.Item,{name:"align"},ne.createElement(It,null,ne.createElement(xt.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(xt.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(xt.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(xt.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(xe.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},ht=oe(78673),yt=oe(25730),Ut=oe.n(yt),tn=(0,ne.forwardRef)(({use3d:Le,width:we,height:he,callback:lt,showSaveButton:Gt},Ct)=>{const dn=(0,ne.useRef)(),Xt=(0,ne.useRef)(),[nn,yn]=(0,ne.useState)(!1),jn=(0,ne.useRef)({id:dn,appName:"graphing",width:we||1e3,height:he||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)(()=>{Xt.current=new(Ut())(jn.current,!0),window.onload=function(){Xt.current.inject("applet_container")}},[]);const it=()=>{var an=window.ggbApplet.getPNGBase64(1,!0,72);return lt&&lt(an),an};return(0,ne.useEffect)(()=>{jn.current.appName=nn?"3D":"graphing",Xt.current.inject("applet_container")},[nn]),(0,ne.useEffect)(()=>{yn(Le)},[Le]),(0,ne.useImperativeHandle)(Ct,()=>({getImgData:it})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:dn}),ne.createElement(Ye.Z,{align:"middle"},ne.createElement(vt.Z,{flex:1},ne.createElement(ht.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:nn,onChange:an=>yn(an)})),ne.createElement(vt.Z,null,ne.createElement(xe.ZP,{size:"large",onClick:it,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Kt=oe(88601),pe=oe(1012),$e=oe(8591);const qe="link",mt="upload-image",ft="add-flowchart",Rt="draw-image",kt="add-flowchart",Et="code-block",_t="add-table",qt="------------",Qt={default:qt,left:`:${qt}`,center:`:${qt}:`,right:`${qt}:`};var on=oe(28934),fn=(Le,we,he)=>new Promise((lt,Gt)=>{var Ct=nn=>{try{Xt(he.next(nn))}catch(yn){Gt(yn)}},dn=nn=>{try{Xt(he.throw(nn))}catch(yn){Gt(yn)}},Xt=nn=>nn.done?lt(nn.value):Promise.resolve(nn.value).then(Ct,dn);Xt((he=he.apply(Le,we)).next())});function pn(){}let wn=0;const gn=1e4,rn="\u2581",vn="@\u2581\u2581@",En="@\u2581@",$n=`
**\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",Un={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},ta={[qe]:"\u6DFB\u52A0\u94FE\u63A5",[Et]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mt]:"\u6DFB\u52A0\u56FE\u7247",[Rt]:"\u6DFB\u52A0\u753B\u56FE",[ft]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[_t]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qn=({defaultValue:Le="",onChange:we,width:he="100%",height:lt=400,miniToolbar:Gt=!1,isFocus:Ct=!1,watch:dn,insertTemp:Xt,mode:nn="markdown",id:yn="markdown-editor-id",showResizeBar:jn=!1,noStorage:it=!1,showNullButton:an=!1,showNullProgramButton:Dn=!1,hidetoolBar:Xn=!1,fullScreen:Bn=!1,onBlur:ue,onCMBeforeChange:Me,onFullScreen:Ne,className:Ze="",disablePaste:ot=!1,disabled:rt=!1,disabledFill:nt=!1,placeholder:Ue="",values:Mt="",extraUse:Dt,onAddBlank:Tt})=>{const[Re,ln]=(0,ne.useState)(null),[hn,Tn]=(0,ne.useState)(Le),[at,Ft]=(0,ne.useState)(dn),[$t,zt]=(0,ne.useState)(Bn),[Vt,Jt]=(0,ne.useState)(""),[Ht,Sn]=(0,ne.useState)(0),[Pn,qn]=(0,ne.useState)(lt),[aa,Vn]=(0,ne.useState)(!1),ca=(0,ne.useRef)((0,pe.Z)()),Pa=(0,ne.useRef)(!1),Sa=(0,ne.useRef)(),[ga,Kn]=(0,ne.useState)(0),[On,ma]=(0,ne.useState)(0),ea=(0,ne.useRef)(),ra=(0,ne.useRef)(),na=(0,ne.useRef)(),Wn=(0,ne.useRef)(),fa=()=>fn(void 0,null,function*(){var Ot;const Pt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ca.current}});(Ot=Pt==null?void 0:Pt.attachments)!=null&&Ot.length&&(console.log("cm:",Re,ea),Pt.attachments.map(Lt=>{Lt.content_type.indexOf("image")>-1?Re.replaceSelection(`![,](/api/attachments/${Lt.id}?type=${Lt.content_type})`):Lt.content_type.indexOf("video")>-1?Re.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Lt.content_type.indexOf("pdf")>-1?Re.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type}&disposition=inline" target="_blank">${Lt.name}</a>`):Re.replaceSelection(`[${Lt.name}](${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type})`)}))});(0,ne.useEffect)(()=>{const Ot=window.scrollY||window.pageYOffset;Tn(Mt),Re==null||Re.setValue(Mt),window.scrollTo(0,Ot)},[Mt]),(0,ne.useEffect)(()=>{Ne==null||Ne($t)},[$t]),(0,ne.useEffect)(()=>{if(ea.current){let Ot=function(Lt,Bt){var un;if(ot){Bt.preventDefault();return}const Fn=Bt.clipboardData;if(Fn){const _n=Fn.types.toString(),Rn=Fn.items;if(_n==="Files"||Fn.types.indexOf("Files")>-1){if(Bt.preventDefault(),nn=="stex")return;try{let Hn=Rn[1];((un=Rn[0])==null?void 0:un.kind)==="file"&&(Hn=Rn[0]);const Zn=Hn.getAsFile(),oa=Zn.name.split(".").pop();(0,fe.I)(Zn,Wt=>{var sn,Ln,en;Wt.id?((sn=Zn==null?void 0:Zn.type)==null?void 0:sn.indexOf("image"))>-1?Pt.replaceSelection(`<img width="100%" src="/api/attachments/${Wt.id}?type=${Wt.content_type})" alt="" />`):((Ln=Zn==null?void 0:Zn.type)==null?void 0:Ln.indexOf("video"))>-1?Pt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Wt.id}"></video>`):((en=Zn==null?void 0:Zn.type)==null?void 0:en.indexOf("pdf"))>-1?Pt.replaceSelection(`<a href="/api/attachments/${Wt.id}?type=${Zn.type}&disposition=inline" target="_blank">${Zn.name}</a>`):cn.includes(oa)?Pt.replaceSelection(`<a href="/api/attachments/${Wt.id}?type=office&disposition=inline" target="_blank">${Zn.name}</a>`):Pt.replaceSelection(`[${Zn.name}](/api/attachments/${Wt.id}?type=${Wt.content_type})`):(Wt==null?void 0:Wt.status)===401&&($e.ZP.warning((Wt==null?void 0:Wt.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Hn){$e.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Pt=Qe().fromTextArea(ea.current,{mode:nn,lineNumbers:!Gt,lineWrapping:!0,value:Le,autoCloseTags:!Dn,autoCloseBrackets:!0});return Pt.on("keyup",function(Lt,Bt){Bt.keyCode===8&&(Lt.getValue()==""?Pt.setOption("placeholder",Ue):Pt.setOption("placeholder",null))}),Pt.on("keydown",function(Lt,Bt){if(Bt.keyCode===8){var un=In(Lt);un&&Bt.preventDefault()}}),Ct&&Pt.focus(),Pt.on("paste",Ot),Pt.on("dragleave",function(Lt,Bt){ra.current.classList.remove("mouse-hover-md")}),rt&&Pt.on("beforeChange",function(Lt,Bt){(Bt.origin==="paste"||Bt.origin==="+input")&&Bt.cancel()}),ln(Pt),()=>{Pt.off("paste",Ot)}}},[]);const Yt=(0,ne.useCallback)(()=>{if(ra.current)try{}catch(Ot){console.log(Ot,"---- to set md editor body height")}},[Pn,ra,$t]);(0,ne.useEffect)(()=>{function Ot(){let Pt=new Ie.Z(Lt=>{for(let Bt of Lt)(Bt.target.offsetHeight>0||Bt.target.offsetWidth>0)&&(Yt(),Re.setSize("100%","100%"),Re.refresh())});return Pt.observe(ea.current.parentElement),Pt}if(Re){const Pt=Ot();return()=>{var Lt,Bt;(Lt=ea.current)!=null&&Lt.parentElement&&Pt.unobserve((Bt=ea.current)==null?void 0:Bt.parentElement)}}},[Re,Yt]),(0,ne.useEffect)(()=>{if(Re){let Ot=[];for(const[Pt,Lt]of Object.entries(Un)){let Bt={[Pt]:()=>{Yn(Lt)}};Ot.push(Bt),Re.addKeyMap(Bt)}return Sa.current=setInterval(()=>{Pa.current&&fa()},4e3),()=>{clearInterval(Sa.current);for(let Pt of Ot)Re.removeKeyMap(Pt)}}},[Re]),(0,ne.useEffect)(()=>{Bn!==$t&&zt(Bn)},[Bn]),(0,on.Z)(()=>{if(!it&&Ht>0){let Ot=new Date().getTime(),Pt=window.sessionStorage.getItem(yn);Ot>=Ht+gn&&(!Pt||Pt!==hn)&&(window.sessionStorage.setItem(yn,hn),Vn(!0))}},gn),(0,ne.useEffect)(()=>{Ft(dn)},[Re,dn]),(0,ne.useEffect)(()=>{Re&&Ct&&Re.focus()},[Re,Ct]),(0,ne.useEffect)(()=>{if(at&&Re){let Ot=function(Lt){let Bt=Lt.target;if(Wn.current){let un=Bt.scrollTop/Bt.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*un}};const Pt=Re.getScrollerElement();return Pt.addEventListener("scroll",Ot),()=>{Pt.removeEventListener("scroll",Ot)}}},[Re,at]),(0,ne.useEffect)(()=>{if(Re&&Me){let Ot=function(Pt,Lt){Me(Pt,Lt)};return Re.on("beforeChange",Ot),()=>{Re.off("beforeChange",Ot)}}},[Re,Me]),(0,ne.useEffect)(()=>{if(Re&&ue){let Ot=function(){ue(Re.getValue())};return Re.on("blur",Ot),()=>{Re.off("blur",Ot)}}},[Re,ue]);function In(Ot,Pt){var Lt=Ot.getDoc(),Bt=Lt.getCursor(),un=Lt.getLine(Bt.line),Fn=un.charAt(Bt.ch-1),_n=un.lastIndexOf("@\u2581@",Bt.ch),Rn=un.lastIndexOf("@\u2581\u2581@",Bt.ch),Hn=_n>Rn?_n:Rn,Zn=_n>Rn?3:4;if(vn.indexOf(Fn)===-1)return null;if(console.log("change1:",Pt,Ot,un,Bt,Hn,_n,Rn,Fn),Hn>=0&&Bt.ch-Hn<5){var oa=Hn+Zn;return Lt.replaceRange("",{line:Bt.line,ch:Hn},{line:Bt.line,ch:oa}),{line:Bt.line,ch:oa}}return null}(0,ne.useEffect)(()=>{if(Re){let Ot=function(Pt,Lt){const Bt=Pt.getValue();Tn(Bt),Sn(new Date().getTime()),Pt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Dn?we(Bt,ia(Bt)):we(Bt))};return Re.on("change",Ot),()=>{Re.off("change",Ot)}}},[Re,we]),(0,ne.useEffect)(()=>{if(Re)if(Le==null)Re.setValue(""),Tn("");else{const Ot=window.scrollY||window.pageYOffset;Le!==Re.getValue()&&(Re.setValue(Le),Tn(Le),Re.setCursor(rt?1:Re.lineCount(),0),window.scrollTo(0,Ot))}},[Re,Le]);const Yn=(0,ne.useCallback)(Ot=>{const Pt=Re.getCursor(),Lt=Re.getSelection();let Bt=Lt.split(`
`);switch(Ot){case"bold":return Re.replaceSelection("**"+Lt+"**"),Lt===""&&Re.setCursor(Pt.line,Pt.ch+2),Re.focus();case"italic":return Re.replaceSelection("*"+Lt+"*"),Lt===""&&Re.setCursor(Pt.line,Pt.ch+1),Re.focus();case"code":return Re.replaceSelection("`"+Lt+"`"),Lt===""&&Re.setCursor(Pt.line,Pt.ch+1),Re.focus();case"inline-latex":return Jt("inline-latex"),Re.focus();case"latex":return Re.replaceSelection("```latex\n"+Lt+"\n```"),Re.setCursor(Pt.line+1,Lt.length+1),Re.focus();case"line-break":return Re.replaceSelection(`<br/>
`),Re.focus();case"list-ul":return Lt===""?Re.replaceSelection("- "+Lt):Re.replaceSelection(Bt.map(un=>un===""?"":`- ${un}`).join(`
`)),Re.focus();case"list-ol":return Lt===""?Re.replaceSelection("1. "+Lt):Re.replaceSelection(Bt.map((un,Fn)=>un===""?"":`${Fn+1}. ${un}`).join(`
`)),Re.focus();case"add-null-ch":Tt==null||Tt();return;case"add-signal":return Lt===""&&Re.setCursor(Pt.line,Pt.ch),Re.replaceSelection(En),Re.focus();case"add-multiple":return Lt===""&&Re.setCursor(Pt.line,Pt.ch),Re.replaceSelection(vn),Re.focus();case"inster-template-1":return Lt===""&&Re.setCursor(Pt.line,Pt.ch),Re.replaceSelection($n),Re.focus();case"eraser":return Re.setValue(""),Re.focus();case"trigger-watch":return Ft(!at),Re.focus();case"trigger-full-screen":return zt(!$t),Re.focus();case qe:Jt(qe);return;case Et:Jt(Et);return;case mt:Jt(mt);return;case Rt:Jt(Rt);return;case"maths-latex":Jt("maths-latex");return;case ft:Jt(ft);return;case _t:Jt(_t);return;default:throw new Error}},[Re,at,$t]),xn=(0,ne.useCallback)((Ot,Pt)=>{var Lt,Bt,un,Fn,_n,Rn;switch(Jt(""),Vt){case qe:const{title:sn,link:Ln}=Ot;return Re.replaceSelection(`[${sn}](${Ln})`),Re.focus();case Et:const{language:en,content:bn}=Ot;return Re.replaceSelection(["```"+en,bn,"```"].join(`
`)),Re.focus();case"maths-latex":for(var Hn=atob(Ot),Zn=new Uint8Array(Hn.length),oa=0;oa<Hn.length;oa++)Zn[oa]=Hn.charCodeAt(oa);var Wt=new Blob([Zn],{type:"image/png"});(0,fe.I)(Wt,sa=>{sa.id?Re.replaceSelection(`![,](/api/attachments/${sa.id}?type=${sa.content_type})`):(sa==null?void 0:sa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Re.replaceSelection("`$$"+Ot+"$$`");break;case mt:case Rt:case kt:const{src:An,alt:la}=Ot,Cn=Pt,ua=(un=(Bt=(Lt=Cn==null?void 0:Cn.name)==null?void 0:Lt.split("."))==null?void 0:Bt.pop)==null?void 0:un.call(Bt);return((Fn=Cn==null?void 0:Cn.type)==null?void 0:Fn.indexOf("image"))>-1||!(Cn!=null&&Cn.type)?Cn.align||Cn.width?Re.replaceSelection(`<p style="text-align:${Cn.align||"initial"}"><img width="${Cn.width?Cn.width+"%":"initial"}" src="${An}" alt="${la||""}" /></p>`):Re.replaceSelection(`<img width="100%" src="${An}" alt="${la||""}" />`):((_n=Cn==null?void 0:Cn.type)==null?void 0:_n.indexOf("video"))>-1?Re.replaceSelection(`<video width="100%" controls src="${An}"></video>`):((Rn=Cn==null?void 0:Cn.type)==null?void 0:Rn.indexOf("pdf"))>-1?Re.replaceSelection(`<a href="${An}?type=${Cn.type}&disposition=inline" target="_blank">${Cn.name}</a>`):cn.includes(ua)?Re.replaceSelection(`<a href="${An}?type=office&disposition=inline" target="_blank">${Cn.name}</a>`):Re.replaceSelection(`[${Cn.name}](${An})`),Re.focus();case _t:const{row:Fa,col:Ca,align:$a}=Ot;let wa=`
`;for(let sa=0;sa<Fa;sa++){let Ba=[],xa=[];for(let Ea=0;Ea<Ca;Ea++)sa===1&&xa.push(Qt[$a]),Ba.push(" ");sa===1&&(wa+=`| ${xa.join(" | ")} |
`),wa+=`| ${Ba.join(Ca===1?"":" | ")} |
`}return Re.replaceSelection(wa+`
`),Re.focus();default:throw new Error}},[Re,Vt]),da=(0,ne.useMemo)(()=>{switch(Vt){case qe:return ne.createElement(Ke,{callback:xn,onCancel:kn});case Et:return ne.createElement(pt.Z,{callback:xn,onCancel:kn});case mt:return ne.createElement(fe.Z,{callback:xn,onCancel:kn});case ft:return ne.createElement(ut,{callback:xn,onCancel:kn});case _t:return ne.createElement(wt,{callback:xn,onCancel:kn});case"maths-latex":return ne.createElement(tn,{showSaveButton:!0,callback:xn});case"inline-latex":return ne.createElement(Kt.Z,{showSaveButton:!0,callback:xn});default:return null}},[Vt]);function kn(){Jt("")}(0,ne.useEffect)(()=>{if(na.current){let Ot=function(_n){un=!0,Fn=_n.pageY},Pt=function(){un=!1},Lt=function(_n){if(un){let Rn=_n.pageY-Fn;Rn<0&&(Rn=0),Rn>300&&(Rn=300);let Hn=lt+Rn+"px";qn(Hn)}},Bt=na.current,un=!1,Fn=0;return Bt.addEventListener("mousedown",Ot),document.addEventListener("mousemove",Lt),document.addEventListener("mouseup",Pt),()=>{Bt.removeEventListener("mousedown",Ot),document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",Pt)}}},[Re,na]),(0,ne.useEffect)(()=>{qn(lt)},[lt]);const pa=zn(he),ha=zn(Pn),Gn={width:pa,height:ha},Mn=(0,ne.useMemo)(()=>{if(Ht){let Ot=new Date(Ht),Pt=Ot.getHours(),Lt=Ot.getMinutes(),Bt=Ot.getSeconds();return Pt=Pt<10?"0"+Pt:Pt,Lt=Lt<10?"0"+Lt:Lt,Bt=Bt<10?"0"+Bt:Bt,`${Pt}:${Lt}:${Bt}`}return 0},[Ht]),ia=Ot=>{const Pt=[];if(Dn){let Lt=-1;Ot=Ot.replace(/(@▁▁@|@▁@)/g,function(Bt,un,Fn){Pt.push({multiLine:Bt!==En})})}return Pt};function va(){window.sessionStorage.removeItem(yn),Vn(!1),Sn(0)}function ya(){Vn(!1),Sn(0),Re.setValue(window.sessionStorage.getItem(yn))}(0,ne.useEffect)(()=>{ta[Vt]&&Vt!==Rt&&Vt!==ft&&setTimeout(()=>{const Ot=document.getElementsByClassName("markdown-popup-form")[0],Pt=window.innerWidth/2-Ot.offsetWidth/2,Lt=window.innerHeight/2-Ot.offsetHeight/2;Kn(Pt),ma(Lt)},0)},[Vt]);const La=Ot=>{Ot.preventDefault();const Pt=Ot.clientX-ga,Lt=Ot.clientY-On;document.body.onmousemove=Bt=>{let un=Bt.clientX-Pt,Fn=Bt.clientY-Lt;const _n=document.getElementsByClassName("markdown-popup-form")[0],Rn=window.innerWidth-_n.offsetWidth,Hn=window.innerHeight-_n.offsetHeight;un=Math.max(0,Math.min(un,Rn)),Fn=Math.max(0,Math.min(Fn,Hn)),ba(Bt.clientX,Bt.clientY,Pt,Lt)&&(Kn(un),ma(Fn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(Ot,Pt,Lt,Bt)=>{const un=document.body.clientHeight,Fn=document.body.clientWidth;return Ot<20&&Lt>Ot||Ot>Fn-20&&Lt<Ot||Pt<20&&Bt>Pt||Pt>un-20&&Bt<Pt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:ra},ne.createElement("div",{className:`markdown-editor-container ${Ze} ${at?"on-preview":""} ${Gt?"mini":""} ${$t?"full-screen":""}`,style:Gn},ne.createElement(ge,{insertTemp:Xt,watch:at,fullScreen:$t,showNullButton:an,showNullProgramButton:Dn,onActionCallback:Yn,hidetoolBar:Xn,extraUse:Dt}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:ea,placeholder:Ue})),at?ne.createElement("div",{ref:Wn,className:"preview-container"},nn==="stex"&&ne.createElement(_e,{value:hn}),nn!=="stex"&&ne.createElement(We.Z,{disabledFill:nt,showProgramFill:Dn,value:hn})):null))),jn?ne.createElement("a",{ref:na,className:"editor-resize"}):null,Vt===Rt&&ne.createElement(Je,{callback:xn,onCancel:kn}),Vt===ft&&ne.createElement(ut,{callback:xn,onCancel:kn}),ne.createElement(me.Z,null,ta[Vt]&&Vt!==Rt&&Vt!==ft?ne.createElement(Be.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ga,top:On},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:La},ta[Vt]),open:!0,onCancel:kn,footer:null,destroyOnClose:!0,width:Vt===ft?"1200px":null,height:Vt===ft?"80vh":null,className:"markdown-popup-form"},da):null))}},76021:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return ie},I:function(){return me}});var ne=oe(78241),Se=oe(8591),Qe=oe(92832),Ie=oe(81327),ce=oe(5871),Fe=oe(5112),se=oe(3113),Ae=oe(82977),ze=oe(59301),De=oe(53229),We=oe(59301),_e=Object.defineProperty,Te=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(le,Ce,xe)=>Ce in le?_e(le,Ce,{enumerable:!0,configurable:!0,writable:!0,value:xe}):le[Ce]=xe,E=(le,Ce)=>{for(var xe in Ce||(Ce={}))y.call(Ce,xe)&&b(le,xe,Ce[xe]);if(a)for(var xe of a(Ce))x.call(Ce,xe)&&b(le,xe,Ce[xe]);return le},z=(le,Ce)=>Te(le,ae(Ce));const{useForm:ee}=ne.default,te={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:le,onCancel:Ce})=>{const[xe]=ee();let ct=(0,ze.useRef)();function Nt(Ee){ct.current.width=xe.getFieldValue("width"),ct.current.align=xe.getFieldValue("align"),le(Ee,ct.current)}function Zt(Ee,Oe){if(Ee.status===-1){Se.ZP.error(Ee.message);return}xe.setFieldsValue({src:`/api/attachments/${Ee.id}`,type:Oe.type})}function ve(Ee){let Oe=Ee.target.files[0];ct.current=Oe,me(Oe,Zt)}return We.createElement(ne.default,z(E({form:xe},re),{className:"upload-image-panel",onFinish:Nt,style:{width:470,overflow:"hidden"}}),We.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},We.createElement("div",{className:"flex-container"},We.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},We.createElement(Qe.default,{style:te})),We.createElement(ge,{onFileChange:ve}))),We.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},We.createElement(Qe.default,{style:{width:264}})),We.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},We.createElement(Ie.Z,null,We.createElement(ne.default.Item,{name:"width",style:{margin:0}},We.createElement(ce.Z,{style:{width:264}})),We.createElement("span",{className:"ml8"},"%"))),We.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},We.createElement(Fe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),We.createElement("aside",null,We.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},We.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(se.ZP,{type:"default",onClick:Ce},"\u53D6\u6D88"))))};function ge({onFileChange:le}){return We.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",We.createElement("input",{type:"file",onChange:le}))}function me(le,Ce){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw Se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let xe=new FormData;xe.append("editormd-image-file",le),xe.append("file_param_name","editormd-image-file"),xe.append("byxhr","true");var ct=new window.XMLHttpRequest;ct.withCredentials=!0,ct.addEventListener("load",function(Nt){Ce(JSON.parse(Nt.target.responseText),le)},!1),ct.addEventListener("error",function(Nt){console.error(Nt)},!1),ct.open("POST",`${Ae.KI}/api/attachments.json`),ct.send(xe)}},44991:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Qe}});var ne=oe(59301),Se=oe(4676);class Qe 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)}}},28934:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(Qe,Ie){const ce=(0,ne.useRef)();(0,ne.useEffect)(()=>{ce.current=Qe}),(0,ne.useEffect)(()=>{function Fe(){ce.current()}if(Ie!==null){let se=setInterval(Fe,Ie);return()=>clearInterval(se)}},[Ie])}},19946:function(Ge,dt,oe){"use strict";oe.r(dt),oe.d(dt,{default:function(){return ie}});var ne=oe(59301),Se=oe(75790),Qe=oe(78241),Ie=oe(66104),ce=oe(92832),Fe=oe(3113),se=oe(48551),Ae=oe(59189),ze={bg:"bg___ZTexa",flexRow:"flexRow___VO4ro",flexJustifyCenter:"flexJustifyCenter___OXFkk",flexAlignEnd:"flexAlignEnd___d6zIM",flexAlignCenter:"flexAlignCenter___YzqD8",flexColumn:"flexColumn___RKoTE",formWrap:"formWrap___BxAFG",titleWrap:"titleWrap___tvKuf",fieldWrap:"fieldWrap___eigdN",mdWrap:"mdWrap___cmz87",backgroundFa:"backgroundFa___b57J2",button:"button___VVH5U"},De=oe(49318),We=oe(99099),_e=oe(98280),Te=Object.defineProperty,ae=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,E=(ge,me,le)=>me in ge?Te(ge,me,{enumerable:!0,configurable:!0,writable:!0,value:le}):ge[me]=le,z=(ge,me)=>{for(var le in me||(me={}))x.call(me,le)&&E(ge,le,me[le]);if(y)for(var le of y(me))b.call(me,le)&&E(ge,le,me[le]);return ge},ee=(ge,me)=>ae(ge,a(me)),te=(ge,me,le)=>new Promise((Ce,xe)=>{var ct=ve=>{try{Zt(le.next(ve))}catch(Ee){xe(Ee)}},Nt=ve=>{try{Zt(le.throw(ve))}catch(Ee){xe(Ee)}},Zt=ve=>ve.done?Ce(ve.value):Promise.resolve(ve.value).then(ct,Nt);Zt((le=le.apply(ge,me)).next())});const re=({shixunHomeworks:ge,newCourse:me,globalSetting:le,user:Ce,loading:xe,dispatch:ct})=>{var Nt,Zt,ve;const Ee=(0,Se.useParams)(),[Oe]=Qe.default.useForm(),[et,gt]=(0,ne.useState)({}),[je,Ve]=(0,ne.useState)(!1);let[Ke,pt]=(0,ne.useState)({});const fe=(0,ne.useRef)(),{commonHomeWorkEditDefaultData:Be}=ge;(0,ne.useEffect)(()=>{Ye()},[Ee.categoryId]);const Ye=()=>te(void 0,null,function*(){const Je=yield ct({type:"shixunHomeworks/editCommonHomeWorkDefaultData",payload:ee(z({},Ee),{type:1})});if(Je){const de={name:Je.name,description:Je.description,reference_answer:Je.reference_answer,attachment_ids:(0,De.z)(Je.attachments),reference_attachment_ids:(0,De.z)(Je.ref_attachments)};Oe.setFieldsValue(z({},de)),gt(z({},de)),Ve(!0)}});function St(Je){return te(this,null,function*(){if(!(Ke!=null&&Ke.ec_point_ids))return;let de=yield(0,_e.ZP)(`/api/ec_courses/${Ke==null?void 0:Ke.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:z({homework_common_id:Je},Ke)})})}const Xe=Je=>te(void 0,null,function*(){var de,tt;const st=z({},et);st.attachment_ids&&(st.attachment_ids=(de=st==null?void 0:st.attachment_ids)==null?void 0:de.map(vt=>{var be;return(be=vt.response)==null?void 0:be.id})),st.reference_attachment_ids&&(st.reference_attachment_ids=(tt=st==null?void 0:st.reference_attachment_ids)==null?void 0:tt.map(vt=>{var be;return(be=vt.response)==null?void 0:be.id}));const At=yield(0,Ae.Ar)(ee(z(z({},Ee),st),{base_on_project:!0,type:1}));St(Ee.categoryId),At&&Se.history.push(`/classrooms/${Ee.coursesId}/common_homework/${Ee.categoryId}/detail`)});return ne.createElement("section",{className:ze.bg},Be.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},Be.category&&ne.createElement(Ie.Z,{separator:">"},ne.createElement(Ie.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Ee.coursesId}/common_homework`},Be.course_name)),ne.createElement(Ie.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${Ee.coursesId}/common_homework`},Be.category.category_name)),ne.createElement(Ie.Z.Item,null,"\u7F16\u8F91")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u56FE\u6587\u4F5C\u4E1A"),ne.createElement(Qe.default,{form:Oe,className:ze.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{gt(z({},Oe.getFieldsValue()))},onFinish:Xe},ne.createElement("div",{className:ze.fieldWrap},ne.createElement(Qe.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(ce.default,{maxLength:60,suffix:`${((Nt=et.name)==null?void 0:Nt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:ze.mdWrap},ne.createElement(Qe.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ne.createElement(se.Z,{watch:!0,defaultValue:Be.description})),ne.createElement("div",null,ne.createElement(Qe.default.Item,{name:"attachment_ids"},je&&ne.createElement(De.Z,null)))),ne.createElement("div",{className:ze.mdWrap},ne.createElement(Qe.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(se.Z,{defaultValue:Be.reference_answer,watch:!0})),ne.createElement("div",null,ne.createElement(Qe.default.Item,{name:"reference_attachment_ids"},je&&ne.createElement(De.Z,null))))),ne.createElement("div",{className:ze.mdWrap,style:{display:(Zt=le==null?void 0:le.setting)!=null&&Zt.hide_ec?"none":(ve=Ce.userInfo.course)!=null&&ve.is_openengineering?"":"none"}},ne.createElement(We.Z,{setitem:Je=>pt(z({},Je)),homework_common_id:Ee.categoryId})),ne.createElement("div",{className:ze.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Qe.default.Item,null,ne.createElement(Fe.ZP,{size:"middle",type:"primary",className:`${ze.button} mr20`,htmlType:"submit",onClick:()=>{Oe.submit()},loading:xe["newCourse/editCourse"]||xe["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(Fe.ZP,{size:"middle",type:"primary",ghost:!0,className:ze.button,onClick:()=>Se.history.push(`/classrooms/${Ee.coursesId}/common_homework`)},"\u53D6\u6D88")))))};var ie=(0,Se.connect)(({shixunHomeworks:ge,newCourse:me,loading:le,user:Ce,globalSetting:xe})=>({shixunHomeworks:ge,newCourse:me,globalSetting:xe,user:Ce,loading:le.effects}))(re)},90278:function(Ge,dt,oe){"use strict";oe.d(dt,{$J:function(){return Qe},JZ:function(){return ce},bN:function(){return se},jP:function(){return Fe},rO:function(){return Ie}});var ne=oe(98280),Se=(Ae,ze,De)=>new Promise((We,_e)=>{var Te=y=>{try{a(De.next(y))}catch(x){_e(x)}},ae=y=>{try{a(De.throw(y))}catch(x){_e(x)}},a=y=>y.done?We(y.value):Promise.resolve(y.value).then(Te,ae);a((De=De.apply(Ae,ze)).next())});function Qe(Ae){return(0,ne.U2)(`libraries/${Ae}.json`)}function Ie(Ae){return(0,ne.U2)("library_tags.json",Ae)}function ce(Ae){return Se(this,null,function*(){return(yield(0,ne.IV)(`attachments/${Ae}.json`)).status===0})}function Fe(Ae){return(0,ne.v_)("libraries.json",Ae)}function se(Ae,ze){return(0,ne.gz)(`libraries/${Ae}.json`,ze)}},56762:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(){const[,Qe]=ne.useReducer(Ie=>Ie+1,0);return Qe}},66104:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Zt}});var ne=oe(92310),Se=oe.n(ne),Qe=oe(11592),Ie=oe(26112),ce=oe(59301),Fe=oe(92343),se=oe(36355),Ae=oe(84105),ze=oe(91857);const De=ve=>{let{children:Ee}=ve;const{getPrefixCls:Oe}=ce.useContext(se.E_),et=Oe("breadcrumb");return ce.createElement("li",{className:`${et}-separator`,"aria-hidden":"true"},Ee===""?Ee:Ee||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var We=De,_e=function(ve,Ee){var Oe={};for(var et in ve)Object.prototype.hasOwnProperty.call(ve,et)&&Ee.indexOf(et)<0&&(Oe[et]=ve[et]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(ve);gt<et.length;gt++)Ee.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(ve,et[gt])&&(Oe[et[gt]]=ve[et[gt]]);return Oe};function Te(ve,Ee){if(ve.title===void 0||ve.title===null)return null;const Oe=Object.keys(Ee).join("|");return typeof ve.title=="object"?ve.title:String(ve.title).replace(new RegExp(`:(${Oe})`,"g"),(et,gt)=>Ee[gt]||et)}function ae(ve,Ee,Oe,et){if(Oe==null)return null;const{className:gt,onClick:je}=Ee,Ve=_e(Ee,["className","onClick"]),Ke=Object.assign(Object.assign({},(0,Ie.Z)(Ve,{data:!0,aria:!0})),{onClick:je});return et!==void 0?ce.createElement("a",Object.assign({},Ke,{className:Se()(`${ve}-link`,gt),href:et}),Oe):ce.createElement("span",Object.assign({},Ke,{className:Se()(`${ve}-link`,gt)}),Oe)}function a(ve,Ee){return(et,gt,je,Ve,Ke)=>{if(Ee)return Ee(et,gt,je,Ve);const pt=Te(et,gt);return ae(ve,et,pt,Ke)}}var y=function(ve,Ee){var Oe={};for(var et in ve)Object.prototype.hasOwnProperty.call(ve,et)&&Ee.indexOf(et)<0&&(Oe[et]=ve[et]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(ve);gt<et.length;gt++)Ee.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(ve,et[gt])&&(Oe[et[gt]]=ve[et[gt]]);return Oe};const x=ve=>{const{prefixCls:Ee,separator:Oe="/",children:et,menu:gt,overlay:je,dropdownProps:Ve,href:Ke}=ve,fe=(Be=>{if(gt||je){const Ye=Object.assign({},Ve);if(gt){const St=gt||{},{items:Xe}=St,Je=y(St,["items"]);Ye.menu=Object.assign(Object.assign({},Je),{items:Xe==null?void 0:Xe.map((de,tt)=>{var{key:st,title:At,label:vt,path:be}=de,ye=y(de,["key","title","label","path"]);let Pe=vt!=null?vt:At;return be&&(Pe=ce.createElement("a",{href:`${Ke}${be}`},Pe)),Object.assign(Object.assign({},ye),{key:st!=null?st:tt,label:Pe})})})}else je&&(Ye.overlay=je);return ce.createElement(ze.Z,Object.assign({placement:"bottom"},Ye),ce.createElement("span",{className:`${Ee}-overlay-link`},Be,ce.createElement(Ae.Z,null)))}return Be})(et);return fe!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,fe),Oe&&ce.createElement(We,null,Oe)):null},b=ve=>{const{prefixCls:Ee,children:Oe,href:et}=ve,gt=y(ve,["prefixCls","children","href"]),{getPrefixCls:je}=ce.useContext(se.E_),Ve=je("breadcrumb",Ee);return ce.createElement(x,Object.assign({},gt,{prefixCls:Ve}),ae(Ve,gt,Oe,et))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=oe(17313),ee=oe(83116),te=oe(37613);const re=ve=>{const{componentCls:Ee,iconCls:Oe}=ve;return{[Ee]:Object.assign(Object.assign({},(0,z.Wf)(ve)),{color:ve.itemColor,fontSize:ve.fontSize,[Oe]:{fontSize:ve.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ve.linkColor,transition:`color ${ve.motionDurationMid}`,padding:`0 ${ve.paddingXXS}px`,borderRadius:ve.borderRadiusSM,height:ve.lineHeight*ve.fontSize,display:"inline-block",marginInline:-ve.marginXXS,"&:hover":{color:ve.linkHoverColor,backgroundColor:ve.colorBgTextHover}},(0,z.Qy)(ve)),"li:last-child":{color:ve.lastItemColor},[`${Ee}-separator`]:{marginInline:ve.separatorMargin,color:ve.separatorColor},[`${Ee}-link`]:{[`
> ${Oe} + span,
> ${Oe} + a
`]:{marginInlineStart:ve.marginXXS}},[`${Ee}-overlay-link`]:{borderRadius:ve.borderRadiusSM,height:ve.lineHeight*ve.fontSize,display:"inline-block",padding:`0 ${ve.paddingXXS}px`,marginInline:-ve.marginXXS,[`> ${Oe}`]:{marginInlineStart:ve.marginXXS,fontSize:ve.fontSizeIcon},"&:hover":{color:ve.linkHoverColor,backgroundColor:ve.colorBgTextHover,a:{color:ve.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ve.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",ve=>{const Ee=(0,te.TS)(ve,{});return[re(Ee)]},ve=>({itemColor:ve.colorTextDescription,lastItemColor:ve.colorText,iconFontSize:ve.fontSize,linkColor:ve.colorTextDescription,linkHoverColor:ve.colorText,separatorColor:ve.colorTextDescription,separatorMargin:ve.marginXS})),ge=function(ve,Ee){var Oe={};for(var et in ve)Object.prototype.hasOwnProperty.call(ve,et)&&Ee.indexOf(et)<0&&(Oe[et]=ve[et]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(ve);gt<et.length;gt++)Ee.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(ve,et[gt])&&(Oe[et[gt]]=ve[et[gt]]);return Oe};function me(ve){const{breadcrumbName:Ee,children:Oe}=ve,et=ge(ve,["breadcrumbName","children"]),gt=Object.assign({title:Ee},et);return Oe&&(gt.menu={items:Oe.map(je=>{var{breadcrumbName:Ve}=je,Ke=ge(je,["breadcrumbName"]);return Object.assign(Object.assign({},Ke),{title:Ve})})}),gt}function le(ve,Ee){return(0,ce.useMemo)(()=>ve||(Ee?Ee.map(me):null),[ve,Ee])}var Ce=function(ve,Ee){var Oe={};for(var et in ve)Object.prototype.hasOwnProperty.call(ve,et)&&Ee.indexOf(et)<0&&(Oe[et]=ve[et]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,et=Object.getOwnPropertySymbols(ve);gt<et.length;gt++)Ee.indexOf(et[gt])<0&&Object.prototype.propertyIsEnumerable.call(ve,et[gt])&&(Oe[et[gt]]=ve[et[gt]]);return Oe};const xe=(ve,Ee)=>{if(Ee===void 0)return Ee;let Oe=(Ee||"").replace(/^\//,"");return Object.keys(ve).forEach(et=>{Oe=Oe.replace(`:${et}`,ve[et])}),Oe},ct=ve=>{const{prefixCls:Ee,separator:Oe="/",style:et,className:gt,rootClassName:je,routes:Ve,items:Ke,children:pt,itemRender:fe,params:Be={}}=ve,Ye=Ce(ve,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:St,direction:Xe,breadcrumb:Je}=ce.useContext(se.E_);let de;const tt=St("breadcrumb",Ee),[st,At]=ie(tt),vt=le(Ke,Ve),be=a(tt,fe);if(vt&&vt.length>0){const ke=[],He=Ke||Ve;de=vt.map((ut,xt)=>{const{path:bt,key:It,type:jt,menu:wt,overlay:ht,onClick:yt,className:Ut,separator:mn,dropdownProps:tn}=ut,Kt=xe(Be,bt);Kt!==void 0&&ke.push(Kt);const pe=It!=null?It:xt;if(jt==="separator")return ce.createElement(We,{key:pe},mn);const $e={},qe=xt===vt.length-1;wt?$e.menu=wt:ht&&($e.overlay=ht);let{href:mt}=ut;return ke.length&&Kt!==void 0&&(mt=`#/${ke.join("/")}`),ce.createElement(x,Object.assign({key:pe},$e,(0,Ie.Z)(ut,{data:!0,aria:!0}),{className:Ut,dropdownProps:tn,href:mt,separator:qe?"":Oe,onClick:yt,prefixCls:tt}),be(ut,Be,He,ke,mt))})}else if(pt){const ke=(0,Qe.Z)(pt).length;de=(0,Qe.Z)(pt).map((He,ut)=>{if(!He)return He;const xt=ut===ke-1;return(0,Fe.Tm)(He,{separator:xt?"":Oe,key:ut})})}const ye=Se()(tt,Je==null?void 0:Je.className,{[`${tt}-rtl`]:Xe==="rtl"},gt,je,At),Pe=Object.assign(Object.assign({},Je==null?void 0:Je.style),et);return st(ce.createElement("nav",Object.assign({className:ye,style:Pe},Ye),ce.createElement("ol",null,de)))};ct.Item=E,ct.Separator=We;var Nt=ct,Zt=Nt},24905:function(Ge,dt,oe){"use strict";oe.d(dt,{default:function(){return ie}});var ne=oe(92310),Se=oe.n(ne),Qe=oe(5630),Ie=oe(59301),ce=oe(36355),Fe=oe(1684),se=oe(32441),ze=Ie.createContext(null),De=oe(98447),We=oe(14088),_e=oe(4572),Te=function(ge,me){var le={};for(var Ce in ge)Object.prototype.hasOwnProperty.call(ge,Ce)&&me.indexOf(Ce)<0&&(le[Ce]=ge[Ce]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ce=Object.getOwnPropertySymbols(ge);xe<Ce.length;xe++)me.indexOf(Ce[xe])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ce[xe])&&(le[Ce[xe]]=ge[Ce[xe]]);return le};const ae=(ge,me)=>{var le;const{prefixCls:Ce,className:xe,rootClassName:ct,children:Nt,indeterminate:Zt=!1,style:ve,onMouseEnter:Ee,onMouseLeave:Oe,skipGroup:et=!1,disabled:gt}=ge,je=Te(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ve,direction:Ke,checkbox:pt}=Ie.useContext(ce.E_),fe=Ie.useContext(ze),{isFormItemInput:Be}=Ie.useContext(se.aM),Ye=Ie.useContext(Fe.Z),St=(le=(fe==null?void 0:fe.disabled)||gt)!==null&&le!==void 0?le:Ye,Xe=Ie.useRef(je.value);Ie.useEffect(()=>{fe==null||fe.registerValue(je.value)},[]),Ie.useEffect(()=>{if(!et)return je.value!==Xe.current&&(fe==null||fe.cancelValue(Xe.current),fe==null||fe.registerValue(je.value),Xe.current=je.value),()=>fe==null?void 0:fe.cancelValue(je.value)},[je.value]);const Je=Ve("checkbox",Ce),[de,tt]=(0,De.ZP)(Je),st=Object.assign({},je);fe&&!et&&(st.onChange=function(){je.onChange&&je.onChange.apply(je,arguments),fe.toggleOption&&fe.toggleOption({label:Nt,value:je.value})},st.name=fe.name,st.checked=fe.value.includes(je.value));const At=Se()(`${Je}-wrapper`,{[`${Je}-rtl`]:Ke==="rtl",[`${Je}-wrapper-checked`]:st.checked,[`${Je}-wrapper-disabled`]:St,[`${Je}-wrapper-in-form-item`]:Be},pt==null?void 0:pt.className,xe,ct,tt),vt=Se()({[`${Je}-indeterminate`]:Zt},_e.A,tt),be=Zt?"mixed":void 0;return de(Ie.createElement(We.Z,{component:"Checkbox",disabled:St},Ie.createElement("label",{className:At,style:Object.assign(Object.assign({},pt==null?void 0:pt.style),ve),onMouseEnter:Ee,onMouseLeave:Oe},Ie.createElement(Qe.Z,Object.assign({"aria-checked":be},st,{prefixCls:Je,className:vt,disabled:St,ref:me})),Nt!==void 0&&Ie.createElement("span",null,Nt))))};var y=Ie.forwardRef(ae),x=oe(94480),b=oe(2738),E=function(ge,me){var le={};for(var Ce in ge)Object.prototype.hasOwnProperty.call(ge,Ce)&&me.indexOf(Ce)<0&&(le[Ce]=ge[Ce]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ce=Object.getOwnPropertySymbols(ge);xe<Ce.length;xe++)me.indexOf(Ce[xe])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ce[xe])&&(le[Ce[xe]]=ge[Ce[xe]]);return le};const z=(ge,me)=>{const{defaultValue:le,children:Ce,options:xe=[],prefixCls:ct,className:Nt,rootClassName:Zt,style:ve,onChange:Ee}=ge,Oe=E(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:et,direction:gt}=Ie.useContext(ce.E_),[je,Ve]=Ie.useState(Oe.value||le||[]),[Ke,pt]=Ie.useState([]);Ie.useEffect(()=>{"value"in Oe&&Ve(Oe.value||[])},[Oe.value]);const fe=Ie.useMemo(()=>xe.map(ye=>typeof ye=="string"||typeof ye=="number"?{label:ye,value:ye}:ye),[xe]),Be=ye=>{pt(Pe=>Pe.filter(ke=>ke!==ye))},Ye=ye=>{pt(Pe=>[].concat((0,x.Z)(Pe),[ye]))},St=ye=>{const Pe=je.indexOf(ye.value),ke=(0,x.Z)(je);Pe===-1?ke.push(ye.value):ke.splice(Pe,1),"value"in Oe||Ve(ke),Ee==null||Ee(ke.filter(He=>Ke.includes(He)).sort((He,ut)=>{const xt=fe.findIndex(It=>It.value===He),bt=fe.findIndex(It=>It.value===ut);return xt-bt}))},Xe=et("checkbox",ct),Je=`${Xe}-group`,[de,tt]=(0,De.ZP)(Xe),st=(0,b.Z)(Oe,["value","disabled"]),At=xe.length?fe.map(ye=>Ie.createElement(y,{prefixCls:Xe,key:ye.value.toString(),disabled:"disabled"in ye?ye.disabled:Oe.disabled,value:ye.value,checked:je.includes(ye.value),onChange:ye.onChange,className:`${Je}-item`,style:ye.style,title:ye.title},ye.label)):Ce,vt={toggleOption:St,value:je,disabled:Oe.disabled,name:Oe.name,registerValue:Ye,cancelValue:Be},be=Se()(Je,{[`${Je}-rtl`]:gt==="rtl"},Nt,Zt,tt);return de(Ie.createElement("div",Object.assign({className:be,style:ve},st,{ref:me}),Ie.createElement(ze.Provider,{value:vt},At)))},ee=Ie.forwardRef(z);var te=Ie.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},98447:function(Ge,dt,oe){"use strict";oe.d(dt,{C2:function(){return ce}});var ne=oe(17313),Se=oe(37613),Qe=oe(83116);const Ie=Fe=>{const{checkboxCls:se}=Fe,Ae=`${se}-wrapper`;return[{[`${se}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[Ae]: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'"},[`& + ${Ae}`]:{marginInlineStart:0},[`&${Ae}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[se]:Object.assign(Object.assign({},(0,ne.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${se}-inner`]:Object.assign({},(0,ne.oN)(Fe))},[`${se}-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}})},{[`
${Ae}:not(${Ae}-disabled),
${se}:not(${se}-disabled)
`]:{[`&:hover ${se}-inner`]:{borderColor:Fe.colorPrimary}},[`${Ae}:not(${Ae}-disabled)`]:{[`&:hover ${se}-checked:not(${se}-disabled) ${se}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${se}-checked:not(${se}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${se}-checked`]:{[`${se}-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}`}}},[`
${Ae}-checked:not(${Ae}-disabled),
${se}-checked:not(${se}-disabled)
`]:{[`&:hover ${se}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[se]:{"&-indeterminate":{[`${se}-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:'""'}}}}},{[`${Ae}-disabled`]:{cursor:"not-allowed"},[`${se}-disabled`]:{[`&, ${se}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${se}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${se}-indeterminate ${se}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function ce(Fe,se){const Ae=(0,Se.TS)(se,{checkboxCls:`.${Fe}`,checkboxSize:se.controlInteractiveSize});return[Ie(Ae)]}dt.ZP=(0,Qe.Z)("Checkbox",(Fe,se)=>{let{prefixCls:Ae}=se;return[ce(Ae,Fe)]})},91857:function(Ge,dt,oe){"use strict";var ne=oe(59301),Se=oe(38819),Qe=oe(92310),Ie=oe.n(Qe),ce=oe(31561),Fe=oe(70425),se=oe(18929),Ae=oe(2738),ze=oe(79676),De=oe(53487),We=oe(92343),_e=oe(36355),Te=oe(20834),ae=oe(40875),a=oe(88088),y=oe(47211);const x=null,b=te=>{const{menu:re,arrow:ie,prefixCls:ge,children:me,trigger:le,disabled:Ce,dropdownRender:xe,getPopupContainer:ct,overlayClassName:Nt,rootClassName:Zt,open:ve,onOpenChange:Ee,visible:Oe,onVisibleChange:et,mouseEnterDelay:gt=.15,mouseLeaveDelay:je=.1,autoAdjustOverflow:Ve=!0,placement:Ke="",overlay:pt,transitionName:fe}=te,{getPopupContainer:Be,getPrefixCls:Ye,direction:St}=ne.useContext(_e.E_),Xe=ne.useMemo(()=>{const wt=Ye();return fe!==void 0?fe:Ke.includes("top")?`${wt}-slide-down`:`${wt}-slide-up`},[Ye,Ke,fe]),Je=ne.useMemo(()=>Ke?Ke.includes("Center")?Ke.slice(0,Ke.indexOf("Center")):Ke:St==="rtl"?"bottomRight":"bottomLeft",[Ke,St]),de=Ye("dropdown",ge),[tt,st]=(0,y.Z)(de),[,At]=(0,a.Z)(),vt=ne.Children.only(me),be=(0,We.Tm)(vt,{className:Ie()(`${de}-trigger`,{[`${de}-rtl`]:St==="rtl"},vt.props.className),disabled:Ce}),ye=Ce?[]:le;let Pe;ye&&ye.includes("contextMenu")&&(Pe=!0);const[ke,He]=(0,se.Z)(!1,{value:ve!=null?ve:Oe}),ut=(0,Fe.useEvent)(wt=>{Ee==null||Ee(wt),et==null||et(wt),He(wt)}),xt=Ie()(Nt,Zt,st,{[`${de}-rtl`]:St==="rtl"}),bt=(0,ze.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:Ve,offset:At.marginXXS,arrowWidth:ie?At.sizePopupArrow:0,borderRadius:At.borderRadius}),It=ne.useCallback(()=>{He(!1)},[]),jt=()=>{let wt;return re!=null&&re.items?wt=ne.createElement(Te.default,Object.assign({},re)):typeof pt=="function"?wt=pt():wt=pt,xe&&(wt=xe(wt)),wt=ne.Children.only(typeof wt=="string"?ne.createElement("span",null,wt):wt),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:It,validator:ht=>{let{mode:yt}=ht}},wt)};return tt(ne.createElement(ce.Z,Object.assign({alignPoint:Pe},(0,Ae.Z)(te,["rootClassName"]),{mouseEnterDelay:gt,mouseLeaveDelay:je,visible:ke,builtinPlacements:bt,arrow:!!ie,overlayClassName:xt,prefixCls:de,getPopupContainer:ct||Be,transitionName:Xe,trigger:ye,overlay:jt,placement:Je,onVisibleChange:ut}),be))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,De.Z)(b,"dropdown",te=>te,E),ee=te=>ne.createElement(z,Object.assign({},te),ne.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,dt.Z=b},47211:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return We}});var ne=oe(17313),Se=oe(13826),Qe=oe(92899),Ie=oe(29878),ce=oe(19447),Fe=oe(83116),se=oe(37613),ze=_e=>{const{componentCls:Te,menuCls:ae,colorError:a,colorTextLightSolid:y}=_e,x=`${ae}-item`;return{[`${Te}, ${Te}-menu-submenu`]:{[`${ae} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const De=_e=>{const{componentCls:Te,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:le}=_e;return[{[Te]:Object.assign(Object.assign({},(0,ne.Wf)(_e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ge}},[`${Te}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ge},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Te}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottomRight`]:{animationName:Se.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-topRight`]:{animationName:Se.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottomRight`]:{animationName:Se.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-topRight`]:{animationName:Se.ly}})},(0,ce.ZP)(_e,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Te} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Te}, ${Te}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:_e.borderRadiusLG,outline:"none",boxShadow:_e.boxShadowSecondary},(0,ne.Qy)(_e)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${me}px`,color:_e.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:_e.marginXS,fontSize:_e.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 ${me}px`,color:_e.colorText,fontWeight:"normal",fontSize:te,lineHeight:_e.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:_e.borderRadiusSM,"&:hover, &-active":{backgroundColor:_e.controlItemBgHover}},(0,ne.Qy)(_e)),{"&-selected":{color:_e.colorPrimary,backgroundColor:_e.controlItemBgActive,"&:hover, &-active":{backgroundColor:_e.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:_e.colorSplit},[`${Te}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:_e.paddingXS,[`${Te}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:_e.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${_e.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:me+_e.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Te}-menu-submenu-title`]:{[`&, ${Te}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:le,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Te}-menu-submenu-title`]:{color:_e.colorPrimary}})}},[(0,Se.oN)(_e,"slide-up"),(0,Se.oN)(_e,"slide-down"),(0,Qe.Fm)(_e,"move-up"),(0,Qe.Fm)(_e,"move-down"),(0,Ie._y)(_e,"zoom-big")]]};var We=(0,Fe.Z)("Dropdown",(_e,Te)=>{let{rootPrefixCls:ae}=Te;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=_e,re=(x-b*E)/2,{dropdownArrowOffset:ie}=(0,ce.fS)({contentRadius:te}),ge=(0,se.TS)(_e,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[De(ge),ze(ge)]},_e=>({zIndexPopup:_e.zIndexPopupBase+50}))},45818:function(Ge,dt,oe){"use strict";oe.d(dt,{D:function(){return z},Z:function(){return re}});var ne=oe(54476),Se=oe(59301),Qe={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=Qe,ce=oe(7657),Fe=function(ge,me){return Se.createElement(ce.Z,(0,ne.Z)({},ge,{ref:me,icon:Ie}))},se=Se.forwardRef(Fe),Ae=se,ze=oe(33853),De=oe(38819),We=oe(92310),_e=oe.n(We),Te=oe(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=oe(36355),x=oe(84966),b=function(ie,ge){var me={};for(var le in ie)Object.prototype.hasOwnProperty.call(ie,le)&&ge.indexOf(le)<0&&(me[le]=ie[le]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,le=Object.getOwnPropertySymbols(ie);Ce<le.length;Ce++)ge.indexOf(le[Ce])<0&&Object.prototype.propertyIsEnumerable.call(ie,le[Ce])&&(me[le[Ce]]=ie[le[Ce]]);return me};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Se.createContext({}),ee=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var re=Se.forwardRef((ie,ge)=>{const{prefixCls:me,className:le,trigger:Ce,children:xe,defaultCollapsed:ct=!1,theme:Nt="dark",style:Zt={},collapsible:ve=!1,reverseArrow:Ee=!1,width:Oe=200,collapsedWidth:et=80,zeroWidthTriggerStyle:gt,breakpoint:je,onCollapse:Ve,onBreakpoint:Ke}=ie,pt=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:fe}=(0,Se.useContext)(x.Gs),[Be,Ye]=(0,Se.useState)("collapsed"in ie?ie.collapsed:ct),[St,Xe]=(0,Se.useState)(!1);(0,Se.useEffect)(()=>{"collapsed"in ie&&Ye(ie.collapsed)},[ie.collapsed]);const Je=(be,ye)=>{"collapsed"in ie||Ye(be),Ve==null||Ve(be,ye)},de=(0,Se.useRef)();de.current=be=>{Xe(be.matches),Ke==null||Ke(be.matches),Be!==be.matches&&Je(be.matches,"responsive")},(0,Se.useEffect)(()=>{function be(Pe){return de.current(Pe)}let ye;if(typeof window!="undefined"){const{matchMedia:Pe}=window;if(Pe&&je&&je in E){ye=Pe(`(max-width: ${E[je]})`);try{ye.addEventListener("change",be)}catch(ke){ye.addListener(be)}be(ye)}}return()=>{try{ye==null||ye.removeEventListener("change",be)}catch(Pe){ye==null||ye.removeListener(be)}}},[je]),(0,Se.useEffect)(()=>{const be=ee("ant-sider-");return fe.addSider(be),()=>fe.removeSider(be)},[]);const tt=()=>{Je(!Be,"clickTrigger")},{getPrefixCls:st}=(0,Se.useContext)(y.E_),At=()=>{const be=st("layout-sider",me),ye=(0,Te.Z)(pt,["collapsed"]),Pe=Be?et:Oe,ke=a(Pe)?`${Pe}px`:String(Pe),He=parseFloat(String(et||0))===0?Se.createElement("span",{onClick:tt,className:_e()(`${be}-zero-width-trigger`,`${be}-zero-width-trigger-${Ee?"right":"left"}`),style:gt},Ce||Se.createElement(Ae,null)):null,bt={expanded:Ee?Se.createElement(De.Z,null):Se.createElement(ze.Z,null),collapsed:Ee?Se.createElement(ze.Z,null):Se.createElement(De.Z,null)}[Be?"collapsed":"expanded"],It=Ce!==null?He||Se.createElement("div",{className:`${be}-trigger`,onClick:tt,style:{width:ke}},Ce||bt):null,jt=Object.assign(Object.assign({},Zt),{flex:`0 0 ${ke}`,maxWidth:ke,minWidth:ke,width:ke}),wt=_e()(be,`${be}-${Nt}`,{[`${be}-collapsed`]:!!Be,[`${be}-has-trigger`]:ve&&Ce!==null&&!He,[`${be}-below`]:!!St,[`${be}-zero-width`]:parseFloat(ke)===0},le);return Se.createElement("aside",Object.assign({className:wt},ye,{style:jt,ref:ge}),Se.createElement("div",{className:`${be}-children`},xe),ve||St&&He?It:null)},vt=Se.useMemo(()=>({siderCollapsed:Be}),[Be]);return Se.createElement(z.Provider,{value:vt},At())})},84966:function(Ge,dt,oe){"use strict";oe.d(dt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Te},ZP:function(){return ee}});var ne=oe(94480),Se=oe(92310),Qe=oe.n(Se),Ie=oe(2738),ce=oe(59301),Fe=oe(36355),se=oe(83116),ze=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:me,lightTriggerColor:le}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:le,background:me},[`${re}-sider-zero-width-trigger`]:{color:le,background:me,border:`1px solid ${ie}`,borderInlineStart:0}}}};const De=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:me,footerBg:le,triggerBg:Ce,headerHeight:xe,headerPadding:ct,headerColor:Nt,footerPadding:Zt,triggerHeight:ve,zeroTriggerHeight:Ee,zeroTriggerWidth:Oe,motionDurationMid:et,motionDurationSlow:gt,fontSize:je,borderRadius:Ve,bodyBg:Ke,headerBg:pt,siderBg:fe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ke,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:fe,transition:`all ${et}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ve},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ve,color:me,lineHeight:`${ve}px`,textAlign:"center",background:Ce,cursor:"pointer",transition:`all ${et}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:xe,insetInlineEnd:-Oe,zIndex:1,width:Oe,height:Ee,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:fe,borderStartStartRadius:0,borderStartEndRadius:Ve,borderEndEndRadius:Ve,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:-Oe,borderStartStartRadius:Ve,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ve}}}}},ze(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:xe,padding:ct,color:Nt,lineHeight:`${xe}px`,background:pt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Zt,color:ge,fontSize:je,background:le},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var We=(0,se.Z)("Layout",te=>[De(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:le,marginXXS:Ce,colorTextLightSolid:xe,colorBgContainer:ct}=te,Nt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Nt}px`,headerColor:me,footerPadding:`${le}px ${Nt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Ce*2,triggerBg:"#002140",triggerColor:xe,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:ct,lightTriggerBg:ct,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),_e=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ge=Object.getOwnPropertySymbols(te);me<ge.length;me++)re.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[me])&&(ie[ge[me]]=te[ge[me]]);return ie};const Te=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return me=>ce.forwardRef((Ce,xe)=>ce.createElement(me,Object.assign({ref:xe,suffixCls:re,tagName:ie},Ce)))}const a=ce.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:le}=te,Ce=_e(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:xe}=ce.useContext(Fe.E_),ct=xe("layout",ie),[Nt,Zt]=We(ct),ve=ge?`${ct}-${ge}`:ct;return Nt(ce.createElement(le,Object.assign({className:Qe()(ie||ve,me,Zt),ref:re},Ce)))}),y=ce.forwardRef((te,re)=>{const{direction:ie}=ce.useContext(Fe.E_),[ge,me]=ce.useState([]),{prefixCls:le,className:Ce,rootClassName:xe,children:ct,hasSider:Nt,tagName:Zt,style:ve}=te,Ee=_e(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Oe=(0,Ie.Z)(Ee,["suffixCls"]),{getPrefixCls:et,layout:gt}=ce.useContext(Fe.E_),je=et("layout",le),[Ve,Ke]=We(je),pt=Qe()(je,{[`${je}-has-sider`]:typeof Nt=="boolean"?Nt:ge.length>0,[`${je}-rtl`]:ie==="rtl"},gt==null?void 0:gt.className,Ce,xe,Ke),fe=ce.useMemo(()=>({siderHook:{addSider:Be=>{me(Ye=>[].concat((0,ne.Z)(Ye),[Be]))},removeSider:Be=>{me(Ye=>Ye.filter(St=>St!==Be))}}}),[]);return Ve(ce.createElement(Te.Provider,{value:fe},ce.createElement(Zt,Object.assign({ref:re,className:pt,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),ve)},Oe),ct)))}),x=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(Ge,dt,oe){"use strict";oe.d(dt,{J:function(){return Fe}});var ne=oe(59301),Se=oe(33234),Qe=oe(70425),Ie=function(se,Ae){var ze={};for(var De in se)Object.prototype.hasOwnProperty.call(se,De)&&Ae.indexOf(De)<0&&(ze[De]=se[De]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,De=Object.getOwnPropertySymbols(se);We<De.length;We++)Ae.indexOf(De[We])<0&&Object.prototype.propertyIsEnumerable.call(se,De[We])&&(ze[De[We]]=se[De[We]]);return ze};const ce=ne.createContext(null),Fe=ne.forwardRef((se,Ae)=>{const{children:ze}=se,De=Ie(se,["children"]),We=ne.useContext(ce),_e=ne.useMemo(()=>Object.assign(Object.assign({},We),De),[We,De.prefixCls,De.mode,De.selectable]);return ne.createElement(ce.Provider,{value:_e},ne.createElement(Se.BR,null,(0,Qe.supportNodeRef)(ze)?ne.cloneElement(ze,{ref:Ae}):ze))});dt.Z=ce},20834:function(Ge,dt,oe){"use strict";oe.d(dt,{default:function(){return vt}});var ne=oe(15285),Se=oe(59301),Qe=oe(45818),Ie=oe(92310),ce=oe.n(Ie),Fe=oe(36355),se=function(be,ye){var Pe={};for(var ke in be)Object.prototype.hasOwnProperty.call(be,ke)&&ye.indexOf(ke)<0&&(Pe[ke]=be[ke]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ke=Object.getOwnPropertySymbols(be);He<ke.length;He++)ye.indexOf(ke[He])<0&&Object.prototype.propertyIsEnumerable.call(be,ke[He])&&(Pe[ke[He]]=be[ke[He]]);return Pe},ze=be=>{const{prefixCls:ye,className:Pe,dashed:ke}=be,He=se(be,["prefixCls","className","dashed"]),{getPrefixCls:ut}=Se.useContext(Fe.E_),xt=ut("menu",ye),bt=ce()({[`${xt}-item-divider-dashed`]:!!ke},Pe);return Se.createElement(ne.iz,Object.assign({className:bt},He))},De=oe(11592),We=oe(2738),_e=oe(6848),Te=oe(92343),a=(0,Se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=be=>{var ye;const{className:Pe,children:ke,icon:He,title:ut,danger:xt}=be,{prefixCls:bt,firstLevel:It,direction:jt,disableMenuItemTitleTooltip:wt,inlineCollapsed:ht}=Se.useContext(a),yt=$e=>{const qe=Se.createElement("span",{className:`${bt}-title-content`},ke);return(!He||(0,Te.l$)(ke)&&ke.type==="span")&&ke&&$e&&It&&typeof ke=="string"?Se.createElement("div",{className:`${bt}-inline-collapsed-noicon`},ke.charAt(0)):qe},{siderCollapsed:Ut}=Se.useContext(Qe.D);let mn=ut;typeof ut=="undefined"?mn=It?ke:"":ut===!1&&(mn="");const tn={title:mn};!Ut&&!ht&&(tn.title=null,tn.open=!1);const Kt=(0,De.Z)(ke).length;let pe=Se.createElement(ne.ck,Object.assign({},(0,We.Z)(be,["title","icon","danger"]),{className:ce()({[`${bt}-item-danger`]:xt,[`${bt}-item-only-child`]:(He?Kt+1:Kt)===1},Pe),title:typeof ut=="string"?ut:void 0}),(0,Te.Tm)(He,{className:ce()((0,Te.l$)(He)?(ye=He.props)===null||ye===void 0?void 0:ye.className:"",`${bt}-item-icon`)}),yt(ht));return wt||(pe=Se.createElement(_e.Z,Object.assign({},tn,{placement:jt==="rtl"?"left":"right",overlayClassName:`${bt}-inline-collapsed-tooltip`}),pe)),pe},E=be=>{var ye;const{popupClassName:Pe,icon:ke,title:He,theme:ut}=be,xt=Se.useContext(a),{prefixCls:bt,inlineCollapsed:It,theme:jt}=xt,wt=(0,ne.Xl)();let ht;if(!ke)ht=It&&!wt.length&&He&&typeof He=="string"?Se.createElement("div",{className:`${bt}-inline-collapsed-noicon`},He.charAt(0)):Se.createElement("span",{className:`${bt}-title-content`},He);else{const Ut=(0,Te.l$)(He)&&He.type==="span";ht=Se.createElement(Se.Fragment,null,(0,Te.Tm)(ke,{className:ce()((0,Te.l$)(ke)?(ye=ke.props)===null||ye===void 0?void 0:ye.className:"",`${bt}-item-icon`)}),Ut?He:Se.createElement("span",{className:`${bt}-title-content`},He))}const yt=Se.useMemo(()=>Object.assign(Object.assign({},xt),{firstLevel:!1}),[xt]);return Se.createElement(a.Provider,{value:yt},Se.createElement(ne.Wd,Object.assign({},(0,We.Z)(be,["icon"]),{title:ht,popupClassName:ce()(bt,Pe,`${bt}-${ut||jt}`)})))},z=oe(18785),ee=oe(70425),te=oe(62892),re=oe(40875),ie=function(be,ye){var Pe={};for(var ke in be)Object.prototype.hasOwnProperty.call(be,ke)&&ye.indexOf(ke)<0&&(Pe[ke]=be[ke]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ke=Object.getOwnPropertySymbols(be);He<ke.length;He++)ye.indexOf(ke[He])<0&&Object.prototype.propertyIsEnumerable.call(be,ke[He])&&(Pe[ke[He]]=be[ke[He]]);return Pe};function ge(be){return(be||[]).map((ye,Pe)=>{if(ye&&typeof ye=="object"){const ke=ye,{label:He,children:ut,key:xt,type:bt}=ke,It=ie(ke,["label","children","key","type"]),jt=xt!=null?xt:`tmp-${Pe}`;return ut||bt==="group"?bt==="group"?Se.createElement(ne.BW,Object.assign({key:jt},It,{title:He}),ge(ut)):Se.createElement(E,Object.assign({key:jt},It,{title:He}),ge(ut)):bt==="divider"?Se.createElement(ze,Object.assign({key:jt},It)):Se.createElement(x,Object.assign({key:jt},It),He)}return null}).filter(ye=>ye)}function me(be){return Se.useMemo(()=>be&&ge(be),[be])}var le=oe(64993),Ce=oe(17313),xe=oe(8378),ct=oe(13826),Nt=oe(29878),Zt=oe(83116),ve=oe(37613),Oe=be=>{const{componentCls:ye,motionDurationSlow:Pe,horizontalLineHeight:ke,colorSplit:He,lineWidth:ut,lineType:xt,itemPaddingInline:bt}=be;return{[`${ye}-horizontal`]:{lineHeight:ke,border:0,borderBottom:`${ut}px ${xt} ${He}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ye}-item, ${ye}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:bt},[`> ${ye}-item:hover,
> ${ye}-item-active,
> ${ye}-submenu ${ye}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ye}-item, ${ye}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${ye}-submenu-arrow`]:{display:"none"}}}},gt=be=>{let{componentCls:ye,menuArrowOffset:Pe}=be;return{[`${ye}-rtl`]:{direction:"rtl"},[`${ye}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ye}-rtl${ye}-vertical,
${ye}-submenu-rtl ${ye}-vertical`]:{[`${ye}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const je=be=>Object.assign({},(0,Ce.oN)(be));var Ke=(be,ye)=>{const{componentCls:Pe,itemColor:ke,itemSelectedColor:He,groupTitleColor:ut,itemBg:xt,subMenuItemBg:bt,itemSelectedBg:It,activeBarHeight:jt,activeBarWidth:wt,activeBarBorderWidth:ht,motionDurationSlow:yt,motionEaseInOut:Ut,motionEaseOut:mn,itemPaddingInline:tn,motionDurationMid:Kt,itemHoverColor:pe,lineType:$e,colorSplit:qe,itemDisabledColor:mt,dangerItemColor:ft,dangerItemHoverColor:Rt,dangerItemSelectedColor:kt,dangerItemActiveBg:Et,dangerItemSelectedBg:_t,itemHoverBg:qt,itemActiveBg:Qt,menuSubMenuBg:on,horizontalItemSelectedColor:fn,horizontalItemSelectedBg:pn,horizontalItemBorderRadius:wn,horizontalItemHoverBg:gn,popupBg:rn}=be;return{[`${Pe}-${ye}, ${Pe}-${ye} > ${Pe}`]:{color:ke,background:xt,[`&${Pe}-root:focus-visible`]:Object.assign({},je(be)),[`${Pe}-item-group-title`]:{color:ut},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:He}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${mt} !important`},[`${Pe}-item:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{[`&:hover, > ${Pe}-submenu-title:hover`]:{color:pe}},[`&:not(${Pe}-horizontal)`]:{[`${Pe}-item:not(${Pe}-item-selected)`]:{"&:hover":{backgroundColor:qt},"&:active":{backgroundColor:Qt}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:qt},"&:active":{backgroundColor:Qt}}},[`${Pe}-item-danger`]:{color:ft,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Rt}},[`&${Pe}-item:active`]:{background:Et}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:He,[`&${Pe}-item-danger`]:{color:kt},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:It,[`&${Pe}-item-danger`]:{backgroundColor:_t}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},je(be))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:on},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:rn},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},ye==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:ht,marginTop:-ht,marginBottom:0,borderRadius:wn,"&::after":{position:"absolute",insetInline:tn,bottom:0,borderBottom:`${jt}px solid transparent`,transition:`border-color ${yt} ${Ut}`,content:'""'},"&:hover, &-active, &-open":{background:gn,"&::after":{borderBottomWidth:jt,borderBottomColor:fn}},"&-selected":{color:fn,backgroundColor:pn,"&:hover":{backgroundColor:pn},"&::after":{borderBottomWidth:jt,borderBottomColor:fn}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${ht}px ${$e} ${qe}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:bt},[`${Pe}-item, ${Pe}-submenu-title`]:ht&&wt?{width:`calc(100% + ${ht}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${wt}px solid ${He}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Kt} ${mn}`,`opacity ${Kt} ${mn}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:kt}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Kt} ${Ut}`,`opacity ${Kt} ${Ut}`].join(",")}}}}}};const pt=be=>{const{componentCls:ye,itemHeight:Pe,itemMarginInline:ke,padding:He,menuArrowSize:ut,marginXS:xt,itemMarginBlock:bt}=be,It=He+ut+xt;return{[`${ye}-item`]:{position:"relative",overflow:"hidden"},[`${ye}-item, ${ye}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:He,overflow:"hidden",textOverflow:"ellipsis",marginInline:ke,marginBlock:bt,width:`calc(100% - ${ke*2}px)`},[`> ${ye}-item,
> ${ye}-submenu > ${ye}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${ye}-item-group-list ${ye}-submenu-title,
${ye}-submenu-title`]:{paddingInlineEnd:It}}};var Be=be=>{const{componentCls:ye,iconCls:Pe,itemHeight:ke,colorTextLightSolid:He,dropdownWidth:ut,controlHeightLG:xt,motionDurationMid:bt,motionEaseOut:It,paddingXL:jt,itemMarginInline:wt,fontSizeLG:ht,motionDurationSlow:yt,paddingXS:Ut,boxShadowSecondary:mn,collapsedWidth:tn,collapsedIconSize:Kt}=be,pe={height:ke,lineHeight:`${ke}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[ye]:{"&-inline, &-vertical":Object.assign({[`&${ye}-root`]:{boxShadow:"none"}},pt(be))},[`${ye}-submenu-popup`]:{[`${ye}-vertical`]:Object.assign(Object.assign({},pt(be)),{boxShadow:mn})}},{[`${ye}-submenu-popup ${ye}-vertical${ye}-sub`]:{minWidth:ut,maxHeight:`calc(100vh - ${xt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${ye}-inline`]:{width:"100%",[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${yt}`,`background ${yt}`,`padding ${bt} ${It}`].join(","),[`> ${ye}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${ye}-sub${ye}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${ye}-submenu > ${ye}-submenu-title`]:pe,[`& ${ye}-item-group-title`]:{paddingInlineStart:jt}},[`${ye}-item`]:pe}},{[`${ye}-inline-collapsed`]:{width:tn,[`&${ye}-root`]:{[`${ye}-item, ${ye}-submenu ${ye}-submenu-title`]:{[`> ${ye}-inline-collapsed-noicon`]:{fontSize:ht,textAlign:"center"}}},[`> ${ye}-item,
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-item,
> ${ye}-item-group > ${ye}-item-group-list > ${ye}-submenu > ${ye}-submenu-title,
> ${ye}-submenu > ${ye}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${ht/2}px - ${wt}px)`,textOverflow:"clip",[`
${ye}-submenu-arrow,
${ye}-submenu-expand-icon
`]:{opacity:0},[`${ye}-item-icon, ${Pe}`]:{margin:0,fontSize:Kt,lineHeight:`${ke}px`,"+ span":{display:"inline-block",opacity:0}}},[`${ye}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${ye}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:He}},[`${ye}-item-group-title`]:Object.assign(Object.assign({},Ce.vS),{paddingInline:Ut})}}]};const Ye=be=>{const{componentCls:ye,motionDurationSlow:Pe,motionDurationMid:ke,motionEaseInOut:He,motionEaseOut:ut,iconCls:xt,iconSize:bt,iconMarginInlineEnd:It}=be;return{[`${ye}-item, ${ye}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${He}`].join(","),[`${ye}-item-icon, ${xt}`]:{minWidth:bt,fontSize:bt,transition:[`font-size ${ke} ${ut}`,`margin ${Pe} ${He}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:It,opacity:1,transition:[`opacity ${Pe} ${He}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${ye}-item-icon`]:Object.assign({},(0,Ce.Ro)()),[`&${ye}-item-only-child`]:{[`> ${xt}, > ${ye}-item-icon`]:{marginInlineEnd:0}}},[`${ye}-item-disabled, ${ye}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${ye}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},St=be=>{const{componentCls:ye,motionDurationSlow:Pe,motionEaseInOut:ke,borderRadius:He,menuArrowSize:ut,menuArrowOffset:xt}=be;return{[`${ye}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:be.margin,width:ut,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${ke}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ut*.6,height:ut*.15,backgroundColor:"currentcolor",borderRadius:He,transition:[`background ${Pe} ${ke}`,`transform ${Pe} ${ke}`,`top ${Pe} ${ke}`,`color ${Pe} ${ke}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${xt})`},"&::after":{transform:`rotate(-45deg) translateY(${xt})`}}}}},Xe=be=>{const{antCls:ye,componentCls:Pe,fontSize:ke,motionDurationSlow:He,motionDurationMid:ut,motionEaseInOut:xt,paddingXS:bt,padding:It,colorSplit:jt,lineWidth:wt,zIndexPopup:ht,borderRadiusLG:yt,subMenuItemBorderRadius:Ut,menuArrowSize:mn,menuArrowOffset:tn,lineType:Kt,menuPanelMaskInset:pe,groupTitleLineHeight:$e,groupTitleFontSize:qe}=be;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,Ce.dF)()),{"&-hidden":{display:"none"}})},[`${Pe}-submenu-hidden`]:{display:"none"}},{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)(be)),(0,Ce.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ke,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${He} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Pe}-item`]:{flex:"none"}},[`${Pe}-item, ${Pe}-submenu, ${Pe}-submenu-title`]:{borderRadius:be.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${bt}px ${It}px`,fontSize:qe,lineHeight:$e,transition:`all ${He}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${He} ${xt}`,`background ${He} ${xt}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${He} ${xt}`,`background ${He} ${xt}`,`padding ${ut} ${xt}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${He} ${xt}`,`padding ${He} ${xt}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${He}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:jt,borderStyle:Kt,borderWidth:0,borderTopWidth:wt,marginBlock:wt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ye(be)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${ke*2}px ${It}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ht,borderRadius:yt,boxShadow:"none",transformOrigin:"0 0",[`&${Pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:pe},"\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:be.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:be.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:be.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:be.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:yt},Ye(be)),St(be)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:Ut},[`${Pe}-submenu-title::after`]:{transition:`transform ${He} ${xt}`}})}}),St(be)),{[`&-inline-collapsed ${Pe}-submenu-arrow,
&-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${tn})`},"&::after":{transform:`rotate(45deg) translateX(-${tn})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${mn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${tn})`},"&::before":{transform:`rotate(45deg) translateX(${tn})`}}})},{[`${ye}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var Je=(be,ye)=>(0,Zt.Z)("Menu",ke=>{if(ye===!1)return[];const{colorBgElevated:He,colorPrimary:ut,colorTextLightSolid:xt,controlHeightLG:bt,fontSize:It,darkItemColor:jt,darkDangerItemColor:wt,darkItemBg:ht,darkSubMenuItemBg:yt,darkItemSelectedColor:Ut,darkItemSelectedBg:mn,darkDangerItemSelectedBg:tn,darkItemHoverBg:Kt,darkGroupTitleColor:pe,darkItemHoverColor:$e,darkItemDisabledColor:qe,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:ft,darkDangerItemActiveBg:Rt}=ke,kt=It/7*5,Et=(0,ve.TS)(ke,{menuArrowSize:kt,menuHorizontalHeight:bt*1.15,menuArrowOffset:`${kt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:He}),_t=(0,ve.TS)(Et,{itemColor:jt,itemHoverColor:$e,groupTitleColor:pe,itemSelectedColor:Ut,itemBg:ht,popupBg:ht,subMenuItemBg:yt,itemActiveBg:"transparent",itemSelectedBg:mn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Kt,itemDisabledColor:qe,dangerItemColor:wt,dangerItemHoverColor:mt,dangerItemSelectedColor:ft,dangerItemActiveBg:Rt,dangerItemSelectedBg:tn,menuSubMenuBg:yt,horizontalItemSelectedColor:xt,horizontalItemSelectedBg:ut});return[Xe(Et),Oe(Et),Be(Et),Ke(Et,"light"),Ke(_t,"dark"),gt(Et),(0,xe.Z)(Et),(0,ct.oN)(Et,"slide-up"),(0,ct.oN)(Et,"slide-down"),(0,Nt._y)(Et,"zoom-big")]},ke=>{const{colorPrimary:He,colorError:ut,colorTextDisabled:xt,colorErrorBg:bt,colorText:It,colorTextDescription:jt,colorBgContainer:wt,colorFillAlter:ht,colorFillContent:yt,lineWidth:Ut,lineWidthBold:mn,controlItemBgActive:tn,colorBgTextHover:Kt,controlHeightLG:pe,lineHeight:$e,colorBgElevated:qe,marginXXS:mt,padding:ft,fontSize:Rt,controlHeightSM:kt,fontSizeLG:Et,colorTextLightSolid:_t,colorErrorHover:qt}=ke,Qt=new le.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:It,itemColor:It,colorItemTextHover:It,itemHoverColor:It,colorItemTextHoverHorizontal:He,horizontalItemHoverColor:He,colorGroupTitle:jt,groupTitleColor:jt,colorItemTextSelected:He,itemSelectedColor:He,colorItemTextSelectedHorizontal:He,horizontalItemSelectedColor:He,colorItemBg:wt,itemBg:wt,colorItemBgHover:Kt,itemHoverBg:Kt,colorItemBgActive:yt,itemActiveBg:tn,colorSubItemBg:ht,subMenuItemBg:ht,colorItemBgSelected:tn,itemSelectedBg:tn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:mn,activeBarHeight:mn,colorActiveBarBorderSize:Ut,activeBarBorderWidth:Ut,colorItemTextDisabled:xt,itemDisabledColor:xt,colorDangerItemText:ut,dangerItemColor:ut,colorDangerItemTextHover:ut,dangerItemHoverColor:ut,colorDangerItemTextSelected:ut,dangerItemSelectedColor:ut,colorDangerItemBgActive:bt,dangerItemActiveBg:bt,colorDangerItemBgSelected:bt,dangerItemSelectedBg:bt,itemMarginInline:ke.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:pe,groupTitleLineHeight:$e,collapsedWidth:pe*2,popupBg:qe,itemMarginBlock:mt,itemPaddingInline:ft,horizontalLineHeight:`${pe*1.15}px`,iconSize:Rt,iconMarginInlineEnd:kt-Rt,collapsedIconSize:Et,groupTitleFontSize:Rt,darkItemDisabledColor:new le.C(_t).setAlpha(.25).toRgbString(),darkItemColor:Qt,darkDangerItemColor:ut,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_t,darkItemSelectedBg:He,darkDangerItemSelectedBg:ut,darkItemHoverBg:"transparent",darkGroupTitleColor:Qt,darkItemHoverColor:_t,darkDangerItemHoverColor:qt,darkDangerItemSelectedColor:_t,darkDangerItemActiveBg:ut}},{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"]]})(be),de=function(be,ye){var Pe={};for(var ke in be)Object.prototype.hasOwnProperty.call(be,ke)&&ye.indexOf(ke)<0&&(Pe[ke]=be[ke]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,ke=Object.getOwnPropertySymbols(be);He<ke.length;He++)ye.indexOf(ke[He])<0&&Object.prototype.propertyIsEnumerable.call(be,ke[He])&&(Pe[ke[He]]=be[ke[He]]);return Pe},st=(0,Se.forwardRef)((be,ye)=>{var Pe,ke;const He=Se.useContext(re.Z),ut=He||{},{getPrefixCls:xt,getPopupContainer:bt,direction:It,menu:jt}=Se.useContext(Fe.E_),wt=xt(),{prefixCls:ht,className:yt,style:Ut,theme:mn="light",expandIcon:tn,_internalDisableMenuItemTitleTooltip:Kt,inlineCollapsed:pe,siderCollapsed:$e,items:qe,children:mt,rootClassName:ft,mode:Rt,selectable:kt,onClick:Et,overflowedIndicatorPopupClassName:_t}=be,qt=de(be,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Qt=(0,We.Z)(qt,["collapsedWidth"]),on=me(qe)||mt;(Pe=ut.validator)===null||Pe===void 0||Pe.call(ut,{mode:Rt});const fn=(0,ee.useEvent)(function(){var Nn;Et==null||Et.apply(void 0,arguments),(Nn=ut.onClick)===null||Nn===void 0||Nn.call(ut)}),pn=ut.mode||Rt,wn=kt!=null?kt:ut.selectable,gn=Se.useMemo(()=>$e!==void 0?$e:pe,[pe,$e]),rn={horizontal:{motionName:`${wt}-slide-up`},inline:(0,te.Z)(wt),other:{motionName:`${wt}-zoom-big`}},vn=xt("menu",ht||ut.prefixCls),[En,$n]=Je(vn,!He),cn=ce()(`${vn}-${mn}`,jt==null?void 0:jt.className,yt);let zn;if(typeof tn=="function")zn=tn;else if(tn===null||tn===!1)zn=null;else if(ut.expandIcon===null||ut.expandIcon===!1)zn=null;else{const Nn=tn!=null?tn:ut.expandIcon;zn=(0,Te.Tm)(Nn,{className:ce()(`${vn}-submenu-expand-icon`,(0,Te.l$)(Nn)?(ke=Nn.props)===null||ke===void 0?void 0:ke.className:"")})}const Jn=Se.useMemo(()=>({prefixCls:vn,inlineCollapsed:gn||!1,direction:It,firstLevel:!0,theme:mn,mode:pn,disableMenuItemTitleTooltip:Kt}),[vn,gn,It,Kt,mn]);return En(Se.createElement(re.Z.Provider,{value:null},Se.createElement(a.Provider,{value:Jn},Se.createElement(ne.ZP,Object.assign({getPopupContainer:bt,overflowedIndicator:Se.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(vn,`${vn}-${mn}`,_t),mode:pn,selectable:wn,onClick:fn},Qt,{inlineCollapsed:gn,style:Object.assign(Object.assign({},jt==null?void 0:jt.style),Ut),className:cn,prefixCls:vn,direction:It,defaultMotions:rn,expandIcon:zn,ref:ye,rootClassName:ce()(ft,$n)}),on))))});const At=(0,Se.forwardRef)((be,ye)=>{const Pe=(0,Se.useRef)(null),ke=Se.useContext(Qe.D);return(0,Se.useImperativeHandle)(ye,()=>({menu:Pe.current,focus:He=>{var ut;(ut=Pe.current)===null||ut===void 0||ut.focus(He)}})),Se.createElement(st,Object.assign({ref:Pe},be,ke))});At.Item=x,At.SubMenu=E,At.Divider=ze,At.ItemGroup=ne.BW;var vt=At},93948:function(Ge,dt,oe){"use strict";oe.d(dt,{Z:function(){return Kt}});var ne=oe(59301),Se=oe(29679),Qe=oe(40001),Ie=oe(19248),ce=oe(99267),Fe=oe(92310),se=oe.n(Fe),Ae=oe(2738),ze=oe(36355),De=oe(54476),We=oe(33885),_e=oe(75931),Te={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var $e=(0,ne.useRef)([]),qe=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var mt=Date.now(),ft=!1;$e.current.forEach(function(Rt){if(Rt){ft=!0;var kt=Rt.style;kt.transitionDuration=".3s, .3s, .3s, .06s",qe.current&&mt-qe.current<100&&(kt.transitionDuration="0s, 0s")}}),ft&&(qe.current=Date.now())}),$e.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function($e){var qe=(0,We.Z)((0,We.Z)({},Te),$e),mt=qe.className,ft=qe.percent,Rt=qe.prefixCls,kt=qe.strokeColor,Et=qe.strokeLinecap,_t=qe.strokeWidth,qt=qe.style,Qt=qe.trailColor,on=qe.trailWidth,fn=qe.transition,pn=(0,_e.Z)(qe,a);delete pn.gapPosition;var wn=Array.isArray(ft)?ft:[ft],gn=Array.isArray(kt)?kt:[kt],rn=ae(),vn=_t/2,En=100-_t/2,$n="M ".concat(Et==="round"?vn:0,",").concat(vn,`
L `).concat(Et==="round"?En:100,",").concat(vn),cn="0 0 100 ".concat(_t),zn=0;return ne.createElement("svg",(0,De.Z)({className:se()("".concat(Rt,"-line"),mt),viewBox:cn,preserveAspectRatio:"none",style:qt},pn),ne.createElement("path",{className:"".concat(Rt,"-line-trail"),d:$n,strokeLinecap:Et,stroke:Qt,strokeWidth:on||_t,fillOpacity:"0"}),wn.map(function(Jn,Nn){var Un=1;switch(Et){case"round":Un=1-_t/100;break;case"square":Un=1-_t/2/100;break;default:Un=1;break}var ta={strokeDasharray:"".concat(Jn*Un,"px, 100px"),strokeDashoffset:"-".concat(zn,"px"),transition:fn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qn=gn[Nn]||gn[gn.length-1];return zn+=Jn,ne.createElement("path",{key:Nn,className:"".concat(Rt,"-line-path"),d:$n,strokeLinecap:Et,stroke:Qn,strokeWidth:_t,fillOpacity:"0",ref:function(we){rn[Nn]=we},style:ta})}))},x=y,b=oe(76190),E=oe(42978),z=oe(47273),ee=0,te=(0,z.Z)();function re(){var pe;return te?(pe=ee,ee+=1):pe="TEST_OR_SSR",pe}var ie=function(pe){var $e=ne.useState(),qe=(0,E.Z)($e,2),mt=qe[0],ft=qe[1];return ne.useEffect(function(){ft("rc_progress_".concat(re()))},[]),pe||mt},ge=function($e){var qe=$e.bg,mt=$e.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:qe}},mt)};function me(pe,$e){return Object.keys(pe).map(function(qe){var mt=parseFloat(qe),ft="".concat(Math.floor(mt*$e),"%");return"".concat(pe[qe]," ").concat(ft)})}var le=ne.forwardRef(function(pe,$e){var qe=pe.prefixCls,mt=pe.color,ft=pe.gradientId,Rt=pe.radius,kt=pe.style,Et=pe.ptg,_t=pe.strokeLinecap,qt=pe.strokeWidth,Qt=pe.size,on=pe.gapDegree,fn=mt&&(0,b.Z)(mt)==="object",pn=fn?"#FFF":void 0,wn=Qt/2,gn=ne.createElement("circle",{className:"".concat(qe,"-circle-path"),r:Rt,cx:wn,cy:wn,stroke:pn,strokeLinecap:_t,strokeWidth:qt,opacity:Et===0?0:1,style:kt,ref:$e});if(!fn)return gn;var rn="".concat(ft,"-conic"),vn=on?"".concat(180+on/2,"deg"):"0deg",En=me(mt,(360-on)/360),$n=me(mt,1),cn="conic-gradient(from ".concat(vn,", ").concat(En.join(", "),")"),zn="linear-gradient(to ".concat(on?"bottom":"top",", ").concat($n.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:rn},gn),ne.createElement("foreignObject",{x:0,y:0,width:Qt,height:Qt,mask:"url(#".concat(rn,")")},ne.createElement(ge,{bg:zn},ne.createElement(ge,{bg:cn}))))}),Ce=le,xe=100,ct=function($e,qe,mt,ft,Rt,kt,Et,_t,qt,Qt){var on=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,fn=mt/100*360*((360-kt)/360),pn=kt===0?0:{bottom:0,top:180,left:90,right:-90}[Et],wn=(100-ft)/100*qe;qt==="round"&&ft!==100&&(wn+=Qt/2,wn>=qe&&(wn=qe-.01));var gn=xe/2;return{stroke:typeof _t=="string"?_t:void 0,strokeDasharray:"".concat(qe,"px ").concat($e),strokeDashoffset:wn+on,transform:"rotate(".concat(Rt+fn+pn,"deg)"),transformOrigin:"".concat(gn,"px ").concat(gn,"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}},Nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Zt(pe){var $e=pe!=null?pe:[];return Array.isArray($e)?$e:[$e]}var ve=function($e){var qe=(0,We.Z)((0,We.Z)({},Te),$e),mt=qe.id,ft=qe.prefixCls,Rt=qe.steps,kt=qe.strokeWidth,Et=qe.trailWidth,_t=qe.gapDegree,qt=_t===void 0?0:_t,Qt=qe.gapPosition,on=qe.trailColor,fn=qe.strokeLinecap,pn=qe.style,wn=qe.className,gn=qe.strokeColor,rn=qe.percent,vn=(0,_e.Z)(qe,Nt),En=xe/2,$n=ie(mt),cn="".concat($n,"-gradient"),zn=En-kt/2,Jn=Math.PI*2*zn,Nn=qt>0?90+qt/2:-90,Un=Jn*((360-qt)/360),ta=(0,b.Z)(Rt)==="object"?Rt:{count:Rt,space:2},Qn=ta.count,Le=ta.space,we=Zt(rn),he=Zt(gn),lt=he.find(function(jn){return jn&&(0,b.Z)(jn)==="object"}),Gt=lt&&(0,b.Z)(lt)==="object",Ct=Gt?"butt":fn,dn=ct(Jn,Un,0,100,Nn,qt,Qt,on,Ct,kt),Xt=ae(),nn=function(){var it=0;return we.map(function(an,Dn){var Xn=he[Dn]||he[he.length-1],Bn=ct(Jn,Un,it,an,Nn,qt,Qt,Xn,Ct,kt);return it+=an,ne.createElement(Ce,{key:Dn,color:Xn,ptg:an,radius:zn,prefixCls:ft,gradientId:cn,style:Bn,strokeLinecap:Ct,strokeWidth:kt,gapDegree:qt,ref:function(Me){Xt[Dn]=Me},size:xe})}).reverse()},yn=function(){var it=Math.round(Qn*(we[0]/100)),an=100/Qn,Dn=0;return new Array(Qn).fill(null).map(function(Xn,Bn){var ue=Bn<=it-1?he[0]:on,Me=ue&&(0,b.Z)(ue)==="object"?"url(#".concat(cn,")"):void 0,Ne=ct(Jn,Un,Dn,an,Nn,qt,Qt,ue,"butt",kt,Le);return Dn+=(Un-Ne.strokeDashoffset+Le)*100/Un,ne.createElement("circle",{key:Bn,className:"".concat(ft,"-circle-path"),r:zn,cx:En,cy:En,stroke:Me,strokeWidth:kt,opacity:1,style:Ne,ref:function(ot){Xt[Bn]=ot}})})};return ne.createElement("svg",(0,De.Z)({className:se()("".concat(ft,"-circle"),wn),viewBox:"0 0 ".concat(xe," ").concat(xe),style:pn,id:mt,role:"presentation"},vn),!Qn&&ne.createElement("circle",{className:"".concat(ft,"-circle-trail"),r:zn,cx:En,cy:En,stroke:on,strokeLinecap:Ct,strokeWidth:Et||kt,style:dn}),Qn?yn():nn())},Ee=ve,Oe={Line:x,Circle:Ee},et=oe(6848),gt=oe(30071);function je(pe){return!pe||pe<0?0:pe>100?100:pe}function Ve(pe){let{success:$e,successPercent:qe}=pe,mt=qe;return $e&&"progress"in $e&&(mt=$e.progress),$e&&"percent"in $e&&(mt=$e.percent),mt}const Ke=pe=>{let{percent:$e,success:qe,successPercent:mt}=pe;const ft=je(Ve({success:qe,successPercent:mt}));return[ft,je(je($e)-ft)]},pt=pe=>{let{success:$e={},strokeColor:qe}=pe;const{strokeColor:mt}=$e;return[mt||gt.presetPrimaryColors.green,qe||null]},fe=(pe,$e,qe)=>{var mt,ft,Rt,kt;let Et=-1,_t=-1;if($e==="step"){const qt=qe.steps,Qt=qe.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?(Et=pe==="small"?2:14,_t=Qt!=null?Qt:8):typeof pe=="number"?[Et,_t]=[pe,pe]:[Et=14,_t=8]=pe,Et*=qt}else if($e==="line"){const qt=qe==null?void 0:qe.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?_t=qt||(pe==="small"?6:8):typeof pe=="number"?[Et,_t]=[pe,pe]:[Et=-1,_t=8]=pe}else($e==="circle"||$e==="dashboard")&&(typeof pe=="string"||typeof pe=="undefined"?[Et,_t]=pe==="small"?[60,60]:[120,120]:typeof pe=="number"?[Et,_t]=[pe,pe]:(Et=(ft=(mt=pe[0])!==null&&mt!==void 0?mt:pe[1])!==null&&ft!==void 0?ft:120,_t=(kt=(Rt=pe[0])!==null&&Rt!==void 0?Rt:pe[1])!==null&&kt!==void 0?kt:120));return[Et,_t]},Be=3,Ye=pe=>Be/pe*100;var Xe=pe=>{const{prefixCls:$e,trailColor:qe=null,strokeLinecap:mt="round",gapPosition:ft,gapDegree:Rt,width:kt=120,type:Et,children:_t,success:qt,size:Qt=kt}=pe,[on,fn]=fe(Qt,"circle");let{strokeWidth:pn}=pe;pn===void 0&&(pn=Math.max(Ye(on),6));const wn={width:on,height:fn,fontSize:on*.15+6},gn=ne.useMemo(()=>{if(Rt||Rt===0)return Rt;if(Et==="dashboard")return 75},[Rt,Et]),rn=ft||Et==="dashboard"&&"bottom"||void 0,vn=Object.prototype.toString.call(pe.strokeColor)==="[object Object]",En=pt({success:qt,strokeColor:pe.strokeColor}),$n=se()(`${$e}-inner`,{[`${$e}-circle-gradient`]:vn}),cn=ne.createElement(Ee,{percent:Ke(pe),strokeWidth:pn,trailWidth:pn,strokeColor:En,strokeLinecap:mt,trailColor:qe,prefixCls:$e,gapDegree:gn,gapPosition:rn});return ne.createElement("div",{className:$n,style:wn},on<=20?ne.createElement(et.Z,{title:_t},ne.createElement("span",null,cn)):ne.createElement(ne.Fragment,null,cn,_t))},Je=function(pe,$e){var qe={};for(var mt in pe)Object.prototype.hasOwnProperty.call(pe,mt)&&$e.indexOf(mt)<0&&(qe[mt]=pe[mt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,mt=Object.getOwnPropertySymbols(pe);ft<mt.length;ft++)$e.indexOf(mt[ft])<0&&Object.prototype.propertyIsEnumerable.call(pe,mt[ft])&&(qe[mt[ft]]=pe[mt[ft]]);return qe};const de=pe=>{let $e=[];return Object.keys(pe).forEach(qe=>{const mt=parseFloat(qe.replace(/%/g,""));isNaN(mt)||$e.push({key:mt,value:pe[qe]})}),$e=$e.sort((qe,mt)=>qe.key-mt.key),$e.map(qe=>{let{key:mt,value:ft}=qe;return`${ft} ${mt}%`}).join(", ")},tt=(pe,$e)=>{const{from:qe=gt.presetPrimaryColors.blue,to:mt=gt.presetPrimaryColors.blue,direction:ft=$e==="rtl"?"to left":"to right"}=pe,Rt=Je(pe,["from","to","direction"]);if(Object.keys(Rt).length!==0){const kt=de(Rt);return{backgroundImage:`linear-gradient(${ft}, ${kt})`}}return{backgroundImage:`linear-gradient(${ft}, ${qe}, ${mt})`}};var At=pe=>{const{prefixCls:$e,direction:qe,percent:mt,size:ft,strokeWidth:Rt,strokeColor:kt,strokeLinecap:Et="round",children:_t,trailColor:qt=null,success:Qt}=pe,on=kt&&typeof kt!="string"?tt(kt,qe):{backgroundColor:kt},fn=Et==="square"||Et==="butt"?0:void 0,pn={backgroundColor:qt||void 0,borderRadius:fn},wn=ft!=null?ft:[-1,Rt||(ft==="small"?6:8)],[gn,rn]=fe(wn,"line",{strokeWidth:Rt}),vn=Object.assign({width:`${je(mt)}%`,height:rn,borderRadius:fn},on),En=Ve(pe),$n={width:`${je(En)}%`,height:rn,borderRadius:fn,backgroundColor:Qt==null?void 0:Qt.strokeColor},cn={width:gn<0?"100%":gn,height:rn};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${$e}-outer`,style:cn},ne.createElement("div",{className:`${$e}-inner`,style:pn},ne.createElement("div",{className:`${$e}-bg`,style:vn}),En!==void 0?ne.createElement("div",{className:`${$e}-success-bg`,style:$n}):null)),_t)},be=pe=>{const{size:$e,steps:qe,percent:mt=0,strokeWidth:ft=8,strokeColor:Rt,trailColor:kt=null,prefixCls:Et,children:_t}=pe,qt=Math.round(qe*(mt/100)),Qt=$e==="small"?2:14,on=$e!=null?$e:[Qt,ft],[fn,pn]=fe(on,"step",{steps:qe,strokeWidth:ft}),wn=fn/qe,gn=new Array(qe);for(let rn=0;rn<qe;rn++){const vn=Array.isArray(Rt)?Rt[rn]:Rt;gn[rn]=ne.createElement("div",{key:rn,className:se()(`${Et}-steps-item`,{[`${Et}-steps-item-active`]:rn<=qt-1}),style:{backgroundColor:rn<=qt-1?vn:kt,width:wn,height:pn}})}return ne.createElement("div",{className:`${Et}-steps-outer`},gn,_t)},ye=oe(36237),Pe=oe(17313),ke=oe(83116),He=oe(37613);const ut=pe=>{const $e=pe?"100%":"-100%";return new ye.Keyframes(`antProgress${pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${$e}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${$e}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},xt=pe=>{const{componentCls:$e,iconCls:qe}=pe;return{[$e]:Object.assign(Object.assign({},(0,Pe.Wf)(pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:pe.fontSize,marginInlineEnd:pe.marginXS,marginBottom:pe.marginXS},[`${$e}-outer`]:{display:"inline-block",width:"100%"},[`&${$e}-show-info`]:{[`${$e}-outer`]:{marginInlineEnd:`calc(-2em - ${pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${pe.paddingXS}px)`}},[`${$e}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:pe.remainingColor,borderRadius:pe.lineBorderRadius},[`${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:pe.defaultColor}},[`${$e}-success-bg, ${$e}-bg`]:{position:"relative",backgroundColor:pe.defaultColor,borderRadius:pe.lineBorderRadius,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOutCirc}`},[`${$e}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:pe.colorSuccess},[`${$e}-text`]:{display:"inline-block",width:"2em",marginInlineStart:pe.marginXS,color:pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[qe]:{fontSize:pe.fontSize}},[`&${$e}-status-active`]:{[`${$e}-bg::before`]:{position:"absolute",inset:0,backgroundColor:pe.colorBgContainer,borderRadius:pe.lineBorderRadius,opacity:0,animationName:ut(),animationDuration:pe.progressActiveMotionDuration,animationTimingFunction:pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${$e}-rtl${$e}-status-active`]:{[`${$e}-bg::before`]:{animationName:ut(!0)}},[`&${$e}-status-exception`]:{[`${$e}-bg`]:{backgroundColor:pe.colorError},[`${$e}-text`]:{color:pe.colorError}},[`&${$e}-status-exception ${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:pe.colorError}},[`&${$e}-status-success`]:{[`${$e}-bg`]:{backgroundColor:pe.colorSuccess},[`${$e}-text`]:{color:pe.colorSuccess}},[`&${$e}-status-success ${$e}-inner:not(${$e}-circle-gradient)`]:{[`${$e}-circle-path`]:{stroke:pe.colorSuccess}}})}},bt=pe=>{const{componentCls:$e,iconCls:qe}=pe;return{[$e]:{[`${$e}-circle-trail`]:{stroke:pe.remainingColor},[`&${$e}-circle ${$e}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${$e}-circle ${$e}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:pe.circleTextColor,fontSize:pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[qe]:{fontSize:`${pe.fontSize/pe.fontSizeSM}em`}},[`${$e}-circle&-status-exception`]:{[`${$e}-text`]:{color:pe.colorError}},[`${$e}-circle&-status-success`]:{[`${$e}-text`]:{color:pe.colorSuccess}}},[`${$e}-inline-circle`]:{lineHeight:1,[`${$e}-inner`]:{verticalAlign:"bottom"}}}},It=pe=>{const{componentCls:$e}=pe;return{[$e]:{[`${$e}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:pe.progressStepMinWidth,marginInlineEnd:pe.progressStepMarginInlineEnd,backgroundColor:pe.remainingColor,transition:`all ${pe.motionDurationSlow}`,"&-active":{backgroundColor:pe.defaultColor}}}}}},jt=pe=>{const{componentCls:$e,iconCls:qe}=pe;return{[$e]:{[`${$e}-small&-line, ${$e}-small&-line ${$e}-text ${qe}`]:{fontSize:pe.fontSizeSM}}}};var wt=(0,ke.Z)("Progress",pe=>{const $e=pe.marginXXS/2,qe=(0,He.TS)(pe,{progressStepMarginInlineEnd:$e,progressStepMinWidth:$e,progressActiveMotionDuration:"2.4s"});return[xt(qe),bt(qe),It(qe),jt(qe)]},pe=>({circleTextColor:pe.colorText,defaultColor:pe.colorInfo,remainingColor:pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),ht=function(pe,$e){var qe={};for(var mt in pe)Object.prototype.hasOwnProperty.call(pe,mt)&&$e.indexOf(mt)<0&&(qe[mt]=pe[mt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ft=0,mt=Object.getOwnPropertySymbols(pe);ft<mt.length;ft++)$e.indexOf(mt[ft])<0&&Object.prototype.propertyIsEnumerable.call(pe,mt[ft])&&(qe[mt[ft]]=pe[mt[ft]]);return qe};const yt=null,Ut=["normal","exception","active","success"];var tn=ne.forwardRef((pe,$e)=>{const{prefixCls:qe,className:mt,rootClassName:ft,steps:Rt,strokeColor:kt,percent:Et=0,size:_t="default",showInfo:qt=!0,type:Qt="line",status:on,format:fn,style:pn}=pe,wn=ht(pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),gn=ne.useMemo(()=>{var we,he;const lt=Ve(pe);return parseInt(lt!==void 0?(we=lt!=null?lt:0)===null||we===void 0?void 0:we.toString():(he=Et!=null?Et:0)===null||he===void 0?void 0:he.toString(),10)},[Et,pe.success,pe.successPercent]),rn=ne.useMemo(()=>!Ut.includes(on)&&gn>=100?"success":on||"normal",[on,gn]),{getPrefixCls:vn,direction:En,progress:$n}=ne.useContext(ze.E_),cn=vn("progress",qe),[zn,Jn]=wt(cn),Nn=ne.useMemo(()=>{if(!qt)return null;const we=Ve(pe);let he;const lt=fn||(Ct=>`${Ct}%`),Gt=Qt==="line";return fn||rn!=="exception"&&rn!=="success"?he=lt(je(Et),je(we)):rn==="exception"?he=Gt?ne.createElement(Ie.Z,null):ne.createElement(ce.Z,null):rn==="success"&&(he=Gt?ne.createElement(Se.Z,null):ne.createElement(Qe.Z,null)),ne.createElement("span",{className:`${cn}-text`,title:typeof he=="string"?he:void 0},he)},[qt,Et,gn,rn,Qt,cn,fn]),Un=Array.isArray(kt)?kt[0]:kt,ta=typeof kt=="string"||Array.isArray(kt)?kt:void 0;let Qn;Qt==="line"?Qn=Rt?ne.createElement(be,Object.assign({},pe,{strokeColor:ta,prefixCls:cn,steps:Rt}),Nn):ne.createElement(At,Object.assign({},pe,{strokeColor:Un,prefixCls:cn,direction:En}),Nn):(Qt==="circle"||Qt==="dashboard")&&(Qn=ne.createElement(Xe,Object.assign({},pe,{strokeColor:Un,prefixCls:cn,progressStatus:rn}),Nn));const Le=se()(cn,`${cn}-status-${rn}`,`${cn}-${Qt==="dashboard"&&"circle"||Rt&&"steps"||Qt}`,{[`${cn}-inline-circle`]:Qt==="circle"&&fe(_t,"circle")[0]<=20,[`${cn}-show-info`]:qt,[`${cn}-${_t}`]:typeof _t=="string",[`${cn}-rtl`]:En==="rtl"},$n==null?void 0:$n.className,mt,ft,Jn);return zn(ne.createElement("div",Object.assign({ref:$e,style:Object.assign(Object.assign({},$n==null?void 0:$n.style),pn),className:Le,role:"progressbar","aria-valuenow":gn},(0,Ae.Z)(wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qn))}),Kt=tn},54580:function(Ge,dt,oe){"use strict";oe.d(dt,{default:function(){return Bn}});var ne=oe(59301),Se=oe(94480),Qe=oe(92310),Ie=oe.n(Qe),ce=oe(54476),Fe=oe(67732),se=oe(83652),Ae=oe(42403),ze=oe(158),De=oe(20068),We=oe(75931),_e=oe(75044),Te=oe(76190),ae=oe(3202),a=oe(26112);function y(ue,Me){var Ne="cannot ".concat(ue.method," ").concat(ue.action," ").concat(Me.status,"'"),Ze=new Error(Ne);return Ze.status=Me.status,Ze.method=ue.method,Ze.url=ue.action,Ze}function x(ue){var Me=ue.responseText||ue.response;if(!Me)return Me;try{return JSON.parse(Me)}catch(Ne){return Me}}function b(ue){var Me=new XMLHttpRequest;ue.onProgress&&Me.upload&&(Me.upload.onprogress=function(rt){rt.total>0&&(rt.percent=rt.loaded/rt.total*100),ue.onProgress(rt)});var Ne=new FormData;ue.data&&Object.keys(ue.data).forEach(function(ot){var rt=ue.data[ot];if(Array.isArray(rt)){rt.forEach(function(nt){Ne.append("".concat(ot,"[]"),nt)});return}Ne.append(ot,rt)}),ue.file instanceof Blob?Ne.append(ue.filename,ue.file,ue.file.name):Ne.append(ue.filename,ue.file),Me.onerror=function(rt){ue.onError(rt)},Me.onload=function(){return Me.status<200||Me.status>=300?ue.onError(y(ue,Me),x(Me)):ue.onSuccess(x(Me),Me)},Me.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in Me&&(Me.withCredentials=!0);var Ze=ue.headers||{};return Ze["X-Requested-With"]!==null&&Me.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ze).forEach(function(ot){Ze[ot]!==null&&Me.setRequestHeader(ot,Ze[ot])}),Me.send(Ne),{abort:function(){Me.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=oe(48736),re=function(ue,Me){if(ue&&Me){var Ne=Array.isArray(Me)?Me:Me.split(","),Ze=ue.name||"",ot=ue.type||"",rt=ot.replace(/\/.*$/,"");return Ne.some(function(nt){var Ue=nt.trim();if(/^\*(\/\*)?$/.test(nt))return!0;if(Ue.charAt(0)==="."){var Mt=Ze.toLowerCase(),Dt=Ue.toLowerCase(),Tt=[Dt];return(Dt===".jpg"||Dt===".jpeg")&&(Tt=[".jpg",".jpeg"]),Tt.some(function(Re){return Mt.endsWith(Re)})}return/\/\*$/.test(Ue)?rt===Ue.replace(/\/.*$/,""):ot===Ue?!0:/^\w+$/.test(Ue)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ue,"'.Skip for check.")),!0):!1})}return!0};function ie(ue,Me){var Ne=ue.createReader(),Ze=[];function ot(){Ne.readEntries(function(rt){var nt=Array.prototype.slice.apply(rt);Ze=Ze.concat(nt);var Ue=!nt.length;Ue?Me(Ze):ot()})}ot()}var ge=function(Me,Ne,Ze){var ot=function rt(nt,Ue){nt&&(nt.path=Ue||"",nt.isFile?nt.file(function(Mt){Ze(Mt)&&(nt.fullPath&&!Mt.webkitRelativePath&&(Object.defineProperties(Mt,{webkitRelativePath:{writable:!0}}),Mt.webkitRelativePath=nt.fullPath.replace(/^\//,""),Object.defineProperties(Mt,{webkitRelativePath:{writable:!1}})),Ne([Mt]))}):nt.isDirectory&&ie(nt,function(Mt){Mt.forEach(function(Dt){rt(Dt,"".concat(Ue).concat(nt.name,"/"))})}))};Me.forEach(function(rt){ot(rt.webkitGetAsEntry())})},me=ge,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ce=function(ue){(0,Ae.Z)(Ne,ue);var Me=(0,ze.Z)(Ne);function Ne(){var Ze;(0,Fe.Z)(this,Ne);for(var ot=arguments.length,rt=new Array(ot),nt=0;nt<ot;nt++)rt[nt]=arguments[nt];return Ze=Me.call.apply(Me,[this].concat(rt)),Ze.state={uid:ee()},Ze.reqs={},Ze.fileInput=void 0,Ze._isMounted=void 0,Ze.onChange=function(Ue){var Mt=Ze.props,Dt=Mt.accept,Tt=Mt.directory,Re=Ue.target.files,ln=(0,Se.Z)(Re).filter(function(hn){return!Tt||re(hn,Dt)});Ze.uploadFiles(ln),Ze.reset()},Ze.onClick=function(Ue){var Mt=Ze.fileInput;if(Mt){var Dt=Ue.target,Tt=Ze.props.onClick;if(Dt&&Dt.tagName==="BUTTON"){var Re=Mt.parentNode;Re.focus(),Dt.blur()}Mt.click(),Tt&&Tt(Ue)}},Ze.onKeyDown=function(Ue){Ue.key==="Enter"&&Ze.onClick(Ue)},Ze.onFileDrop=function(Ue){var Mt=Ze.props.multiple;if(Ue.preventDefault(),Ue.type!=="dragover")if(Ze.props.directory)me(Array.prototype.slice.call(Ue.dataTransfer.items),Ze.uploadFiles,function(Tt){return re(Tt,Ze.props.accept)});else{var Dt=(0,Se.Z)(Ue.dataTransfer.files).filter(function(Tt){return re(Tt,Ze.props.accept)});Mt===!1&&(Dt=Dt.slice(0,1)),Ze.uploadFiles(Dt)}},Ze.uploadFiles=function(Ue){var Mt=(0,Se.Z)(Ue),Dt=Mt.map(function(Tt){return Tt.uid=ee(),Ze.processFile(Tt,Mt)});Promise.all(Dt).then(function(Tt){var Re=Ze.props.onBatchStart;Re==null||Re(Tt.map(function(ln){var hn=ln.origin,Tn=ln.parsedFile;return{file:hn,parsedFile:Tn}})),Tt.filter(function(ln){return ln.parsedFile!==null}).forEach(function(ln){Ze.post(ln)})})},Ze.processFile=function(){var Ue=(0,ae.Z)((0,_e.Z)().mark(function Mt(Dt,Tt){var Re,ln,hn,Tn,at,Ft,$t,zt,Vt;return(0,_e.Z)().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(Re=Ze.props.beforeUpload,ln=Dt,!Re){Ht.next=14;break}return Ht.prev=3,Ht.next=6,Re(Dt,Tt);case 6:ln=Ht.sent,Ht.next=12;break;case 9:Ht.prev=9,Ht.t0=Ht.catch(3),ln=!1;case 12:if(ln!==!1){Ht.next=14;break}return Ht.abrupt("return",{origin:Dt,parsedFile:null,action:null,data:null});case 14:if(hn=Ze.props.action,typeof hn!="function"){Ht.next=21;break}return Ht.next=18,hn(Dt);case 18:Tn=Ht.sent,Ht.next=22;break;case 21:Tn=hn;case 22:if(at=Ze.props.data,typeof at!="function"){Ht.next=29;break}return Ht.next=26,at(Dt);case 26:Ft=Ht.sent,Ht.next=30;break;case 29:Ft=at;case 30:return $t=((0,Te.Z)(ln)==="object"||typeof ln=="string")&&ln?ln:Dt,$t instanceof File?zt=$t:zt=new File([$t],Dt.name,{type:Dt.type}),Vt=zt,Vt.uid=Dt.uid,Ht.abrupt("return",{origin:Dt,data:Ft,parsedFile:Vt,action:Tn});case 35:case"end":return Ht.stop()}},Mt,null,[[3,9]])}));return function(Mt,Dt){return Ue.apply(this,arguments)}}(),Ze.saveFileInput=function(Ue){Ze.fileInput=Ue},Ze}return(0,se.Z)(Ne,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ot){var rt=this,nt=ot.data,Ue=ot.origin,Mt=ot.action,Dt=ot.parsedFile;if(this._isMounted){var Tt=this.props,Re=Tt.onStart,ln=Tt.customRequest,hn=Tt.name,Tn=Tt.headers,at=Tt.withCredentials,Ft=Tt.method,$t=Ue.uid,zt=ln||b,Vt={action:Mt,filename:hn,data:nt,file:Dt,headers:Tn,withCredentials:at,method:Ft||"post",onProgress:function(Ht){var Sn=rt.props.onProgress;Sn==null||Sn(Ht,Dt)},onSuccess:function(Ht,Sn){var Pn=rt.props.onSuccess;Pn==null||Pn(Ht,Dt,Sn),delete rt.reqs[$t]},onError:function(Ht,Sn){var Pn=rt.props.onError;Pn==null||Pn(Ht,Sn,Dt),delete rt.reqs[$t]}};Re(Ue),this.reqs[$t]=zt(Vt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(ot){var rt=this.reqs;if(ot){var nt=ot.uid?ot.uid:ot;rt[nt]&&rt[nt].abort&&rt[nt].abort(),delete rt[nt]}else Object.keys(rt).forEach(function(Ue){rt[Ue]&&rt[Ue].abort&&rt[Ue].abort(),delete rt[Ue]})}},{key:"render",value:function(){var ot=this.props,rt=ot.component,nt=ot.prefixCls,Ue=ot.className,Mt=ot.disabled,Dt=ot.id,Tt=ot.style,Re=ot.multiple,ln=ot.accept,hn=ot.capture,Tn=ot.children,at=ot.directory,Ft=ot.openFileDialogOnClick,$t=ot.onMouseEnter,zt=ot.onMouseLeave,Vt=(0,We.Z)(ot,le),Jt=Ie()((0,De.Z)((0,De.Z)((0,De.Z)({},nt,!0),"".concat(nt,"-disabled"),Mt),Ue,Ue)),Ht=at?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Sn=Mt?{}:{onClick:Ft?this.onClick:function(){},onKeyDown:Ft?this.onKeyDown:function(){},onMouseEnter:$t,onMouseLeave:zt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(rt,(0,ce.Z)({},Sn,{className:Jt,role:"button",style:Tt}),ne.createElement("input",(0,ce.Z)({},(0,a.Z)(Vt,{aria:!0,data:!0}),{id:Dt,disabled:Mt,type:"file",ref:this.saveFileInput,onClick:function(qn){return qn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ln},Ht,{multiple:Re,onChange:this.onChange},hn!=null?{capture:hn}:{})),Tn)}}]),Ne}(ne.Component),xe=Ce;function ct(){}var Nt=function(ue){(0,Ae.Z)(Ne,ue);var Me=(0,ze.Z)(Ne);function Ne(){var Ze;(0,Fe.Z)(this,Ne);for(var ot=arguments.length,rt=new Array(ot),nt=0;nt<ot;nt++)rt[nt]=arguments[nt];return Ze=Me.call.apply(Me,[this].concat(rt)),Ze.uploader=void 0,Ze.saveUploader=function(Ue){Ze.uploader=Ue},Ze}return(0,se.Z)(Ne,[{key:"abort",value:function(ot){this.uploader.abort(ot)}},{key:"render",value:function(){return ne.createElement(xe,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Ne}(ne.Component);Nt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ct,onError:ct,onSuccess:ct,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Zt=Nt,ve=Zt,Ee=oe(18929),Oe=oe(4676),et=oe(36355),gt=oe(1684),je=oe(9763),Ve=oe(31724),Ke={icon:function(Me,Ne){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ne}},{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:Me}}]}},name:"file",theme:"twotone"},pt=Ke,fe=oe(7657),Be=function(Me,Ne){return ne.createElement(fe.Z,(0,ce.Z)({},Me,{ref:Ne,icon:pt}))},Ye=ne.forwardRef(Be),St=Ye,Xe=oe(58617),Je={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=Je,tt=function(Me,Ne){return ne.createElement(fe.Z,(0,ce.Z)({},Me,{ref:Ne,icon:de}))},st=ne.forwardRef(tt),At=st,vt={icon:function(Me,Ne){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:Me}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ne}},{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:Ne}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ne}},{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:Me}}]}},name:"picture",theme:"twotone"},be=vt,ye=function(Me,Ne){return ne.createElement(fe.Z,(0,ce.Z)({},Me,{ref:Ne,icon:be}))},Pe=ne.forwardRef(ye),ke=Pe,He=oe(77900),ut=oe(56762),xt=oe(62892),bt=oe(92343),It=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 wt(ue,Me){const Ne=(0,Se.Z)(Me),Ze=Ne.findIndex(ot=>{let{uid:rt}=ot;return rt===ue.uid});return Ze===-1?Ne.push(ue):Ne[Ze]=ue,Ne}function ht(ue,Me){const Ne=ue.uid!==void 0?"uid":"name";return Me.filter(Ze=>Ze[Ne]===ue[Ne])[0]}function yt(ue,Me){const Ne=ue.uid!==void 0?"uid":"name",Ze=Me.filter(ot=>ot[Ne]!==ue[Ne]);return Ze.length===Me.length?null:Ze}const Ut=function(){const Me=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ze=Me[Me.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ze)||[""])[0]},mn=ue=>ue.indexOf("image/")===0,tn=ue=>{if(ue.type&&!ue.thumbUrl)return mn(ue.type);const Me=ue.thumbUrl||ue.url||"",Ne=Ut(Me);return/^data:image\//.test(Me)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ne)?!0:!(/^data:/.test(Me)||Ne)},Kt=200;function pe(ue){return new Promise(Me=>{if(!ue.type||!mn(ue.type)){Me("");return}const Ne=document.createElement("canvas");Ne.width=Kt,Ne.height=Kt,Ne.style.cssText=`position: fixed; left: 0; top: 0; width: ${Kt}px; height: ${Kt}px; z-index: 9999; display: none;`,document.body.appendChild(Ne);const Ze=Ne.getContext("2d"),ot=new Image;if(ot.onload=()=>{const{width:rt,height:nt}=ot;let Ue=Kt,Mt=Kt,Dt=0,Tt=0;rt>nt?(Mt=nt*(Kt/rt),Tt=-(Mt-Ue)/2):(Ue=rt*(Kt/nt),Dt=-(Ue-Mt)/2),Ze.drawImage(ot,Dt,Tt,Ue,Mt);const Re=Ne.toDataURL();document.body.removeChild(Ne),window.URL.revokeObjectURL(ot.src),Me(Re)},ot.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const rt=new FileReader;rt.onload=()=>{rt.result&&(ot.src=rt.result)},rt.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const rt=new FileReader;rt.onload=()=>{rt.result&&Me(rt.result)},rt.readAsDataURL(ue)}else ot.src=window.URL.createObjectURL(ue)})}var $e=oe(26227),qe=oe(41464),mt=oe(15277),ft=oe(93948),Rt=oe(6848),Et=ne.forwardRef((ue,Me)=>{let{prefixCls:Ne,className:Ze,style:ot,locale:rt,listType:nt,file:Ue,items:Mt,progress:Dt,iconRender:Tt,actionIconRender:Re,itemRender:ln,isImgUrl:hn,showPreviewIcon:Tn,showRemoveIcon:at,showDownloadIcon:Ft,previewIcon:$t,removeIcon:zt,downloadIcon:Vt,onPreview:Jt,onDownload:Ht,onClose:Sn}=ue;var Pn,qn;const{status:aa}=Ue,[Vn,ca]=ne.useState(aa);ne.useEffect(()=>{aa!=="removed"&&ca(aa)},[aa]);const[Pa,Sa]=ne.useState(!1);ne.useEffect(()=>{const Gn=setTimeout(()=>{Sa(!0)},300);return()=>{clearTimeout(Gn)}},[]);const ga=Tt(Ue);let Kn=ne.createElement("div",{className:`${Ne}-icon`},ga);if(nt==="picture"||nt==="picture-card"||nt==="picture-circle")if(Vn==="uploading"||!Ue.thumbUrl&&!Ue.url){const Gn=Ie()(`${Ne}-list-item-thumbnail`,{[`${Ne}-list-item-file`]:Vn!=="uploading"});Kn=ne.createElement("div",{className:Gn},ga)}else{const Gn=hn!=null&&hn(Ue)?ne.createElement("img",{src:Ue.thumbUrl||Ue.url,alt:Ue.name,className:`${Ne}-list-item-image`,crossOrigin:Ue.crossOrigin}):ga,Mn=Ie()(`${Ne}-list-item-thumbnail`,{[`${Ne}-list-item-file`]:hn&&!hn(Ue)});Kn=ne.createElement("a",{className:Mn,onClick:ia=>Jt(Ue,ia),href:Ue.url||Ue.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Gn)}const On=Ie()(`${Ne}-list-item`,`${Ne}-list-item-${Vn}`),ma=typeof Ue.linkProps=="string"?JSON.parse(Ue.linkProps):Ue.linkProps,ea=at?Re((typeof zt=="function"?zt(Ue):zt)||ne.createElement($e.Z,null),()=>Sn(Ue),Ne,rt.removeFile):null,ra=Ft&&Vn==="done"?Re((typeof Vt=="function"?Vt(Ue):Vt)||ne.createElement(qe.Z,null),()=>Ht(Ue),Ne,rt.downloadFile):null,na=nt!=="picture-card"&&nt!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Ie()(`${Ne}-list-item-actions`,{picture:nt==="picture"})},ra,ea),Wn=Ie()(`${Ne}-list-item-name`),fa=Ue.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wn,title:Ue.name},ma,{href:Ue.url,onClick:Gn=>Jt(Ue,Gn)}),Ue.name),na]:[ne.createElement("span",{key:"view",className:Wn,onClick:Gn=>Jt(Ue,Gn),title:Ue.name},Ue.name),na],Yt={pointerEvents:"none",opacity:.5},In=Tn?ne.createElement("a",{href:Ue.url||Ue.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ue.url||Ue.thumbUrl?void 0:Yt,onClick:Gn=>Jt(Ue,Gn),title:rt.previewFile},typeof $t=="function"?$t(Ue):$t||ne.createElement(mt.Z,null)):null,Yn=(nt==="picture-card"||nt==="picture-circle")&&Vn!=="uploading"&&ne.createElement("span",{className:`${Ne}-list-item-actions`},In,Vn==="done"&&ra,ea),{getPrefixCls:xn}=ne.useContext(et.E_),da=xn(),kn=ne.createElement("div",{className:On},Kn,fa,Yn,Pa&&ne.createElement(He.default,{motionName:`${da}-fade`,visible:Vn==="uploading",motionDeadline:2e3},Gn=>{let{className:Mn}=Gn;const ia="percent"in Ue?ne.createElement(ft.Z,Object.assign({},Dt,{type:"line",percent:Ue.percent,"aria-label":Ue["aria-label"],"aria-labelledby":Ue["aria-labelledby"]})):null;return ne.createElement("div",{className:Ie()(`${Ne}-list-item-progress`,Mn)},ia)})),pa=Ue.response&&typeof Ue.response=="string"?Ue.response:((Pn=Ue.error)===null||Pn===void 0?void 0:Pn.statusText)||((qn=Ue.error)===null||qn===void 0?void 0:qn.message)||rt.uploadError,ha=Vn==="error"?ne.createElement(Rt.Z,{title:pa,getPopupContainer:Gn=>Gn.parentNode},kn):kn;return ne.createElement("div",{className:Ie()(`${Ne}-list-item-container`,Ze),style:ot,ref:Me},ln?ln(ha,Ue,Mt,{download:Ht.bind(null,Ue),preview:Jt.bind(null,Ue),remove:Sn.bind(null,Ue)}):ha)});const _t=(ue,Me)=>{const{listType:Ne="text",previewFile:Ze=pe,onPreview:ot,onDownload:rt,onRemove:nt,locale:Ue,iconRender:Mt,isImageUrl:Dt=tn,prefixCls:Tt,items:Re=[],showPreviewIcon:ln=!0,showRemoveIcon:hn=!0,showDownloadIcon:Tn=!1,removeIcon:at,previewIcon:Ft,downloadIcon:$t,progress:zt={size:[-1,2],showInfo:!1},appendAction:Vt,appendActionVisible:Jt=!0,itemRender:Ht,disabled:Sn}=ue,Pn=(0,ut.Z)(),[qn,aa]=ne.useState(!1);ne.useEffect(()=>{Ne!=="picture"&&Ne!=="picture-card"&&Ne!=="picture-circle"||(Re||[]).forEach(Yt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Yt.originFileObj instanceof File||Yt.originFileObj instanceof Blob)||Yt.thumbUrl!==void 0||(Yt.thumbUrl="",Ze&&Ze(Yt.originFileObj).then(In=>{Yt.thumbUrl=In||"",Pn()}))})},[Ne,Re,Ze]),ne.useEffect(()=>{aa(!0)},[]);const Vn=(Yt,In)=>{if(ot)return In==null||In.preventDefault(),ot(Yt)},ca=Yt=>{typeof rt=="function"?rt(Yt):Yt.url&&window.open(Yt.url)},Pa=Yt=>{nt==null||nt(Yt)},Sa=Yt=>{if(Mt)return Mt(Yt,Ne);const In=Yt.status==="uploading",Yn=Dt&&Dt(Yt)?ne.createElement(ke,null):ne.createElement(St,null);let xn=In?ne.createElement(Xe.Z,null):ne.createElement(At,null);return Ne==="picture"?xn=In?ne.createElement(Xe.Z,null):Yn:(Ne==="picture-card"||Ne==="picture-circle")&&(xn=In?Ue.uploading:Yn),xn},ga=(Yt,In,Yn,xn)=>{const da={type:"text",size:"small",title:xn,onClick:kn=>{In(),(0,bt.l$)(Yt)&&Yt.props.onClick&&Yt.props.onClick(kn)},className:`${Yn}-list-item-action`,disabled:Sn};if((0,bt.l$)(Yt)){const kn=(0,bt.Tm)(Yt,Object.assign(Object.assign({},Yt.props),{onClick:()=>{}}));return ne.createElement(It.ZP,Object.assign({},da,{icon:kn}))}return ne.createElement(It.ZP,Object.assign({},da),ne.createElement("span",null,Yt))};ne.useImperativeHandle(Me,()=>({handlePreview:Vn,handleDownload:ca}));const{getPrefixCls:Kn}=ne.useContext(et.E_),On=Kn("upload",Tt),ma=Kn(),ea=Ie()(`${On}-list`,`${On}-list-${Ne}`),ra=(0,Se.Z)(Re.map(Yt=>({key:Yt.uid,file:Yt})));let Wn={motionDeadline:2e3,motionName:`${On}-${Ne==="picture-card"||Ne==="picture-circle"?"animate-inline":"animate"}`,keys:ra,motionAppear:qn};const fa=ne.useMemo(()=>{const Yt=Object.assign({},(0,xt.Z)(ma));return delete Yt.onAppearEnd,delete Yt.onEnterEnd,delete Yt.onLeaveEnd,Yt},[ma]);return Ne!=="picture-card"&&Ne!=="picture-circle"&&(Wn=Object.assign(Object.assign({},fa),Wn)),ne.createElement("div",{className:ea},ne.createElement(He.CSSMotionList,Object.assign({},Wn,{component:!1}),Yt=>{let{key:In,file:Yn,className:xn,style:da}=Yt;return ne.createElement(Et,{key:In,locale:Ue,prefixCls:On,className:xn,style:da,file:Yn,items:Re,progress:zt,listType:Ne,isImgUrl:Dt,showPreviewIcon:ln,showRemoveIcon:hn,showDownloadIcon:Tn,removeIcon:at,previewIcon:Ft,downloadIcon:$t,iconRender:Sa,actionIconRender:ga,itemRender:Ht,onPreview:Vn,onDownload:ca,onClose:Pa})}),Vt&&ne.createElement(He.default,Object.assign({},Wn,{visible:Jt,forceRender:!0}),Yt=>{let{className:In,style:Yn}=Yt;return(0,bt.Tm)(Vt,xn=>({className:Ie()(xn.className,In),style:Object.assign(Object.assign(Object.assign({},Yn),{pointerEvents:In?"none":void 0}),xn.style)}))}))};var Qt=ne.forwardRef(_t),on=oe(17313),fn=oe(8378),pn=oe(83116),wn=oe(37613),rn=ue=>{const{componentCls:Me,iconCls:Ne}=ue;return{[`${Me}-wrapper`]:{[`${Me}-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}`,[Me]:{padding:`${ue.padding}px 0`},[`${Me}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Me}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Me}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${Me}-drag-icon`]:{marginBottom:ue.margin,[Ne]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${Me}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${Me}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${Me}-disabled`]:{cursor:"not-allowed",[`p${Me}-drag-icon ${Ne},
p${Me}-text,
p${Me}-hint
`]:{color:ue.colorTextDisabled}}}}}},En=ue=>{const{componentCls:Me,antCls:Ne,iconCls:Ze,fontSize:ot,lineHeight:rt}=ue,nt=`${Me}-list-item`,Ue=`${nt}-actions`,Mt=`${nt}-action`,Dt=Math.round(ot*rt);return{[`${Me}-wrapper`]:{[`${Me}-list`]:Object.assign(Object.assign({},(0,on.dF)()),{lineHeight:ue.lineHeight,[nt]:{position:"relative",height:ue.lineHeight*ot,marginTop:ue.marginXS,fontSize:ot,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${nt}-name`]:Object.assign(Object.assign({},on.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:rt,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[Ue]:{[Mt]:{opacity:0},[`${Mt}${Ne}-btn-sm`]:{height:Dt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Mt}:focus-visible,
&.picture ${Mt}
`]:{opacity:1},[Ze]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${Ze}`]:{color:ue.colorText}},[`${Me}-icon ${Ze}`]:{color:ue.colorTextDescription,fontSize:ot},[`${nt}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:ot+ue.paddingXS,fontSize:ot,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${nt}:hover ${Mt}`]:{opacity:1,color:ue.colorText},[`${nt}-error`]:{color:ue.colorError,[`${nt}-name, ${Me}-icon ${Ze}`]:{color:ue.colorError},[Ue]:{[`${Ze}, ${Ze}:hover`]:{color:ue.colorError},[Mt]:{opacity:1}}},[`${Me}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$n=oe(36237),cn=oe(1950);const zn=new $n.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Jn=new $n.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Un=ue=>{const{componentCls:Me}=ue,Ne=`${Me}-animate-inline`;return[{[`${Me}-wrapper`]:{[`${Ne}-appear, ${Ne}-enter, ${Ne}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ne}-appear, ${Ne}-enter`]:{animationName:zn},[`${Ne}-leave`]:{animationName:Jn}}},{[`${Me}-wrapper`]:(0,cn.J$)(ue)},zn,Jn]},ta=oe(30071),Qn=oe(64993);const Le=ue=>{const{componentCls:Me,iconCls:Ne,uploadThumbnailSize:Ze,uploadProgressOffset:ot}=ue,rt=`${Me}-list`,nt=`${rt}-item`;return{[`${Me}-wrapper`]:{[`
${rt}${rt}-picture,
${rt}${rt}-picture-card,
${rt}${rt}-picture-circle
`]:{[nt]:{position:"relative",height:Ze+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${nt}-thumbnail`]:Object.assign(Object.assign({},on.vS),{width:Ze,height:Ze,lineHeight:`${Ze+ue.paddingSM}px`,textAlign:"center",flex:"none",[Ne]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${nt}-progress`]:{bottom:ot,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ze+ue.paddingXS}},[`${nt}-error`]:{borderColor:ue.colorError,[`${nt}-thumbnail ${Ne}`]:{[`svg path[fill='${ta.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${ta.blue.primary}']`]:{fill:ue.colorError}}},[`${nt}-uploading`]:{borderStyle:"dashed",[`${nt}-name`]:{marginBottom:ot}}},[`${rt}${rt}-picture-circle ${nt}`]:{[`&, &::before, ${nt}-thumbnail`]:{borderRadius:"50%"}}}}},we=ue=>{const{componentCls:Me,iconCls:Ne,fontSizeLG:Ze,colorTextLightSolid:ot}=ue,rt=`${Me}-list`,nt=`${rt}-item`,Ue=ue.uploadPicCardSize;return{[`
${Me}-wrapper${Me}-picture-card-wrapper,
${Me}-wrapper${Me}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,on.dF)()),{display:"inline-block",width:"100%",[`${Me}${Me}-select`]:{width:Ue,height:Ue,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}`,[`> ${Me}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Me}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${rt}${rt}-picture-card, ${rt}${rt}-picture-circle`]:{[`${rt}-item-container`]:{display:"inline-block",width:Ue,height:Ue,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[nt]:{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:'" "'}},[`${nt}:hover`]:{[`&::before, ${nt}-actions`]:{opacity:1}},[`${nt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${Ne}-eye, ${Ne}-download, ${Ne}-delete`]:{zIndex:10,width:Ze,margin:`0 ${ue.marginXXS}px`,fontSize:Ze,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${nt}-actions, ${nt}-actions:hover`]:{[`${Ne}-eye, ${Ne}-download, ${Ne}-delete`]:{color:new Qn.C(ot).setAlpha(.65).toRgbString(),"&:hover":{color:ot}}},[`${nt}-thumbnail, ${nt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${nt}-name`]:{display:"none",textAlign:"center"},[`${nt}-file + ${nt}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${nt}-uploading`]:{[`&${nt}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${Ne}-eye, ${Ne}-download, ${Ne}-delete`]:{display:"none"}},[`${nt}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Me}-wrapper${Me}-picture-circle-wrapper`]:{[`${Me}${Me}-select`]:{borderRadius:"50%"}}}};var lt=ue=>{const{componentCls:Me}=ue;return{[`${Me}-rtl`]:{direction:"rtl"}}};const Gt=ue=>{const{componentCls:Me,colorTextDisabled:Ne}=ue;return{[`${Me}-wrapper`]:Object.assign(Object.assign({},(0,on.Wf)(ue)),{[Me]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Me}-select`]:{display:"inline-block"},[`${Me}-disabled`]:{color:Ne,cursor:"not-allowed"}})}};var Ct=(0,pn.Z)("Upload",ue=>{const{fontSizeHeading3:Me,fontSize:Ne,lineHeight:Ze,lineWidth:ot,controlHeightLG:rt}=ue,nt=Math.round(Ne*Ze),Ue=(0,wn.TS)(ue,{uploadThumbnailSize:Me*2,uploadProgressOffset:nt/2+ot,uploadPicCardSize:rt*2.55});return[Gt(Ue),rn(Ue),Le(Ue),we(Ue),En(Ue),Un(Ue),lt(Ue),(0,fn.Z)(Ue)]},ue=>({actionsColor:ue.colorTextDescription})),dn=function(ue,Me,Ne,Ze){function ot(rt){return rt instanceof Ne?rt:new Ne(function(nt){nt(rt)})}return new(Ne||(Ne=Promise))(function(rt,nt){function Ue(Tt){try{Dt(Ze.next(Tt))}catch(Re){nt(Re)}}function Mt(Tt){try{Dt(Ze.throw(Tt))}catch(Re){nt(Re)}}function Dt(Tt){Tt.done?rt(Tt.value):ot(Tt.value).then(Ue,Mt)}Dt((Ze=Ze.apply(ue,Me||[])).next())})};const Xt=`__LIST_IGNORE_${Date.now()}__`,nn=(ue,Me)=>{const{fileList:Ne,defaultFileList:Ze,onRemove:ot,showUploadList:rt=!0,listType:nt="text",onPreview:Ue,onDownload:Mt,onChange:Dt,onDrop:Tt,previewFile:Re,disabled:ln,locale:hn,iconRender:Tn,isImageUrl:at,progress:Ft,prefixCls:$t,className:zt,type:Vt="select",children:Jt,style:Ht,itemRender:Sn,maxCount:Pn,data:qn={},multiple:aa=!1,action:Vn="",accept:ca="",supportServerRender:Pa=!0,rootClassName:Sa}=ue,ga=ne.useContext(gt.Z),Kn=ln!=null?ln:ga,[On,ma]=(0,Ee.Z)(Ze||[],{value:Ne,postState:Wt=>Wt!=null?Wt:[]}),[ea,ra]=ne.useState("drop"),na=ne.useRef(null);ne.useMemo(()=>{const Wt=Date.now();(Ne||[]).forEach((sn,Ln)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Wt}_${Ln}__`)})},[Ne]);const Wn=(Wt,sn,Ln)=>{let en=(0,Se.Z)(sn),bn=!1;Pn===1?en=en.slice(-1):Pn&&(bn=en.length>Pn,en=en.slice(0,Pn)),(0,Oe.flushSync)(()=>{ma(en)});const An={file:Wt,fileList:en};Ln&&(An.event=Ln),(!bn||en.some(la=>la.uid===Wt.uid))&&(0,Oe.flushSync)(()=>{Dt==null||Dt(An)})},fa=(Wt,sn)=>dn(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:en}=ue;let bn=Wt;if(Ln){const An=yield Ln(Wt,sn);if(An===!1)return!1;if(delete Wt[Xt],An===Xt)return Object.defineProperty(Wt,Xt,{value:!0,configurable:!0}),!1;typeof An=="object"&&An&&(bn=An)}return en&&(bn=yield en(bn)),bn}),Yt=Wt=>{const sn=Wt.filter(bn=>!bn.file[Xt]);if(!sn.length)return;const Ln=sn.map(bn=>jt(bn.file));let en=(0,Se.Z)(On);Ln.forEach(bn=>{en=wt(bn,en)}),Ln.forEach((bn,An)=>{let la=bn;if(sn[An].parsedFile)bn.status="uploading";else{const{originFileObj:Cn}=bn;let ua;try{ua=new File([Cn],Cn.name,{type:Cn.type})}catch(Fa){ua=new Blob([Cn],{type:Cn.type}),ua.name=Cn.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=bn.uid,la=ua}Wn(la,en)})},In=(Wt,sn,Ln)=>{try{typeof Wt=="string"&&(Wt=JSON.parse(Wt))}catch(An){}if(!ht(sn,On))return;const en=jt(sn);en.status="done",en.percent=100,en.response=Wt,en.xhr=Ln;const bn=wt(en,On);Wn(en,bn)},Yn=(Wt,sn)=>{if(!ht(sn,On))return;const Ln=jt(sn);Ln.status="uploading",Ln.percent=Wt.percent;const en=wt(Ln,On);Wn(Ln,en,Wt)},xn=(Wt,sn,Ln)=>{if(!ht(Ln,On))return;const en=jt(Ln);en.error=Wt,en.response=sn,en.status="error";const bn=wt(en,On);Wn(en,bn)},da=Wt=>{let sn;Promise.resolve(typeof ot=="function"?ot(Wt):ot).then(Ln=>{var en;if(Ln===!1)return;const bn=yt(Wt,On);bn&&(sn=Object.assign(Object.assign({},Wt),{status:"removed"}),On==null||On.forEach(An=>{const la=sn.uid!==void 0?"uid":"name";An[la]===sn[la]&&!Object.isFrozen(An)&&(An.status="removed")}),(en=na.current)===null||en===void 0||en.abort(sn),Wn(sn,bn))})},kn=Wt=>{ra(Wt.type),Wt.type==="drop"&&(Tt==null||Tt(Wt))};ne.useImperativeHandle(Me,()=>({onBatchStart:Yt,onSuccess:In,onProgress:Yn,onError:xn,fileList:On,upload:na.current}));const{getPrefixCls:pa,direction:ha,upload:Gn}=ne.useContext(et.E_),Mn=pa("upload",$t),ia=Object.assign(Object.assign({onBatchStart:Yt,onError:xn,onProgress:Yn,onSuccess:In},ue),{data:qn,multiple:aa,action:Vn,accept:ca,supportServerRender:Pa,prefixCls:Mn,disabled:Kn,beforeUpload:fa,onChange:void 0});delete ia.className,delete ia.style,(!Jt||Kn)&&delete ia.id;const[va,ya]=Ct(Mn),[La]=(0,je.Z)("Upload",Ve.Z.Upload),{showRemoveIcon:ba,showPreviewIcon:Ot,showDownloadIcon:Pt,removeIcon:Lt,previewIcon:Bt,downloadIcon:un}=typeof rt=="boolean"?{}:rt,Fn=(Wt,sn)=>rt?ne.createElement(Qt,{prefixCls:Mn,listType:nt,items:On,previewFile:Re,onPreview:Ue,onDownload:Mt,onRemove:da,showRemoveIcon:!Kn&&ba,showPreviewIcon:Ot,showDownloadIcon:Pt,removeIcon:Lt,previewIcon:Bt,downloadIcon:un,iconRender:Tn,locale:Object.assign(Object.assign({},La),hn),isImageUrl:at,progress:Ft,appendAction:Wt,appendActionVisible:sn,itemRender:Sn,disabled:Kn}):Wt,_n=Ie()(`${Mn}-wrapper`,zt,Sa,ya,Gn==null?void 0:Gn.className,{[`${Mn}-rtl`]:ha==="rtl",[`${Mn}-picture-card-wrapper`]:nt==="picture-card",[`${Mn}-picture-circle-wrapper`]:nt==="picture-circle"}),Rn=Object.assign(Object.assign({},Gn==null?void 0:Gn.style),Ht);if(Vt==="drag"){const Wt=Ie()(ya,Mn,`${Mn}-drag`,{[`${Mn}-drag-uploading`]:On.some(sn=>sn.status==="uploading"),[`${Mn}-drag-hover`]:ea==="dragover",[`${Mn}-disabled`]:Kn,[`${Mn}-rtl`]:ha==="rtl"});return va(ne.createElement("span",{className:_n},ne.createElement("div",{className:Wt,style:Rn,onDrop:kn,onDragOver:kn,onDragLeave:kn},ne.createElement(ve,Object.assign({},ia,{ref:na,className:`${Mn}-btn`}),ne.createElement("div",{className:`${Mn}-drag-container`},Jt))),Fn()))}const Hn=Ie()(Mn,`${Mn}-select`,{[`${Mn}-disabled`]:Kn}),oa=(Wt=>ne.createElement("div",{className:Hn,style:Wt},ne.createElement(ve,Object.assign({},ia,{ref:na}))))(Jt?void 0:{display:"none"});return va(nt==="picture-card"||nt==="picture-circle"?ne.createElement("span",{className:_n},Fn(oa,!!Jt)):ne.createElement("span",{className:_n},oa,Fn()))};var jn=ne.forwardRef(nn),it=function(ue,Me){var Ne={};for(var Ze in ue)Object.prototype.hasOwnProperty.call(ue,Ze)&&Me.indexOf(Ze)<0&&(Ne[Ze]=ue[Ze]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Ze=Object.getOwnPropertySymbols(ue);ot<Ze.length;ot++)Me.indexOf(Ze[ot])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ze[ot])&&(Ne[Ze[ot]]=ue[Ze[ot]]);return Ne},Dn=ne.forwardRef((ue,Me)=>{var{style:Ne,height:Ze}=ue,ot=it(ue,["style","height"]);return ne.createElement(jn,Object.assign({ref:Me},ot,{type:"drag",style:Object.assign(Object.assign({},Ne),{height:Ze})}))});const Xn=jn;Xn.Dragger=Dn,Xn.LIST_IGNORE=Xt;var Bn=Xn}}]);