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.
171 lines
469 KiB
171 lines
469 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[1582],{84249:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});var te=oe(87462),Pe=oe(67294),Xe={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=Xe,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ie}))},ue=Pe.forwardRef(Fe)},90674:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});var te=oe(87462),Pe=oe(67294),Xe={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=Xe,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ie}))},ue=Pe.forwardRef(Fe)},33859:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});var te=oe(87462),Pe=oe(67294),Xe={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=Xe,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ie}))},ue=Pe.forwardRef(Fe)},22751:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});var te=oe(87462),Pe=oe(67294),Xe={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=Xe,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ie}))},ue=Pe.forwardRef(Fe)},24018:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});var te=oe(87462),Pe=oe(67294),Xe={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=Xe,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ie}))},ue=Pe.forwardRef(Fe)},40043:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});var te=oe(87462),Pe=oe(67294),Xe={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=Xe,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ie}))},ue=Pe.forwardRef(Fe)},91034:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return ue}});var te=oe(87462),Pe=oe(67294),Xe={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=Xe,fe=oe(74643),Fe=function(Oe,xe){return Pe.createElement(fe.Z,(0,te.Z)({},Oe,{ref:xe,icon:Ie}))},ue=Pe.forwardRef(Fe)},71736:function(Te,mt){"use strict";mt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Te(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Te.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(Te.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(Te.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(Te.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 Te))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var mt=[];function oe(ae,a){var y=mt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function te(){var ae=mt.pop();return ae===void 0?new go.Point:ae}function Pe(ae){mt.push(ae)}function Xe(ae,a,y,E,b,x,z,ee,ne){ne||(ne=new go.Point);var re=ae-y,ge=b-z,de=NaN,he=NaN;if(re===0)if(ge===0)ae===y&&(de=ae,he=a);else{var ce=(x-ee)/ge,Re=x-ce*b;de=ae,he=ce*de+Re}else if(ge===0){var He=(a-E)/re,Et=a-He*ae;de=b,he=He*de+Et}else{var He=(a-E)/re,ce=(x-ee)/ge,Et=a-He*ae,Re=x-ce*b;de=(Re-Et)/(He-ce),he=He*de+Et}return ne.x=de,ne.y=he,ne}function Ie(ae,a,y,E,b,x,z,ee,ne,re,ge,de,he,ce){var Re=1-ne,He=ne,Et=ae*Re+y*He,zt=a*Re+E*He,Ut=y*Re+b*He,be=E*Re+x*He,Ue=b*Re+z*He,ke=x*Re+ee*He,gt=Et*Re+Ut*He,ct=zt*Re+be*He,Je=Ut*Re+Ue*He,_e=be*Re+ke*He,dt=gt*Re+Je*He,Nt=ct*Re+_e*He;re.x=Et,re.y=zt,ge.x=gt,ge.y=ct,de.x=dt,de.y=Nt,he.x=Je,he.y=_e,ce.x=Ue,ce.y=ke}var fe=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Te("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ue,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=fe,b.spot2=Fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ue*a,0,a,(1-ue)*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,ue*y,(1-ue)*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,ue*y,ue*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-ue)*a,0,0,(1-ue)*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 Te("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Te("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Te("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Te("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Te("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Ne=[];function Oe(){var ae=Ne.pop();return ae===void 0?[]:ae}function xe(ae){ae.length=0,Ne.push(ae)}function Ke(ae){for(var a=Oe(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function je(ae){var a=De(ae),y=Oe();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return xe(a),y}function De(ae){for(var a=Ke(ae),y=Oe(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],ne=a[z+1],re=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Xe(ee.x,ee.y,re.x,re.y,ne.x,ne.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],xe(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ke(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Ke(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Ke(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Ke(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Ke(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Ke(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Ke(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=De(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=De(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=De(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=De(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=De(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=De(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),xe(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=je(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=je(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=je(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=je(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=je(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=je(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),xe(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Te("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Te("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Te("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=fe,x.spot2=Fe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Te("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Te("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=ue/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Te("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Te("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Te("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),ne=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,re)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ge.add(new go.PathSegment(go.PathSegment.Line,a-ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Te("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Te("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Te("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,ne=x*ue;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-ne+ee-.02)*y)),x=.2,z=0,ee=-.3,ne=x*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-ne+ee)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ne+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,ne=x*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-ne+ee-.02)*y,(.5+ne+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-ne+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-ne+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+ne+ee)*y,(.5-ne+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+ne+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+ne+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure(z*a,(ee-x)*y);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=ue*.4;var re=te(),ge=te(),de=te(),he=te();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ge,de,he,he);var ce=te(),Re=te(),He=te();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,he,he,He,ce,Re);var Et=te(),zt=te(),Ut=te();Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,Et,zt,Ut,he,he);var be=te(),Ue=te(),ke=te();return Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,he,he,ke,be,Ue),ne.add(new go.PathSegment(go.PathSegment.Move,ke.x*a,ke.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,be.x*a,be.y*y,Ue.x*a,Ue.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,de.x*a,de.y*y,re.x*a,re.y*y,ge.x*a,ge.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,ke.x*a,ke.y*y).close()),ne.add(new go.PathSegment(go.PathSegment.Move,Ut.x*a,Ut.y*y)),ne.add(new go.PathSegment(go.PathSegment.Line,He.x*a,He.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ce.x*a,ce.y*y,Re.x*a,Re.y*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*a,Ut.y*y,Et.x*a,Et.y*y,zt.x*a,zt.y*y).close()),Pe(re),Pe(ge),Pe(de),Pe(he),Pe(ce),Pe(Re),Pe(He),Pe(Et),Pe(zt),Pe(Ut),Pe(be),Pe(Ue),Pe(ke),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Te("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=ue*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te(),he=new go.PathFigure((z-x)*a,ee*y,!1);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,de,re,ne,ne),he.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y));var ce=oe(re.x,re.y);Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,ne,ne,re,ge,de);var Re=oe(re.x,re.y);he.add(new go.PathSegment(go.PathSegment.Line,(ce.x*.1+.95*.9)*a,ce.y*.1*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,ce.y*.1*y)),he.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,0)),he.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),he.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.9)*a,.15*y)),he.add(new go.PathSegment(go.PathSegment.Line,(Re.x*.1+.9)*a,(Re.y*.1+.05*.9)*y)),he.add(new go.PathSegment(go.PathSegment.Line,Re.x*a,Re.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=ue*.35;var He=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),He.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),He.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),He.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var Et=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(Et),Pe(ne),Pe(re),Pe(ge),Pe(de),Pe(ce),Pe(Re),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*ue,ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*ue;var ne=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var ne=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(ne),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Te("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Te("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),Pe(ge),ne}),go.Shape.setFigureParameter("Arrow2",0,new Te("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Te("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,ne=new go.Geometry,re=new go.PathFigure(0,z,!0);ne.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),ne.spot1=new go.Spot(0,z/y);var ge=Xe(0,ee/y,1,ee/y,x/a,1,1,.5,te());return ne.spot2=new go.Spot(ge.x,ge.y),Pe(ge),ne}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Te("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var ne=Xe(0,.5,.3,0,0,b/y,.1,b/y,te());return z.spot1=new go.Spot(ne.x,ne.y),ne=Xe(.7,1,1,.5,0,x/y,1,x/y,ne),z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Te("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Te("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var de=Xe(0,.5,.3,ee/y,0,x/y,1,x/y,te());return re.spot1=new go.Spot(de.x,de.y),de=Xe(.7,ne/y,1,.5,0,z/y,1,z/y,de),re.spot2=new go.Spot(de.x,de.y),Pe(de),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Te("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var ne=Xe(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Te("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Te("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,ne=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,ne=y):(x=0,z=y,ee=0,ne=y));var re=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);re.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ne)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var de=Xe(.7,ne/y,1,.5,0,z/y,1,z/y,te());return re.spot2=new go.Spot(de.x,de.y),Pe(de),re}),go.Shape.setFigureParameter("Pointer",0,new Te("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Xe(.2,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Te("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Xe(0,.65,1,.65,0,1,1,.5,te());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Te("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var ne=Xe(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Te("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var ne=Xe(.7,1,1,.5,0,x/y,1,x/y,te());return z.spot2=new go.Spot(ne.x,ne.y),Pe(ne),z}),go.Shape.setFigureParameter("SquareArrow",0,new Te("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,ue*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ue*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-ue*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-ue*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-ue*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,ue*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ue*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-ue*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-ue*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-ue*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ue*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ue*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+ue*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+ue*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=ue*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-ue*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,ue*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-ue*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-ue*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=ue*b,ee=ue*x,ne=.5,re=.1,ge=new go.PathFigure(ne*a,(re+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-b)*a,re*y,(ne-z)*a,(re+x)*y,(ne-b)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-x)*y,(ne-b)*a,(re-ee)*y,(ne-z)*a,(re-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+b)*a,re*y,(ne+z)*a,(re-x)*y,(ne+b)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+x)*y,(ne+b)*a,(re+ee)*y,(ne+z)*a,(re+x)*y));var de=.05,he=ue*de;ne=.05,re=.25;var ce=new go.PathFigure(.5*a,.2*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),ne=.95,re=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne+de)*a,re*y,(ne+he)*a,(re-de)*y,(ne+de)*a,(re-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),de=.025,he=ue*de,ne=.825,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-he)*y,(ne+he)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-he)*a,(re-de)*y,(ne-de)*a,(re-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),de=.05,he=ue*de,ne=.5,re=.7,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-he)*y,(ne+he)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-he)*a,(re-de)*y,(ne-de)*a,(re-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ce.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),de=.025,he=ue*de,ne=.175,re=.35,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne+de)*a,(re-he)*y,(ne+he)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-de)*a,re*y,(ne-he)*a,(re-de)*y,(ne-de)*a,(re-he)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),ce.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),de=.05,he=ue*de,ne=.05,re=.25,ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-de)*y,(ne-de)*a,(re-he)*y,(ne-he)*a,(re-de)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Te("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=ue*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=ue*.5,ee=.5,ne=new go.PathFigure(a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var ne=new go.PathFigure(.8*a,.75*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=ue*.1,x=.1,z=.9,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,0,y)),ne.add(new go.PathSegment(go.PathSegment.Line,0,0)),ne.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=ue*.4,z=ue*.1,ee=.1,ne=.9,re=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var de=new go.PathFigure((ne+ee)*a,re*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+ee)*y,(ne+ee)*a,(re+z)*y,(ne+z)*a,(re+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a,re*y,(ne-z)*a,(re+ee)*y,(ne-ee)*a,(re+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-ee)*y,(ne-ee)*a,(re-z)*y,(ne-z)*a,(re-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a,re*y,(ne+z)*a,(re-ee)*y,(ne+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=0,ee=.5,ne=new go.PathFigure(.8*a,.5*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=ue*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=0,ee=.5,ne=new go.PathFigure(0,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=ue*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*b,z=.2,ee=.5,ne=new go.PathFigure(.1*a,0,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=ue*.1,x=.1,z=.1,ee=.5,ne=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=ue*.5,x=.5,z=.5,ee=.5,ne=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=ue*.8,ee=.8,ne=0,re=.5,ge=(b-a)/2,de=(x-y)/2,he=new go.PathFigure(ne*a+ge,(re+ee)*y+de,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,re*y+de,ne*a+ge,(re-ee)*y+de,(ne-ee+z*.5)*a+ge,(re-z)*y+de)),he.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne-ee+z*.5)*a+ge,(re+z)*y+de,ne*a+ge,(re+ee)*y+de).close()),z=ue*.4,ee=.4,ne=.2,re=.5;var ce=new go.PathFigure(ne*a+ge,(re+ee)*y+de,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee+z*.5)*a+ge,re*y+de,ne*a+ge,(re-ee)*y+de,(ne-ee+z*.5)*a+ge,(re-z)*y+de)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne-ee+z*.5)*a+ge,(re+z)*y+de,ne*a+ge,(re+ee)*y+de).close()),z=ue*.2,ee=.2,ne=.5,re=.5;var Re=new go.PathFigure((ne-ee)*a+ge,re*y+de,!0);E.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne-ee)*a+ge,(re-z)*y+de,(ne-z)*a+ge,(re-ee)*y+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(ne-ee)*a+ge,re*y+de,(ne-z)*a+ge,(re+ee)*y+de,(ne-ee)*a+ge,(re+z)*y+de)),z=ue*.4,ee=.4,ne=.8,re=.5;var He=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);E.add(He),He.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),He.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),He.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,re*y+de,ne*a+ge,(re+ee)*y+de,(ne+ee-z*.5)*a+ge,(re+z)*y+de)),He.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne+ee-z*.5)*a+ge,(re-z)*y+de,ne*a+ge,(re-ee)*y+de).close()),z=ue*.8,ee=.8,ne=1,re=.5;var Et=new go.PathFigure(ne*a+ge,(re-ee)*y+de,!0);return E.add(Et),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee)*a+ge,re*y+de,(ne+z)*a+ge,(re-ee)*y+de,(ne+ee)*a+ge,(re-z)*y+de)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re+ee)*y+de,(ne+ee)*a+ge,(re+z)*y+de,(ne+z)*a+ge,(re+ee)*y+de)),Et.add(new go.PathSegment(go.PathSegment.Bezier,(ne+ee-z*.5)*a+ge,re*y+de,ne*a+ge,(re+ee)*y+de,(ne+ee-z*.5)*a+ge,(re+z)*y+de)),Et.add(new go.PathSegment(go.PathSegment.Bezier,ne*a+ge,(re-ee)*y+de,(ne+ee-z*.5)*a+ge,(re-z)*y+de,ne*a+ge,(re-ee)*y+de).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=ue*.4,x=.4,z=.5,ee=.5,ne=te(),re=te(),ge=te(),de=te();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de);var he=oe(re.x,re.y),ce=new go.PathFigure(re.x*a,re.y*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,de.x*a,de.y*y)),b=ue*.3,x=.3,Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,de,re,ne,ne),ce.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,de.x*a,de.y*y,ge.x*a,ge.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,ne,ne,re,ge,de),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,de.x*a,de.y*y,ge.x*a,ge.y*y).close());var ce=new go.PathFigure(.45*a,0,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Pe(ne),Pe(re),Pe(ge),Pe(de),Pe(he),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,ne){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+ne)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+ne)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*ue,ne=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ge=1,de=.5,he=.5,ce=0,Re=new go.PathFigure(ne*a,(1-re)*y,!1);return E.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,de*y,ge*a,.7*y,ge*a,de*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(he+x)*a,(ce+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Re.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Re.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Re.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,ne=z,re=Math.PI/4,ge=4*(1-Math.cos(re))/(3*Math.sin(re)),de=ge*.5,he=z,ce=z,Re=ge*he,He=ge*ce;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-he)*a,ne*y,(ee-(Re+he)/2)*a,(ne+(ce+He)/2)*y,(ee-he)*a,(ne+He)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(ne-ce)*y,(ee-he)*a,(ne-He)*y,(ee-Re)*a,(ne-ce)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+he)*a,ne*y,(ee+Re)*a,(ne-ce)*y,(ee+he)*a,(ne-He)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+he)*a,(ne+He)*y,(ee+(Re+he)/2)*a,(ne+(ce+He)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var Et=new go.PathFigure(.2*a,y,!1);E.add(Et),Et.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var zt=new go.PathFigure(.8*a,y,!1);return E.add(zt),zt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=ue*.1,ne=.2,re=.9,ge=new go.PathFigure((ne-z)*a,re*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-z)*a,(re+ee)*y).close()),z=.1,ee=ue*.1,ne=.8,re=.9;var de=new go.PathFigure((ne-z)*a,re*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re-z)*y,(ne-z)*a,(re-ee)*y,(ne-ee)*a,(re-z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne+z)*a,re*y,(ne+ee)*a,(re-z)*y,(ne+z)*a,(re-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,ne*a,(re+z)*y,(ne+z)*a,(re+ee)*y,(ne+ee)*a,(re+z)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(ne-z)*a,re*y,(ne-ee)*a,(re+z)*y,(ne-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var ne=.1,re=ue*.1,ge=.1,de=.9,he=new go.PathFigure((ge-ne)*a,de*y,!0);E.add(he),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-re)*y,(ge-re)*a,(de-ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+re)*a,(de-ne)*y,(ge+ne)*a,(de-re)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+re)*y,(ge+re)*a,(de+ne)*y)),he.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-re)*a,(de+ne)*y,(ge-ne)*a,(de+re)*y)),ne=.1,re=ue*.1,ge=.4,de=.9;var ce=new go.PathFigure((ge-ne)*a,de*y,!0);return E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de-ne)*y,(ge-ne)*a,(de-re)*y,(ge-re)*a,(de-ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ge+ne)*a,de*y,(ge+re)*a,(de-ne)*y,(ge+ne)*a,(de-re)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(de+ne)*y,(ge+ne)*a,(de+re)*y,(ge+re)*a,(de+ne)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ge-ne)*a,de*y,(ge-re)*a,(de+ne)*y,(ge-ne)*a,(de+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,de=ue*.05,he=.175,ce=.95,ee=new go.PathFigure((he-ge)*a,ce*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-ge)*y,(he-ge)*a,(ce-de)*y,(he-de)*a,(ce-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,ce*y,(he+de)*a,(ce-ge)*y,(he+ge)*a,(ce-de)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+ge)*y,(he+ge)*a,(ce+de)*y,(he+de)*a,(ce+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,ce*y,(he-de)*a,(ce+ge)*y,(he-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,he=.375,ce=.95,ne=new go.PathFigure((he-ge)*a,ce*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-ge)*y,(he-ge)*a,(ce-de)*y,(he-de)*a,(ce-ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,ce*y,(he+de)*a,(ce-ge)*y,(he+ge)*a,(ce-de)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+ge)*y,(he+ge)*a,(ce+de)*y,(he+de)*a,(ce+ge)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,ce*y,(he-de)*a,(ce+ge)*y,(he-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,he=.625,ce=.95,re=new go.PathFigure((he-ge)*a,ce*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-ge)*y,(he-ge)*a,(ce-de)*y,(he-de)*a,(ce-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,ce*y,(he+de)*a,(ce-ge)*y,(he+ge)*a,(ce-de)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+ge)*y,(he+ge)*a,(ce+de)*y,(he+de)*a,(ce+ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,ce*y,(he-de)*a,(ce+ge)*y,(he-ge)*a,(ce+de)*y));var ge=.05,de=ue*.05,he=.825,ce=.95,Re=new go.PathFigure((he-ge)*a,ce*y,!0);E.add(Re),Re.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce-ge)*y,(he-ge)*a,(ce-de)*y,(he-de)*a,(ce-ge)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(he+ge)*a,ce*y,(he+de)*a,(ce-ge)*y,(he+ge)*a,(ce-de)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,he*a,(ce+ge)*y,(he+ge)*a,(ce+de)*y,(he+de)*a,(ce+ge)*y)),Re.add(new go.PathSegment(go.PathSegment.Bezier,(he-ge)*a,ce*y,(he-de)*a,(ce+ge)*y,(he-ge)*a,(ce+de)*y).close());var He=new go.PathFigure(0,y,!1);return E.add(He),He.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,ne=ue*.05,re=.35,ge=.775,de=new go.PathFigure((re-ee)*a,ge*y,!0);return E.add(de),de.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge-ee)*y,(re-ee)*a,(ge-ne)*y,(re-ne)*a,(ge-ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ge*y,(re+ne)*a,(ge-ee)*y,(re+ee)*a,(ge-ne)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ge+ee)*y,(re+ee)*a,(ge+ne)*y,(re+ne)*a,(ge+ee)*y)),de.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ge*y,(re-ne)*a,(ge+ee)*y,(re-ee)*a,(ge+ne)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=ue*.3,z=.5,ee=.7,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!0);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=ue*.5,z=.5,ee=.5,ne=new go.PathFigure((z-b)*a,ee*y,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ne.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=ue*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var ne=new go.PathFigure(.5*a,.1*y,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),ne.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var ne=new go.PathFigure(a*.816,y,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var ne=new go.PathFigure(a*1,0,!0);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),ne.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var ne=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),ne.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*ue,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var ne=new go.PathFigure(a*.83,y*1,!1);E.add(ne),ne.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),ne.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*ue,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*ue,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Te={},mt="5.0",oe={},te=null,Pe=!1,Xe=!1,Ie=null,fe=!1,Fe=null,ue=null,Ne=0;Ne<arguments.length;Ne++){var Oe=arguments[Ne];if(Oe!==null)switch(typeof Oe){case"number":mt=Oe.toFixed(1);break;case"string":Oe.match(new RegExp("^[0-9]\\.[0-9]+$"))?mt=Oe:Ie=Oe;break;case"object":typeof Oe.is3D!="undefined"?te=Oe:oe=Oe;break;case"boolean":Pe=Oe,Xe=!0;break}}te===null&&(te={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&&!Xe&&(Pe=!0)),Ie!==null&&oe.id===void 0&&(oe.id=Ie);var xe="",Ke="",je=!1,De=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var ne=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};Te.setHTML5Codebase=function(ye,ze){ue=ye,_e(ye,ze)},Te.setJavaCodebase=Te.setJavaCodebaseVersion=Te.isCompiledInstalled=Te.setPreCompiledScriptPath=Te.setPreCompiledResourcePath=function(){},Te.setHTML5CodebaseVersion=function(ye,ze){var rt=parseFloat(ye);if(rt!==NaN&&rt<5){console.log("The GeoGebra HTML5 codebase version "+rt+" is deprecated. Using version latest instead.");return}Fe=ye,Je(ye,ze)},Te.getHTML5CodebaseVersion=function(){return ae},Te.getParameters=function(){return oe},Te.setFontsCSSURL=function(ye){z=ye},Te.setGiacJSURL=function(ye){},Te.setJNLPFile=function(ye){xe=ye},Te.setJNLPBaseDir=function(ye){},Te.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ze="auto",rt=oe.id,Bt,et=!1,lt=0;lt<arguments.length;lt++){var me=arguments[lt];typeof me=="string"?(me=me.toLowerCase(),me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ze=me:rt=arguments[lt]):typeof me=="boolean"?et=me:me instanceof HTMLElement&&(Bt=me)}it();function it(){if(!fe){setTimeout(it,200);return}ze=gt(ze);var Ct=Bt||document.getElementById(rt);if(!Ct){console.log("possibly bug on ajax loading? ");return}if(Te.removeExistingApplet(Ct,!1),oe.width===void 0&&Ct.clientWidth&&(oe.width=Ct.clientWidth),oe.height===void 0&&Ct.clientHeight&&(oe.height=Ct.clientHeight),!(oe.width&&oe.height)&&ze==="html5"&&(delete oe.width,delete oe.height),De=ze,ze==="screenshot")zt(Ct,oe);else{var qt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?qt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(qt=(!re()||ye())&&ge()),qt?(De="screenshot",be(Ct,oe,et,ze)):Et(Ct,oe,et)}}};function re(){try{return window.self!==window.top}catch(ye){return!0}}function ge(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Te.getViews=function(){return te},Te.isJavaInstalled=function(){return!1};var de=function(ye){var ze=function(lt){var me=JSON.parse(lt),it=function(Pt){return Pt.type=="G"||Pt.type=="E"},Ct=me.elements?me.elements.filter(it)[0]:me;if(!Ct||!Ct.url){rt();return}oe.fileName=Ct.url,he(Ct.settings||{}),te.is3D=!0;var qt="https://www.geogebra.org/images/";Te.setPreviewImage(E||Ct.previewUrl,qt+"GeoGebra_loading.png",qt+"applet_play.png"),ye()},rt=function(){oe.onError&&oe.onError(),dt("Error: Fetching material (id "+oe.material_id+") failed.",oe)},Bt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",et="/materials/"+oe.material_id+"?scope=basic";ce("https://"+Bt+"/api/proxy.php?path="+encodeURIComponent(et),ze,rt)};function he(ye){var ze=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(rt){ye[rt]=!!ye[rt]}),ze.forEach(function(rt){oe[rt]===void 0&&ye[rt]!==void 0&&(oe[rt]=ye[rt])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function ce(ye,ze,rt){var Bt=new XMLHttpRequest;Bt.open("GET",ye),Bt.onload=function(){ze(Bt.responseText)},Bt.onerror=rt,Bt.send()}Te.isHTML5Installed=function(){return!0},Te.getLoadedAppletType=function(){return De},Te.setPreviewImage=function(ye,ze,rt){E=ye,b=ze,x=rt},Te.removeExistingApplet=function(ye,ze){var rt;typeof ye=="string"&&(ye=document.getElementById(ye)),De=null;var Bt=null;for(rt=0;rt<ye.childNodes.length;rt++){var et=ye.childNodes[rt],lt=et.className;lt==="applet_screenshot"?ze?(et.style.display="block",De="screenshot"):et.style.display="none":lt!=="applet_scaler prerender"&&(ye.removeChild(et),Bt=lt&<.indexOf("appletParameters")!=-1?et.id:null,rt--)}var me=oe.id!==void 0?oe.id:Bt,it=window[me];it&&typeof it.getBase64=="function"&&(it.remove(),window[me]=null)},Te.refreshHitPoints=function(){if(ne(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=Te.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},Te.startAnimation=function(){var ye=Te.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},Te.stopAnimation=function(){var ye=Te.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},Te.getAppletObject=function(){var ye=oe.id!==void 0?oe.id:"ggbApplet";return window[ye]},Te.resize=function(){};var Re=function(ye,ze,rt){var Bt=document.createElement("param");Bt.setAttribute("name",ze),Bt.setAttribute("value",rt),ye.appendChild(Bt)},He=function(ye){return ye&&ye!=="false"},Et=function(ye,ze,rt){ne(ae)<=4.2&&(rt=!0);var Bt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Bt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var et=document.createElement("div");et.classList.add("appletParameters","notranslate");var lt=ze.width,me=ze.height;if(ze.disableAutoScale=ze.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ze.disableAutoScale,ze.width!==void 0)if(ne(ae)<=4.4)He(ze.showToolBar)&&(ze.height-=7),He(ze.showAlgebraInput)&&(ze.height-=37),ze.width<605&&He(ze.showToolBar)&&(ze.width=605,lt=605);else{var it=100;(He(ze.showToolBar)||He(ze.showMenuBar))&&(ze.hasOwnProperty("customToolBar")&&(ze.customToolbar=ze.customToolBar),it=He(ze.showMenuBar)?245:155),lt<it&&(ze.width=it,lt=it)}et.style.border="none",et.style.display="inline-block";for(var Ct in ze)ze.hasOwnProperty(Ct)&&Ct!=="appletOnLoad"&&et.setAttribute("data-param-"+Ct,ze[Ct]);z&&et.setAttribute("data-param-fontscssurl",z),Te.resize=function(){GGBAppletUtils.responsiveResize(ye,ze)},window.addEventListener("resize",function(sn){Te.resize()});var qt=typeof ze.appletOnLoad=="function"?ze.appletOnLoad:function(){};if(!rt&&ze.width!==void 0){ze.hasOwnProperty("showSplash")||et.setAttribute("data-param-showSplash","false");var Pt=ye.querySelector(".applet_scaler.prerender"),Me=Pt!==null;if(Me)var Ee=Pt.querySelector(".ggb_preview");else{var Ee=ke(lt,me,ze.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=lt+"px",Pt.style.height=me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),ne(ae)>=5?(ze.appletOnLoad=function(sn){var Tt=ye.querySelector(".ggb_preview");Tt&&Tt.parentNode.removeChild(Tt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),qt(sn)},Me||Pt.appendChild(Ee)):et.appendChild(Ee),Pt.appendChild(et),Me||ye.appendChild(Pt),setTimeout(function(){Te.resize()},1)}else{var we=document.createElement("div");we.className="applet_scaler",we.style.position="relative",we.style.display="block",we.appendChild(et),ye.appendChild(we),ze.appletOnLoad=function(sn){Te.resize(),qt(sn)}}function tt(sn,Tt){Tt&&typeof Tt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(sn,Tt.appletOnLoad):renderGGBElement(sn),dt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Tt)}function qe(sn,Tt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:sn,params:Tt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Mt){tt(Mt.article,Mt.params)}),html5AppletsToProcess=null)},ne(ae)<5&&(sn.className+=" geogebraweb")):tt(sn,Tt)}if(Bt){scriptLoadStarted=!0;for(var vt=0;vt<et.childNodes.length;vt++){var Rt=et.childNodes[vt].tagName;Rt==="TABLE"&&(et.removeChild(et.childNodes[vt]),vt--)}if(ggbHTML5LoadedScript!==null){var Gt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Gt!=null&&Gt.parentNode.removeChild(Gt)}var en=document.createElement("script"),ln=function(){qe(et,ze)};en.src=Ke+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=en.src,dt("GeoGebra HTML5 codebase loaded: '"+Ke+"'.",ze),!ue&&(!Fe||Fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ln()):Ke.requirejs?__webpack_require__.e(12).then(function(){var sn=[__webpack_require__(12)];ln.apply(null,sn)}.bind(this)).catch(__webpack_require__.oe):(en.onload=ln,ye.appendChild(en))}else qe(et,ze);ze.height=me,ze.width=lt},zt=function(ye,ze,rt){var Bt=ke(ze.width,ze.height,ze.borderColor,rt),et=document.createElement("div");et.style.position="relative",et.style.display="block",et.style.width=ze.width+"px",et.style.height=ze.height+"px",et.className="applet_screenshot applet_scaler"+(rt?" applet_screenshot_play":""),et.appendChild(Bt);var lt=GGBAppletUtils.getScale(ze,ye,rt);rt?(ye.appendChild(Ue()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(et,"66%"),ye.appendChild(et),lt!==1&&!isNaN(lt)&&(GGBAppletUtils.scaleElement(et,lt),et.style.width=ze.width+"px",et.style.height=ze.height+"px",et.parentNode.style.width=ze.width*lt+"px",et.parentNode.style.height=ze.height*lt+"px"),Te.resize=function(){Ut(ye,Bt,et,rt)},window.addEventListener("resize",function(me){Te.resize()}),Te.resize()};function Ut(ye,ze,rt,Bt){if(ye.contains(ze)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(ye)}var et=GGBAppletUtils.getScale(oe,ye,Bt);rt.parentNode!==null&&(!isNaN(et)&&et!==1?(GGBAppletUtils.scaleElement(rt,et),rt.parentNode.style.width=oe.width*et+"px",rt.parentNode.style.height=oe.height*et+"px"):(GGBAppletUtils.scaleElement(rt,1),rt.parentNode.style.width=oe.width+"px",rt.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(ye),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Te.onExitFullscreen=function(ye,ze){ze.appendChild(ye)};var be=function(ye,ze,rt,Bt){zt(ye,ze,!0);for(var et=function(){var it=[];for(me=0;me<ye.childNodes.length;me++)it.push(ye.childNodes[me]);if(window.GGBT_wsf_view){var Ct=window.GGBT_wsf_view.renderFullScreen(ye,ze.id),qt=document.getElementById("fullscreencontainer"),Pt=jQuery(ye).find(".fullscreencontent");Pt.length>0?(Ct.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(qt).append(Pt),window.dispatchEvent(new Event("resize"))):Et(Ct,ze,!1),window.GGBT_wsf_view.launchFullScreen(qt)}else De=Bt,Et(ye,ze,!1);if(!window.GGBT_wsf_view)for(me=0;me<it.length;me++)ye.removeChild(it[me])},lt=ye.getElementsByClassName("ggb_preview_play"),me=0;me<lt.length;me++)lt[me].addEventListener("click",et,!1),lt[me].addEventListener("ontouchstart",et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ue=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ze='.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");}',rt=document.createElement("style");rt.styleSheet?rt.styleSheet.cssText=ze:rt.appendChild(document.createTextNode(ze)),document.getElementsByTagName("head")[0].appendChild(rt)}return ye},ke=function(ye,ze,rt,Bt){var et=document.createElement("div");et.className="ggb_preview",et.style.position="absolute",et.style.zIndex="90",et.style.width=ye-2+"px",et.style.height=ze-2+"px",et.style.top="0px",et.style.left="0px",et.style.overflow="hidden",et.style.backgroundColor="white";var lt="lightgrey";rt!==void 0&&(rt==="none"?lt="transparent":lt=rt),et.style.border="1px solid "+lt;var me=document.createElement("img");if(me.style.position="relative",me.style.zIndex="1000",me.style.top="-1px",me.style.left="-1px",E!==null&&me.setAttribute("src",E),me.style.opacity=.7,b!==null){var it,Ct,qt;if(!Bt){it=document.createElement("img"),it.style.position="absolute",it.style.zIndex="1001",it.style.opacity=1,me.style.opacity=.3,Ct=360,Ct>ye/4*3&&(Ct=ye/4*3),qt=Ct/5.8,it.setAttribute("src",b),it.setAttribute("width",Ct),it.setAttribute("height",qt);var Pt=(ye-Ct)/2,Me=(ze-qt)/2;it.style.left=Pt+"px",it.style.top=Me+"px",et.appendChild(it)}}return et.appendChild(me),et},gt=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},ct=["web","webSimple","web3d","tablet","tablet3d","phone"],Je=function(ye,ze){if(ae=ye,ze){_e(ae,!0);return}var rt=!Pe;if(rt){var Bt=ne(ae);!isNaN(Bt)&&Bt<4.4&&(rt=!1)}var et,lt;window.location.protocol.substr(0,4)==="http"?et=window.location.protocol:et="http:";var me=ae.indexOf("//");me>0?lt=ae:me===0?lt=et+ae:lt="https://www.geogebra.org/apps/5.2.814.0/";for(var it in ct)if(ae.slice(ct[it].length*-1)===ct[it]||ae.slice((ct[it].length+1)*-1)===ct[it]+"/"){_e(lt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&rt&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!He(oe.showToolBar)&&!He(oe.showMenuBar)&&!He(oe.showAlgebraInput)&&!He(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?lt+="webSimple/":lt+="web3d/",_e(lt,!1)},_e=function(ye,ze){if(ye.requirejs){Ke=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),Ke=ye,ze===null&&(ze=ye.indexOf("http")===-1),je=ze,a="web.nocache.js",y=!1;var rt=Ke.split("/");rt.length>1&&(!ze&&rt[rt.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ct.indexOf(rt[rt.length-2])>=0&&(a=rt[rt.length-2]+".nocache.js")),rt=ye.split("/"),ae=rt[rt.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 Bt=parseFloat(ae);Bt!==NaN&&Bt<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Bt+" is deprecated. Using version latest instead."),Je("5.0",ze))},dt=function(ye,ze){window.console&&window.console.log&&(!ze||typeof ze.showLogging=="undefined"||ze.showLogging&&ze.showLogging!=="false")&&console.log(ye)};oe.material_id!==void 0?de(Nt):Nt();function Nt(){var ye=mt;Fe!==null?ye=Fe:parseFloat(ye)<5&&(ye="5.0"),Je(ye,!1),ue!==null&&_e(ue,je),fe=!0}return Te},GGBAppletUtils=function(){"use strict";function Te(){return window.GGBT_wsf_edit!==void 0}function mt(fe,Fe){Fe!=1?(fe.style.transformOrigin="0% 0% 0px",fe.style.webkitTransformOrigin="0% 0% 0px",fe.style.transform="scale("+Fe+","+Fe+")",fe.style.webkitTransform="scale("+Fe+","+Fe+")",fe.style.maxWidth="initial",fe.querySelector(".ggb_preview")!==null&&(fe.querySelector(".ggb_preview").style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),fe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(fe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(fe.style.transform="none",fe.style.webkitTransform="none")}function oe(fe,Fe,ue,Ne,Oe,xe){var Ke=null;if(xe!=null&&xe!="")for(var je=fe.parentNode;je!=null;)if((" "+je.className+" ").indexOf(" "+xe+" ")>-1){Ke=je;break}else je=je.parentNode;var De=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ke)De=Ke.offsetWidth,ae=Math.max(Ne?Ke.offsetWidth:0,Ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(De=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=De):(De=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),fe){var z=fe.getBoundingClientRect();z.left>0&&z.left<=De&&(Oe===void 0||!Oe)&&(document.dir==="rtl"?(E=De-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=fe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return fe&&((ue===void 0||!ue)&&Fe>0&&Fe+y<De?De=Fe:De-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ae-=x)),{width:De,height:ae}}function te(fe,Fe,ue,Ne,Oe){if(fe.isScreenshoGenerator)return 1;var xe=Ne!==void 0&&Ne,Ke=fe.noScaleMargin!=null&&fe.noScaleMargin,je=function(ee){return ee&&ee!=="false"},De=je(fe.autoHeight),ae=oe(Fe,fe.width,ue,De,xe&&window.GGBT_wsf_view||Ke,Oe),a=parseInt(ae.width),y=fe.width,E=fe.height;if(y===void 0){var b=Fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=xe?1:ae.height/E;return ue!==void 0&&!ue&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Pe(fe,Fe,ue){var Ne=1,Oe,xe=!1;if(fe.hasOwnProperty("allowUpscale")&&(xe=fe.allowUpscale),fe.hasOwnProperty("scale")&&(Ne=parseFloat(fe.scale),(isNaN(Ne)||Ne===null||Ne===0)&&(Ne=1),Ne>1&&(xe=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(xe=!0),!(fe.hasOwnProperty("disableAutoScale")&&fe.disableAutoScale))Oe=te(fe,Fe,xe,ue,fe.scaleContainerClass);else return Ne;return xe&&(!fe.hasOwnProperty("scale")||Ne===1)?Oe:Math.min(Ne,Oe)}function Xe(fe){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=fe.getBoundingClientRect(),Oe=(Fe-Ne.width)/2,xe=(ue-Ne.height)/2;xe<0&&(xe=0),fe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Oe<40?fe.style.left="40px":fe.style.left=Oe+"px",fe.style.top=xe+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(xe<40?fe.style.top="40px":fe.style.top=xe+"px",fe.style.left=Oe+"px")}function Ie(fe,Fe){var ue=fe.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ne=Pe(Fe,fe);Te()&&ue.setAttribute("data-param-scale",Ne);for(var Oe=null,xe=0;xe<fe.childNodes.length;xe++)if(fe.childNodes[xe].className!==void 0&&fe.childNodes[xe].className.match(/^applet_scaler/)){Oe=fe.childNodes[xe];break}if(Oe!==null&&Oe.querySelector(".noscale")!==null)return;var Ke=Fe.id!==void 0?Fe.id:"ggbApplet",je=window[Ke];(je==null||!je.recalculateEnvironments)&&Oe!==null&&!Oe.className.match(/fullscreen/)&&(Oe.parentNode.style.transform="",!isNaN(Ne)&&Ne!==1?(Oe.parentNode.style.width=Fe.width*Ne+"px",Oe.parentNode.style.height=Fe.height*Ne+"px",mt(Oe,Ne)):(mt(Oe,1),Oe.parentNode.style.width=Fe.width+"px",Oe.parentNode.style.height=Fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Xe(fe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:Te,positionCenter:Xe,getScale:Pe,scaleElement:mt}}();__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 Te=n.location.search;return Te.indexOf(J)!=-1||Te.indexOf(K)!=-1}function q(Te,mt){}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(Te){var mt=s[L].bindings;s[L].bindings=function(){for(var oe=mt?mt():{},te=Te[webModule.__softPermutationId],Pe=O;Pe<te.length;Pe++){var Xe=te[Pe];oe[Xe[O]]=Xe[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Te=o.createElement(Q);if(Te.id=L,Te.style.cssText=R+S,Te.tabIndex=-1,o.body.appendChild(Te),t=Te.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var mt=document.compatMode==U?V:W;t.write(mt+X),t.close()}}}function w(Te){function mt(te){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Xe=Pe();if(Xe){te();return}function Ie(){if(!Xe){if(!Pe())return;Xe=!0,te(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),fe&&clearInterval(fe)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var fe=setInterval(function(){Ie()},$)}function oe(te){var Pe=u(),Xe=Pe.body,Ie=Pe.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=te,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+te))}),Xe.appendChild(Ie)}mt(function(){oe(Te)})}webModule.__startLoadingFragment=function(Te){return C(Te)},webModule.__installRunAsyncCode=function(Te){var mt=u(),oe=mt.body,te=mt.createElement(_);te.language=ab,te.text=Te,oe.appendChild(te),oe.removeChild(te)};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(Te){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Te){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Te){var mt=c[Te];return mt==null?null:mt},r=d,webModule.__errFn=e}function B(){function Te(fe){var Fe=fe.lastIndexOf(rb);Fe==-1&&(Fe=fe.length);var ue=fe.indexOf(sb);ue==-1&&(ue=fe.length);var Ne=fe.lastIndexOf(tb,Math.min(ue,Fe));return Ne>=O?fe.substring(O,Ne+P):W}function mt(fe){if(!fe.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=fe+vb,fe=Te(Fe.src)}return fe}function oe(){var fe=__gwt_getMetaProperty(wb);return fe!=null?fe:W}function te(){for(var fe=o.getElementsByTagName(_),Fe=O;Fe<fe.length;++Fe)if(fe[Fe].src.indexOf(xb)!=-1)return Te(fe[Fe].src);return W}function Pe(){var fe=o.getElementsByTagName(yb);return fe.length>O?fe[fe.length-P].href:W}function Xe(){var fe=o.location;return fe.href==fe.protocol+zb+fe.host+fe.pathname+fe.search+fe.hash}var Ie=oe();return Ie==W&&(Ie=te()),Ie==W&&(Ie=Pe()),Ie==W&&Xe()&&(Ie=Te(o.location.href)),Ie=mt(Ie),Ie}function C(Te){return Te.match(/^\//)||Te.match(/^[a-zA-Z]+:\/\//)?Te:webModule.__moduleBase+Te}function D(){var Te=[],mt=O,oe=[],te=[];function Pe(fe){var Fe=te[fe](),ue=oe[fe];if(Fe in ue)return Fe;var Ne=[];for(var Oe in ue)Ne[ue[Oe]]=Oe;throw r&&r(fe,Ne,Fe),null}if(__gwt_isKnownPropertyValue=function(fe,Fe){return Fe in oe[fe]},webModule.__getPropMap=function(){var fe={};for(var Fe in oe)oe.hasOwnProperty(Fe)&&(fe[Fe]=Pe(Fe));return fe},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Xe;try{Xe=Cb;var Ie=Xe.indexOf(Db);Ie!=-1&&(mt=parseInt(Xe.substring(Ie+P),$),Xe=Xe.substring(O,Ie))}catch(fe){}return webModule.__softPermutationId=mt,C(Xe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Te,mt,oe){"use strict";oe.d(mt,{Ax:function(){return Ie},Ds:function(){return fe},KI:function(){return ue},SI:function(){return Xe},f1:function(){return Pe}});var te=oe(11320);function Pe(Ne){let Oe=!0;if(Ne.length>0){for(let xe=0;xe<Ne.length;xe++)if(Ne[xe].compile_success==0||!Ne[xe].compile_success){Oe=!1;break}}else Oe=!1;return Oe}function Xe(Ne,Oe=""){let xe=[];for(let Ke=0;Ke<Ne.length;Ke++){let je=Ne[Ke],De=Oe?`${Oe}/${je.name}`:`${je.name}`;xe.push({title:je.name,type:je.type,isLeaf:je.type!=="tree",key:De})}return xe}function Ie(Ne,Oe,xe){for(let Ke=0;Ke<Ne.length;Ke++){let je=Ne[Ke];if(je.key===Oe){je.children=xe;break}je.children&&Ie(je.children,Oe,xe)}return Ne}function fe(Ne,Oe,xe){let Ke;return function(){let je=this,De=arguments,ae=function(){Ke=null,xe||Ne.apply(je,De)},a=xe&&!Ke;clearTimeout(Ke),Ke=setTimeout(ae,Oe),a&&Ne.apply(je,De)}}const Fe=!0,ue=te.Z.API_SERVER},10191:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ut}});var te=oe(67294),Pe=oe(35973),Xe=oe(84567),Ie=oe(24018),fe=oe(40043),Fe=oe(33170),ue=oe(22150),Ne=oe(42563),Oe={},xe=Object.defineProperty,Ke=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,De=Object.prototype.propertyIsEnumerable,ae=(be,Ue,ke)=>Ue in be?xe(be,Ue,{enumerable:!0,configurable:!0,writable:!0,value:ke}):be[Ue]=ke,a=(be,Ue)=>{for(var ke in Ue||(Ue={}))je.call(Ue,ke)&&ae(be,ke,Ue[ke]);if(Ke)for(var ke of Ke(Ue))De.call(Ue,ke)&&ae(be,ke,Ue[ke]);return be},y=(be,Ue,ke)=>new Promise((gt,ct)=>{var Je=Nt=>{try{dt(ke.next(Nt))}catch(ye){ct(ye)}},_e=Nt=>{try{dt(ke.throw(Nt))}catch(ye){ct(ye)}},dt=Nt=>Nt.done?gt(Nt.value):Promise.resolve(Nt.value).then(Je,_e);dt((ke=ke.apply(be,Ue)).next())});const E=Xe.default.Group,b=({classroomList:be,loading:Ue,user:ke,exercise_id:gt=null,homework_common_id:ct=null,setitem:Je,item:_e,type:dt,rz:Nt,dispatch:ye})=>{var ze,rt,Bt,et,lt,me,it,Ct;const[qt,Pt]=(0,te.useState)([]);let[Me,Ee]=(0,te.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const we=(0,Pe.useParams)(),[tt,qe]=(0,te.useState)(!1),[vt,Rt]=(0,te.useState)(!1),[Gt]=ue.default.useForm();(0,te.useEffect)(()=>{Nt&&(Me.zydatas=Nt,Ee(a({},Me)),_e!=null&&_e.ec_course_id&&en())},[_e,Nt]);function en(){return y(this,null,function*(){console.log("----",_e),yield ln(_e==null?void 0:_e.ec_major_school_id),yield sn(_e==null?void 0:_e.ec_year_id),yield Tt(_e==null?void 0:_e.ec_course_id),Gt.setFieldsValue({ec_course_id:_e==null?void 0:_e.ec_course_id,ec_major_school_id:_e==null?void 0:_e.ec_major_school_id,ec_point_ids:_e==null?void 0:_e.ec_point_ids,ec_year_id:_e==null?void 0:_e.ec_year_id})})}function ln(Mt){return y(this,null,function*(){const Qt=yield(0,Fe.ZP)(`/api/ec_major_schools/${Mt}/ec_years/get_year_list.json`,{method:"get"});Me.jbdatas=Qt==null?void 0:Qt.data,Ee(a({},Me)),Gt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function sn(Mt){return y(this,null,function*(){const Qt=yield(0,Fe.ZP)(`/api/ec_years/${Mt}/ec_courses/get_courses.json`,{method:"get"});Me.kcdatas=Qt==null?void 0:Qt.data,Ee(a({},Me)),Gt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const Tt=Mt=>y(void 0,null,function*(){const Qt=yield(0,Fe.ZP)(`/api/ec_courses/${Mt}/ec_points.json`,{method:"get",params:{ec_course_id:Mt}});Me.zsdatas=Qt==null?void 0:Qt.data,Ee(a({},Me))});return te.createElement("div",{className:Oe.from},te.createElement(ue.default,{form:Gt,layout:"inline",onValuesChange:Mt=>{console.log("----",Mt),Mt.ec_major_school_id&&(Me.jbdatas=[],Me.kcdatas=[],Me.zsdatas=[],Ee(a({},Me)),ln(Mt.ec_major_school_id)),Mt.ec_year_id&&(Me.kcdatas=[],Me.zsdatas=[],Ee(a({},Me)),sn(Mt.ec_year_id)),Mt.ec_course_id&&(Me.zsdatas=[],Ee(a({},Me)),Tt(Mt.ec_course_id))},onFinish:Mt=>y(void 0,null,function*(){Je(Mt)})},te.createElement(ue.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},te.createElement(Ne.default,{style:{width:150},disabled:((ze=Me.zydatas)==null?void 0:ze.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(rt=Me==null?void 0:Me.zydatas)==null?void 0:rt.map((Mt,Qt)=>te.createElement(Ne.default.Option,{key:Qt,value:Mt==null?void 0:Mt.ec_major_school_id},Mt==null?void 0:Mt.name)))),te.createElement(ue.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},te.createElement(Ne.default,{style:{width:150},disabled:((Bt=Me.jbdatas)==null?void 0:Bt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(et=Me==null?void 0:Me.jbdatas)==null?void 0:et.map((Mt,Qt)=>te.createElement(Ne.default.Option,{key:Qt,value:Mt==null?void 0:Mt.ec_year_id},Mt==null?void 0:Mt.year)))),te.createElement(ue.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},te.createElement(Ne.default,{style:{width:150},disabled:((lt=Me.kcdatas)==null?void 0:lt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(me=Me==null?void 0:Me.kcdatas)==null?void 0:me.map((Mt,Qt)=>te.createElement(Ne.default.Option,{key:Qt,value:Mt==null?void 0:Mt.id},Mt==null?void 0:Mt.name)))),te.createElement(ue.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},te.createElement(Ne.default,{onChange:()=>{Gt.submit()},style:{width:150},mode:"multiple",disabled:((it=Me.zsdatas)==null?void 0:it.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(Ct=Me==null?void 0:Me.zsdatas)==null?void 0:Ct.map((Mt,Qt)=>te.createElement(Ne.default.Option,{key:Qt,value:Mt==null?void 0:Mt.id},Mt==null?void 0:Mt.name))))))};var x=(0,Pe.connect)(({classroomList:be,loading:Ue,globalSetting:ke,user:gt})=>({classroomList:be,globalSetting:ke,loading:Ue.effects,user:gt}))(b),z=Object.defineProperty,ee=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,he=(be,Ue,ke)=>Ue in be?z(be,Ue,{enumerable:!0,configurable:!0,writable:!0,value:ke}):be[Ue]=ke,ce=(be,Ue)=>{for(var ke in Ue||(Ue={}))ge.call(Ue,ke)&&he(be,ke,Ue[ke]);if(re)for(var ke of re(Ue))de.call(Ue,ke)&&he(be,ke,Ue[ke]);return be},Re=(be,Ue)=>ee(be,ne(Ue)),He=(be,Ue,ke)=>new Promise((gt,ct)=>{var Je=Nt=>{try{dt(ke.next(Nt))}catch(ye){ct(ye)}},_e=Nt=>{try{dt(ke.throw(Nt))}catch(ye){ct(ye)}},dt=Nt=>Nt.done?gt(Nt.value):Promise.resolve(Nt.value).then(Je,_e);dt((ke=ke.apply(be,Ue)).next())});const Et=Xe.default.Group,zt=({classroomList:be,loading:Ue,user:ke,exercise_id:gt=null,homework_common_id:ct=null,setitem:Je,type:_e,dispatch:dt})=>{var Nt,ye;let[ze,rt]=(0,te.useState)([{}]),[Bt,et]=(0,te.useState)([]);function lt(){return He(this,null,function*(){var it,Ct,qt;let Pt=yield(0,Fe.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:gt,homework_common_id:ct}});if(((it=Pt==null?void 0:Pt.data)==null?void 0:it.length)>0){let Me=[];(Ct=Pt==null?void 0:Pt.data)==null||Ct.map(Ee=>{var we;(we=Ee==null?void 0:Ee.ec_point_ids)==null||we.map(tt=>{Me.push(tt)})}),Je(Re(ce({},(qt=Pt==null?void 0:Pt.data)==null?void 0:qt[0]),{ec_point_ids:Me})),rt(Pt==null?void 0:Pt.data)}})}(0,te.useEffect)(()=>{var it,Ct;(Ct=(it=ke==null?void 0:ke.userInfo)==null?void 0:it.course)!=null&&Ct.course_school_id&&me()},[(ye=(Nt=ke==null?void 0:ke.userInfo)==null?void 0:Nt.course)==null?void 0:ye.course_school_id]);function me(){return He(this,null,function*(){var it,Ct;const qt=yield(0,Fe.ZP)(`/api/schools/${(Ct=(it=ke==null?void 0:ke.userInfo)==null?void 0:it.course)==null?void 0:Ct.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});et(qt==null?void 0:qt.data),(ct||gt)&<()})}return te.createElement("div",null,te.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),ze==null?void 0:ze.map((it,Ct)=>te.createElement("div",{key:Ct,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},te.createElement(x,{rz:Bt,item:it,type:Ct,setitem:qt=>{ze.splice(Ct,1,qt),rt([...ze]);let Pt=[];ze==null||ze.map(Me=>{var Ee;(Ee=Me==null?void 0:Me.ec_point_ids)==null||Ee.map(we=>{Pt.push(we)})}),Je(Re(ce({},qt),{ec_point_ids:Pt}))}}),Ct!=0&&te.createElement(Ie.Z,{onClick:()=>{ze.splice(Ct,1),rt([...ze])},style:{marginLeft:10,fontSize:"20px"}}),te.createElement(fe.Z,{onClick:()=>{ze.push({}),rt([...ze])},style:{marginLeft:10,fontSize:"20px"}}))))};var Ut=(0,Pe.connect)(({classroomList:be,loading:Ue,globalSetting:ke,user:gt})=>({classroomList:be,globalSetting:ke,loading:Ue.effects,user:gt}))(zt)},63205:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ke}});var te=oe(67294),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Xe=oe(94184),Ie=oe.n(Xe),fe=oe(57953),Fe=oe(15979),ue=oe(33170),Ne=oe(28706),Oe=(je,De,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(je,De)).next())}),Ke=({data:je,className:De,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,te.useRef)(null),ee=(0,te.useRef)(null),ne=(0,te.useRef)(null),re=(0,te.useRef)(null),[ge,de]=(0,te.useState)(!1),[he,ce]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>{ne.current||(ne.current=document.createElement("style"),document.head.appendChild(ne.current)),je!=null&&je.visible?(document.body.setAttribute("data-custom","y-hidden"),ne.current.innerHTML=" html { overflow-y: hidden; }",je!=null&&je.src&&Re()):(document.body.removeAttribute("data-custom"),ne.current&&(document.head.removeChild(ne.current),ne.current=null))},[je==null?void 0:je.visible]);const Re=()=>Oe(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u52A0\u8F7D\u4E2D");const be=yield(0,Ne.ZJ)(je==null?void 0:je.src);z.current.src="",z.current.src=be,z.current.onload=function(){Ut()},de(!1),ce("")}),He=()=>{document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",y()},Et=be=>Oe(void 0,null,function*(){de(!0),ce("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ue=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:je.title,file:be.dataUrl}});Ue!=null&&Ue.id&&!x?(yield(0,ue.ZP)(`/api/attachments/${je.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ue==null?void 0:Ue.id,settings:JSON.stringify(be.state)}})).status===0&&E():Ue!=null&&Ue.id&&E(Ue),document.body.removeAttribute("data-custom"),ne.current.innerHTML=" ",de(!1),ce("")}),zt=()=>{const be=document.querySelector('a[href="https://markerjs.com/"]');be&&be.parentNode&&(be.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(ke=>{const gt=document.querySelector(ke.name);gt&>.setAttribute("title",ke.title)})},Ut=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",Et),ee.current.addEventListener("beforeclose",He),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(),je!=null&&je.snapshotData&&ee.current.restoreState(je.snapshotData),setTimeout(()=>{window.scrollTo(0,0),zt()},300)};return te.createElement(te.Fragment,null,(je==null?void 0:je.visible)&&te.createElement(fe.Z,{spinning:ge,tip:he,style:{position:"absolute"}},te.createElement("div",{ref:re,className:Ie()(Pe.imageDimensions,De,ae?Pe.fullWidth:""),style:a},te.createElement("img",{className:Pe.img,ref:z}))))}},36527:function(Te,mt,oe){"use strict";var te=oe(67294),Pe=oe(71230),Xe=oe(15746),Ie=oe(66368),fe=oe(71577),Fe=oe(85725),ue=oe(71736),Ne=oe(84279),Oe=oe(67294);const xe=(0,te.forwardRef)(({callback:Ke,showSaveButton:je,value:De=""},ae)=>{const a=(0,te.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Oe.createElement(Pe.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,ne)=>Oe.createElement(Xe.Z,{flex:"110px",className:ue.Z.item},Oe.createElement("div",null,Oe.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),Oe.createElement("div",{className:ue.Z.children},ee.children.map((re,ge)=>Oe.createElement("div",{key:ge},Oe.createElement("h1",null,re.name),Oe.createElement(Pe.Z,{gutter:[10,10]},re.data.map((de,he)=>Oe.createElement(Xe.Z,{key:he,onClick:()=>b(de),className:ue.Z.diamond},Oe.createElement(Fe.Z,{value:"`$$"+de.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Oe.createElement(Pe.Z,{className:ue.Z.lists,gutter:[10,10]},E.map((ee,ne)=>Oe.createElement(Xe.Z,{flex:"110px",className:ue.Z.item},Oe.createElement("div",null,Oe.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Oe.createElement("div",{className:ue.Z.children},ee.children.map((re,ge)=>Oe.createElement("div",{key:ge},re.name&&Oe.createElement("h1",null,re.name),Oe.createElement(Pe.Z,{gutter:[10,10]},re.data.map((de,he)=>Oe.createElement(Xe.Z,{key:he,onClick:()=>b(de),className:ue.Z.diamond},Oe.createElement(Fe.Z,{value:"`$$"+de.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var ne=ee.innerText;return Ke&&Ke(ne),ne};return(0,te.useImperativeHandle)(ae,()=>({getData:z})),Oe.createElement("div",{className:ue.Z.mathWrap},Oe.createElement(Ie.default,{defaultActiveKey:"1",items:x}),Oe.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},De||""),je&&Oe.createElement("div",{className:ue.Z.button},Oe.createElement(fe.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});mt.Z=xe},65866:function(Te,mt,oe){"use strict";oe.d(mt,{z:function(){return gt},Z:function(){return ct}});var te=oe(67294),Pe=oe(59810),Xe=oe(2453),Ie=oe(14446),fe=oe(71577),Fe=oe(11320),ue=oe(4440),Ne=Object.defineProperty,Oe=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,je=(Je,_e,dt)=>_e in Je?Ne(Je,_e,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Je[_e]=dt,De=(Je,_e)=>{for(var dt in _e||(_e={}))xe.call(_e,dt)&&je(Je,dt,_e[dt]);if(Oe)for(var dt of Oe(_e))Ke.call(_e,dt)&&je(Je,dt,_e[dt]);return Je},ae=(Je,_e,dt)=>new Promise((Nt,ye)=>{var ze=et=>{try{Bt(dt.next(et))}catch(lt){ye(lt)}},rt=et=>{try{Bt(dt.throw(et))}catch(lt){ye(lt)}},Bt=et=>et.done?Nt(et.value):Promise.resolve(et.value).then(ze,rt);Bt((dt=dt.apply(Je,_e)).next())});const a="\u3000\u3000";function y(Je){var _e=["Bytes","KB","MB","GB","TB"];if(Je==0)return"0 Byte";var dt=parseInt(""+Math.floor(Math.log(Je)/Math.log(1024)),10);return(Je/Math.pow(1024,dt)).toFixed(1)+" "+_e[dt]}var E=({value:Je=[],action:_e,onChange:dt,className:Nt,maxSize:ye=150,title:ze="\u6587\u4EF6\u4E0A\u4F20",accept:rt=null})=>{const Bt={multiple:!1,fileList:Je,accept:rt,withCredentials:!0,beforeUpload:lt=>lt.size/1024/1024<ye?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${ye}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(lt){var me,it,Ct,qt;let Pt=[...lt.fileList];if(Pt=Pt.map(Me=>(Me.name.indexOf(a)===-1&&(Me.name=`${Me.name}${a}${y(Me.size)}`),De({},Me))),lt.file.status==="done"&&((it=(me=lt.file)==null?void 0:me.response)==null?void 0:it.status)===-1){message.error((qt=(Ct=lt.file)==null?void 0:Ct.response)==null?void 0:qt.message),dt([]);return}dt(Pt)},onRemove:lt=>ae(void 0,null,function*(){const me=lt.size/1024/1024;return lt.status==="uploading"?!0:me<ye&&(lt.response?lt.response.id:lt.uid)?yield removeAttachment(lt.response?lt.response.id:lt.id):!0})};function et(lt){lt.preventDefault(),lt.stopPropagation()}return React.createElement("div",{className:`single-upload ${Nt||""}`},React.createElement(Upload,De({},Bt),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},ze),React.createElement("span",{onClick:et,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",ye,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ge=(Je,_e,dt)=>_e in Je?z(Je,_e,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Je[_e]=dt,de=(Je,_e)=>{for(var dt in _e||(_e={}))ne.call(_e,dt)&&ge(Je,dt,_e[dt]);if(ee)for(var dt of ee(_e))re.call(_e,dt)&&ge(Je,dt,_e[dt]);return Je};const he=Je=>React.createElement("svg",de({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 ce="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Re=Object.defineProperty,He=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,zt=Object.prototype.propertyIsEnumerable,Ut=(Je,_e,dt)=>_e in Je?Re(Je,_e,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Je[_e]=dt,be=(Je,_e)=>{for(var dt in _e||(_e={}))Et.call(_e,dt)&&Ut(Je,dt,_e[dt]);if(He)for(var dt of He(_e))zt.call(_e,dt)&&Ut(Je,dt,_e[dt]);return Je},Ue=(Je,_e,dt)=>new Promise((Nt,ye)=>{var ze=et=>{try{Bt(dt.next(et))}catch(lt){ye(lt)}},rt=et=>{try{Bt(dt.throw(et))}catch(lt){ye(lt)}},Bt=et=>et.done?Nt(et.value):Promise.resolve(et.value).then(ze,rt);Bt((dt=dt.apply(Je,_e)).next())});const{Dragger:ke}=Pe.default;function gt(Je){let _e=[];return Je&&Je.length>0&&(_e=Je.map(dt=>({uid:dt.id,id:dt.id,name:dt.title+a+dt.filesize,url:dt.url,filesize:dt.filesize,status:"done",response:{id:dt.id}}))),_e}var ct=({value:Je,onChange:_e,action:dt,data:Nt,className:ye,maxSize:ze=150,title:rt="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Bt=!1,accept:et="",additionalText:lt,isDragger:me,number:it=1e3,aloneClear:Ct=!1,realTimeRemove:qt=!0,uploadText:Pt,setFileProgress:Me,showFileProgress:Ee})=>{const[we,tt]=(0,te.useState)(!1);let[qe,vt]=(0,te.useState)(Je||[]),[Rt,Gt]=(0,te.useState)(1);(0,te.useEffect)(()=>{Je&&(Rt===1&&vt([...Je]),Gt(2),it===(Je==null?void 0:Je.length)&&tt(!0))},[Je]);const en=()=>{setTimeout(()=>{qe.pop(),tt(!1),vt([...qe])},500)};Ee&&Me(qe.some(Tt=>Tt.status==="uploading"));const ln={multiple:!0,accept:et,withCredentials:!0,fileList:qe,beforeUpload:(Tt,Mt)=>{const Qt=Tt.size/1024/1024;if(qe.concat(Mt).length>it)return qe.pop(),vt([...qe]),Xe.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${it}\u4E2A\u6587\u4EF6`),Ct?Promise.reject():(en(),!1);if(!(Qt<ze)){if(Xe.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${ze}MB).`),Ct)return Promise.reject();en()}return!0},data:Nt,action:dt||`${Fe.Z.API_SERVER}/api/attachments.json`,onChange(Tt){var Mt,Qt,jn,xn;if(Tt.file.status==="removed"?qe=Tt.fileList:qe=(0,x.uniqBy)([...Tt.fileList,...qe],"uid"),Tt.file.status==="done"&&((Qt=(Mt=Tt.file)==null?void 0:Mt.response)==null?void 0:Qt.status)===-1){Xe.ZP.error((xn=(jn=Tt.file)==null?void 0:jn.response)==null?void 0:xn.message);return}qe.length>=it?tt(!0):tt(!1),vt([...qe]),qe=qe.map(pn=>{var Le,Ge;return(Le=pn==null?void 0:pn.response)!=null&&Le.id&&(pn.url=(Ge=pn==null?void 0:pn.response)==null?void 0:Ge.url),pn.name.indexOf(a)===-1&&(pn.name=`${pn.name}${a}${y(pn.size)}`),be({},pn)}),console.log("info:",Tt,qe),_e(qe)},onRemove:Tt=>Ue(void 0,null,function*(){if(!qt)return!0;const Mt=()=>Ue(void 0,null,function*(){if(Tt.response?Tt.response.id:Tt.id){let jn=yield(0,ue.JZ)(Tt.response?Tt.response.id:Tt.uid);return Promise.resolve(jn)}else return!0});if(Bt)return new Promise((Qt,jn)=>{Ie.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:te.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ue(void 0,null,function*(){const xn=yield Mt();Xe.ZP.success("\u5220\u9664\u6210\u529F"),Qt(!0)}),onCancel:()=>Qt(!1)})});{const Qt=yield Mt();return qe.length-1<it&&tt(!1),Qt}})};function sn(Tt){Tt.preventDefault(),Tt.stopPropagation()}return te.createElement("div",{className:`multi-upload ${ye||""}`},me&&te.createElement(ke,be({},ln),te.createElement("p",{className:"ant-upload-drag-icon"},te.createElement(b.Z,null)),te.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",te.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",ze,"MB)"," "),lt),!me&&te.createElement(Pe.default,be({},ln),te.createElement(fe.ZP,{disabled:we,className:"upload_button"},te.createElement("img",{className:"aBtn_img",src:ce}),rt),te.createElement("span",{onClick:sn,className:"upload_text"},Pt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${ze}MB)`)))}},57444:function(Te,mt,oe){"use strict";oe.d(mt,{h:function(){return ee}});var te=oe(67294),Pe=oe(42563),Xe=oe(22150),Ie=oe(71577),fe=oe(4631),Fe=oe.n(fe),ue=oe(71749),Ne=oe(30483),Oe=Object.defineProperty,xe=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(ne,re,ge)=>re in ne?Oe(ne,re,{enumerable:!0,configurable:!0,writable:!0,value:ge}):ne[re]=ge,y=(ne,re)=>{for(var ge in re||(re={}))De.call(re,ge)&&a(ne,ge,re[ge]);if(je)for(var ge of je(re))ae.call(re,ge)&&a(ne,ge,re[ge]);return ne},E=(ne,re)=>xe(ne,Ke(re));const b=Pe.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};mt.Z=({callback:ne,onCancel:re})=>{const[ge,de]=(0,te.useState)("python");function he(Re){de(z[Re][1])}function ce(Re){ne(Re)}return te.createElement(Xe.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:ce,style:{width:500}}),te.createElement(Xe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Pe.default,{getPopupContainer:Re=>Re.parentNode,onChange:he},Object.keys(z).map(Re=>te.createElement(b,{key:Re,value:Re},z[Re][0])))),te.createElement(Xe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(ee,{mode:ge})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Ie.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:ne,onChange:re,mode:ge,options:de={}}){const he=(0,te.useRef)(),[ce,Re]=(0,te.useState)();return(0,te.useEffect)(()=>{if(ce){let He=function(Et){const zt=Et.getValue();re&&re(zt)};return ce.on("change",He),()=>{ce.off("change",He)}}},[ce,re]),(0,te.useEffect)(()=>{ce&&ce.setOption("mode",ge)},[ce,ge]),(0,te.useEffect)(()=>{ce&&(ne!==ce.getValue()||ne==="")&&setTimeout(()=>{ce.setValue(ne||"")},300)},[ce,ne]),(0,te.useEffect)(()=>{if(he.current&&!ce){const He=Fe().fromTextArea(he.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},de));Re(He)}},[he.current,ce]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:he}))}},35567:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return Qa}});var te=oe(67294),Pe=oe(4631),Xe=oe.n(Pe),Ie=oe(91033),fe=oe(71749),Fe=oe(57341),ue=oe(82801),Ne=oe(88386),Oe=oe(49047),xe=oe(80785),Ke=oe(85725),je=({value:Ce="",className:Be,showTextOnly:pe,showLines:pt,style:kt={}})=>{const Zt=(0,te.useMemo)(()=>"",[Ce]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:Zt}}))},De=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Ce,Be,pe)=>Be in Ce?ae(Ce,Be,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Ce[Be]=pe,ee=(Ce,Be)=>{for(var pe in Be||(Be={}))b.call(Be,pe)&&z(Ce,pe,Be[pe]);if(E)for(var pe of E(Be))x.call(Be,pe)&&z(Ce,pe,Be[pe]);return Ce},ne=(Ce,Be)=>a(Ce,y(Be));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:Ce,title:Be,icon:pe,actionName:pt,className:kt="",children:Zt}){function kn(){Ce(pt)}return De.createElement("a",{title:Be,className:kt,onClick:kn},De.createElement("i",{className:`${pe}`}),Zt)}var de=({watch:Ce,showNullButton:Be,showNullProgramButton:pe,onActionCallback:pt,fullScreen:kt,insertTemp:Zt,hidetoolBar:kn,extraUse:Sn})=>{const Bn=[...re,{title:`${Ce?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ce?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return De.createElement("ul",{className:"markdown-toolbar-container"},!kn&&Bn.map((na,Ia)=>De.createElement("li",{key:Ia},na.actionName?De.createElement(ge,ne(ee({},na),{onActionCallback:pt})):De.createElement("span",{className:"v-line"}))),Be?De.createElement("li",null,De.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:pt},De.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,pe?De.createElement(De.Fragment,null,De.createElement("li",null,De.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:pt},De.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),De.createElement("li",null,De.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:pt},De.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Zt&&De.createElement("li",null,De.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Zt}`,onActionCallback:pt},De.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Sn&&De.createElement("li",null,Sn),De.createElement("li",{className:"btn-full-screen"},De.createElement(ge,{icon:`${kt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:kt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:pt})))},he=oe(76621),ce=oe(22150),Re=oe(69677),He=oe(71577),Et=Object.defineProperty,zt=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,gt=(Ce,Be,pe)=>Be in Ce?Et(Ce,Be,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Ce[Be]=pe,ct=(Ce,Be)=>{for(var pe in Be||(Be={}))Ue.call(Be,pe)&>(Ce,pe,Be[pe]);if(be)for(var pe of be(Be))ke.call(Be,pe)&>(Ce,pe,Be[pe]);return Ce},Je=(Ce,Be)=>zt(Ce,Ut(Be));const _e={labelCol:{span:4},wrapperCol:{span:20}};var dt=({callback:Ce,onCancel:Be})=>{function pe(pt){Ce(pt)}return te.createElement(ce.default,Je(ct({},_e),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pe,style:{width:500}}),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Re.default,null)),te.createElement(ce.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Re.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(He.ZP,{type:"ghost",onClick:Be},"\u53D6\u6D88")))},Nt=oe(57444),ye=oe(70859),ze=oe(14446),rt=oe(71230),Bt=oe(63205),et=oe(67294),lt=({callback:Ce,onCancel:Be})=>{const pe=document.createElement("canvas"),pt=pe.getContext("2d");pe.width=1e3,pe.height=800,pt.fillStyle="#ffffff",pt.fillRect(0,0,pe.width,pe.height);const kt=pe.toDataURL("image/png");return et.createElement(ze.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},et.createElement(rt.Z,{style:{height:"100vh"}},et.createElement(Bt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:kt,visible:!0,title:String(Date.now())},onOk:Zt=>{Ce({src:Zt.url})},onClose:Be})))},me=oe(23495);function it(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(it,go.CommandHandler),it.prototype.canAlignSelection=function(){var Ce=this.diagram;return!(Ce===null||Ce.isReadOnly||Ce.isModelReadOnly||Ce.selection.count<2)},it.prototype.alignLeft=function(){var Ce=this.diagram;Ce.startTransaction("aligning left");var Be=1/0;Ce.selection.each(function(pe){pe instanceof go.Link||(Be=Math.min(pe.position.x,Be))}),Ce.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(Be,pe.position.y))}),Ce.commitTransaction("aligning left")},it.prototype.alignRight=function(){var Ce=this.diagram;Ce.startTransaction("aligning right");var Be=-1/0;Ce.selection.each(function(pe){if(!(pe instanceof go.Link)){var pt=pe.actualBounds.x+pe.actualBounds.width;Be=Math.max(pt,Be)}}),Ce.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(Be-pe.actualBounds.width,pe.position.y))}),Ce.commitTransaction("aligning right")},it.prototype.alignTop=function(){var Ce=this.diagram;Ce.startTransaction("alignTop");var Be=1/0;Ce.selection.each(function(pe){pe instanceof go.Link||(Be=Math.min(pe.position.y,Be))}),Ce.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.position.x,Be))}),Ce.commitTransaction("alignTop")},it.prototype.alignBottom=function(){var Ce=this.diagram;Ce.startTransaction("aligning bottom");var Be=-1/0;Ce.selection.each(function(pe){if(!(pe instanceof go.Link)){var pt=pe.actualBounds.y+pe.actualBounds.height;Be=Math.max(pt,Be)}}),Ce.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.actualBounds.x,Be-pe.actualBounds.height))}),Ce.commitTransaction("aligning bottom")},it.prototype.alignCenterX=function(){var Ce=this.diagram,Be=Ce.selection.first();if(Be){Ce.startTransaction("aligning Center X");var pe=Be.actualBounds.x+Be.actualBounds.width/2;Ce.selection.each(function(pt){pt instanceof go.Link||pt.move(new go.Point(pe-pt.actualBounds.width/2,pt.actualBounds.y))}),Ce.commitTransaction("aligning Center X")}},it.prototype.alignCenterY=function(){var Ce=this.diagram,Be=Ce.selection.first();if(Be){Ce.startTransaction("aligning Center Y");var pe=Be.actualBounds.y+Be.actualBounds.height/2;Ce.selection.each(function(pt){pt instanceof go.Link||pt.move(new go.Point(pt.actualBounds.x,pe-pt.actualBounds.height/2))}),Ce.commitTransaction("aligning Center Y")}},it.prototype.alignColumn=function(Ce){var Be=this.diagram;Be.startTransaction("align Column"),Ce===void 0&&(Ce=0),Ce=parseFloat(Ce);var pe=new Array;Be.selection.each(function(Sn){Sn instanceof go.Link||pe.push(Sn)});for(var pt=0;pt<pe.length-1;pt++){var kt=pe[pt],Zt=kt.actualBounds.y+kt.actualBounds.height+Ce,kn=pe[pt+1];kn.move(new go.Point(kt.actualBounds.x,Zt))}Be.commitTransaction("align Column")},it.prototype.alignRow=function(Ce){Ce===void 0&&(Ce=0),Ce=parseFloat(Ce);var Be=this.diagram;Be.startTransaction("align Row");var pe=new Array;Be.selection.each(function(Sn){Sn instanceof go.Link||pe.push(Sn)});for(var pt=0;pt<pe.length-1;pt++){var kt=pe[pt],Zt=kt.actualBounds.x+kt.actualBounds.width+Ce,kn=pe[pt+1];kn.move(new go.Point(Zt,kt.actualBounds.y))}Be.commitTransaction("align Row")},it.prototype.canRotate=function(Ce){var Be=this.diagram;return!(Be===null||Be.isReadOnly||Be.isModelReadOnly||Be.selection.count<1)},it.prototype.rotate=function(Ce){Ce===void 0&&(Ce=90);var Be=this.diagram;Be.startTransaction("rotate "+Ce.toString());var Be=this.diagram;Be.selection.each(function(pe){pe instanceof go.Link||pe instanceof go.Group||(pe.angle+=Ce)}),Be.commitTransaction("rotate "+Ce.toString())},it.prototype.pullToFront=function(){var Ce=this.diagram;Ce.startTransaction("pullToFront");var Be=new go.Map;Ce.selection.each(function(pe){Be.set(pe.layer,0)}),Be.iteratorKeys.each(function(pe){var pt=0;pe.parts.each(function(kt){if(!kt.isSelected){var Zt=kt.zOrder;isNaN(Zt)?kt.zOrder=0:pt=Math.max(pt,Zt)}}),Be.set(pe,pt)}),Ce.selection.each(function(pe){it._assignZOrder(pe,Be.get(pe.layer)+1)}),Ce.commitTransaction("pullToFront")},it.prototype.pushToBack=function(){var Ce=this.diagram;Ce.startTransaction("pushToBack");var Be=new go.Map;Ce.selection.each(function(pe){Be.set(pe.layer,0)}),Be.iteratorKeys.each(function(pe){var pt=0;pe.parts.each(function(kt){if(!kt.isSelected){var Zt=kt.zOrder;isNaN(Zt)?kt.zOrder=0:pt=Math.min(pt,Zt)}}),Be.set(pe,pt)}),Ce.selection.each(function(pe){it._assignZOrder(pe,Be.get(pe.layer)-1-it._findGroupDepth(pe))}),Ce.commitTransaction("pushToBack")},it._assignZOrder=function(Ce,Be,pe){pe===void 0&&(pe=Ce),Ce.layer===pe.layer&&(Ce.zOrder=Be),Ce instanceof go.Group&&Ce.memberParts.each(function(pt){it._assignZOrder(pt,Be+1,pe)})},it._findGroupDepth=function(Ce){if(Ce instanceof go.Group){var Be=0;return Ce.memberParts.each(function(pe){Be=Math.max(Be,it._findGroupDepth(pe))}),Be+1}else return 0},it.prototype.doKeyDown=function(){var Ce=this.diagram;if(Ce!==null){var Be=Ce.lastInput;if(Be.key==="Up"||Be.key==="Down"||Be.key==="Left"||Be.key==="Right"){var pe=this.arrowKeyBehavior;if(pe==="none")return;if(pe==="select"){this._arrowKeySelect();return}else if(pe==="move"){this._arrowKeyMove();return}else if(pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},it.prototype._getAllParts=function(){var Ce=new Array;return this.diagram.nodes.each(function(Be){Ce.push(Be)}),this.diagram.parts.each(function(Be){Ce.push(Be)}),Ce},it.prototype._arrowKeyMove=function(){var Ce=this.diagram,Be=Ce.lastInput,pe=0,pt=0;if(Be.control||Be.meta)pe=1,pt=1;else if(Ce.grid!==null){var kt=Ce.grid.gridCellSize;pt=kt.width,pe=kt.height}Ce.startTransaction("arrowKeyMove"),Ce.selection.each(function(Zt){Be.key==="Up"?Zt.move(new go.Point(Zt.actualBounds.x,Zt.actualBounds.y-pe)):Be.key==="Down"?Zt.move(new go.Point(Zt.actualBounds.x,Zt.actualBounds.y+pe)):Be.key==="Left"?Zt.move(new go.Point(Zt.actualBounds.x-pt,Zt.actualBounds.y)):Be.key==="Right"&&Zt.move(new go.Point(Zt.actualBounds.x+pt,Zt.actualBounds.y))}),Ce.commitTransaction("arrowKeyMove")},it.prototype._arrowKeySelect=function(){var Ce=this.diagram,Be=Ce.lastInput,pe=null;Be.key==="Up"?pe=this._findNearestPartTowards(270):Be.key==="Down"?pe=this._findNearestPartTowards(90):Be.key==="Left"?pe=this._findNearestPartTowards(180):Be.key==="Right"&&(pe=this._findNearestPartTowards(0)),pe!==null&&(Be.shift?pe.isSelected=!0:Be.control||Be.meta?pe.isSelected=!pe.isSelected:Ce.select(pe))},it.prototype._findNearestPartTowards=function(Ce){var Be=this.diagram.selection.first();if(Be===null)return null;for(var pe=Be.actualBounds.center,pt=this._getAllParts(),kt=1/0,Zt=Be,kn=0;kn<pt.length;kn++){var Sn=pt[kn];if(Sn!==Be&&Sn.canSelect()){var Bn=Sn.actualBounds.center,na=pe.directionPoint(Bn),Ia=this._angleCloseness(na,Ce);if(Ia<=45){var ft=pe.distanceSquaredPoint(Bn);ft*=1+Math.sin(Ia*Math.PI/180),ft<kt&&(kt=ft,Zt=Sn)}}}return Zt},it.prototype._angleCloseness=function(Ce,Be){return Math.min(Math.abs(Be-Ce),Math.min(Math.abs(Be+360-Ce),Math.abs(Be-360-Ce)))},it.prototype._arrowKeyTree=function(){var Ce=this.diagram,Be=Ce.selection.first();if(Be instanceof go.Node){var pe=Ce.lastInput;if(pe.key==="Right"){if(!Be.isTreeLeaf)if(!Be.isTreeExpanded)Ce.commandHandler.canExpandTree(Be)&&Ce.commandHandler.expandTree(Be);else{var pt=this._sortTreeChildrenByY(Be).first();pt!==null&&Ce.select(pt)}}else if(pe.key==="Left")if(!Be.isTreeLeaf&&Be.isTreeExpanded)Ce.commandHandler.canCollapseTree(Be)&&Ce.commandHandler.collapseTree(Be);else{var kt=Be.findTreeParentNode();kt!==null&&Ce.select(kt)}else if(pe.key==="Up"){var kt=Be.findTreeParentNode();if(kt!==null){var Zt=this._sortTreeChildrenByY(kt),kn=Zt.indexOf(Be);if(kn>0){for(var Sn=Zt.elt(kn-1);Sn!==null&&Sn.isTreeExpanded&&!Sn.isTreeLeaf;){var Bn=this._sortTreeChildrenByY(Sn);Sn=Bn.last()}Sn!==null&&Ce.select(Sn)}else Ce.select(kt)}}else if(pe.key==="Down")if(Be.isTreeExpanded&&!Be.isTreeLeaf){var pt=this._sortTreeChildrenByY(Be).first();pt!==null&&Ce.select(pt)}else for(;Be!==null;){var kt=Be.findTreeParentNode();if(kt===null)break;var Zt=this._sortTreeChildrenByY(kt),kn=Zt.indexOf(Be);if(kn<Zt.length-1){Ce.select(Zt.elt(kn+1));break}else Be=kt}var na=Ce.selection.first();na!==null&&Ce.scrollToRect(na.actualBounds)}},it.prototype._sortTreeChildrenByY=function(Ce){var Be=new go.List().addAll(Ce.findTreeChildrenNodes());return Be.sort(function(pe,pt){var kt=pe.location,Zt=pt.location;return kt.y<Zt.y?-1:kt.y>Zt.y?1:kt.x<Zt.x?-1:kt.x>Zt.x?1:0}),Be},it.prototype.copyToClipboard=function(Ce){go.CommandHandler.prototype.copyToClipboard.call(this,Ce),this._lastPasteOffset.set(this.pasteOffset)},it.prototype.pasteFromClipboard=function(){var Ce=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Ce,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Ce},Object.defineProperty(it.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Ce){if(Ce!=="move"&&Ce!=="select"&&Ce!=="scroll"&&Ce!=="tree"&&Ce!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Ce);this._arrowKeyBehavior=Ce}}),Object.defineProperty(it.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Ce){if(!(Ce instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Ce);this._pasteOffset.set(Ce)}});var Ct=it,qt=oe(18023),Pt=oe(15746),Me=oe(33170),Ee={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},we=oe(67294),tt=(Ce,Be,pe)=>new Promise((pt,kt)=>{var Zt=Bn=>{try{Sn(pe.next(Bn))}catch(na){kt(na)}},kn=Bn=>{try{Sn(pe.throw(Bn))}catch(na){kt(na)}},Sn=Bn=>Bn.done?pt(Bn.value):Promise.resolve(Bn.value).then(Zt,kn);Sn((pe=pe.apply(Ce,Be)).next())});function qe({onCancel:Ce,callback:Be}){let pe=(0,te.useRef)(),pt=(0,te.useRef)(),kt=(0,te.useRef)(),Zt=(0,te.useRef)(!1);const kn=(0,te.useRef)(!1),[Sn,Bn]=(0,te.useState)(0);function na(){const ft=me.bx.make,Cn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};pe.current=new me.S0(pt.current,{padding:20,grid:ft(me.s_,"Grid",ft(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ft(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:st=>{var xt=st.diagram.commandHandler.addTopLevelParts(st.diagram.selection,!0);xt||st.diagram.currentTool.doCancel()},commandHandler:ft(Ct),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:st=>{var xt=st.subject;xt.location=xt.location.copy().snapToGridPoint(st.diagram.grid.gridOrigin,st.diagram.grid.gridCellSize),setTimeout(()=>{st.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:st=>{var xt=st.subject;setTimeout(()=>{st.diagram.commandHandler.editTextBlock()})},LinkRelinked:st=>{var xt=st.parameter.part;xt.invalidateConnectedLinks();var Yt=st.subject;st.diagram.toolManager.linkingTool.isForwards?Yt.toNode.invalidateConnectedLinks():Yt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pe.current.nodeTemplate=ft(me.NB,"Auto",{locationSpot:me.z6.Center,locationObjectName:"SHAPE",desiredSize:new me.$u(120,60),minSize:new me.$u(40,40),resizable:!0,resizeCellSize:new me.$u(10,10),rotatable:!0},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),new me.KX("desiredSize","size",me.$u.parse).makeTwoWay(me.$u.stringify),ft(me.bn,{name:"SHAPE",fill:Cn.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("figure"),new me.KX("fill"),new me.KX("stroke","borderColor"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ft(me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),ft(me.al,{margin:1,textAlign:"center",overflow:me.al.OverflowEllipsis,editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),pe.current.nodeTemplate.toolTip=ft("ToolTip",ft(me.s_,"Vertical",{maxSize:new me.$u(200,NaN)},ft(me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new me.KX("text")),ft(me.al,{font:"10pt sans-serif",textAlign:"center"},new me.KX("text","details"))));function ve(st,xt){var Yt=(St,Pn)=>{St.handled=!0,St.diagram.model.commit(vn=>{var sa=Pn.part.adornedPart,ca=new me.E9().setRectSpot(sa.actualBounds,st);ca.subtract(sa.location),ca.scale(2,2),ca.x+=Math.sign(ca.x)*130,ca.y+=Math.sign(ca.y)*130,ca.add(sa.location),ca.snapToGridPoint(St.diagram.grid.gridOrigin,St.diagram.grid.gridCellSize);var fa=vn.copyNodeData(sa.data);vn.setGroupKeyForNodeData(fa,vn.getGroupKeyForNodeData(sa.data)),vn.addNodeData(fa);var Fo={from:sa.key,to:vn.getKeyForNodeData(fa)};vn.addLinkData(Fo);var to=St.diagram.findNodeForData(fa);to.location=ca,St.diagram.select(to),setTimeout(()=>{St.diagram.commandHandler.editTextBlock()},20)})};return ft(me.bn,{figure:xt,alignment:st,alignmentFocus:st.opposite(),width:st.equals(me.z6.Top)||st.equals(me.z6.Bottom)?25:18,height:st.equals(me.z6.Top)||st.equals(me.z6.Bottom)?18:25,fill:"orange",stroke:Cn.white,strokeWidth:4,mouseEnter:(St,Pn)=>Pn.fill="dodgerblue",mouseLeave:(St,Pn)=>Pn.fill="orange",isActionable:!0,click:Yt,contextClick:Yt})}function We(st){return ft(me.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:(xt,Yt)=>Yt.fill="dodgerblue",mouseLeave:(xt,Yt)=>Yt.fill="orange",click:(xt,Yt)=>{xt.diagram.commandHandler.showContextMenu(Yt.part.adornedPart)}},st||{})}pe.current.nodeTemplate.selectionAdornmentTemplate=ft(me.uz,"Spot",ft(me.Vm,{padding:10}),ve(me.z6.Top,"TriangleUp"),ve(me.z6.Left,"TriangleLeft"),ve(me.z6.Right,"TriangleRight"),ve(me.z6.Bottom,"TriangleDown"),We({alignment:new me.z6(.75,0)}));function Ae(st,xt){return(Yt,St)=>{Yt.handled=!0,Yt.diagram.model.commit(Pn=>{Pn.set(St.part.adornedPart.data,st,xt)})}}function Ze(st,xt){return xt||(xt="color"),ft(me.bn,{width:16,height:16,stroke:"lightgray",fill:st,margin:1,background:"transparent",mouseEnter:(Yt,St)=>St.stroke="dodgerblue",mouseLeave:(Yt,St)=>St.stroke="lightgray",click:Ae(xt,st),contextClick:Ae(xt,st)})}function ht(){return[ft("ContextMenuButton",ft(me.s_,"Horizontal",Ze(Cn.white,"fill"),Ze(Cn.beige,"fill"),Ze(Cn.extralightblue,"fill"),Ze(Cn.extralightred,"fill"))),ft("ContextMenuButton",ft(me.s_,"Horizontal",Ze(Cn.lightgray,"fill"),Ze(Cn.lightgreen,"fill"),Ze(Cn.lightblue,"fill"),Ze(Cn.lightred,"fill")))]}function at(){return[ft("ContextMenuButton",ft(me.s_,"Horizontal",Ze(Cn.black),Ze(Cn.green),Ze(Cn.blue),Ze(Cn.red))),ft("ContextMenuButton",ft(me.s_,"Horizontal",Ze(Cn.white),Ze(Cn.magenta),Ze(Cn.purple),Ze(Cn.orange)))]}function ut(st,xt){return xt||(xt="thickness"),ft(me.bn,"LineH",{width:16,height:16,strokeWidth:st,margin:1,background:"transparent",mouseEnter:(Yt,St)=>St.background="dodgerblue",mouseLeave:(Yt,St)=>St.background="transparent",click:Ae(xt,st),contextClick:Ae(xt,st)})}function nt(st,xt){return xt||(xt="dash"),ft(me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:st,margin:1,background:"transparent",mouseEnter:(Yt,St)=>St.background="dodgerblue",mouseLeave:(Yt,St)=>St.background="transparent",click:Ae(xt,st),contextClick:Ae(xt,st)})}function Jt(){return[ft("ContextMenuButton",ft(me.s_,"Horizontal",ut(1),ut(2),ut(3),ut(4))),ft("ContextMenuButton",ft(me.s_,"Horizontal",nt(null),nt([2,4]),nt([4,4])))]}function It(st,xt){return xt||(xt="figure"),ft(me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:st,margin:1,background:"transparent",mouseEnter:(Yt,St)=>St.fill="dodgerblue",mouseLeave:(Yt,St)=>St.fill="lightgray",click:Ae(xt,st),contextClick:Ae(xt,st)})}pe.current.nodeTemplate.contextMenu=ft("ContextMenu",ft("ContextMenuButton",ft(me.s_,"Horizontal",It("Rectangle"),It("RoundedRectangle"),It("Ellipse"),It("Diamond"))),ft("ContextMenuButton",ft(me.s_,"Horizontal",It("Parallelogram2"),It("ManualOperation"),It("Procedure"),It("Cylinder1"))),ft("ContextMenuButton",ft(me.s_,"Horizontal",It("Terminator"),It("CreateRequest"),It("Document"),It("TriangleDown"))),ht(),at(),Jt()),pe.current.groupTemplate=ft(me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(st,xt)=>{var Yt=xt.addMembers(xt.diagram.selection,!0);Yt||xt.diagram.currentTool.doCancel()},avoidable:!1},new me.KX("location","loc",me.E9.parse).makeTwoWay(me.E9.stringify),ft(me.s_,"Auto",{name:"BODY"},ft(me.bn,{parameter1:10,fill:Cn.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:me.z6.AllSides,toSpot:me.z6.AllSides},new me.KX("fill"),new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ft(me.Vm,{background:"transparent",margin:20})),ft(me.al,{alignment:me.z6.Top,alignmentFocus:me.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new me.KX("text"),new me.KX("stroke","color"))),pe.current.groupTemplate.selectionAdornmentTemplate=ft(me.uz,"Spot",ft(me.s_,"Auto",ft(me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),ft(me.Vm,{margin:1.5})),We({alignment:me.z6.TopRight,alignmentFocus:me.z6.BottomRight})),pe.current.groupTemplate.contextMenu=ft("ContextMenu",ht(),at(),Jt()),pe.current.linkTemplate=ft(me.rU,{layerName:"Foreground",routing:me.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new me.KX("fromSpot","fromSpot",me.z6.parse),new me.KX("toSpot","toSpot",me.z6.parse),new me.KX("fromShortLength","dir",st=>st>=1?10:0),new me.KX("toShortLength","dir",st=>st>=1?10:0),new me.KX("points").makeTwoWay(),ft(me.bn,{strokeWidth:2},new me.KX("stroke","color"),new me.KX("strokeWidth","thickness"),new me.KX("strokeDashArray","dash")),ft(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,0),segmentOrientation:me.rU.OrientAlong,alignmentFocus:me.z6.Right,figure:"circle",width:10,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",st=>st===1)),ft(me.bn,{segmentIndex:-1,segmentOffset:new me.E9(-10,6),segmentOrientation:me.rU.OrientPlus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",st=>st>=1),new me.KX("width","thickness",st=>7+3*st),new me.KX("height","thickness",st=>7+3*st),new me.KX("segmentOffset","thickness",st=>new me.E9(-15,4+1.5*st))),ft(me.bn,{segmentIndex:0,segmentOffset:new me.E9(15,-6),segmentOrientation:me.rU.OrientMinus90,alignmentFocus:me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new me.KX("fill","color"),new me.KX("visible","dir",st=>st===2),new me.KX("width","thickness",st=>7+3*st),new me.KX("height","thickness",st=>7+3*st),new me.KX("segmentOffset","thickness",st=>new me.E9(-15,4+1.5*st))),ft(me.al,{alignmentFocus:new me.z6(0,1,-4,0),editable:!0},new me.KX("text").makeTwoWay(),new me.KX("stroke","color"))),pe.current.linkTemplate.selectionAdornmentTemplate=ft(me.uz,ft(me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:dn(2)},new me.KX("pathPattern","thickness",dn)),We({alignmentFocus:new me.z6(0,0,-6,-4)}));function dn(st){return ft(me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(st+4).toString()+" H3"})}function yn(st){var xt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return st===0?xt="M0 0 M16 16 M0 8 L16 8":st===2&&(xt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),ft(me.bn,{geometryString:xt,margin:2,background:"transparent",mouseEnter:(Yt,St)=>St.background="dodgerblue",mouseLeave:(Yt,St)=>St.background="transparent",click:Ae("dir",st),contextClick:Ae("dir",st)})}function $n(st){var xt=(Yt,St)=>{Yt.handled=!0,Yt.diagram.model.commit(Pn=>{var vn=St.part.adornedPart;Pn.set(vn.data,st?"toSpot":"fromSpot",me.z6.stringify(me.z6.AllSides)),(st?vn.toNode:vn.fromNode).invalidateConnectedLinks()})};return ft(me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Yt,St)=>St.background="dodgerblue",mouseLeave:(Yt,St)=>St.background="transparent",click:xt,contextClick:xt})}function Ye(st,xt){var Yt=0,St=me.z6.RightSide;st.equals(me.z6.Top)?(Yt=270,St=me.z6.TopSide):st.equals(me.z6.Left)?(Yt=180,St=me.z6.LeftSide):st.equals(me.z6.Bottom)&&(Yt=90,St=me.z6.BottomSide),xt||(Yt-=180);var Pn=(vn,sa)=>{vn.handled=!0,vn.diagram.model.commit(ca=>{var fa=sa.part.adornedPart;ca.set(fa.data,xt?"toSpot":"fromSpot",me.z6.stringify(St)),(xt?fa.toNode:fa.fromNode).invalidateConnectedLinks()})};return ft(me.bn,{alignment:st,alignmentFocus:st.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Yt,background:"transparent",mouseEnter:(vn,sa)=>sa.background="dodgerblue",mouseLeave:(vn,sa)=>sa.background="transparent",click:Pn,contextClick:Pn})}pe.current.linkTemplate.contextMenu=ft("ContextMenu",at(),Jt(),ft("ContextMenuButton",ft(me.s_,"Horizontal",yn(0),yn(1),yn(2))),ft("ContextMenuButton",ft(me.s_,"Horizontal",ft(me.s_,"Spot",$n(!1),Ye(me.z6.Top,!1),Ye(me.z6.Left,!1),Ye(me.z6.Right,!1),Ye(me.z6.Bottom,!1)),ft(me.s_,"Spot",{margin:new me.Zt(0,0,0,2)},$n(!0),Ye(me.z6.Top,!0),Ye(me.z6.Left,!0),Ye(me.z6.Right,!0),Ye(me.z6.Bottom,!0)))));const $a=`{ "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 ba=["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 Da(st){return console.log("shapeName:",st),ba.indexOf(st)>=0}var aa=new me.YI(kt.current,{maxSelectionCount:1,linkTemplate:ft(me.rU,{locationSpot:me.z6.Center,selectionAdornmentTemplate:ft(me.uz,"Link",{locationSpot:me.z6.Center},ft(me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),ft(me.bn,{toArrow:"Standard",stroke:null}))},{routing:me.rU.AvoidsNodes,curve:me.rU.JumpOver,corner:5,toShortLength:4},new me.KX("points"),ft(me.bn,{isPanelMain:!0,strokeWidth:2}),ft(me.bn,{toArrow:"Standard",stroke:null})),model:new me.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...me.bn.getFigureGenerators().toArray().map(st=>({text:"\u672A\u547D\u540D",size:"100 100",figure:st.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pe.current.addDiagramListener("TextEdited",function(st){var xt;const Yt=st.subject.part;var St=(xt=document.activeElement)==null?void 0:xt.value;typeof St=="string"&&St.trim()===""&&pe.current.model.commit(function(Pn){Pn.set(Yt.data,"text","\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}),aa.nodeTemplate=ft(me.NB,"Auto",{locationSpot:me.z6.Center},new me.KX("location","location",me.E9.parse).makeTwoWay(me.E9.stringify),ft(me.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 me.KX("stroke").makeTwoWay(),new me.KX("fill").makeTwoWay(),new me.KX("figure")),ft(me.al,{margin:new me.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new me.$u(16,16),maxSize:new me.$u(10,NaN),textAlign:"center",editable:!0},new me.KX("key").makeTwoWay())),setTimeout(()=>{pe.current.grid=ft(me.s_,"Grid",ft(me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),ft(me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),pe.current.grid.visible=!0,pe.current.grid.gridCellStroke="darkgray",pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=pe.current,pe.current}const Ia=()=>tt(this,null,function*(){var ft=pe.current.makeImage();const Cn=yield(0,Me.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:ft.src}});Be({src:Cn.url})});return(0,te.useEffect)(()=>(setTimeout(()=>{na()},500),Bn(Sn+1),()=>{pe.current=null}),[]),we.createElement("div",{ref:kn,className:Zt.current?`${Ee.maxH60} body-overflow-initial`:"body-overflow-initial"},we.createElement(ze.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Sn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:we.createElement(rt.Z,null,we.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),we.createElement(Pt.Z,{onClick:()=>{var ft,Cn,ve=pe.current.selection.first();if(Zt.current=!Zt.current,document.activeElement&&ve){let We=(Cn=(ft=document.activeElement)==null?void 0:ft.value)==null?void 0:Cn.trim();typeof We=="string"&&pe.current.model.commit(function(Ae){Ae.set(ve.data,"text",We||"\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}Bn(Sn+1)}},we.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Ce},we.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ee.flowChartWrp},we.createElement("div",{style:{display:"flex",height:"100%"}},we.createElement("div",{style:{width:"300px",height:"100%"}},we.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),we.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ee.myPaletteDiv,ref:kt})),we.createElement("div",{style:{flex:1,position:"relative"}},we.createElement("div",{ref:pt,style:{height:"80vh"}}))),we.createElement("div",{className:"tr"},we.createElement(He.ZP,{size:"large",onClick:Ia,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var vt=qe,Rt=oe(78045),Gt=oe(31795);const en=Rt.ZP.Group,ln={margin:"0 8px"};var sn=({callback:Ce,onCancel:Be})=>{function pe(pt){Ce(pt)}return te.createElement(ce.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pe},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:ln},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:ln},"\u884C\u6570"),te.createElement(ce.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(Gt.Z,null)),te.createElement("span",{style:ln},"\u5217\u6570"),te.createElement(ce.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(Gt.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:ln},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(ce.default.Item,{name:"align"},te.createElement(en,null,te.createElement(Rt.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(Rt.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(Rt.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(Rt.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(He.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(He.ZP,{type:"ghost",onClick:Be},"\u53D6\u6D88")))},Tt=oe(47897),Mt=oe(61016),Qt=oe.n(Mt),xn=(0,te.forwardRef)(({use3d:Ce,width:Be,height:pe,callback:pt,showSaveButton:kt},Zt)=>{const kn=(0,te.useRef)(),Sn=(0,te.useRef)(),[Bn,na]=(0,te.useState)(!1),Ia=(0,te.useRef)({id:kn,appName:"graphing",width:Be||1e3,height:pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{Sn.current=new(Qt())(Ia.current,!0),window.onload=function(){Sn.current.inject("applet_container")}},[]);const ft=()=>{var Cn=window.ggbApplet.getPNGBase64(1,!0,72);return pt&&pt(Cn),Cn};return(0,te.useEffect)(()=>{Ia.current.appName=Bn?"3D":"graphing",Sn.current.inject("applet_container")},[Bn]),(0,te.useEffect)(()=>{na(Ce)},[Ce]),(0,te.useImperativeHandle)(Zt,()=>({getImgData:ft})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:kn}),te.createElement(rt.Z,{align:"middle"},te.createElement(Pt.Z,{flex:1},te.createElement(Tt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Bn,onChange:Cn=>na(Cn)})),te.createElement(Pt.Z,null,te.createElement(He.ZP,{size:"large",onClick:ft,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),pn=oe(36527),Le=oe(25934),Ge=oe(2453);const ot="link",bt="upload-image",$t="add-flowchart",nn="draw-image",on="add-flowchart",jt="code-block",Xt="add-table",bn="------------",gn={default:bn,left:`:${bn}`,center:`:${bn}:`,right:`${bn}:`};var Zn=oe(99914),Kn=(Ce,Be,pe)=>new Promise((pt,kt)=>{var Zt=Bn=>{try{Sn(pe.next(Bn))}catch(na){kt(na)}},kn=Bn=>{try{Sn(pe.throw(Bn))}catch(na){kt(na)}},Sn=Bn=>Bn.done?pt(Bn.value):Promise.resolve(Bn.value).then(Zt,kn);Sn((pe=pe.apply(Ce,Be)).next())});function Xn(){}let la=0;const Dn=1e4,An="\u2581",Yn="@\u2581\u2581@",ua="@\u2581@",ma=`
|
|
**\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`,Rn=["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 Pa(Ce){return/^\d+$/.test(Ce)?`${Ce}px`:Ce}const ta=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Ua={[ta+"-B"]:"bold",[ta+"-I"]:"italic"},eo={[ot]:"\u6DFB\u52A0\u94FE\u63A5",[jt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[bt]:"\u6DFB\u52A0\u56FE\u7247",[nn]:"\u6DFB\u52A0\u753B\u56FE",[$t]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qa=({defaultValue:Ce="",onChange:Be,width:pe="100%",height:pt=400,miniToolbar:kt=!1,isFocus:Zt=!1,watch:kn,insertTemp:Sn,mode:Bn="markdown",id:na="markdown-editor-id",showResizeBar:Ia=!1,noStorage:ft=!1,showNullButton:Cn=!1,showNullProgramButton:ve=!1,hidetoolBar:We=!1,fullScreen:Ae=!1,onBlur:Ze,onCMBeforeChange:ht,onFullScreen:at,className:ut="",disablePaste:nt=!1,disabled:Jt=!1,disabledFill:It=!1,placeholder:dn="",values:yn="",extraUse:$n})=>{const[Ye,$a]=(0,te.useState)(null),[ba,Da]=(0,te.useState)(Ce),[aa,st]=(0,te.useState)(kn),[xt,Yt]=(0,te.useState)(Ae),[St,Pn]=(0,te.useState)(""),[vn,sa]=(0,te.useState)(0),[ca,fa]=(0,te.useState)(pt),[Fo,to]=(0,te.useState)(!1),Io=(0,te.useRef)((0,Le.Z)()),xo=(0,te.useRef)(!1),Va=(0,te.useRef)(),[va,io]=(0,te.useState)(0),[po,yo]=(0,te.useState)(0),Ka=(0,te.useRef)(),Ra=(0,te.useRef)(),fo=(0,te.useRef)(),un=(0,te.useRef)(),pa=()=>Kn(void 0,null,function*(){var Ht;const Lt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Io.current}});(Ht=Lt==null?void 0:Lt.attachments)!=null&&Ht.length&&(console.log("cm:",Ye,Ka),Lt.attachments.map(Ot=>{Ot.content_type.indexOf("image")>-1?Ye.replaceSelection(``):Ot.content_type.indexOf("video")>-1?Ye.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ot.content_type.indexOf("pdf")>-1?Ye.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ot.id}?type=${Ot.content_type}&disposition=inline" target="_blank">${Ot.name}</a>`):Ye.replaceSelection(`[${Ot.name}](${ENV.API_SERVER}/api/attachments/${Ot.id}?type=${Ot.content_type})`)}))});(0,te.useEffect)(()=>{const Ht=window.scrollY||window.pageYOffset;Da(yn),Ye==null||Ye.setValue(yn),window.scrollTo(0,Ht)},[yn]),(0,te.useEffect)(()=>{at==null||at(xt)},[xt]),(0,te.useEffect)(()=>{if(Ka.current){let Ht=function(Ot,Dt){var Gn;if(nt){Dt.preventDefault();return}const Sa=Dt.clipboardData;if(Sa){const ka=Sa.types.toString(),Ma=Sa.items;if(ka==="Files"||Sa.types.indexOf("Files")>-1){if(Dt.preventDefault(),Bn=="stex")return;try{let xa=Ma[1];((Gn=Ma[0])==null?void 0:Gn.kind)==="file"&&(xa=Ma[0]);const an=xa.getAsFile(),Fn=an.name.split(".").pop();(0,ye.I)(an,zn=>{var En,Wn,Ba;zn.id?((En=an==null?void 0:an.type)==null?void 0:En.indexOf("image"))>-1?Lt.replaceSelection(`<img width="100%" src="/api/attachments/${zn.id}?type=${zn.content_type})" alt="" />`):((Wn=an==null?void 0:an.type)==null?void 0:Wn.indexOf("video"))>-1?Lt.replaceSelection(`<video width="100%" controls src="/api/attachments/${zn.id}"></video>`):((Ba=an==null?void 0:an.type)==null?void 0:Ba.indexOf("pdf"))>-1?Lt.replaceSelection(`<a href="/api/attachments/${zn.id}?type=${an.type}&disposition=inline" target="_blank">${an.name}</a>`):Rn.includes(Fn)?Lt.replaceSelection(`<a href="/api/attachments/${zn.id}?type=office&disposition=inline" target="_blank">${an.name}</a>`):Lt.replaceSelection(`[${an.name}](/api/attachments/${zn.id}?type=${zn.content_type})`):(zn==null?void 0:zn.status)===401&&(Ge.ZP.warning((zn==null?void 0:zn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(xa){Ge.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Lt=Xe().fromTextArea(Ka.current,{mode:Bn,lineNumbers:!kt,lineWrapping:!0,value:Ce,autoCloseTags:!ve,autoCloseBrackets:!0});return Lt.on("keyup",function(Ot,Dt){Dt.keyCode===8&&(Ot.getValue()==""?Lt.setOption("placeholder",dn):Lt.setOption("placeholder",null))}),Lt.on("keydown",function(Ot,Dt){if(Dt.keyCode===8){var Gn=Na(Ot);Gn&&Dt.preventDefault()}}),Zt&&Lt.focus(),Lt.on("paste",Ht),Lt.on("dragleave",function(Ot,Dt){Ra.current.classList.remove("mouse-hover-md")}),Jt&&Lt.on("beforeChange",function(Ot,Dt){(Dt.origin==="paste"||Dt.origin==="+input")&&Dt.cancel()}),$a(Lt),()=>{Lt.off("paste",Ht)}}},[]);const Fa=(0,te.useCallback)(()=>{if(Ra.current)try{}catch(Ht){console.log(Ht,"---- to set md editor body height")}},[ca,Ra,xt]);(0,te.useEffect)(()=>{function Ht(){let Lt=new Ie.Z(Ot=>{for(let Dt of Ot)(Dt.target.offsetHeight>0||Dt.target.offsetWidth>0)&&(Fa(),Ye.setSize("100%","100%"),Ye.refresh())});return Lt.observe(Ka.current.parentElement),Lt}if(Ye){const Lt=Ht();return()=>{var Ot,Dt;(Ot=Ka.current)!=null&&Ot.parentElement&&Lt.unobserve((Dt=Ka.current)==null?void 0:Dt.parentElement)}}},[Ye,Fa]),(0,te.useEffect)(()=>{if(Ye){let Ht=[];for(const[Lt,Ot]of Object.entries(Ua)){let Dt={[Lt]:()=>{Ja(Ot)}};Ht.push(Dt),Ye.addKeyMap(Dt)}return Va.current=setInterval(()=>{xo.current&&pa()},4e3),()=>{clearInterval(Va.current);for(let Lt of Ht)Ye.removeKeyMap(Lt)}}},[Ye]),(0,te.useEffect)(()=>{Ae!==xt&&Yt(Ae)},[Ae]),(0,Zn.Z)(()=>{if(!ft&&vn>0){let Ht=new Date().getTime(),Lt=window.sessionStorage.getItem(na);Ht>=vn+Dn&&(!Lt||Lt!==ba)&&(window.sessionStorage.setItem(na,ba),to(!0))}},Dn),(0,te.useEffect)(()=>{st(kn)},[Ye,kn]),(0,te.useEffect)(()=>{Ye&&Zt&&Ye.focus()},[Ye,Zt]),(0,te.useEffect)(()=>{if(aa&&Ye){let Ht=function(Ot){let Dt=Ot.target;if(un.current){let Gn=Dt.scrollTop/Dt.scrollHeight;un.current.scrollTop=un.current.scrollHeight*Gn}};const Lt=Ye.getScrollerElement();return Lt.addEventListener("scroll",Ht),()=>{Lt.removeEventListener("scroll",Ht)}}},[Ye,aa]),(0,te.useEffect)(()=>{if(Ye&&ht){let Ht=function(Lt,Ot){ht(Lt,Ot)};return Ye.on("beforeChange",Ht),()=>{Ye.off("beforeChange",Ht)}}},[Ye,ht]),(0,te.useEffect)(()=>{if(Ye&&Ze){let Ht=function(){Ze(Ye.getValue())};return Ye.on("blur",Ht),()=>{Ye.off("blur",Ht)}}},[Ye,Ze]);function Na(Ht,Lt){var Ot=Ht.getDoc(),Dt=Ot.getCursor(),Gn=Ot.getLine(Dt.line),Sa=Gn.charAt(Dt.ch-1),ka=Gn.lastIndexOf("@\u2581@",Dt.ch),Ma=Gn.lastIndexOf("@\u2581\u2581@",Dt.ch),xa=ka>Ma?ka:Ma,an=ka>Ma?3:4;if(Yn.indexOf(Sa)===-1)return null;if(console.log("change1:",Lt,Ht,Gn,Dt,xa,ka,Ma,Sa),xa>=0&&Dt.ch-xa<5){var Fn=xa+an;return Ot.replaceRange("",{line:Dt.line,ch:xa},{line:Dt.line,ch:Fn}),{line:Dt.line,ch:Fn}}return null}(0,te.useEffect)(()=>{if(Ye){let Ht=function(Lt,Ot){const Dt=Lt.getValue();Da(Dt),sa(new Date().getTime()),Lt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Be&&(ve?Be(Dt,Qo(Dt)):Be(Dt))};return Ye.on("change",Ht),()=>{Ye.off("change",Ht)}}},[Ye,Be]),(0,te.useEffect)(()=>{if(Ye)if(Ce==null)Ye.setValue(""),Da("");else{const Ht=window.scrollY||window.pageYOffset;Ce!==Ye.getValue()&&(Ye.setValue(Ce),Da(Ce),Ye.setCursor(Jt?1:Ye.lineCount(),0),window.scrollTo(0,Ht))}},[Ye,Ce]);const Ja=(0,te.useCallback)(Ht=>{const Lt=Ye.getCursor(),Ot=Ye.getSelection();let Dt=Ot.split(`
|
|
`);switch(Ht){case"bold":return Ye.replaceSelection("**"+Ot+"**"),Ot===""&&Ye.setCursor(Lt.line,Lt.ch+2),Ye.focus();case"italic":return Ye.replaceSelection("*"+Ot+"*"),Ot===""&&Ye.setCursor(Lt.line,Lt.ch+1),Ye.focus();case"code":return Ye.replaceSelection("`"+Ot+"`"),Ot===""&&Ye.setCursor(Lt.line,Lt.ch+1),Ye.focus();case"inline-latex":return Pn("inline-latex"),Ye.focus();case"latex":return Ye.replaceSelection("```latex\n"+Ot+"\n```"),Ye.setCursor(Lt.line+1,Ot.length+1),Ye.focus();case"line-break":return Ye.replaceSelection(`<br/>
|
|
`),Ye.focus();case"list-ul":return Ot===""?Ye.replaceSelection("- "+Ot):Ye.replaceSelection(Dt.map(Gn=>Gn===""?"":`- ${Gn}`).join(`
|
|
`)),Ye.focus();case"list-ol":return Ot===""?Ye.replaceSelection("1. "+Ot):Ye.replaceSelection(Dt.map((Gn,Sa)=>Gn===""?"":`${Sa+1}. ${Gn}`).join(`
|
|
`)),Ye.focus();case"add-null-ch":return Ot===""&&Ye.setCursor(Lt.line,Lt.ch),Ye.replaceSelection(An),Ye.focus();case"add-signal":return Ot===""&&Ye.setCursor(Lt.line,Lt.ch),Ye.replaceSelection(ua),Ye.focus();case"add-multiple":return Ot===""&&Ye.setCursor(Lt.line,Lt.ch),Ye.replaceSelection(Yn),Ye.focus();case"inster-template-1":return Ot===""&&Ye.setCursor(Lt.line,Lt.ch),Ye.replaceSelection(ma),Ye.focus();case"eraser":return Ye.setValue(""),Ye.focus();case"trigger-watch":return st(!aa),Ye.focus();case"trigger-full-screen":return Yt(!xt),Ye.focus();case ot:Pn(ot);return;case jt:Pn(jt);return;case bt:Pn(bt);return;case nn:Pn(nn);return;case"maths-latex":Pn("maths-latex");return;case $t:Pn($t);return;case Xt:Pn(Xt);return;default:throw new Error}},[Ye,aa,xt]),La=(0,te.useCallback)((Ht,Lt)=>{var Ot,Dt,Gn,Sa,ka,Ma;switch(Pn(""),St){case ot:const{title:En,link:Wn}=Ht;return Ye.replaceSelection(`[${En}](${Wn})`),Ye.focus();case jt:const{language:Ba,content:bo}=Ht;return Ye.replaceSelection(["```"+Ba,bo,"```"].join(`
|
|
`)),Ye.focus();case"maths-latex":for(var xa=atob(Ht),an=new Uint8Array(xa.length),Fn=0;Fn<xa.length;Fn++)an[Fn]=xa.charCodeAt(Fn);var zn=new Blob([an],{type:"image/png"});(0,ye.I)(zn,lo=>{lo.id?Ye.replaceSelection(``):(lo==null?void 0:lo.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ye.replaceSelection("`$$"+Ht+"$$`");break;case bt:case nn:case on:const{src:ao,alt:Lo}=Ht,Oa=Lt,Tr=(Gn=(Dt=(Ot=Oa==null?void 0:Oa.name)==null?void 0:Ot.split("."))==null?void 0:Dt.pop)==null?void 0:Gn.call(Dt);return((Sa=Oa==null?void 0:Oa.type)==null?void 0:Sa.indexOf("image"))>-1||!(Oa!=null&&Oa.type)?Oa.align||Oa.width?Ye.replaceSelection(`<p style="text-align:${Oa.align||"initial"}"><img width="${Oa.width?Oa.width+"%":"initial"}" src="${ao}" alt="${Lo||""}" /></p>`):Ye.replaceSelection(`<img width="100%" src="${ao}" alt="${Lo||""}" />`):((ka=Oa==null?void 0:Oa.type)==null?void 0:ka.indexOf("video"))>-1?Ye.replaceSelection(`<video width="100%" controls src="${ao}"></video>`):((Ma=Oa==null?void 0:Oa.type)==null?void 0:Ma.indexOf("pdf"))>-1?Ye.replaceSelection(`<a href="${ao}?type=${Oa.type}&disposition=inline" target="_blank">${Oa.name}</a>`):Rn.includes(Tr)?Ye.replaceSelection(`<a href="${ao}?type=office&disposition=inline" target="_blank">${Oa.name}</a>`):Ye.replaceSelection(`[${Oa.name}](${ao})`),Ye.focus();case Xt:const{row:Gr,col:cr,align:Er}=Ht;let qo=`
|
|
`;for(let lo=0;lo<Gr;lo++){let Ir=[],fr=[];for(let Dr=0;Dr<cr;Dr++)lo===1&&fr.push(gn[Er]),Ir.push(" ");lo===1&&(qo+=`| ${fr.join(" | ")} |
|
|
`),qo+=`| ${Ir.join(cr===1?"":" | ")} |
|
|
`}return Ye.replaceSelection(qo+`
|
|
`),Ye.focus();default:throw new Error}},[Ye,St]),Wo=(0,te.useMemo)(()=>{switch(St){case ot:return te.createElement(dt,{callback:La,onCancel:wa});case jt:return te.createElement(Nt.Z,{callback:La,onCancel:wa});case bt:return te.createElement(ye.Z,{callback:La,onCancel:wa});case $t:return te.createElement(vt,{callback:La,onCancel:wa});case Xt:return te.createElement(sn,{callback:La,onCancel:wa});case"maths-latex":return te.createElement(xn,{showSaveButton:!0,callback:La});case"inline-latex":return te.createElement(pn.Z,{showSaveButton:!0,callback:La});default:return null}},[St]);function wa(){Pn("")}(0,te.useEffect)(()=>{if(fo.current){let Ht=function(ka){Gn=!0,Sa=ka.pageY},Lt=function(){Gn=!1},Ot=function(ka){if(Gn){let Ma=ka.pageY-Sa;Ma<0&&(Ma=0),Ma>300&&(Ma=300);let xa=pt+Ma+"px";fa(xa)}},Dt=fo.current,Gn=!1,Sa=0;return Dt.addEventListener("mousedown",Ht),document.addEventListener("mousemove",Ot),document.addEventListener("mouseup",Lt),()=>{Dt.removeEventListener("mousedown",Ht),document.removeEventListener("mousemove",Ot),document.removeEventListener("mouseup",Lt)}}},[Ye,fo]),(0,te.useEffect)(()=>{fa(pt)},[pt]);const Qn=Pa(pe),Jn=Pa(ca),no={width:Qn,height:Jn},Do=(0,te.useMemo)(()=>{if(vn){let Ht=new Date(vn),Lt=Ht.getHours(),Ot=Ht.getMinutes(),Dt=Ht.getSeconds();return Lt=Lt<10?"0"+Lt:Lt,Ot=Ot<10?"0"+Ot:Ot,Dt=Dt<10?"0"+Dt:Dt,`${Lt}:${Ot}:${Dt}`}return 0},[vn]),Qo=Ht=>{const Lt=[];if(ve){let Ot=-1;Ht=Ht.replace(/(@▁▁@|@▁@)/g,function(Dt,Gn,Sa){Lt.push({multiLine:Dt!==ua})})}return Lt};function Lr(){window.sessionStorage.removeItem(na),to(!1),sa(0)}function wr(){to(!1),sa(0),Ye.setValue(window.sessionStorage.getItem(na))}(0,te.useEffect)(()=>{eo[St]&&St!==nn&&St!==$t&&setTimeout(()=>{const Ht=document.getElementsByClassName("markdown-popup-form")[0],Lt=window.innerWidth/2-Ht.offsetWidth/2,Ot=window.innerHeight/2-Ht.offsetHeight/2;io(Lt),yo(Ot)},0)},[St]);const Jo=Ht=>{Ht.preventDefault();const Lt=Ht.clientX-va,Ot=Ht.clientY-po;document.body.onmousemove=Dt=>{let Gn=Dt.clientX-Lt,Sa=Dt.clientY-Ot;const ka=document.getElementsByClassName("markdown-popup-form")[0],Ma=window.innerWidth-ka.offsetWidth,xa=window.innerHeight-ka.offsetHeight;Gn=Math.max(0,Math.min(Gn,Ma)),Sa=Math.max(0,Math.min(Sa,xa)),mr(Dt.clientX,Dt.clientY,Lt,Ot)&&(io(Gn),yo(Sa))},document.body.onmouseup=function(){document.body.onmousemove=null}},mr=(Ht,Lt,Ot,Dt)=>{const Gn=document.body.clientHeight,Sa=document.body.clientWidth;return Ht<20&&Ot>Ht||Ht>Sa-20&&Ot<Ht||Lt<20&&Dt>Lt||Lt>Gn-20&&Dt<Lt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return te.createElement(te.Fragment,null,te.createElement("div",{className:"markdown-editor-wrapper",ref:Ra},te.createElement("div",{className:`markdown-editor-container ${ut} ${aa?"on-preview":""} ${kt?"mini":""} ${xt?"full-screen":""}`,style:no},te.createElement(de,{insertTemp:Sn,watch:aa,fullScreen:xt,showNullButton:Cn,showNullProgramButton:ve,onActionCallback:Ja,hidetoolBar:We,extraUse:$n}),te.createElement("div",{className:"markdown-editor-body"},te.createElement("div",{className:"codemirror-container"},te.createElement("textarea",{ref:Ka,placeholder:dn})),aa?te.createElement("div",{ref:un,className:"preview-container"},Bn==="stex"&&te.createElement(je,{value:ba}),Bn!=="stex"&&te.createElement(Ke.Z,{disabledFill:It,showProgramFill:ve,value:ba})):null))),Ia?te.createElement("a",{ref:fo,className:"editor-resize"}):null,St===nn&&te.createElement(lt,{callback:La,onCancel:wa}),St===$t&&te.createElement(vt,{callback:La,onCancel:wa}),te.createElement(he.Z,null,eo[St]&&St!==nn&&St!==$t?te.createElement(ze.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:va,top:po},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:Jo},eo[St]),open:!0,onCancel:wa,footer:null,destroyOnClose:!0,width:St===$t?"1200px":null,height:St===$t?"80vh":null,className:"markdown-popup-form"},Wo):null))}},70859:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return ge},I:function(){return he}});var te=oe(22150),Pe=oe(2453),Xe=oe(69677),Ie=oe(93421),fe=oe(31795),Fe=oe(78045),ue=oe(71577),Ne=oe(15476),Oe=oe(67294),xe=oe(52262),Ke=oe(67294),je=Object.defineProperty,De=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(ce,Re,He)=>Re in ce?je(ce,Re,{enumerable:!0,configurable:!0,writable:!0,value:He}):ce[Re]=He,x=(ce,Re)=>{for(var He in Re||(Re={}))y.call(Re,He)&&b(ce,He,Re[He]);if(a)for(var He of a(Re))E.call(Re,He)&&b(ce,He,Re[He]);return ce},z=(ce,Re)=>De(ce,ae(Re));const{useForm:ee}=te.default,ne={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:ce,onCancel:Re})=>{const[He]=ee();let Et=(0,Oe.useRef)();function zt(Ue){Et.current.width=He.getFieldValue("width"),Et.current.align=He.getFieldValue("align"),ce(Ue,Et.current)}function Ut(Ue,ke){if(Ue.status===-1){Pe.ZP.error(Ue.message);return}He.setFieldsValue({src:`/api/attachments/${Ue.id}`,type:ke.type})}function be(Ue){let ke=Ue.target.files[0];Et.current=ke,he(ke,Ut)}return Ke.createElement(te.default,z(x({form:He},re),{className:"upload-image-panel",onFinish:zt,style:{width:470,overflow:"hidden"}}),Ke.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ke.createElement("div",{className:"flex-container"},Ke.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ke.createElement(Xe.default,{style:ne})),Ke.createElement(de,{onFileChange:be}))),Ke.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ke.createElement(Xe.default,{style:{width:264}})),Ke.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ke.createElement(Ie.Z,null,Ke.createElement(te.default.Item,{name:"width",style:{margin:0}},Ke.createElement(fe.Z,{style:{width:264}})),Ke.createElement("span",{className:"ml8"},"%"))),Ke.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ke.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"}]})),Ke.createElement("aside",null,Ke.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ke.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ke.createElement(ue.ZP,{type:"default",onClick:Re},"\u53D6\u6D88"))))};function de({onFileChange:ce}){return Ke.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ke.createElement("input",{type:"file",onChange:ce}))}function he(ce,Re){if(!ce)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,xe.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let He=new FormData;He.append("editormd-image-file",ce),He.append("file_param_name","editormd-image-file"),He.append("byxhr","true");var Et=new window.XMLHttpRequest;Et.withCredentials=!0,Et.addEventListener("load",function(zt){Re(JSON.parse(zt.target.responseText),ce)},!1),Et.addEventListener("error",function(zt){console.error(zt)},!1),Et.open("POST",`${Ne.KI}/api/attachments.json`),Et.send(He)}},76621:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return Xe}});var te=oe(67294),Pe=oe(73935);class Xe extends te.Component{constructor(fe){super(fe);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:fe}=this.props;return(0,Pe.createPortal)(fe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return Pe}});var te=oe(67294);function Pe(Xe,Ie){const fe=(0,te.useRef)();(0,te.useEffect)(()=>{fe.current=Xe}),(0,te.useEffect)(()=>{function Fe(){fe.current()}if(Ie!==null){let ue=setInterval(Fe,Ie);return()=>clearInterval(ue)}},[Ie])}},40980:function(Te,mt,oe){"use strict";oe.r(mt),oe.d(mt,{default:function(){return Et}});var te=oe(67294),Pe=oe(35973),Xe=oe(22150),Ie=oe(2453),fe=oe(85673),Fe=oe(69677),ue=oe(71230),Ne=oe(15746),Oe=oe(31795),xe=oe(84567),Ke=oe(71577),je=oe(28706),De=oe(35567),ae=oe(86763),a={bg:"bg___wrwMu",flexRow:"flexRow___tXDGx",flexJustifyCenter:"flexJustifyCenter___FJrBL",flexAlignEnd:"flexAlignEnd___Y_tEj",flexAlignCenter:"flexAlignCenter___KQIWk",flexColumn:"flexColumn___bt5NB",formWrap:"formWrap___zb3yW",titleWrap:"titleWrap___Tqypo",fieldWrap:"fieldWrap___LZQ8o",mdWrap:"mdWrap___oYoPg",backgroundFa:"backgroundFa___ilebm",button:"button___JhLyG"},y=oe(65866),E=oe(10191),b=oe(33170),x=Object.defineProperty,z=Object.defineProperties,ee=Object.getOwnPropertyDescriptors,ne=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,de=(zt,Ut,be)=>Ut in zt?x(zt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:be}):zt[Ut]=be,he=(zt,Ut)=>{for(var be in Ut||(Ut={}))re.call(Ut,be)&&de(zt,be,Ut[be]);if(ne)for(var be of ne(Ut))ge.call(Ut,be)&&de(zt,be,Ut[be]);return zt},ce=(zt,Ut)=>z(zt,ee(Ut)),Re=(zt,Ut,be)=>new Promise((Ue,ke)=>{var gt=_e=>{try{Je(be.next(_e))}catch(dt){ke(dt)}},ct=_e=>{try{Je(be.throw(_e))}catch(dt){ke(dt)}},Je=_e=>_e.done?Ue(_e.value):Promise.resolve(_e.value).then(gt,ct);Je((be=be.apply(zt,Ut)).next())});const He=({shixunHomeworks:zt,newCourse:Ut,globalSetting:be,loading:Ue,user:ke,dispatch:gt})=>{var ct,Je,_e,dt;const Nt=(0,Pe.useParams)(),[ye]=Xe.default.useForm(),[ze,rt]=(0,te.useState)({}),Bt=(0,te.useRef)(),{commonHomeWorkAddDefaultData:et}=zt;let[lt,me]=(0,te.useState)({});(0,te.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:qt,categoryId:Pt}=Nt;gt({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:Pt,coursesId:qt,type:3}})},[]);const it=qt=>Re(void 0,null,function*(){var Pt,Me;if(ze.min_num>ze.max_num){Ie.ZP.info("\u6700\u5927\u4EBA\u6570\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u4EBA\u6570");return}const Ee=he({},ze);Ee.attachment_ids&&(Ee.attachment_ids=(Pt=Ee==null?void 0:Ee.attachment_ids)==null?void 0:Pt.map(vt=>vt.response.id)),Ee.reference_attachment_ids&&(Ee.reference_attachment_ids=(Me=Ee==null?void 0:Ee.reference_attachment_ids)==null?void 0:Me.map(vt=>vt.response.id));const{coursesId:we,categoryId:tt}=Nt,qe=yield(0,ae.H1)(ce(he({coursesId:we,category:tt},Ee),{type:3}));qe.status===0&&(Ct(qe.homework_id),(0,je.L9)(["\u6559\u5B66\u8BFE\u5802","\u5206\u7EC4\u4F5C\u4E1A","\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"]),Pe.history.push(`/classrooms/${we}/group_homework/${qe.homework_id}/detail`))});function Ct(qt){return Re(this,null,function*(){if(!(lt!=null&<.ec_point_ids))return;let Pt=yield(0,b.ZP)(`/api/ec_courses/${lt==null?void 0:lt.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:he({homework_common_id:qt},lt)})})}return te.createElement("section",{className:a.bg},et.course_name&&te.createElement("section",{className:"animated fadeIn"},te.createElement("aside",{className:"mt10"},et.category&&te.createElement(fe.Z,{separator:">"},te.createElement(fe.Z.Item,null,te.createElement(Pe.Link,{to:`/classrooms/${et.course_id}/group_homework`},et.course_name)),te.createElement(fe.Z.Item,null,te.createElement(Pe.Link,{to:`/classrooms/${et.course_id}/group_homework`},et.category.category_name)),te.createElement(fe.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),te.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"),te.createElement(Xe.default,{form:ye,className:a.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{rt(he({},ye.getFieldsValue()))},initialValues:{base_on_project:!1},onFinish:it},te.createElement("div",{className:a.fieldWrap},te.createElement(Xe.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},te.createElement(Fe.default,{maxLength:60,suffix:`${((ct=ze.name)==null?void 0:ct.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),te.createElement("div",{className:a.mdWrap},te.createElement(Xe.default.Item,{name:"description",label:"\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},te.createElement(De.Z,{watch:!0,defaultValue:ze.intro})),te.createElement("div",null,te.createElement(Xe.default.Item,{name:"attachment_ids"},te.createElement(y.Z,null))),te.createElement(ue.Z,{gutter:[20,20]},te.createElement(Ne.Z,{flex:"230px"},te.createElement(Xe.default.Item,{name:"min_num",label:"\u5206\u7EC4\u8BBE\u7F6E",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},te.createElement(Oe.Z,{style:{width:200},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),te.createElement(Ne.Z,{flex:"230px"},te.createElement(Xe.default.Item,{name:"max_num",label:te.createElement("div",null,"\xA0"),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},te.createElement(Oe.Z,{style:{width:200},max:100,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),te.createElement(Ne.Z,null,te.createElement("div",{className:"mt30"},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),te.createElement(ue.Z,{style:{display:(Je=be==null?void 0:be.setting)!=null&&Je.hide_project?"none":""}},te.createElement(Ne.Z,null,te.createElement(Xe.default.Item,{name:"base_on_project",valuePropName:"checked"},te.createElement(xe.default,{value:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),te.createElement("span",{className:"c-light-black"},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),te.createElement("div",{className:a.mdWrap},te.createElement(Xe.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},te.createElement(De.Z,{watch:!0,defaultValue:ze.notice})),te.createElement("div",null,te.createElement(Xe.default.Item,{name:"reference_attachment_ids"},te.createElement(y.Z,null))))),te.createElement("div",{className:a.mdWrap,style:{display:(_e=be==null?void 0:be.setting)!=null&&_e.hide_ec?"none":(dt=ke.userInfo.course)!=null&&dt.is_openengineering?"":"none"}},te.createElement(E.Z,{setitem:qt=>me(he({},qt))})),te.createElement("div",{className:a.backgroundFa},te.createElement("div",{className:"pt40 mb30"},te.createElement(Xe.default.Item,null,te.createElement(Ke.ZP,{size:"middle",type:"primary",onClick:()=>{ye.submit()},className:`${a.button} mr20`,htmlType:"submit",loading:Ue["newCourse/editCourse"]||Ue["newCourse/submitCourse"]},"\u63D0\u4EA4"),te.createElement(Ke.ZP,{size:"middle",type:"primary",ghost:!0,className:a.button,onClick:()=>Pe.history.push(`/classrooms/${Nt.coursesId}/group_homework`)},"\u53D6\u6D88")))))};var Et=(0,Pe.connect)(({shixunHomeworks:zt,newCourse:Ut,loading:be,user:Ue,globalSetting:ke})=>({shixunHomeworks:zt,newCourse:Ut,globalSetting:ke,user:Ue,loading:be.effects}))(He)},4440:function(Te,mt,oe){"use strict";oe.d(mt,{$J:function(){return Xe},JZ:function(){return fe},bN:function(){return ue},jP:function(){return Fe},rO:function(){return Ie}});var te=oe(33170),Pe=(Ne,Oe,xe)=>new Promise((Ke,je)=>{var De=y=>{try{a(xe.next(y))}catch(E){je(E)}},ae=y=>{try{a(xe.throw(y))}catch(E){je(E)}},a=y=>y.done?Ke(y.value):Promise.resolve(y.value).then(De,ae);a((xe=xe.apply(Ne,Oe)).next())});function Xe(Ne){return(0,te.U2)(`libraries/${Ne}.json`)}function Ie(Ne){return(0,te.U2)("library_tags.json",Ne)}function fe(Ne){return Pe(this,null,function*(){return(yield(0,te.IV)(`attachments/${Ne}.json`)).status===0})}function Fe(Ne){return(0,te.v_)("libraries.json",Ne)}function ue(Ne,Oe){return(0,te.gz)(`libraries/${Ne}.json`,Oe)}},57838:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return Pe}});var te=oe(67294);function Pe(){const[,Xe]=te.useReducer(Ie=>Ie+1,0);return Xe}},85673:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ut}});var te=oe(94184),Pe=oe.n(te),Xe=oe(37419),Ie=oe(1337),fe=oe(67294),Fe=oe(96159),ue=oe(53124),Ne=oe(42922),Oe=oe(56153);const xe=be=>{let{children:Ue}=be;const{getPrefixCls:ke}=fe.useContext(ue.E_),gt=ke("breadcrumb");return fe.createElement("li",{className:`${gt}-separator`,"aria-hidden":"true"},Ue===""?Ue:Ue||"/")};xe.__ANT_BREADCRUMB_SEPARATOR=!0;var Ke=xe,je=function(be,Ue){var ke={};for(var gt in be)Object.prototype.hasOwnProperty.call(be,gt)&&Ue.indexOf(gt)<0&&(ke[gt]=be[gt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols(be);ct<gt.length;ct++)Ue.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call(be,gt[ct])&&(ke[gt[ct]]=be[gt[ct]]);return ke};function De(be,Ue){if(be.title===void 0||be.title===null)return null;const ke=Object.keys(Ue).join("|");return typeof be.title=="object"?be.title:String(be.title).replace(new RegExp(`:(${ke})`,"g"),(gt,ct)=>Ue[ct]||gt)}function ae(be,Ue,ke,gt){if(ke==null)return null;const{className:ct,onClick:Je}=Ue,_e=je(Ue,["className","onClick"]),dt=Object.assign(Object.assign({},(0,Ie.Z)(_e,{data:!0,aria:!0})),{onClick:Je});return gt!==void 0?fe.createElement("a",Object.assign({},dt,{className:Pe()(`${be}-link`,ct),href:gt}),ke):fe.createElement("span",Object.assign({},dt,{className:Pe()(`${be}-link`,ct)}),ke)}function a(be,Ue){return(gt,ct,Je,_e,dt)=>{if(Ue)return Ue(gt,ct,Je,_e);const Nt=De(gt,ct);return ae(be,gt,Nt,dt)}}var y=function(be,Ue){var ke={};for(var gt in be)Object.prototype.hasOwnProperty.call(be,gt)&&Ue.indexOf(gt)<0&&(ke[gt]=be[gt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols(be);ct<gt.length;ct++)Ue.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call(be,gt[ct])&&(ke[gt[ct]]=be[gt[ct]]);return ke};const E=be=>{const{prefixCls:Ue,separator:ke="/",children:gt,menu:ct,overlay:Je,dropdownProps:_e,href:dt}=be,ye=(ze=>{if(ct||Je){const rt=Object.assign({},_e);if(ct){const Bt=ct||{},{items:et}=Bt,lt=y(Bt,["items"]);rt.menu=Object.assign(Object.assign({},lt),{items:et==null?void 0:et.map((me,it)=>{var{key:Ct,title:qt,label:Pt,path:Me}=me,Ee=y(me,["key","title","label","path"]);let we=Pt!=null?Pt:qt;return Me&&(we=fe.createElement("a",{href:`${dt}${Me}`},we)),Object.assign(Object.assign({},Ee),{key:Ct!=null?Ct:it,label:we})})})}else Je&&(rt.overlay=Je);return fe.createElement(Oe.Z,Object.assign({placement:"bottom"},rt),fe.createElement("span",{className:`${Ue}-overlay-link`},ze,fe.createElement(Ne.Z,null)))}return ze})(gt);return ye!=null?fe.createElement(fe.Fragment,null,fe.createElement("li",null,ye),ke&&fe.createElement(Ke,null,ke)):null},b=be=>{const{prefixCls:Ue,children:ke,href:gt}=be,ct=y(be,["prefixCls","children","href"]),{getPrefixCls:Je}=fe.useContext(ue.E_),_e=Je("breadcrumb",Ue);return fe.createElement(E,Object.assign({},ct,{prefixCls:_e}),ae(_e,ct,ke,gt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),ne=oe(45503);const re=be=>{const{componentCls:Ue,iconCls:ke}=be;return{[Ue]:Object.assign(Object.assign({},(0,z.Wf)(be)),{color:be.itemColor,fontSize:be.fontSize,[ke]:{fontSize:be.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:be.linkColor,transition:`color ${be.motionDurationMid}`,padding:`0 ${be.paddingXXS}px`,borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",marginInline:-be.marginXXS,"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover}},(0,z.Qy)(be)),"li:last-child":{color:be.lastItemColor},[`${Ue}-separator`]:{marginInline:be.separatorMargin,color:be.separatorColor},[`${Ue}-link`]:{[`
|
|
> ${ke} + span,
|
|
> ${ke} + a
|
|
`]:{marginInlineStart:be.marginXXS}},[`${Ue}-overlay-link`]:{borderRadius:be.borderRadiusSM,height:be.lineHeight*be.fontSize,display:"inline-block",padding:`0 ${be.paddingXXS}px`,marginInline:-be.marginXXS,[`> ${ke}`]:{marginInlineStart:be.marginXXS,fontSize:be.fontSizeIcon},"&:hover":{color:be.linkHoverColor,backgroundColor:be.colorBgTextHover,a:{color:be.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${be.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",be=>{const Ue=(0,ne.TS)(be,{});return[re(Ue)]},be=>({itemColor:be.colorTextDescription,lastItemColor:be.colorText,iconFontSize:be.fontSize,linkColor:be.colorTextDescription,linkHoverColor:be.colorText,separatorColor:be.colorTextDescription,separatorMargin:be.marginXS})),de=function(be,Ue){var ke={};for(var gt in be)Object.prototype.hasOwnProperty.call(be,gt)&&Ue.indexOf(gt)<0&&(ke[gt]=be[gt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols(be);ct<gt.length;ct++)Ue.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call(be,gt[ct])&&(ke[gt[ct]]=be[gt[ct]]);return ke};function he(be){const{breadcrumbName:Ue,children:ke}=be,gt=de(be,["breadcrumbName","children"]),ct=Object.assign({title:Ue},gt);return ke&&(ct.menu={items:ke.map(Je=>{var{breadcrumbName:_e}=Je,dt=de(Je,["breadcrumbName"]);return Object.assign(Object.assign({},dt),{title:_e})})}),ct}function ce(be,Ue){return(0,fe.useMemo)(()=>be||(Ue?Ue.map(he):null),[be,Ue])}var Re=function(be,Ue){var ke={};for(var gt in be)Object.prototype.hasOwnProperty.call(be,gt)&&Ue.indexOf(gt)<0&&(ke[gt]=be[gt]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,gt=Object.getOwnPropertySymbols(be);ct<gt.length;ct++)Ue.indexOf(gt[ct])<0&&Object.prototype.propertyIsEnumerable.call(be,gt[ct])&&(ke[gt[ct]]=be[gt[ct]]);return ke};const He=(be,Ue)=>{if(Ue===void 0)return Ue;let ke=(Ue||"").replace(/^\//,"");return Object.keys(be).forEach(gt=>{ke=ke.replace(`:${gt}`,be[gt])}),ke},Et=be=>{const{prefixCls:Ue,separator:ke="/",style:gt,className:ct,rootClassName:Je,routes:_e,items:dt,children:Nt,itemRender:ye,params:ze={}}=be,rt=Re(be,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Bt,direction:et,breadcrumb:lt}=fe.useContext(ue.E_);let me;const it=Bt("breadcrumb",Ue),[Ct,qt]=ge(it),Pt=ce(dt,_e),Me=a(it,ye);if(Pt&&Pt.length>0){const tt=[],qe=dt||_e;me=Pt.map((vt,Rt)=>{const{path:Gt,key:en,type:ln,menu:sn,overlay:Tt,onClick:Mt,className:Qt,separator:jn,dropdownProps:xn}=vt,pn=He(ze,Gt);pn!==void 0&&tt.push(pn);const Le=en!=null?en:Rt;if(ln==="separator")return fe.createElement(Ke,{key:Le},jn);const Ge={},ot=Rt===Pt.length-1;sn?Ge.menu=sn:Tt&&(Ge.overlay=Tt);let{href:bt}=vt;return tt.length&&pn!==void 0&&(bt=`#/${tt.join("/")}`),fe.createElement(E,Object.assign({key:Le},Ge,(0,Ie.Z)(vt,{data:!0,aria:!0}),{className:Qt,dropdownProps:xn,href:bt,separator:ot?"":ke,onClick:Mt,prefixCls:it}),Me(vt,ze,qe,tt,bt))})}else if(Nt){const tt=(0,Xe.Z)(Nt).length;me=(0,Xe.Z)(Nt).map((qe,vt)=>{if(!qe)return qe;const Rt=vt===tt-1;return(0,Fe.Tm)(qe,{separator:Rt?"":ke,key:vt})})}const Ee=Pe()(it,lt==null?void 0:lt.className,{[`${it}-rtl`]:et==="rtl"},ct,Je,qt),we=Object.assign(Object.assign({},lt==null?void 0:lt.style),gt);return Ct(fe.createElement("nav",Object.assign({className:Ee,style:we},rt),fe.createElement("ol",null,me)))};Et.Item=x,Et.Separator=Ke;var zt=Et,Ut=zt},84567:function(Te,mt,oe){"use strict";oe.d(mt,{default:function(){return ge}});var te=oe(94184),Pe=oe.n(te),Xe=oe(95860),Ie=oe(67294),fe=oe(53124),Fe=oe(98866),ue=oe(65223),Oe=Ie.createContext(null),xe=oe(63185),Ke=oe(45353),je=oe(92429),De=function(de,he){var ce={};for(var Re in de)Object.prototype.hasOwnProperty.call(de,Re)&&he.indexOf(Re)<0&&(ce[Re]=de[Re]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Re=Object.getOwnPropertySymbols(de);He<Re.length;He++)he.indexOf(Re[He])<0&&Object.prototype.propertyIsEnumerable.call(de,Re[He])&&(ce[Re[He]]=de[Re[He]]);return ce};const ae=(de,he)=>{var ce;const{prefixCls:Re,className:He,rootClassName:Et,children:zt,indeterminate:Ut=!1,style:be,onMouseEnter:Ue,onMouseLeave:ke,skipGroup:gt=!1,disabled:ct}=de,Je=De(de,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:_e,direction:dt,checkbox:Nt}=Ie.useContext(fe.E_),ye=Ie.useContext(Oe),{isFormItemInput:ze}=Ie.useContext(ue.aM),rt=Ie.useContext(Fe.Z),Bt=(ce=(ye==null?void 0:ye.disabled)||ct)!==null&&ce!==void 0?ce:rt,et=Ie.useRef(Je.value);Ie.useEffect(()=>{ye==null||ye.registerValue(Je.value)},[]),Ie.useEffect(()=>{if(!gt)return Je.value!==et.current&&(ye==null||ye.cancelValue(et.current),ye==null||ye.registerValue(Je.value),et.current=Je.value),()=>ye==null?void 0:ye.cancelValue(Je.value)},[Je.value]);const lt=_e("checkbox",Re),[me,it]=(0,xe.ZP)(lt),Ct=Object.assign({},Je);ye&&!gt&&(Ct.onChange=function(){Je.onChange&&Je.onChange.apply(Je,arguments),ye.toggleOption&&ye.toggleOption({label:zt,value:Je.value})},Ct.name=ye.name,Ct.checked=ye.value.includes(Je.value));const qt=Pe()(`${lt}-wrapper`,{[`${lt}-rtl`]:dt==="rtl",[`${lt}-wrapper-checked`]:Ct.checked,[`${lt}-wrapper-disabled`]:Bt,[`${lt}-wrapper-in-form-item`]:ze},Nt==null?void 0:Nt.className,He,Et,it),Pt=Pe()({[`${lt}-indeterminate`]:Ut},je.A,it),Me=Ut?"mixed":void 0;return me(Ie.createElement(Ke.Z,{component:"Checkbox",disabled:Bt},Ie.createElement("label",{className:qt,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),be),onMouseEnter:Ue,onMouseLeave:ke},Ie.createElement(Xe.Z,Object.assign({"aria-checked":Me},Ct,{prefixCls:lt,className:Pt,disabled:Bt,ref:he})),zt!==void 0&&Ie.createElement("span",null,zt))))};var y=Ie.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(de,he){var ce={};for(var Re in de)Object.prototype.hasOwnProperty.call(de,Re)&&he.indexOf(Re)<0&&(ce[Re]=de[Re]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Re=Object.getOwnPropertySymbols(de);He<Re.length;He++)he.indexOf(Re[He])<0&&Object.prototype.propertyIsEnumerable.call(de,Re[He])&&(ce[Re[He]]=de[Re[He]]);return ce};const z=(de,he)=>{const{defaultValue:ce,children:Re,options:He=[],prefixCls:Et,className:zt,rootClassName:Ut,style:be,onChange:Ue}=de,ke=x(de,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:gt,direction:ct}=Ie.useContext(fe.E_),[Je,_e]=Ie.useState(ke.value||ce||[]),[dt,Nt]=Ie.useState([]);Ie.useEffect(()=>{"value"in ke&&_e(ke.value||[])},[ke.value]);const ye=Ie.useMemo(()=>He.map(Ee=>typeof Ee=="string"||typeof Ee=="number"?{label:Ee,value:Ee}:Ee),[He]),ze=Ee=>{Nt(we=>we.filter(tt=>tt!==Ee))},rt=Ee=>{Nt(we=>[].concat((0,E.Z)(we),[Ee]))},Bt=Ee=>{const we=Je.indexOf(Ee.value),tt=(0,E.Z)(Je);we===-1?tt.push(Ee.value):tt.splice(we,1),"value"in ke||_e(tt),Ue==null||Ue(tt.filter(qe=>dt.includes(qe)).sort((qe,vt)=>{const Rt=ye.findIndex(en=>en.value===qe),Gt=ye.findIndex(en=>en.value===vt);return Rt-Gt}))},et=gt("checkbox",Et),lt=`${et}-group`,[me,it]=(0,xe.ZP)(et),Ct=(0,b.Z)(ke,["value","disabled"]),qt=He.length?ye.map(Ee=>Ie.createElement(y,{prefixCls:et,key:Ee.value.toString(),disabled:"disabled"in Ee?Ee.disabled:ke.disabled,value:Ee.value,checked:Je.includes(Ee.value),onChange:Ee.onChange,className:`${lt}-item`,style:Ee.style,title:Ee.title},Ee.label)):Re,Pt={toggleOption:Bt,value:Je,disabled:ke.disabled,name:ke.name,registerValue:rt,cancelValue:ze},Me=Pe()(lt,{[`${lt}-rtl`]:ct==="rtl"},zt,Ut,it);return me(Ie.createElement("div",Object.assign({className:Me,style:be},Ct,{ref:he}),Ie.createElement(Oe.Provider,{value:Pt},qt)))},ee=Ie.forwardRef(z);var ne=Ie.memo(ee);const re=y;re.Group=ne,re.__ANT_CHECKBOX=!0;var ge=re},63185:function(Te,mt,oe){"use strict";oe.d(mt,{C2:function(){return fe}});var te=oe(14747),Pe=oe(45503),Xe=oe(67968);const Ie=Fe=>{const{checkboxCls:ue}=Fe,Ne=`${ue}-wrapper`;return[{[`${ue}-group`]:Object.assign(Object.assign({},(0,te.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[Ne]:Object.assign(Object.assign({},(0,te.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ne}`]:{marginInlineStart:0},[`&${Ne}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[ue]:Object.assign(Object.assign({},(0,te.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${ue}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${ue}-inner`]:Object.assign({},(0,te.oN)(Fe))},[`${ue}-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}})},{[`
|
|
${Ne}:not(${Ne}-disabled),
|
|
${ue}:not(${ue}-disabled)
|
|
`]:{[`&:hover ${ue}-inner`]:{borderColor:Fe.colorPrimary}},[`${Ne}:not(${Ne}-disabled)`]:{[`&:hover ${ue}-checked:not(${ue}-disabled) ${ue}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${ue}-checked:not(${ue}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${ue}-checked`]:{[`${ue}-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}`}}},[`
|
|
${Ne}-checked:not(${Ne}-disabled),
|
|
${ue}-checked:not(${ue}-disabled)
|
|
`]:{[`&:hover ${ue}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[ue]:{"&-indeterminate":{[`${ue}-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:'""'}}}}},{[`${Ne}-disabled`]:{cursor:"not-allowed"},[`${ue}-disabled`]:{[`&, ${ue}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${ue}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${ue}-indeterminate ${ue}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function fe(Fe,ue){const Ne=(0,Pe.TS)(ue,{checkboxCls:`.${Fe}`,checkboxSize:ue.controlInteractiveSize});return[Ie(Ne)]}mt.ZP=(0,Xe.Z)("Checkbox",(Fe,ue)=>{let{prefixCls:Ne}=ue;return[fe(Ne,Fe)]})},56153:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return Sg}});var te=oe(67294),Pe=oe.t(te,2),Xe=oe(91034),Ie=oe(94184),fe=oe.n(Ie),Fe=oe(87462),ue=oe(4942),Ne=oe(97685),Oe=oe(45987),xe=oe(1413),Ke=oe(73935);function je(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var De={};function ae(ie,le){}function a(ie,le){}function y(){De={}}function E(ie,le,se){!le&&!De[se]&&(ie(!1,se),De[se]=!0)}function b(ie,le){E(ae,ie,le)}function x(ie,le){E(a,ie,le)}var z=null,ee=oe(71002),ne=oe(12060);function re(ie,le,se){var Se=te.useRef({});return(!("value"in Se.current)||se(Se.current.condition,le))&&(Se.current.value=ie(),Se.current.condition=le),Se.current.value}function ge(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function de(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var Se=le.filter(function($e){return $e});return Se.length<=1?Se[0]:function($e){le.forEach(function(Ve){ge(Ve,$e)})}}function he(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return re(function(){return de.apply(void 0,le)},le,function(Se,$e){return Se.length===$e.length&&Se.every(function(Ve,Qe){return Ve===$e[Qe]})})}function ce(ie){var le,se,Se=(0,ne.isMemo)(ie)?ie.type.type:ie.type;return!(typeof Se=="function"&&!((le=Se.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}var Re=te.createContext(null),He=Re,Et=oe(74902),zt=je()?te.useLayoutEffect:te.useEffect,Ut=zt,be=function(le,se){var Se=React.useRef(!0);zt(function(){if(!Se.current)return le()},se),zt(function(){return Se.current=!1,function(){Se.current=!0}},[])},Ue=[];function ke(ie,le){var se=te.useState(function(){if(!je())return null;var rn=document.createElement("div");return rn}),Se=(0,Ne.Z)(se,1),$e=Se[0],Ve=te.useRef(!1),Qe=te.useContext(He),yt=te.useState(Ue),At=(0,Ne.Z)(yt,2),wt=At[0],Vt=At[1],Ft=Qe||(Ve.current?void 0:function(rn){Vt(function(Nn){var hn=[rn].concat((0,Et.Z)(Nn));return hn})});function Kt(){$e.parentElement||document.body.appendChild($e),Ve.current=!0}function Wt(){var rn;(rn=$e.parentElement)===null||rn===void 0||rn.removeChild($e),Ve.current=!1}return Ut(function(){return ie?Qe?Qe(Kt):Kt():Wt(),Wt},[ie]),Ut(function(){wt.length&&(wt.forEach(function(rn){return rn()}),Vt(Ue))},[wt]),[$e,Ft]}function gt(ie,le){if(!ie)return!1;if(ie.contains)return ie.contains(le);for(var se=le;se;){if(se===ie)return!0;se=se.parentNode}return!1}var ct="data-rc-order",Je="rc-util-key",_e=new Map;function dt(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},le=ie.mark;return le?le.startsWith("data-")?le:"data-".concat(le):Je}function Nt(ie){if(ie.attachTo)return ie.attachTo;var le=document.querySelector("head");return le||document.body}function ye(ie){return ie==="queue"?"prependQueue":ie?"prepend":"append"}function ze(ie){return Array.from((_e.get(ie)||ie).children).filter(function(le){return le.tagName==="STYLE"})}function rt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!je())return null;var se=le.csp,Se=le.prepend,$e=document.createElement("style");$e.setAttribute(ct,ye(Se)),se!=null&&se.nonce&&($e.nonce=se==null?void 0:se.nonce),$e.innerHTML=ie;var Ve=Nt(le),Qe=Ve.firstChild;if(Se){if(Se==="queue"){var yt=ze(Ve).filter(function(At){return["prepend","prependQueue"].includes(At.getAttribute(ct))});if(yt.length)return Ve.insertBefore($e,yt[yt.length-1].nextSibling),$e}Ve.insertBefore($e,Qe)}else Ve.appendChild($e);return $e}function Bt(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=Nt(le);return ze(se).find(function(Se){return Se.getAttribute(dt(le))===ie})}function et(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},se=Bt(ie,le);if(se){var Se=Nt(le);Se.removeChild(se)}}function lt(ie,le){var se=_e.get(ie);if(!se||!gt(document,se)){var Se=rt("",le),$e=Se.parentNode;_e.set(ie,$e),ie.removeChild(Se)}}function me(){_e.clear()}function it(ie,le){var se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Se=Nt(se);lt(Se,se);var $e=Bt(le,se);if($e){var Ve,Qe;if((Ve=se.csp)!==null&&Ve!==void 0&&Ve.nonce&&$e.nonce!==((Qe=se.csp)===null||Qe===void 0?void 0:Qe.nonce)){var yt;$e.nonce=(yt=se.csp)===null||yt===void 0?void 0:yt.nonce}return $e.innerHTML!==ie&&($e.innerHTML=ie),$e}var At=rt(ie,se);return At.setAttribute(dt(se),le),At}var Ct;function qt(ie){if(typeof document=="undefined")return 0;if(ie||Ct===void 0){var le=document.createElement("div");le.style.width="100%",le.style.height="200px";var se=document.createElement("div"),Se=se.style;Se.position="absolute",Se.top="0",Se.left="0",Se.pointerEvents="none",Se.visibility="hidden",Se.width="200px",Se.height="150px",Se.overflow="hidden",se.appendChild(le),document.body.appendChild(se);var $e=le.offsetWidth;se.style.overflow="scroll";var Ve=le.offsetWidth;$e===Ve&&(Ve=se.clientWidth),document.body.removeChild(se),Ct=$e-Ve}return Ct}function Pt(ie){var le=ie.match(/^(.*)px$/),se=Number(le==null?void 0:le[1]);return Number.isNaN(se)?qt():se}function Me(ie){if(typeof document=="undefined"||!ie||!(ie instanceof Element))return{width:0,height:0};var le=getComputedStyle(ie,"::-webkit-scrollbar"),se=le.width,Se=le.height;return{width:Pt(se),height:Pt(Se)}}function Ee(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var we="rc-util-locker-".concat(Date.now()),tt=0;function qe(ie){var le=!!ie,se=te.useState(function(){return tt+=1,"".concat(we,"_").concat(tt)}),Se=(0,Ne.Z)(se,1),$e=Se[0];Ut(function(){if(le){var Ve=Me(document.body).width,Qe=Ee();it(`
|
|
html body {
|
|
overflow-y: hidden;
|
|
`.concat(Qe?"width: calc(100% - ".concat(Ve,"px);"):"",`
|
|
}`),$e)}else et($e);return function(){et($e)}},[le,$e])}var vt=!1;function Rt(ie){return typeof ie=="boolean"&&(vt=ie),vt}var Gt=function(le){return le===!1?!1:!je()||!le?null:typeof le=="string"?document.querySelector(le):typeof le=="function"?le():le},en=te.forwardRef(function(ie,le){var se=ie.open,Se=ie.autoLock,$e=ie.getContainer,Ve=ie.debug,Qe=ie.autoDestroy,yt=Qe===void 0?!0:Qe,At=ie.children,wt=te.useState(se),Vt=(0,Ne.Z)(wt,2),Ft=Vt[0],Kt=Vt[1],Wt=Ft||se;te.useEffect(function(){(yt||se)&&Kt(se)},[se,yt]);var rn=te.useState(function(){return Gt($e)}),Nn=(0,Ne.Z)(rn,2),hn=Nn[0],In=Nn[1];te.useEffect(function(){var ha=Gt($e);In(ha!=null?ha:null)});var Ln=ke(Wt&&!hn,Ve),mn=(0,Ne.Z)(Ln,2),_t=mn[0],ra=mn[1],qn=hn!=null?hn:_t;qe(Se&&se&&je()&&(qn===_t||qn===document.body));var ia=null;if(At&&ce(At)&&le){var ya=At;ia=ya.ref}var ja=he(ia,le);if(!Wt||!je()||hn===void 0)return null;var Un=qn===!1||Rt(),Tn=At;return le&&(Tn=te.cloneElement(At,{ref:ja})),te.createElement(He.Provider,{value:ra},Un?Tn:(0,Ke.createPortal)(Tn,qn))}),ln=en,sn=ln,Tt=oe(48555);function Mt(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function Qt(ie){return Mt(ie)?ie:ie instanceof React.Component?ReactDOM.findDOMNode(ie):null}function jn(ie){var le;return ie==null||(le=ie.getRootNode)===null||le===void 0?void 0:le.call(ie)}function xn(ie){return jn(ie)instanceof ShadowRoot}function pn(ie){return xn(ie)?jn(ie):null}function Le(ie){var le=te.useRef();le.current=ie;var se=te.useCallback(function(){for(var Se,$e=arguments.length,Ve=new Array($e),Qe=0;Qe<$e;Qe++)Ve[Qe]=arguments[Qe];return(Se=le.current)===null||Se===void 0?void 0:Se.call.apply(Se,[le].concat(Ve))},[]);return se}function Ge(){var ie=(0,xe.Z)({},Pe);return ie.useId}var ot=0;function bt(){}var $t=Ge(),nn=$t?function(le){var se=$t();return le||se}:function(le){var se=te.useState("ssr-id"),Se=(0,Ne.Z)(se,2),$e=Se[0],Ve=Se[1];return te.useEffect(function(){var Qe=ot;ot+=1,Ve("rc_unique_".concat(Qe))},[]),le||$e};function on(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var jt=on()?te.useLayoutEffect:te.useEffect,Xt=function(le,se){var Se=te.useRef(!0);jt(function(){return le(Se.current)},se),jt(function(){return Se.current=!1,function(){Se.current=!0}},[])},bn=function(le,se){Xt(function(Se){if(!Se)return le()},se)},gn=Xt,Zn=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var ie=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(ie)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(ie==null?void 0:ie.substr(0,4))},Kn=te.createContext(null),Xn=Kn;function la(ie){return ie?Array.isArray(ie)?ie:[ie]:[]}function Dn(ie,le,se,Se){return te.useMemo(function(){var $e=la(se!=null?se:le),Ve=la(Se!=null?Se:le),Qe=new Set($e),yt=new Set(Ve);return ie&&(Qe.has("hover")&&(Qe.delete("hover"),Qe.add("click")),yt.has("hover")&&(yt.delete("hover"),yt.add("click"))),[Qe,yt]},[ie,le,se,Se])}var An=function(ie){if(!ie)return!1;if(ie instanceof Element){if(ie.offsetParent)return!0;if(ie.getBBox){var le=ie.getBBox(),se=le.width,Se=le.height;if(se||Se)return!0}if(ie.getBoundingClientRect){var $e=ie.getBoundingClientRect(),Ve=$e.width,Qe=$e.height;if(Ve||Qe)return!0}}return!1};function Yn(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=arguments.length>2?arguments[2]:void 0;return se?ie[0]===le[0]:ie[0]===le[0]&&ie[1]===le[1]}function ua(ie,le,se,Se){for(var $e=se.points,Ve=Object.keys(ie),Qe=0;Qe<Ve.length;Qe+=1){var yt,At=Ve[Qe];if(Yn((yt=ie[At])===null||yt===void 0?void 0:yt.points,$e,Se))return"".concat(le,"-placement-").concat(At)}return""}function ma(ie,le,se,Se){return le||(se?{motionName:"".concat(ie,"-").concat(se)}:Se?{motionName:Se}:null)}function Rn(ie){return ie.ownerDocument.defaultView}function Pa(ie){for(var le=[],se=ie==null?void 0:ie.parentElement,Se=["hidden","scroll","clip","auto"];se;){var $e=Rn(se).getComputedStyle(se),Ve=$e.overflowX,Qe=$e.overflowY,yt=$e.overflow;[Ve,Qe,yt].some(function(At){return Se.includes(At)})&&le.push(se),se=se.parentElement}return le}function Ga(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ie)?le:ie}function ta(ie){return Ga(parseFloat(ie),0)}function Ua(ie,le){var se=(0,xe.Z)({},ie);return(le||[]).forEach(function(Se){if(!(Se instanceof HTMLBodyElement||Se instanceof HTMLHtmlElement)){var $e=Rn(Se).getComputedStyle(Se),Ve=$e.overflow,Qe=$e.overflowClipMargin,yt=$e.borderTopWidth,At=$e.borderBottomWidth,wt=$e.borderLeftWidth,Vt=$e.borderRightWidth,Ft=Se.getBoundingClientRect(),Kt=Se.offsetHeight,Wt=Se.clientHeight,rn=Se.offsetWidth,Nn=Se.clientWidth,hn=ta(yt),In=ta(At),Ln=ta(wt),mn=ta(Vt),_t=Ga(Math.round(Ft.width/rn*1e3)/1e3),ra=Ga(Math.round(Ft.height/Kt*1e3)/1e3),qn=(rn-Nn-Ln-mn)*_t,ia=(Kt-Wt-hn-In)*ra,ya=hn*ra,ja=In*ra,Un=Ln*_t,Tn=mn*_t,ha=0,Ea=0;if(Ve==="clip"){var ga=ta(Qe);ha=ga*_t,Ea=ga*ra}var Mn=Ft.x+Un-ha,_n=Ft.y+ya-Ea,wn=Mn+Ft.width+2*ha-Un-Tn-qn,Za=_n+Ft.height+2*Ea-ya-ja-ia;se.left=Math.max(se.left,Mn),se.top=Math.max(se.top,_n),se.right=Math.min(se.right,wn),se.bottom=Math.min(se.bottom,Za)}}),se}function eo(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,se="".concat(le),Se=se.match(/^(.*)\%$/);return Se?ie*(parseFloat(Se[1])/100):parseFloat(se)}function Qa(ie,le){var se=le||[],Se=(0,Ne.Z)(se,2),$e=Se[0],Ve=Se[1];return[eo(ie.width,$e),eo(ie.height,Ve)]}function Ce(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ie[0],ie[1]]}function Be(ie,le){var se=le[0],Se=le[1],$e,Ve;return se==="t"?Ve=ie.y:se==="b"?Ve=ie.y+ie.height:Ve=ie.y+ie.height/2,Se==="l"?$e=ie.x:Se==="r"?$e=ie.x+ie.width:$e=ie.x+ie.width/2,{x:$e,y:Ve}}function pe(ie,le){var se={t:"b",b:"t",l:"r",r:"l"};return ie.map(function(Se,$e){return $e===le?se[Se]||"c":Se}).join("")}function pt(ie,le,se,Se,$e,Ve,Qe){var yt=te.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:$e[Se]||{}}),At=(0,Ne.Z)(yt,2),wt=At[0],Vt=At[1],Ft=te.useRef(0),Kt=te.useMemo(function(){return le?Pa(le):[]},[le]),Wt=te.useRef({}),rn=function(){Wt.current={}};ie||rn();var Nn=Le(function(){if(le&&se&&ie){let Co=function(ti,ur){var Yo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ha,zr=Vn.x+ti,br=Vn.y+ur,ni=zr+oa,bi=br+Ca,Li=Math.max(zr,Yo.left),wi=Math.max(br,Yo.top),Ei=Math.min(ni,Yo.right),tn=Math.min(bi,Yo.bottom);return Math.max(0,(Ei-Li)*(tn-wi))},Ho=function(){jo=Vn.y+ea,nr=jo+Ca,ar=Vn.x+Wa,or=ar+oa};var Ln,mn,_t=le,ra=_t.ownerDocument,qn=Rn(_t),ia=qn.getComputedStyle(_t),ya=ia.width,ja=ia.height,Un=ia.position,Tn=_t.style.left,ha=_t.style.top,Ea=_t.style.right,ga=_t.style.bottom,Mn=(0,xe.Z)((0,xe.Z)({},$e[Se]),Ve),_n=ra.createElement("div");(Ln=_t.parentElement)===null||Ln===void 0||Ln.appendChild(_n),_n.style.left="".concat(_t.offsetLeft,"px"),_n.style.top="".concat(_t.offsetTop,"px"),_n.style.position=Un,_n.style.height="".concat(_t.offsetHeight,"px"),_n.style.width="".concat(_t.offsetWidth,"px"),_t.style.left="0",_t.style.top="0",_t.style.right="auto",_t.style.bottom="auto";var wn;if(Array.isArray(se))wn={x:se[0],y:se[1],width:0,height:0};else{var Za=se.getBoundingClientRect();wn={x:Za.x,y:Za.y,width:Za.width,height:Za.height}}var Vn=_t.getBoundingClientRect(),_a=ra.documentElement,so=_a.clientWidth,Xa=_a.clientHeight,uo=_a.scrollWidth,So=_a.scrollHeight,Hn=_a.scrollTop,mo=_a.scrollLeft,Ca=Vn.height,oa=Vn.width,Aa=wn.height,wo=wn.width,Ro={left:0,top:0,right:so,bottom:Xa},Uo={left:-mo,top:-Hn,right:uo-mo,bottom:So-Hn},qa=Mn.htmlRegion,oo="visible",Oo="visibleFirst";qa!=="scroll"&&qa!==Oo&&(qa=oo);var ro=qa===Oo,da=Ua(Uo,Kt),cn=Ua(Ro,Kt),Ha=qa===oo?cn:da,co=ro?cn:Ha;_t.style.left="auto",_t.style.top="auto",_t.style.right="0",_t.style.bottom="0";var Ao=_t.getBoundingClientRect();_t.style.left=Tn,_t.style.top=ha,_t.style.right=Ea,_t.style.bottom=ga,(mn=_t.parentElement)===null||mn===void 0||mn.removeChild(_n);var er=Ga(Math.round(oa/parseFloat(ya)*1e3)/1e3),tr=Ga(Math.round(Ca/parseFloat(ja)*1e3)/1e3);if(er===0||tr===0||Mt(se)&&!An(se))return;var ii=Mn.offset,Rr=Mn.targetOffset,Bo=Qa(Vn,ii),kr=(0,Ne.Z)(Bo,2),$o=kr[0],No=kr[1],jr=Qa(wn,Rr),Mo=(0,Ne.Z)(jr,2),gi=Mo[0],di=Mo[1];wn.x-=gi,wn.y-=di;var Pr=Mn.points||[],ho=(0,Ne.Z)(Pr,2),_o=ho[0],li=ho[1],ko=Ce(li),Po=Ce(_o),Zr=Be(wn,ko),Cr=Be(Vn,Po),Vo=(0,xe.Z)({},Mn),Wa=Zr.x-Cr.x+$o,ea=Zr.y-Cr.y+No,zo=Co(Wa,ea),To=Co(Wa,ea,cn),Fr=Be(wn,["t","l"]),xr=Be(Vn,["t","l"]),Br=Be(wn,["b","r"]),Eo=Be(Vn,["b","r"]),vr=Mn.overflow||{},Hr=vr.adjustX,$r=vr.adjustY,Nr=vr.shiftX,Wr=vr.shiftY,Mr=function(ur){return typeof ur=="boolean"?ur:ur>=0},jo,nr,ar,or;Ho();var Or=Mr($r),Ur=Po[0]===ko[0];if(Or&&Po[0]==="t"&&(nr>co.bottom||Wt.current.bt)){var Go=ea;Ur?Go-=Ca-Aa:Go=Fr.y-Eo.y-No;var _r=Co(Wa,Go),vo=Co(Wa,Go,cn);_r>zo||_r===zo&&(!ro||vo>=To)?(Wt.current.bt=!0,ea=Go,No=-No,Vo.points=[pe(Po,0),pe(ko,0)]):Wt.current.bt=!1}if(Or&&Po[0]==="b"&&(jo<co.top||Wt.current.tb)){var rr=ea;Ur?rr+=Ca-Aa:rr=Br.y-xr.y-No;var Vr=Co(Wa,rr),si=Co(Wa,rr,cn);Vr>zo||Vr===zo&&(!ro||si>=To)?(Wt.current.tb=!0,ea=rr,No=-No,Vo.points=[pe(Po,0),pe(ko,0)]):Wt.current.tb=!1}var Kr=Mr(Hr),Xr=Po[1]===ko[1];if(Kr&&Po[1]==="l"&&(or>co.right||Wt.current.rl)){var ir=Wa;Xr?ir-=oa-wo:ir=Fr.x-Eo.x-$o;var Yr=Co(ir,ea),ui=Co(ir,ea,cn);Yr>zo||Yr===zo&&(!ro||ui>=To)?(Wt.current.rl=!0,Wa=ir,$o=-$o,Vo.points=[pe(Po,1),pe(ko,1)]):Wt.current.rl=!1}if(Kr&&Po[1]==="r"&&(ar<co.left||Wt.current.lr)){var gr=Wa;Xr?gr+=oa-wo:gr=Br.x-xr.x-$o;var dr=Co(gr,ea),Ar=Co(gr,ea,cn);dr>zo||dr===zo&&(!ro||Ar>=To)?(Wt.current.lr=!0,Wa=gr,$o=-$o,Vo.points=[pe(Po,1),pe(ko,1)]):Wt.current.lr=!1}Ho();var lr=Nr===!0?0:Nr;typeof lr=="number"&&(ar<cn.left&&(Wa-=ar-cn.left-$o,wn.x+wo<cn.left+lr&&(Wa+=wn.x-cn.left+wo-lr)),or>cn.right&&(Wa-=or-cn.right-$o,wn.x>cn.right-lr&&(Wa+=wn.x-cn.right+lr)));var Ko=Wr===!0?0:Wr;typeof Ko=="number"&&(jo<cn.top&&(ea-=jo-cn.top-No,wn.y+Aa<cn.top+Ko&&(ea+=wn.y-cn.top+Aa-Ko)),nr>cn.bottom&&(ea-=nr-cn.bottom-No,wn.y>cn.bottom-Ko&&(ea+=wn.y-cn.bottom+Ko)));var Xo=Vn.x+Wa,sr=Xo+oa,pr=Vn.y+ea,yr=pr+Ca,Zo=wn.x,mi=Zo+wo,Qr=wn.y,ci=Qr+Aa,Jr=Math.max(Xo,Zo),fi=Math.min(sr,mi),Si=(Jr+fi)/2,hi=Si-Xo,qr=Math.max(pr,Qr),Pi=Math.min(yr,ci),vi=(qr+Pi)/2,ei=vi-pr;Qe==null||Qe(le,Vo);var pi=Ao.right-Vn.x-(Wa+Vn.width),yi=Ao.bottom-Vn.y-(ea+Vn.height);Vt({ready:!0,offsetX:Wa/er,offsetY:ea/tr,offsetR:pi/er,offsetB:yi/tr,arrowX:hi/er,arrowY:ei/tr,scaleX:er,scaleY:tr,align:Vo})}}),hn=function(){Ft.current+=1;var mn=Ft.current;Promise.resolve().then(function(){Ft.current===mn&&Nn()})},In=function(){Vt(function(mn){return(0,xe.Z)((0,xe.Z)({},mn),{},{ready:!1})})};return gn(In,[Se]),gn(function(){ie||In()},[ie]),[wt.ready,wt.offsetX,wt.offsetY,wt.offsetR,wt.offsetB,wt.arrowX,wt.arrowY,wt.scaleX,wt.scaleY,wt.align,hn]}function kt(ie,le,se,Se,$e){gn(function(){if(ie&&le&&se){let Ft=function(){Se(),$e()};var Ve=le,Qe=se,yt=Pa(Ve),At=Pa(Qe),wt=Rn(Qe),Vt=new Set([wt].concat((0,Et.Z)(yt),(0,Et.Z)(At)));return Vt.forEach(function(Kt){Kt.addEventListener("scroll",Ft,{passive:!0})}),wt.addEventListener("resize",Ft,{passive:!0}),Se(),function(){Vt.forEach(function(Kt){Kt.removeEventListener("scroll",Ft),wt.removeEventListener("resize",Ft)})}}},[ie,le,se])}function Zt(ie){var le=React.useRef(!1),se=React.useState(ie),Se=_slicedToArray(se,2),$e=Se[0],Ve=Se[1];React.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Qe(yt,At){At&&le.current||Ve(yt)}return[$e,Qe]}function kn(ie){return ie!==void 0}function Sn(ie,le){var se=le||{},Se=se.defaultValue,$e=se.value,Ve=se.onChange,Qe=se.postState,yt=useState(function(){return kn($e)?$e:kn(Se)?typeof Se=="function"?Se():Se:typeof ie=="function"?ie():ie}),At=_slicedToArray(yt,2),wt=At[0],Vt=At[1],Ft=$e!==void 0?$e:wt,Kt=Qe?Qe(Ft):Ft,Wt=useEvent(Ve),rn=useState([Ft]),Nn=_slicedToArray(rn,2),hn=Nn[0],In=Nn[1];useLayoutUpdateEffect(function(){var mn=hn[0];wt!==mn&&Wt(wt,mn)},[hn]),useLayoutUpdateEffect(function(){kn($e)||Vt($e)},[$e]);var Ln=useEvent(function(mn,_t){Vt(mn,_t),In([Ft],_t)});return[Kt,Ln]}var Bn=oe(95845);function na(ie,le,se){var Se=te.useRef({});return(!("value"in Se.current)||se(Se.current.condition,le))&&(Se.current.value=ie(),Se.current.condition=le),Se.current.value}function Ia(ie,le){typeof ie=="function"?ie(le):(0,ee.Z)(ie)==="object"&&ie&&"current"in ie&&(ie.current=le)}function ft(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var Se=le.filter(function($e){return $e});return Se.length<=1?Se[0]:function($e){le.forEach(function(Ve){Ia(Ve,$e)})}}function Cn(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];return na(function(){return ft.apply(void 0,le)},le,function(Se,$e){return Se.length!==$e.length||Se.every(function(Ve,Qe){return Ve!==$e[Qe]})})}function ve(ie){var le,se,Se=(0,Bn.isMemo)(ie)?ie.type.type:ie.type;return!(typeof Se=="function"&&!((le=Se.prototype)!==null&&le!==void 0&&le.render)||typeof ie=="function"&&!((se=ie.prototype)!==null&&se!==void 0&&se.render))}function We(ie){return!isValidElement(ie)||isFragment(ie)?!1:ve(ie)}function Ae(ie,le,se,Se){if(!le.length)return se;var $e=_toArray(le),Ve=$e[0],Qe=$e.slice(1),yt;return!ie&&typeof Ve=="number"?yt=[]:Array.isArray(ie)?yt=_toConsumableArray(ie):yt=_objectSpread({},ie),Se&&se===void 0&&Qe.length===1?delete yt[Ve][Qe[0]]:yt[Ve]=Ae(yt[Ve],Qe,se,Se),yt}function Ze(ie,le,se){var Se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return le.length&&Se&&se===void 0&&!get(ie,le.slice(0,-1))?ie:Ae(ie,le,se,Se)}function ht(ie){return _typeof(ie)==="object"&&ie!==null&&Object.getPrototypeOf(ie)===Object.prototype}function at(ie){return Array.isArray(ie)?[]:{}}var ut=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function nt(){for(var ie=arguments.length,le=new Array(ie),se=0;se<ie;se++)le[se]=arguments[se];var Se=at(le[0]);return le.forEach(function($e){function Ve(Qe,yt){var At=new Set(yt),wt=get($e,Qe),Vt=Array.isArray(wt);if(Vt||ht(wt)){if(!At.has(wt)){At.add(wt);var Ft=get(Se,Qe);Vt?Se=Ze(Se,Qe,[]):(!Ft||_typeof(Ft)!=="object")&&(Se=Ze(Se,Qe,at(wt))),ut(wt).forEach(function(Kt){Ve([].concat(_toConsumableArray(Qe),[Kt]),At)})}}else Se=Ze(Se,Qe,wt)}Ve([])}),Se}var Jt={},It=[],dn=function(le){It.push(le)};function yn(ie,le){if(0)var se}function $n(ie,le){if(0)var se}function Ye(){Jt={}}function $a(ie,le,se){!le&&!Jt[se]&&(ie(!1,se),Jt[se]=!0)}function ba(ie,le){$a(yn,ie,le)}function Da(ie,le){$a($n,ie,le)}ba.preMessage=dn,ba.resetWarned=Ye,ba.noteOnce=Da;var aa=null,st=function(le){return+setTimeout(le,16)},xt=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(st=function(le){return window.requestAnimationFrame(le)},xt=function(le){return window.cancelAnimationFrame(le)});var Yt=0,St=new Map;function Pn(ie){St.delete(ie)}var vn=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Yt+=1;var Se=Yt;function $e(Ve){if(Ve===0)Pn(Se),le();else{var Qe=st(function(){$e(Ve-1)});St.set(Se,Qe)}}return $e(se),Se};vn.cancel=function(ie){var le=St.get(ie);return Pn(le),xt(le)};var sa=vn;function ca(ie,le,se,Se,$e,Ve,Qe,yt){var At=te.useRef(ie),wt=te.useRef(!1);At.current!==ie&&(wt.current=!0,At.current=ie),te.useEffect(function(){var Vt=sa(function(){wt.current=!1});return function(){sa.cancel(Vt)}},[ie]),te.useEffect(function(){if(le&&Se&&(!$e||Ve)){var Vt=function(){var Un=!1,Tn=function(ga){var Mn=ga.target;Un=Qe(Mn)},ha=function(ga){var Mn=ga.target;!wt.current&&At.current&&!Un&&!Qe(Mn)&&yt(!1)};return[Tn,ha]},Ft=Vt(),Kt=(0,Ne.Z)(Ft,2),Wt=Kt[0],rn=Kt[1],Nn=Vt(),hn=(0,Ne.Z)(Nn,2),In=hn[0],Ln=hn[1],mn=Rn(Se);mn.addEventListener("mousedown",Wt,!0),mn.addEventListener("click",rn,!0),mn.addEventListener("contextmenu",rn,!0);var _t=pn(se);if(_t&&(_t.addEventListener("mousedown",In,!0),_t.addEventListener("click",Ln,!0),_t.addEventListener("contextmenu",Ln,!0)),0)var ra,qn,ia,ya;return function(){mn.removeEventListener("mousedown",Wt,!0),mn.removeEventListener("click",rn,!0),mn.removeEventListener("contextmenu",rn,!0),_t&&(_t.removeEventListener("mousedown",In,!0),_t.removeEventListener("click",Ln,!0),_t.removeEventListener("contextmenu",Ln,!0))}}},[le,se,Se,$e,Ve])}function fa(ie){return ie instanceof HTMLElement||ie instanceof SVGElement}function Fo(ie){return fa(ie)?ie:ie instanceof te.Component?Ke.findDOMNode(ie):null}function to(ie,le){var se={};return se[ie.toLowerCase()]=le.toLowerCase(),se["Webkit".concat(ie)]="webkit".concat(le),se["Moz".concat(ie)]="moz".concat(le),se["ms".concat(ie)]="MS".concat(le),se["O".concat(ie)]="o".concat(le.toLowerCase()),se}function Io(ie,le){var se={animationend:to("Animation","AnimationEnd"),transitionend:to("Transition","TransitionEnd")};return ie&&("AnimationEvent"in le||delete se.animationend.animation,"TransitionEvent"in le||delete se.transitionend.transition),se}var xo=Io(je(),typeof window!="undefined"?window:{}),Va={};if(je()){var va=document.createElement("div");Va=va.style}var io={};function po(ie){if(io[ie])return io[ie];var le=xo[ie];if(le)for(var se=Object.keys(le),Se=se.length,$e=0;$e<Se;$e+=1){var Ve=se[$e];if(Object.prototype.hasOwnProperty.call(le,Ve)&&Ve in Va)return io[ie]=le[Ve],io[ie]}return""}var yo=po("animationend"),Ka=po("transitionend"),Ra=!!(yo&&Ka),fo=yo||"animationend",un=Ka||"transitionend";function pa(ie,le){if(!ie)return null;if((0,ee.Z)(ie)==="object"){var se=le.replace(/-\w/g,function(Se){return Se[1].toUpperCase()});return ie[se]}return"".concat(ie,"-").concat(le)}var Fa="none",Na="appear",Ja="enter",La="leave",Wo="none",wa="prepare",Qn="start",Jn="active",no="end";function Do(ie){var le=te.useRef(!1),se=te.useState(ie),Se=(0,Ne.Z)(se,2),$e=Se[0],Ve=Se[1];te.useEffect(function(){return le.current=!1,function(){le.current=!0}},[]);function Qe(yt,At){At&&le.current||Ve(yt)}return[$e,Qe]}var Qo=function(le){return+setTimeout(le,16)},Lr=function(le){return clearTimeout(le)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(Qo=function(le){return window.requestAnimationFrame(le)},Lr=function(le){return window.cancelAnimationFrame(le)});var wr=0,Jo=new Map;function mr(ie){Jo.delete(ie)}var Ht=function(le){var se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;wr+=1;var Se=wr;function $e(Ve){if(Ve===0)mr(Se),le();else{var Qe=Qo(function(){$e(Ve-1)});Jo.set(Se,Qe)}}return $e(se),Se};Ht.cancel=function(ie){var le=Jo.get(ie);return mr(le),Lr(le)};var Lt=Ht,Ot=function(){var ie=te.useRef(null);function le(){Lt.cancel(ie.current)}function se(Se){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;le();var Ve=Lt(function(){$e<=1?Se({isCanceled:function(){return Ve!==ie.current}}):se(Se,$e-1)});ie.current=Ve}return te.useEffect(function(){return function(){le()}},[]),[se,le]},Dt=je()?te.useLayoutEffect:te.useEffect,Gn=Dt,Sa=[wa,Qn,Jn,no],ka=!1,Ma=!0;function xa(ie){return ie===Jn||ie===no}var an=function(ie,le){var se=Do(Wo),Se=(0,Ne.Z)(se,2),$e=Se[0],Ve=Se[1],Qe=Ot(),yt=(0,Ne.Z)(Qe,2),At=yt[0],wt=yt[1];function Vt(){Ve(wa,!0)}return Gn(function(){if($e!==Wo&&$e!==no){var Ft=Sa.indexOf($e),Kt=Sa[Ft+1],Wt=le($e);Wt===ka?Ve(Kt,!0):At(function(rn){function Nn(){rn.isCanceled()||Ve(Kt,!0)}Wt===!0?Nn():Promise.resolve(Wt).then(Nn)})}},[ie,$e]),te.useEffect(function(){return function(){wt()}},[]),[Vt,$e]},Fn=function(ie){var le=(0,te.useRef)(),se=(0,te.useRef)(ie);se.current=ie;var Se=te.useCallback(function(Qe){se.current(Qe)},[]);function $e(Qe){Qe&&(Qe.removeEventListener(un,Se),Qe.removeEventListener(fo,Se))}function Ve(Qe){le.current&&le.current!==Qe&&$e(le.current),Qe&&Qe!==le.current&&(Qe.addEventListener(un,Se),Qe.addEventListener(fo,Se),le.current=Qe)}return te.useEffect(function(){return function(){$e(le.current)}},[]),[Ve,$e]};function zn(ie,le,se,Se){var $e=Se.motionEnter,Ve=$e===void 0?!0:$e,Qe=Se.motionAppear,yt=Qe===void 0?!0:Qe,At=Se.motionLeave,wt=At===void 0?!0:At,Vt=Se.motionDeadline,Ft=Se.motionLeaveImmediately,Kt=Se.onAppearPrepare,Wt=Se.onEnterPrepare,rn=Se.onLeavePrepare,Nn=Se.onAppearStart,hn=Se.onEnterStart,In=Se.onLeaveStart,Ln=Se.onAppearActive,mn=Se.onEnterActive,_t=Se.onLeaveActive,ra=Se.onAppearEnd,qn=Se.onEnterEnd,ia=Se.onLeaveEnd,ya=Se.onVisibleChanged,ja=Do(),Un=(0,Ne.Z)(ja,2),Tn=Un[0],ha=Un[1],Ea=Do(Fa),ga=(0,Ne.Z)(Ea,2),Mn=ga[0],_n=ga[1],wn=Do(null),Za=(0,Ne.Z)(wn,2),Vn=Za[0],_a=Za[1],so=(0,te.useRef)(!1),Xa=(0,te.useRef)(null);function uo(){return se()}var So=(0,te.useRef)(!1);function Hn(da){var cn=uo();if(!(da&&!da.deadline&&da.target!==cn)){var Ha=So.current,co;Mn===Na&&Ha?co=ra==null?void 0:ra(cn,da):Mn===Ja&&Ha?co=qn==null?void 0:qn(cn,da):Mn===La&&Ha&&(co=ia==null?void 0:ia(cn,da)),Mn!==Fa&&Ha&&co!==!1&&(_n(Fa,!0),_a(null,!0))}}var mo=Fn(Hn),Ca=(0,Ne.Z)(mo,1),oa=Ca[0],Aa=te.useMemo(function(){var da,cn,Ha;switch(Mn){case Na:return da={},(0,ue.Z)(da,wa,Kt),(0,ue.Z)(da,Qn,Nn),(0,ue.Z)(da,Jn,Ln),da;case Ja:return cn={},(0,ue.Z)(cn,wa,Wt),(0,ue.Z)(cn,Qn,hn),(0,ue.Z)(cn,Jn,mn),cn;case La:return Ha={},(0,ue.Z)(Ha,wa,rn),(0,ue.Z)(Ha,Qn,In),(0,ue.Z)(Ha,Jn,_t),Ha;default:return{}}},[Mn]),wo=an(Mn,function(da){if(da===wa){var cn=Aa[wa];return cn?cn(uo()):ka}if(qa in Aa){var Ha;_a(((Ha=Aa[qa])===null||Ha===void 0?void 0:Ha.call(Aa,uo(),null))||null)}return qa===Jn&&(oa(uo()),Vt>0&&(clearTimeout(Xa.current),Xa.current=setTimeout(function(){Hn({deadline:!0})},Vt))),Ma}),Ro=(0,Ne.Z)(wo,2),Uo=Ro[0],qa=Ro[1],oo=xa(qa);So.current=oo,Gn(function(){ha(le);var da=so.current;if(so.current=!0,!!ie){var cn;!da&&le&&yt&&(cn=Na),da&&le&&Ve&&(cn=Ja),(da&&!le&&wt||!da&&Ft&&!le&&wt)&&(cn=La),cn&&(_n(cn),Uo())}},[le]),(0,te.useEffect)(function(){(Mn===Na&&!yt||Mn===Ja&&!Ve||Mn===La&&!wt)&&_n(Fa)},[yt,Ve,wt]),(0,te.useEffect)(function(){return function(){so.current=!1,clearTimeout(Xa.current)}},[]);var Oo=te.useRef(!1);(0,te.useEffect)(function(){Tn&&(Oo.current=!0),Tn!==void 0&&Mn===Fa&&((Oo.current||Tn)&&(ya==null||ya(Tn)),Oo.current=!0)},[Tn,Mn]);var ro=Vn;return Aa[wa]&&qa===Qn&&(ro=(0,xe.Z)({transition:"none"},ro)),[Mn,qa,ro,Tn!=null?Tn:le]}var En=oe(15671),Wn=oe(43144),Ba=oe(60136),bo=oe(51630),ao=function(ie){(0,Ba.Z)(se,ie);var le=(0,bo.Z)(se);function se(){return(0,En.Z)(this,se),le.apply(this,arguments)}return(0,Wn.Z)(se,[{key:"render",value:function(){return this.props.children}}]),se}(te.Component),Lo=ao;function Oa(ie){var le=ie;(0,ee.Z)(ie)==="object"&&(le=ie.transitionSupport);function se($e){return!!($e.motionName&&le)}var Se=te.forwardRef(function($e,Ve){var Qe=$e.visible,yt=Qe===void 0?!0:Qe,At=$e.removeOnLeave,wt=At===void 0?!0:At,Vt=$e.forceRender,Ft=$e.children,Kt=$e.motionName,Wt=$e.leavedClassName,rn=$e.eventProps,Nn=se($e),hn=(0,te.useRef)(),In=(0,te.useRef)();function Ln(){try{return hn.current instanceof HTMLElement?hn.current:Fo(In.current)}catch(wn){return null}}var mn=zn(Nn,yt,Ln,$e),_t=(0,Ne.Z)(mn,4),ra=_t[0],qn=_t[1],ia=_t[2],ya=_t[3],ja=te.useRef(ya);ya&&(ja.current=!0);var Un=te.useCallback(function(wn){hn.current=wn,ge(Ve,wn)},[Ve]),Tn,ha=(0,xe.Z)((0,xe.Z)({},rn),{},{visible:yt});if(!Ft)Tn=null;else if(ra===Fa||!se($e))ya?Tn=Ft((0,xe.Z)({},ha),Un):!wt&&ja.current&&Wt?Tn=Ft((0,xe.Z)((0,xe.Z)({},ha),{},{className:Wt}),Un):Vt||!wt&&!Wt?Tn=Ft((0,xe.Z)((0,xe.Z)({},ha),{},{style:{display:"none"}}),Un):Tn=null;else{var Ea,ga;qn===wa?ga="prepare":xa(qn)?ga="active":qn===Qn&&(ga="start"),Tn=Ft((0,xe.Z)((0,xe.Z)({},ha),{},{className:fe()(pa(Kt,ra),(Ea={},(0,ue.Z)(Ea,pa(Kt,"".concat(ra,"-").concat(ga)),ga),(0,ue.Z)(Ea,Kt,typeof Kt=="string"),Ea)),style:ia}),Un)}if(te.isValidElement(Tn)&&ce(Tn)){var Mn=Tn,_n=Mn.ref;_n||(Tn=te.cloneElement(Tn,{ref:Un}))}return te.createElement(Lo,{ref:In},Tn)});return Se.displayName="CSSMotion",Se}var Tr=Oa(Ra),Gr=oe(97326),cr="add",Er="keep",qo="remove",lo="removed";function Ir(ie){var le;return ie&&(0,ee.Z)(ie)==="object"&&"key"in ie?le=ie:le={key:ie},(0,xe.Z)((0,xe.Z)({},le),{},{key:String(le.key)})}function fr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ie.map(Ir)}function Dr(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],se=[],Se=0,$e=le.length,Ve=fr(ie),Qe=fr(le);Ve.forEach(function(wt){for(var Vt=!1,Ft=Se;Ft<$e;Ft+=1){var Kt=Qe[Ft];if(Kt.key===wt.key){Se<Ft&&(se=se.concat(Qe.slice(Se,Ft).map(function(Wt){return(0,xe.Z)((0,xe.Z)({},Wt),{},{status:cr})})),Se=Ft),se.push((0,xe.Z)((0,xe.Z)({},Kt),{},{status:Er})),Se+=1,Vt=!0;break}}Vt||se.push((0,xe.Z)((0,xe.Z)({},wt),{},{status:qo}))}),Se<$e&&(se=se.concat(Qe.slice(Se).map(function(wt){return(0,xe.Z)((0,xe.Z)({},wt),{},{status:cr})})));var yt={};se.forEach(function(wt){var Vt=wt.key;yt[Vt]=(yt[Vt]||0)+1});var At=Object.keys(yt).filter(function(wt){return yt[wt]>1});return At.forEach(function(wt){se=se.filter(function(Vt){var Ft=Vt.key,Kt=Vt.status;return Ft!==wt||Kt!==qo}),se.forEach(function(Vt){Vt.key===wt&&(Vt.status=Er)})}),se}var $i=["component","children","onVisibleChanged","onAllRemoved"],Ni=["status"],Mi=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Oi(ie){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Tr,se=function(Se){(0,Ba.Z)(Ve,Se);var $e=(0,bo.Z)(Ve);function Ve(){var Qe;(0,En.Z)(this,Ve);for(var yt=arguments.length,At=new Array(yt),wt=0;wt<yt;wt++)At[wt]=arguments[wt];return Qe=$e.call.apply($e,[this].concat(At)),(0,ue.Z)((0,Gr.Z)(Qe),"state",{keyEntities:[]}),(0,ue.Z)((0,Gr.Z)(Qe),"removeKey",function(Vt){var Ft=Qe.state.keyEntities,Kt=Ft.map(function(Wt){return Wt.key!==Vt?Wt:(0,xe.Z)((0,xe.Z)({},Wt),{},{status:lo})});return Qe.setState({keyEntities:Kt}),Kt.filter(function(Wt){var rn=Wt.status;return rn!==lo}).length}),Qe}return(0,Wn.Z)(Ve,[{key:"render",value:function(){var yt=this,At=this.state.keyEntities,wt=this.props,Vt=wt.component,Ft=wt.children,Kt=wt.onVisibleChanged,Wt=wt.onAllRemoved,rn=(0,Oe.Z)(wt,$i),Nn=Vt||te.Fragment,hn={};return Mi.forEach(function(In){hn[In]=rn[In],delete rn[In]}),delete rn.keys,te.createElement(Nn,rn,At.map(function(In){var Ln=In.status,mn=(0,Oe.Z)(In,Ni),_t=Ln===cr||Ln===Er;return te.createElement(le,(0,Fe.Z)({},hn,{key:mn.key,visible:_t,eventProps:mn,onVisibleChanged:function(qn){if(Kt==null||Kt(qn,{key:mn.key}),!qn){var ia=yt.removeKey(mn.key);ia===0&&Wt&&Wt()}}}),Ft)}))}}],[{key:"getDerivedStateFromProps",value:function(yt,At){var wt=yt.keys,Vt=At.keyEntities,Ft=fr(wt),Kt=Dr(Vt,Ft);return{keyEntities:Kt.filter(function(Wt){var rn=Vt.find(function(Nn){var hn=Nn.key;return Wt.key===hn});return!(rn&&rn.status===lo&&Wt.status===qo)})}}}]),Ve}(te.Component);return(0,ue.Z)(se,"defaultProps",{component:"div"}),se}var hg=Oi(Ra),Fi=Tr;function Ai(ie){var le=ie.prefixCls,se=ie.align,Se=ie.arrow,$e=ie.arrowPos,Ve=Se||{},Qe=Ve.className,yt=Ve.content,At=$e.x,wt=At===void 0?0:At,Vt=$e.y,Ft=Vt===void 0?0:Vt,Kt=te.useRef();if(!se||!se.points)return null;var Wt={position:"absolute"};if(se.autoArrow!==!1){var rn=se.points[0],Nn=se.points[1],hn=rn[0],In=rn[1],Ln=Nn[0],mn=Nn[1];hn===Ln||!["t","b"].includes(hn)?Wt.top=Ft:hn==="t"?Wt.top=0:Wt.bottom=0,In===mn||!["l","r"].includes(In)?Wt.left=wt:In==="l"?Wt.left=0:Wt.right=0}return te.createElement("div",{ref:Kt,className:fe()("".concat(le,"-arrow"),Qe),style:Wt},yt)}function zi(ie){var le=ie.prefixCls,se=ie.open,Se=ie.zIndex,$e=ie.mask,Ve=ie.motion;return $e?te.createElement(Fi,(0,Fe.Z)({},Ve,{motionAppear:!0,visible:se,removeOnLeave:!0}),function(Qe){var yt=Qe.className;return te.createElement("div",{style:{zIndex:Se},className:fe()("".concat(le,"-mask"),yt)})}):null}var Ti=te.memo(function(ie){var le=ie.children;return le},function(ie,le){return le.cache}),Gi=Ti,Ii=te.forwardRef(function(ie,le){var se=ie.popup,Se=ie.className,$e=ie.prefixCls,Ve=ie.style,Qe=ie.target,yt=ie.onVisibleChanged,At=ie.open,wt=ie.keepDom,Vt=ie.fresh,Ft=ie.onClick,Kt=ie.mask,Wt=ie.arrow,rn=ie.arrowPos,Nn=ie.align,hn=ie.motion,In=ie.maskMotion,Ln=ie.forceRender,mn=ie.getPopupContainer,_t=ie.autoDestroy,ra=ie.portal,qn=ie.zIndex,ia=ie.onMouseEnter,ya=ie.onMouseLeave,ja=ie.onPointerEnter,Un=ie.ready,Tn=ie.offsetX,ha=ie.offsetY,Ea=ie.offsetR,ga=ie.offsetB,Mn=ie.onAlign,_n=ie.onPrepare,wn=ie.stretch,Za=ie.targetWidth,Vn=ie.targetHeight,_a=typeof se=="function"?se():se,so=At||wt,Xa=(mn==null?void 0:mn.length)>0,uo=te.useState(!mn||!Xa),So=(0,Ne.Z)(uo,2),Hn=So[0],mo=So[1];if(gn(function(){!Hn&&Xa&&Qe&&mo(!0)},[Hn,Xa,Qe]),!Hn)return null;var Ca="auto",oa={left:"-1000vw",top:"-1000vh",right:Ca,bottom:Ca};if(Un||!At){var Aa,wo=Nn.points,Ro=Nn.dynamicInset||((Aa=Nn._experimental)===null||Aa===void 0?void 0:Aa.dynamicInset),Uo=Ro&&wo[0][1]==="r",qa=Ro&&wo[0][0]==="b";Uo?(oa.right=Ea,oa.left=Ca):(oa.left=Tn,oa.right=Ca),qa?(oa.bottom=ga,oa.top=Ca):(oa.top=ha,oa.bottom=Ca)}var oo={};return wn&&(wn.includes("height")&&Vn?oo.height=Vn:wn.includes("minHeight")&&Vn&&(oo.minHeight=Vn),wn.includes("width")&&Za?oo.width=Za:wn.includes("minWidth")&&Za&&(oo.minWidth=Za)),At||(oo.pointerEvents="none"),te.createElement(ra,{open:Ln||so,getContainer:mn&&function(){return mn(Qe)},autoDestroy:_t},te.createElement(zi,{prefixCls:$e,open:At,zIndex:qn,mask:Kt,motion:In}),te.createElement(Tt.Z,{onResize:Mn,disabled:!At},function(Oo){return te.createElement(Fi,(0,Fe.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ln,leavedClassName:"".concat($e,"-hidden")},hn,{onAppearPrepare:_n,onEnterPrepare:_n,visible:At,onVisibleChanged:function(da){var cn;hn==null||(cn=hn.onVisibleChanged)===null||cn===void 0||cn.call(hn,da),yt(da)}}),function(ro,da){var cn=ro.className,Ha=ro.style,co=fe()($e,cn,Se);return te.createElement("div",{ref:ft(Oo,le,da),className:co,style:(0,xe.Z)((0,xe.Z)((0,xe.Z)((0,xe.Z)({"--arrow-x":"".concat(rn.x||0,"px"),"--arrow-y":"".concat(rn.y||0,"px")},oa),oo),Ha),{},{boxSizing:"border-box",zIndex:qn},Ve),onMouseEnter:ia,onMouseLeave:ya,onPointerEnter:ja,onClick:Ft},Wt&&te.createElement(Ai,{prefixCls:$e,arrow:Wt,arrowPos:rn,align:Nn}),te.createElement(Gi,{cache:!At&&!Vt},_a))})}))}),Di=Ii,Ri=te.forwardRef(function(ie,le){var se=ie.children,Se=ie.getTriggerDOMNode,$e=ve(se),Ve=te.useCallback(function(yt){Ia(le,Se?Se(yt):yt)},[Se]),Qe=Cn(Ve,se.ref);return $e?te.cloneElement(se,{ref:Qe}):se}),ki=Ri,ji=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Zi(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:sn,le=te.forwardRef(function(se,Se){var $e=se.prefixCls,Ve=$e===void 0?"rc-trigger-popup":$e,Qe=se.children,yt=se.action,At=yt===void 0?"hover":yt,wt=se.showAction,Vt=se.hideAction,Ft=se.popupVisible,Kt=se.defaultPopupVisible,Wt=se.onPopupVisibleChange,rn=se.afterPopupVisibleChange,Nn=se.mouseEnterDelay,hn=se.mouseLeaveDelay,In=hn===void 0?.1:hn,Ln=se.focusDelay,mn=se.blurDelay,_t=se.mask,ra=se.maskClosable,qn=ra===void 0?!0:ra,ia=se.getPopupContainer,ya=se.forceRender,ja=se.autoDestroy,Un=se.destroyPopupOnHide,Tn=se.popup,ha=se.popupClassName,Ea=se.popupStyle,ga=se.popupPlacement,Mn=se.builtinPlacements,_n=Mn===void 0?{}:Mn,wn=se.popupAlign,Za=se.zIndex,Vn=se.stretch,_a=se.getPopupClassNameFromAlign,so=se.fresh,Xa=se.alignPoint,uo=se.onPopupClick,So=se.onPopupAlign,Hn=se.arrow,mo=se.popupMotion,Ca=se.maskMotion,oa=se.popupTransitionName,Aa=se.popupAnimation,wo=se.maskTransitionName,Ro=se.maskAnimation,Uo=se.className,qa=se.getTriggerDOMNode,oo=(0,Oe.Z)(se,ji),Oo=ja||Un||!1,ro=te.useState(!1),da=(0,Ne.Z)(ro,2),cn=da[0],Ha=da[1];gn(function(){Ha(Zn())},[]);var co=te.useRef({}),Ao=te.useContext(Xn),er=te.useMemo(function(){return{registerSubPopup:function(On,za){co.current[On]=za,Ao==null||Ao.registerSubPopup(On,za)}}},[Ao]),tr=nn(),ii=te.useState(null),Rr=(0,Ne.Z)(ii,2),Bo=Rr[0],kr=Rr[1],$o=Le(function(tn){Mt(tn)&&Bo!==tn&&kr(tn),Ao==null||Ao.registerSubPopup(tr,tn)}),No=te.useState(null),jr=(0,Ne.Z)(No,2),Mo=jr[0],gi=jr[1],di=Le(function(tn){Mt(tn)&&Mo!==tn&&gi(tn)}),Pr=te.Children.only(Qe),ho=(Pr==null?void 0:Pr.props)||{},_o={},li=Le(function(tn){var On,za,Ya=Mo;return(Ya==null?void 0:Ya.contains(tn))||((On=pn(Ya))===null||On===void 0?void 0:On.host)===tn||tn===Ya||(Bo==null?void 0:Bo.contains(tn))||((za=pn(Bo))===null||za===void 0?void 0:za.host)===tn||tn===Bo||Object.values(co.current).some(function(Ta){return(Ta==null?void 0:Ta.contains(tn))||tn===Ta})}),ko=ma(Ve,mo,Aa,oa),Po=ma(Ve,Ca,Ro,wo),Zr=te.useState(Kt||!1),Cr=(0,Ne.Z)(Zr,2),Vo=Cr[0],Wa=Cr[1],ea=Ft!=null?Ft:Vo,zo=Le(function(tn){Ft===void 0&&Wa(tn)});gn(function(){Wa(Ft||!1)},[Ft]);var To=te.useRef(ea);To.current=ea;var Fr=Le(function(tn){(0,Ke.flushSync)(function(){ea!==tn&&(zo(tn),Wt==null||Wt(tn))})}),xr=te.useRef(),Br=function(){clearTimeout(xr.current)},Eo=function(On){var za=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Br(),za===0?Fr(On):xr.current=setTimeout(function(){Fr(On)},za*1e3)};te.useEffect(function(){return Br},[]);var vr=te.useState(!1),Hr=(0,Ne.Z)(vr,2),$r=Hr[0],Nr=Hr[1];gn(function(tn){(!tn||ea)&&Nr(!0)},[ea]);var Wr=te.useState(null),Mr=(0,Ne.Z)(Wr,2),jo=Mr[0],nr=Mr[1],ar=te.useState([0,0]),or=(0,Ne.Z)(ar,2),Or=or[0],Ur=or[1],Go=function(On){Ur([On.clientX,On.clientY])},_r=pt(ea,Bo,Xa?Or:Mo,ga,_n,wn,So),vo=(0,Ne.Z)(_r,11),rr=vo[0],Vr=vo[1],si=vo[2],Kr=vo[3],Xr=vo[4],ir=vo[5],Yr=vo[6],ui=vo[7],gr=vo[8],dr=vo[9],Ar=vo[10],lr=Dn(cn,At,wt,Vt),Ko=(0,Ne.Z)(lr,2),Xo=Ko[0],sr=Ko[1],pr=Xo.has("click"),yr=sr.has("click")||sr.has("contextMenu"),Zo=Le(function(){$r||Ar()}),mi=function(){To.current&&Xa&&yr&&Eo(!1)};kt(ea,Mo,Bo,Zo,mi),gn(function(){Zo()},[Or,ga]),gn(function(){ea&&!(_n!=null&&_n[ga])&&Zo()},[JSON.stringify(wn)]);var Qr=te.useMemo(function(){var tn=ua(_n,Ve,dr,Xa);return fe()(tn,_a==null?void 0:_a(dr))},[dr,_a,_n,Ve,Xa]);te.useImperativeHandle(Se,function(){return{forceAlign:Zo}});var ci=te.useState(0),Jr=(0,Ne.Z)(ci,2),fi=Jr[0],Si=Jr[1],hi=te.useState(0),qr=(0,Ne.Z)(hi,2),Pi=qr[0],vi=qr[1],ei=function(){if(Vn&&Mo){var On=Mo.getBoundingClientRect();Si(On.width),vi(On.height)}},pi=function(){ei(),Zo()},yi=function(On){Nr(!1),Ar(),rn==null||rn(On)},Co=function(){return new Promise(function(On){ei(),nr(function(){return On})})};gn(function(){jo&&(Ar(),jo(),nr(null))},[jo]);function Ho(tn,On,za,Ya){_o[tn]=function(Ta){var ai;Ya==null||Ya(Ta),Eo(On,za);for(var Ci=arguments.length,Bi=new Array(Ci>1?Ci-1:0),oi=1;oi<Ci;oi++)Bi[oi-1]=arguments[oi];(ai=ho[tn])===null||ai===void 0||ai.call.apply(ai,[ho,Ta].concat(Bi))}}(pr||yr)&&(_o.onClick=function(tn){var On;To.current&&yr?Eo(!1):!To.current&&pr&&(Go(tn),Eo(!0));for(var za=arguments.length,Ya=new Array(za>1?za-1:0),Ta=1;Ta<za;Ta++)Ya[Ta-1]=arguments[Ta];(On=ho.onClick)===null||On===void 0||On.call.apply(On,[ho,tn].concat(Ya))}),ca(ea,yr,Mo,Bo,_t,qn,li,Eo);var ti=Xo.has("hover"),ur=sr.has("hover"),Yo,zr;ti&&(Ho("onMouseEnter",!0,Nn,function(tn){Go(tn)}),Ho("onPointerEnter",!0,Nn,function(tn){Go(tn)}),Yo=function(){(ea||$r)&&Eo(!0,Nn)},Xa&&(_o.onMouseMove=function(tn){var On;(On=ho.onMouseMove)===null||On===void 0||On.call(ho,tn)})),ur&&(Ho("onMouseLeave",!1,In),Ho("onPointerLeave",!1,In),zr=function(){Eo(!1,In)}),Xo.has("focus")&&Ho("onFocus",!0,Ln),sr.has("focus")&&Ho("onBlur",!1,mn),Xo.has("contextMenu")&&(_o.onContextMenu=function(tn){var On;To.current&&sr.has("contextMenu")?Eo(!1):(Go(tn),Eo(!0)),tn.preventDefault();for(var za=arguments.length,Ya=new Array(za>1?za-1:0),Ta=1;Ta<za;Ta++)Ya[Ta-1]=arguments[Ta];(On=ho.onContextMenu)===null||On===void 0||On.call.apply(On,[ho,tn].concat(Ya))}),Uo&&(_o.className=fe()(ho.className,Uo));var br=(0,xe.Z)((0,xe.Z)({},ho),_o),ni={},bi=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];bi.forEach(function(tn){oo[tn]&&(ni[tn]=function(){for(var On,za=arguments.length,Ya=new Array(za),Ta=0;Ta<za;Ta++)Ya[Ta]=arguments[Ta];(On=br[tn])===null||On===void 0||On.call.apply(On,[br].concat(Ya)),oo[tn].apply(oo,Ya)})});var Li=te.cloneElement(Pr,(0,xe.Z)((0,xe.Z)({},br),ni)),wi={x:ir,y:Yr},Ei=Hn?(0,xe.Z)({},Hn!==!0?Hn:{}):null;return te.createElement(te.Fragment,null,te.createElement(Tt.Z,{disabled:!ea,ref:di,onResize:pi},te.createElement(ki,{getTriggerDOMNode:qa},Li)),te.createElement(Xn.Provider,{value:er},te.createElement(Di,{portal:ie,ref:$o,prefixCls:Ve,popup:Tn,className:fe()(ha,Qr),style:Ea,target:Mo,onMouseEnter:Yo,onMouseLeave:zr,onPointerEnter:Yo,zIndex:Za,open:ea,keepDom:$r,fresh:so,onClick:uo,mask:_t,motion:ko,maskMotion:Po,onVisibleChanged:yi,onPrepare:Co,forceRender:ya,autoDestroy:Oo,getPopupContainer:ia,align:dr,arrow:Ei,arrowPos:wi,ready:rr,offsetX:Vr,offsetY:si,offsetR:Kr,offsetB:Xr,onAlign:Zo,stretch:Vn,targetWidth:fi/ui,targetHeight:Pi/gr})))});return le}var Hi=Zi(sn),fn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(le){var se=le.keyCode;if(le.altKey&&!le.ctrlKey||le.metaKey||se>=fn.F1&&se<=fn.F12)return!1;switch(se){case fn.ALT:case fn.CAPS_LOCK:case fn.CONTEXT_MENU:case fn.CTRL:case fn.DOWN:case fn.END:case fn.ESC:case fn.HOME:case fn.INSERT:case fn.LEFT:case fn.MAC_FF_META:case fn.META:case fn.NUMLOCK:case fn.NUM_CENTER:case fn.PAGE_DOWN:case fn.PAGE_UP:case fn.PAUSE:case fn.PRINT_SCREEN:case fn.RIGHT:case fn.SHIFT:case fn.UP:case fn.WIN_KEY:case fn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(le){if(le>=fn.ZERO&&le<=fn.NINE||le>=fn.NUM_ZERO&&le<=fn.NUM_MULTIPLY||le>=fn.A&&le<=fn.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&le===0)return!0;switch(le){case fn.SPACE:case fn.QUESTION_MARK:case fn.NUM_PLUS:case fn.NUM_MINUS:case fn.NUM_PERIOD:case fn.NUM_DIVISION:case fn.SEMICOLON:case fn.DASH:case fn.EQUALS:case fn.COMMA:case fn.PERIOD:case fn.SLASH:case fn.APOSTROPHE:case fn.SINGLE_QUOTE:case fn.OPEN_SQUARE_BRACKET:case fn.BACKSLASH:case fn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},xi=fn,Wi=xi.ESC,Ui=xi.TAB;function _i(ie){var le=ie.visible,se=ie.triggerRef,Se=ie.onVisibleChange,$e=ie.autoFocus,Ve=ie.overlayRef,Qe=te.useRef(!1),yt=function(){if(le){var Ft,Kt;(Ft=se.current)===null||Ft===void 0||(Kt=Ft.focus)===null||Kt===void 0||Kt.call(Ft),Se==null||Se(!1)}},At=function(){var Ft;return(Ft=Ve.current)!==null&&Ft!==void 0&&Ft.focus?(Ve.current.focus(),Qe.current=!0,!0):!1},wt=function(Ft){switch(Ft.keyCode){case Wi:yt();break;case Ui:{var Kt=!1;Qe.current||(Kt=At()),Kt?Ft.preventDefault():yt();break}}};te.useEffect(function(){return le?(window.addEventListener("keydown",wt),$e&&Lt(At,3),function(){window.removeEventListener("keydown",wt),Qe.current=!1}):function(){Qe.current=!1}},[le])}var Vi=(0,te.forwardRef)(function(ie,le){var se=ie.overlay,Se=ie.arrow,$e=ie.prefixCls,Ve=(0,te.useMemo)(function(){var yt;return typeof se=="function"?yt=se():yt=se,yt},[se]),Qe=de(le,Ve==null?void 0:Ve.ref);return te.createElement(te.Fragment,null,Se&&te.createElement("div",{className:"".concat($e,"-arrow")}),te.cloneElement(Ve,{ref:ce(Ve)?Qe:void 0}))}),Ki=Vi,Sr={adjustX:1,adjustY:1},hr=[0,0],Xi={topLeft:{points:["bl","tl"],overflow:Sr,offset:[0,-4],targetOffset:hr},top:{points:["bc","tc"],overflow:Sr,offset:[0,-4],targetOffset:hr},topRight:{points:["br","tr"],overflow:Sr,offset:[0,-4],targetOffset:hr},bottomLeft:{points:["tl","bl"],overflow:Sr,offset:[0,4],targetOffset:hr},bottom:{points:["tc","bc"],overflow:Sr,offset:[0,4],targetOffset:hr},bottomRight:{points:["tr","br"],overflow:Sr,offset:[0,4],targetOffset:hr}},Yi=Xi,Qi=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Ji(ie,le){var se,Se=ie.arrow,$e=Se===void 0?!1:Se,Ve=ie.prefixCls,Qe=Ve===void 0?"rc-dropdown":Ve,yt=ie.transitionName,At=ie.animation,wt=ie.align,Vt=ie.placement,Ft=Vt===void 0?"bottomLeft":Vt,Kt=ie.placements,Wt=Kt===void 0?Yi:Kt,rn=ie.getPopupContainer,Nn=ie.showAction,hn=ie.hideAction,In=ie.overlayClassName,Ln=ie.overlayStyle,mn=ie.visible,_t=ie.trigger,ra=_t===void 0?["hover"]:_t,qn=ie.autoFocus,ia=ie.overlay,ya=ie.children,ja=ie.onVisibleChange,Un=(0,Oe.Z)(ie,Qi),Tn=te.useState(),ha=(0,Ne.Z)(Tn,2),Ea=ha[0],ga=ha[1],Mn="visible"in ie?mn:Ea,_n=te.useRef(null),wn=te.useRef(null),Za=te.useRef(null);te.useImperativeHandle(le,function(){return _n.current});var Vn=function(oa){ga(oa),ja==null||ja(oa)};_i({visible:Mn,triggerRef:Za,onVisibleChange:Vn,autoFocus:qn,overlayRef:wn});var _a=function(oa){var Aa=ie.onOverlayClick;ga(!1),Aa&&Aa(oa)},so=function(){return te.createElement(Ki,{ref:wn,overlay:ia,prefixCls:Qe,arrow:$e})},Xa=function(){return typeof ia=="function"?so:so()},uo=function(){var oa=ie.minOverlayWidthMatchTrigger,Aa=ie.alignPoint;return"minOverlayWidthMatchTrigger"in ie?oa:!Aa},So=function(){var oa=ie.openClassName;return oa!==void 0?oa:"".concat(Qe,"-open")},Hn=te.cloneElement(ya,{className:fe()((se=ya.props)===null||se===void 0?void 0:se.className,Mn&&So()),ref:ce(ya)?de(Za,ya.ref):void 0}),mo=hn;return!mo&&ra.indexOf("contextMenu")!==-1&&(mo=["click"]),te.createElement(Hi,(0,Fe.Z)({builtinPlacements:Wt},Un,{prefixCls:Qe,ref:_n,popupClassName:fe()(In,(0,ue.Z)({},"".concat(Qe,"-show-arrow"),$e)),popupStyle:Ln,action:ra,showAction:Nn,hideAction:mo,popupPlacement:Ft,popupAlign:wt,popupTransitionName:yt,popupAnimation:At,popupVisible:Mn,stretch:uo()?"minWidth":"",popup:Xa(),onPopupVisibleChange:Vn,onPopupClick:_a,getPopupContainer:rn}),Hn)}var qi=te.forwardRef(Ji),eg=qi,tg=oe(60276),ng=oe(5663),ag=oe(10366),og=oe(80636),rg=oe(8745),ig=oe(96159),gg=oe(53124),dg=oe(68508),lg=oe(76529),sg=oe(46605),ug=oe(66748);const Pg=null,ri=ie=>{const{menu:le,arrow:se,prefixCls:Se,children:$e,trigger:Ve,disabled:Qe,dropdownRender:yt,getPopupContainer:At,overlayClassName:wt,rootClassName:Vt,open:Ft,onOpenChange:Kt,visible:Wt,onVisibleChange:rn,mouseEnterDelay:Nn=.15,mouseLeaveDelay:hn=.1,autoAdjustOverflow:In=!0,placement:Ln="",overlay:mn,transitionName:_t}=ie,{getPopupContainer:ra,getPrefixCls:qn,direction:ia}=te.useContext(gg.E_),ya=te.useMemo(()=>{const Hn=qn();return _t!==void 0?_t:Ln.includes("top")?`${Hn}-slide-down`:`${Hn}-slide-up`},[qn,Ln,_t]),ja=te.useMemo(()=>Ln?Ln.includes("Center")?Ln.slice(0,Ln.indexOf("Center")):Ln:ia==="rtl"?"bottomRight":"bottomLeft",[Ln,ia]),Un=qn("dropdown",Se),[Tn,ha]=(0,ug.Z)(Un),[,Ea]=(0,sg.Z)(),ga=te.Children.only($e),Mn=(0,ig.Tm)(ga,{className:fe()(`${Un}-trigger`,{[`${Un}-rtl`]:ia==="rtl"},ga.props.className),disabled:Qe}),_n=Qe?[]:Ve;let wn;_n&&_n.includes("contextMenu")&&(wn=!0);const[Za,Vn]=(0,ng.Z)(!1,{value:Ft!=null?Ft:Wt}),_a=(0,tg.useEvent)(Hn=>{Kt==null||Kt(Hn),rn==null||rn(Hn),Vn(Hn)}),so=fe()(wt,Vt,ha,{[`${Un}-rtl`]:ia==="rtl"}),Xa=(0,og.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:In,offset:Ea.marginXXS,arrowWidth:se?Ea.sizePopupArrow:0,borderRadius:Ea.borderRadius}),uo=te.useCallback(()=>{Vn(!1)},[]),So=()=>{let Hn;return le!=null&&le.items?Hn=te.createElement(dg.default,Object.assign({},le)):typeof mn=="function"?Hn=mn():Hn=mn,yt&&(Hn=yt(Hn)),Hn=te.Children.only(typeof Hn=="string"?te.createElement("span",null,Hn):Hn),te.createElement(lg.J,{prefixCls:`${Un}-menu`,expandIcon:te.createElement("span",{className:`${Un}-menu-submenu-arrow`},te.createElement(Xe.Z,{className:`${Un}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:uo,validator:mo=>{let{mode:Ca}=mo}},Hn)};return Tn(te.createElement(eg,Object.assign({alignPoint:wn},(0,ag.Z)(ie,["rootClassName"]),{mouseEnterDelay:Nn,mouseLeaveDelay:hn,visible:Za,builtinPlacements:Xa,arrow:!!se,overlayClassName:so,prefixCls:Un,getPopupContainer:At||ra,transitionName:ya,trigger:_n,overlay:So,placement:ja,onVisibleChange:_a}),Mn))};function mg(ie){return Object.assign(Object.assign({},ie),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const cg=(0,rg.Z)(ri,"dropdown",ie=>ie,mg),fg=ie=>te.createElement(cg,Object.assign({},ie),te.createElement("span",null));ri._InternalPanelDoNotUseOrYouWillBeFired=fg;var Sg=ri},66748:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ke}});var te=oe(14747),Pe=oe(67771),Xe=oe(33297),Ie=oe(50438),fe=oe(97414),Fe=oe(67968),ue=oe(45503),Oe=je=>{const{componentCls:De,menuCls:ae,colorError:a,colorTextLightSolid:y}=je,E=`${ae}-item`;return{[`${De}, ${De}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const xe=je=>{const{componentCls:De,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:ne,dropdownEdgeChildPadding:re,colorTextDisabled:ge,fontSizeIcon:de,controlPaddingHorizontal:he,colorBgElevated:ce}=je;return[{[De]:Object.assign(Object.assign({},(0,te.Wf)(je)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:de}},[`${De}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:de},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${De}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${De}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${De}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${De}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${De}-placement-bottomRight`]:{animationName:Pe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${De}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${De}-placement-topRight`]:{animationName:Pe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${De}-placement-bottomRight`]:{animationName:Pe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${De}-placement-topRight`]:{animationName:Pe.ly}})},(0,fe.ZP)(je,{colorBg:ce,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${De} ${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}},[`${De}, ${De}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:ce,backgroundClip:"padding-box",borderRadius:je.borderRadiusLG,outline:"none",boxShadow:je.boxShadowSecondary},(0,te.Qy)(je)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${he}px`,color:je.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:ne,marginInlineEnd:je.marginXS,fontSize:je.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 ${he}px`,color:je.colorText,fontWeight:"normal",fontSize:ne,lineHeight:je.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:je.borderRadiusSM,"&:hover, &-active":{backgroundColor:je.controlItemBgHover}},(0,te.Qy)(je)),{"&-selected":{color:je.colorPrimary,backgroundColor:je.controlItemBgActive,"&:hover, &-active":{backgroundColor:je.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:ce,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${je.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:je.colorSplit},[`${De}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:je.paddingXS,[`${De}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:je.colorTextDescription,fontSize:de,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${je.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:he+je.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${De}-menu-submenu-title`]:{[`&, ${De}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:ce,cursor:"not-allowed"}},[`${ae}-submenu-selected ${De}-menu-submenu-title`]:{color:je.colorPrimary}})}},[(0,Pe.oN)(je,"slide-up"),(0,Pe.oN)(je,"slide-down"),(0,Xe.Fm)(je,"move-up"),(0,Xe.Fm)(je,"move-down"),(0,Ie._y)(je,"zoom-big")]]};var Ke=(0,Fe.Z)("Dropdown",(je,De)=>{let{rootPrefixCls:ae}=De;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:ne}=je,re=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,fe.fS)({contentRadius:ne}),de=(0,ue.TS)(je,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[xe(de),Oe(de)]},je=>({zIndexPopup:je.zIndexPopupBase+50}))},71322:function(Te,mt,oe){"use strict";oe.d(mt,{D:function(){return x},Z:function(){return ne}});var te=oe(87462),Pe=oe(67294),Xe={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=Xe,fe=oe(74643),Fe=function(ge,de){return Pe.createElement(fe.Z,(0,te.Z)({},ge,{ref:de,icon:Ie}))},ue=Pe.forwardRef(Fe),Ne=oe(22751),Oe=oe(91034),xe=oe(94184),Ke=oe.n(xe),je=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ge){var de={};for(var he in re)Object.prototype.hasOwnProperty.call(re,he)&&ge.indexOf(he)<0&&(de[he]=re[he]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,he=Object.getOwnPropertySymbols(re);ce<he.length;ce++)ge.indexOf(he[ce])<0&&Object.prototype.propertyIsEnumerable.call(re,he[ce])&&(de[he[ce]]=re[he[ce]]);return de};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=Pe.createContext({}),z=(()=>{let re=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ge}${re}`}})();var ne=Pe.forwardRef((re,ge)=>{const{prefixCls:de,className:he,trigger:ce,children:Re,defaultCollapsed:He=!1,theme:Et="dark",style:zt={},collapsible:Ut=!1,reverseArrow:be=!1,width:Ue=200,collapsedWidth:ke=80,zeroWidthTriggerStyle:gt,breakpoint:ct,onCollapse:Je,onBreakpoint:_e}=re,dt=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Nt}=(0,Pe.useContext)(y.Gs),[ye,ze]=(0,Pe.useState)("collapsed"in re?re.collapsed:He),[rt,Bt]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in re&&ze(re.collapsed)},[re.collapsed]);const et=(Pt,Me)=>{"collapsed"in re||ze(Pt),Je==null||Je(Pt,Me)},lt=(0,Pe.useRef)();lt.current=Pt=>{Bt(Pt.matches),_e==null||_e(Pt.matches),ye!==Pt.matches&&et(Pt.matches,"responsive")},(0,Pe.useEffect)(()=>{function Pt(Ee){return lt.current(Ee)}let Me;if(typeof window!="undefined"){const{matchMedia:Ee}=window;if(Ee&&ct&&ct in b){Me=Ee(`(max-width: ${b[ct]})`);try{Me.addEventListener("change",Pt)}catch(we){Me.addListener(Pt)}Pt(Me)}}return()=>{try{Me==null||Me.removeEventListener("change",Pt)}catch(Ee){Me==null||Me.removeListener(Pt)}}},[ct]),(0,Pe.useEffect)(()=>{const Pt=z("ant-sider-");return Nt.addSider(Pt),()=>Nt.removeSider(Pt)},[]);const me=()=>{et(!ye,"clickTrigger")},{getPrefixCls:it}=(0,Pe.useContext)(a.E_),Ct=()=>{const Pt=it("layout-sider",de),Me=(0,je.Z)(dt,["collapsed"]),Ee=ye?ke:Ue,we=ae(Ee)?`${Ee}px`:String(Ee),tt=parseFloat(String(ke||0))===0?Pe.createElement("span",{onClick:me,className:Ke()(`${Pt}-zero-width-trigger`,`${Pt}-zero-width-trigger-${be?"right":"left"}`),style:gt},ce||Pe.createElement(ue,null)):null,Rt={expanded:be?Pe.createElement(Oe.Z,null):Pe.createElement(Ne.Z,null),collapsed:be?Pe.createElement(Ne.Z,null):Pe.createElement(Oe.Z,null)}[ye?"collapsed":"expanded"],Gt=ce!==null?tt||Pe.createElement("div",{className:`${Pt}-trigger`,onClick:me,style:{width:we}},ce||Rt):null,en=Object.assign(Object.assign({},zt),{flex:`0 0 ${we}`,maxWidth:we,minWidth:we,width:we}),ln=Ke()(Pt,`${Pt}-${Et}`,{[`${Pt}-collapsed`]:!!ye,[`${Pt}-has-trigger`]:Ut&&ce!==null&&!tt,[`${Pt}-below`]:!!rt,[`${Pt}-zero-width`]:parseFloat(we)===0},he);return Pe.createElement("aside",Object.assign({className:ln},Me,{style:en,ref:ge}),Pe.createElement("div",{className:`${Pt}-children`},Re),Ut||rt&&tt?Gt:null)},qt=Pe.useMemo(()=>({siderCollapsed:ye}),[ye]);return Pe.createElement(x.Provider,{value:qt},Ct())})},84321:function(Te,mt,oe){"use strict";oe.d(mt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return De},ZP:function(){return ee}});var te=oe(74902),Pe=oe(94184),Xe=oe.n(Pe),Ie=oe(10366),fe=oe(67294),Fe=oe(53124),ue=oe(67968),Oe=ne=>{const{componentCls:re,bodyBg:ge,lightSiderBg:de,lightTriggerBg:he,lightTriggerColor:ce}=ne;return{[`${re}-sider-light`]:{background:de,[`${re}-sider-trigger`]:{color:ce,background:he},[`${re}-sider-zero-width-trigger`]:{color:ce,background:he,border:`1px solid ${ge}`,borderInlineStart:0}}}};const xe=ne=>{const{antCls:re,componentCls:ge,colorText:de,triggerColor:he,footerBg:ce,triggerBg:Re,headerHeight:He,headerPadding:Et,headerColor:zt,footerPadding:Ut,triggerHeight:be,zeroTriggerHeight:Ue,zeroTriggerWidth:ke,motionDurationMid:gt,motionDurationSlow:ct,fontSize:Je,borderRadius:_e,bodyBg:dt,headerBg:Nt,siderBg:ye}=ne;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:dt,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:ye,transition:`all ${gt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:be},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:be,color:he,lineHeight:`${be}px`,textAlign:"center",background:Re,cursor:"pointer",transition:`all ${gt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:He,insetInlineEnd:-ke,zIndex:1,width:ke,height:Ue,color:he,fontSize:ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:_e,borderEndEndRadius:_e,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ct} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ct}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ke,borderStartStartRadius:_e,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:_e}}}}},Oe(ne)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:He,padding:Et,color:zt,lineHeight:`${He}px`,background:Nt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:Ut,color:de,fontSize:Je,background:ce},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Ke=(0,ue.Z)("Layout",ne=>[xe(ne)],ne=>{const{colorBgLayout:re,controlHeight:ge,controlHeightLG:de,colorText:he,controlHeightSM:ce,marginXXS:Re,colorTextLightSolid:He,colorBgContainer:Et}=ne,zt=de*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${zt}px`,headerColor:he,footerPadding:`${ce}px ${zt}px`,footerBg:re,siderBg:"#001529",triggerHeight:de+Re*2,triggerBg:"#002140",triggerColor:He,zeroTriggerWidth:de,zeroTriggerHeight:de,lightSiderBg:Et,lightTriggerBg:Et,lightTriggerColor:he}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),je=function(ne,re){var ge={};for(var de in ne)Object.prototype.hasOwnProperty.call(ne,de)&&re.indexOf(de)<0&&(ge[de]=ne[de]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,de=Object.getOwnPropertySymbols(ne);he<de.length;he++)re.indexOf(de[he])<0&&Object.prototype.propertyIsEnumerable.call(ne,de[he])&&(ge[de[he]]=ne[de[he]]);return ge};const De=fe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(ne){let{suffixCls:re,tagName:ge,displayName:de}=ne;return he=>fe.forwardRef((Re,He)=>fe.createElement(he,Object.assign({ref:He,suffixCls:re,tagName:ge},Re)))}const a=fe.forwardRef((ne,re)=>{const{prefixCls:ge,suffixCls:de,className:he,tagName:ce}=ne,Re=je(ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:He}=fe.useContext(Fe.E_),Et=He("layout",ge),[zt,Ut]=Ke(Et),be=de?`${Et}-${de}`:Et;return zt(fe.createElement(ce,Object.assign({className:Xe()(ge||be,he,Ut),ref:re},Re)))}),y=fe.forwardRef((ne,re)=>{const{direction:ge}=fe.useContext(Fe.E_),[de,he]=fe.useState([]),{prefixCls:ce,className:Re,rootClassName:He,children:Et,hasSider:zt,tagName:Ut,style:be}=ne,Ue=je(ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ke=(0,Ie.Z)(Ue,["suffixCls"]),{getPrefixCls:gt,layout:ct}=fe.useContext(Fe.E_),Je=gt("layout",ce),[_e,dt]=Ke(Je),Nt=Xe()(Je,{[`${Je}-has-sider`]:typeof zt=="boolean"?zt:de.length>0,[`${Je}-rtl`]:ge==="rtl"},ct==null?void 0:ct.className,Re,He,dt),ye=fe.useMemo(()=>({siderHook:{addSider:ze=>{he(rt=>[].concat((0,te.Z)(rt),[ze]))},removeSider:ze=>{he(rt=>rt.filter(Bt=>Bt!==ze))}}}),[]);return _e(fe.createElement(De.Provider,{value:ye},fe.createElement(Ut,Object.assign({ref:re,className:Nt,style:Object.assign(Object.assign({},ct==null?void 0:ct.style),be)},ke),Et)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Te,mt,oe){"use strict";oe.d(mt,{J:function(){return Fe}});var te=oe(67294),Pe=oe(4173),Xe=oe(60276),Ie=function(ue,Ne){var Oe={};for(var xe in ue)Object.prototype.hasOwnProperty.call(ue,xe)&&Ne.indexOf(xe)<0&&(Oe[xe]=ue[xe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,xe=Object.getOwnPropertySymbols(ue);Ke<xe.length;Ke++)Ne.indexOf(xe[Ke])<0&&Object.prototype.propertyIsEnumerable.call(ue,xe[Ke])&&(Oe[xe[Ke]]=ue[xe[Ke]]);return Oe};const fe=te.createContext(null),Fe=te.forwardRef((ue,Ne)=>{const{children:Oe}=ue,xe=Ie(ue,["children"]),Ke=te.useContext(fe),je=te.useMemo(()=>Object.assign(Object.assign({},Ke),xe),[Ke,xe.prefixCls,xe.mode,xe.selectable]);return te.createElement(fe.Provider,{value:je},te.createElement(Pe.BR,null,(0,Xe.supportNodeRef)(Oe)?te.cloneElement(Oe,{ref:Ne}):Oe))});mt.Z=fe},68508:function(Te,mt,oe){"use strict";oe.d(mt,{default:function(){return Pt}});var te=oe(52073),Pe=oe(67294),Xe=oe(71322),Ie=oe(94184),fe=oe.n(Ie),Fe=oe(53124),ue=function(Me,Ee){var we={};for(var tt in Me)Object.prototype.hasOwnProperty.call(Me,tt)&&Ee.indexOf(tt)<0&&(we[tt]=Me[tt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,tt=Object.getOwnPropertySymbols(Me);qe<tt.length;qe++)Ee.indexOf(tt[qe])<0&&Object.prototype.propertyIsEnumerable.call(Me,tt[qe])&&(we[tt[qe]]=Me[tt[qe]]);return we},Oe=Me=>{const{prefixCls:Ee,className:we,dashed:tt}=Me,qe=ue(Me,["prefixCls","className","dashed"]),{getPrefixCls:vt}=Pe.useContext(Fe.E_),Rt=vt("menu",Ee),Gt=fe()({[`${Rt}-item-divider-dashed`]:!!tt},we);return Pe.createElement(te.iz,Object.assign({className:Gt},qe))},xe=oe(37419),Ke=oe(10366),je=oe(83062),De=oe(96159),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Me=>{var Ee;const{className:we,children:tt,icon:qe,title:vt,danger:Rt}=Me,{prefixCls:Gt,firstLevel:en,direction:ln,disableMenuItemTitleTooltip:sn,inlineCollapsed:Tt}=Pe.useContext(a),Mt=Ge=>{const ot=Pe.createElement("span",{className:`${Gt}-title-content`},tt);return(!qe||(0,De.l$)(tt)&&tt.type==="span")&&tt&&Ge&&en&&typeof tt=="string"?Pe.createElement("div",{className:`${Gt}-inline-collapsed-noicon`},tt.charAt(0)):ot},{siderCollapsed:Qt}=Pe.useContext(Xe.D);let jn=vt;typeof vt=="undefined"?jn=en?tt:"":vt===!1&&(jn="");const xn={title:jn};!Qt&&!Tt&&(xn.title=null,xn.open=!1);const pn=(0,xe.Z)(tt).length;let Le=Pe.createElement(te.ck,Object.assign({},(0,Ke.Z)(Me,["title","icon","danger"]),{className:fe()({[`${Gt}-item-danger`]:Rt,[`${Gt}-item-only-child`]:(qe?pn+1:pn)===1},we),title:typeof vt=="string"?vt:void 0}),(0,De.Tm)(qe,{className:fe()((0,De.l$)(qe)?(Ee=qe.props)===null||Ee===void 0?void 0:Ee.className:"",`${Gt}-item-icon`)}),Mt(Tt));return sn||(Le=Pe.createElement(je.Z,Object.assign({},xn,{placement:ln==="rtl"?"left":"right",overlayClassName:`${Gt}-inline-collapsed-tooltip`}),Le)),Le},x=Me=>{var Ee;const{popupClassName:we,icon:tt,title:qe,theme:vt}=Me,Rt=Pe.useContext(a),{prefixCls:Gt,inlineCollapsed:en,theme:ln}=Rt,sn=(0,te.Xl)();let Tt;if(!tt)Tt=en&&!sn.length&&qe&&typeof qe=="string"?Pe.createElement("div",{className:`${Gt}-inline-collapsed-noicon`},qe.charAt(0)):Pe.createElement("span",{className:`${Gt}-title-content`},qe);else{const Qt=(0,De.l$)(qe)&&qe.type==="span";Tt=Pe.createElement(Pe.Fragment,null,(0,De.Tm)(tt,{className:fe()((0,De.l$)(tt)?(Ee=tt.props)===null||Ee===void 0?void 0:Ee.className:"",`${Gt}-item-icon`)}),Qt?qe:Pe.createElement("span",{className:`${Gt}-title-content`},qe))}const Mt=Pe.useMemo(()=>Object.assign(Object.assign({},Rt),{firstLevel:!1}),[Rt]);return Pe.createElement(a.Provider,{value:Mt},Pe.createElement(te.Wd,Object.assign({},(0,Ke.Z)(Me,["icon"]),{title:Tt,popupClassName:fe()(Gt,we,`${Gt}-${vt||ln}`)})))},z=oe(25877),ee=oe(60276),ne=oe(33603),re=oe(76529),ge=function(Me,Ee){var we={};for(var tt in Me)Object.prototype.hasOwnProperty.call(Me,tt)&&Ee.indexOf(tt)<0&&(we[tt]=Me[tt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,tt=Object.getOwnPropertySymbols(Me);qe<tt.length;qe++)Ee.indexOf(tt[qe])<0&&Object.prototype.propertyIsEnumerable.call(Me,tt[qe])&&(we[tt[qe]]=Me[tt[qe]]);return we};function de(Me){return(Me||[]).map((Ee,we)=>{if(Ee&&typeof Ee=="object"){const tt=Ee,{label:qe,children:vt,key:Rt,type:Gt}=tt,en=ge(tt,["label","children","key","type"]),ln=Rt!=null?Rt:`tmp-${we}`;return vt||Gt==="group"?Gt==="group"?Pe.createElement(te.BW,Object.assign({key:ln},en,{title:qe}),de(vt)):Pe.createElement(x,Object.assign({key:ln},en,{title:qe}),de(vt)):Gt==="divider"?Pe.createElement(Oe,Object.assign({key:ln},en)):Pe.createElement(E,Object.assign({key:ln},en),qe)}return null}).filter(Ee=>Ee)}function he(Me){return Pe.useMemo(()=>Me&&de(Me),[Me])}var ce=oe(84780),Re=oe(14747),He=oe(33507),Et=oe(67771),zt=oe(50438),Ut=oe(67968),be=oe(45503),ke=Me=>{const{componentCls:Ee,motionDurationSlow:we,horizontalLineHeight:tt,colorSplit:qe,lineWidth:vt,lineType:Rt,itemPaddingInline:Gt}=Me;return{[`${Ee}-horizontal`]:{lineHeight:tt,border:0,borderBottom:`${vt}px ${Rt} ${qe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ee}-item, ${Ee}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Gt},[`> ${Ee}-item:hover,
|
|
> ${Ee}-item-active,
|
|
> ${Ee}-submenu ${Ee}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ee}-item, ${Ee}-submenu-title`]:{transition:[`border-color ${we}`,`background ${we}`].join(",")},[`${Ee}-submenu-arrow`]:{display:"none"}}}},ct=Me=>{let{componentCls:Ee,menuArrowOffset:we}=Me;return{[`${Ee}-rtl`]:{direction:"rtl"},[`${Ee}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ee}-rtl${Ee}-vertical,
|
|
${Ee}-submenu-rtl ${Ee}-vertical`]:{[`${Ee}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${we})`},"&::after":{transform:`rotate(45deg) translateY(${we})`}}}}};const Je=Me=>Object.assign({},(0,Re.oN)(Me));var dt=(Me,Ee)=>{const{componentCls:we,itemColor:tt,itemSelectedColor:qe,groupTitleColor:vt,itemBg:Rt,subMenuItemBg:Gt,itemSelectedBg:en,activeBarHeight:ln,activeBarWidth:sn,activeBarBorderWidth:Tt,motionDurationSlow:Mt,motionEaseInOut:Qt,motionEaseOut:jn,itemPaddingInline:xn,motionDurationMid:pn,itemHoverColor:Le,lineType:Ge,colorSplit:ot,itemDisabledColor:bt,dangerItemColor:$t,dangerItemHoverColor:nn,dangerItemSelectedColor:on,dangerItemActiveBg:jt,dangerItemSelectedBg:Xt,itemHoverBg:bn,itemActiveBg:gn,menuSubMenuBg:Zn,horizontalItemSelectedColor:Kn,horizontalItemSelectedBg:Xn,horizontalItemBorderRadius:la,horizontalItemHoverBg:Dn,popupBg:An}=Me;return{[`${we}-${Ee}, ${we}-${Ee} > ${we}`]:{color:tt,background:Rt,[`&${we}-root:focus-visible`]:Object.assign({},Je(Me)),[`${we}-item-group-title`]:{color:vt},[`${we}-submenu-selected`]:{[`> ${we}-submenu-title`]:{color:qe}},[`${we}-item-disabled, ${we}-submenu-disabled`]:{color:`${bt} !important`},[`${we}-item:not(${we}-item-selected):not(${we}-submenu-selected)`]:{[`&:hover, > ${we}-submenu-title:hover`]:{color:Le}},[`&:not(${we}-horizontal)`]:{[`${we}-item:not(${we}-item-selected)`]:{"&:hover":{backgroundColor:bn},"&:active":{backgroundColor:gn}},[`${we}-submenu-title`]:{"&:hover":{backgroundColor:bn},"&:active":{backgroundColor:gn}}},[`${we}-item-danger`]:{color:$t,[`&${we}-item:hover`]:{[`&:not(${we}-item-selected):not(${we}-submenu-selected)`]:{color:nn}},[`&${we}-item:active`]:{background:jt}},[`${we}-item a`]:{"&, &:hover":{color:"inherit"}},[`${we}-item-selected`]:{color:qe,[`&${we}-item-danger`]:{color:on},"a, a:hover":{color:"inherit"}},[`& ${we}-item-selected`]:{backgroundColor:en,[`&${we}-item-danger`]:{backgroundColor:Xt}},[`${we}-item, ${we}-submenu-title`]:{[`&:not(${we}-item-disabled):focus-visible`]:Object.assign({},Je(Me))},[`&${we}-submenu > ${we}`]:{backgroundColor:Zn},[`&${we}-popup > ${we}`]:{backgroundColor:An},[`&${we}-horizontal`]:Object.assign(Object.assign({},Ee==="dark"?{borderBottom:0}:{}),{[`> ${we}-item, > ${we}-submenu`]:{top:Tt,marginTop:-Tt,marginBottom:0,borderRadius:la,"&::after":{position:"absolute",insetInline:xn,bottom:0,borderBottom:`${ln}px solid transparent`,transition:`border-color ${Mt} ${Qt}`,content:'""'},"&:hover, &-active, &-open":{background:Dn,"&::after":{borderBottomWidth:ln,borderBottomColor:Kn}},"&-selected":{color:Kn,backgroundColor:Xn,"&:hover":{backgroundColor:Xn},"&::after":{borderBottomWidth:ln,borderBottomColor:Kn}}}}),[`&${we}-root`]:{[`&${we}-inline, &${we}-vertical`]:{borderInlineEnd:`${Tt}px ${Ge} ${ot}`}},[`&${we}-inline`]:{[`${we}-sub${we}-inline`]:{background:Gt},[`${we}-item, ${we}-submenu-title`]:Tt&&sn?{width:`calc(100% + ${Tt}px)`}:{},[`${we}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${sn}px solid ${qe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${pn} ${jn}`,`opacity ${pn} ${jn}`].join(","),content:'""'},[`&${we}-item-danger`]:{"&::after":{borderInlineEndColor:on}}},[`${we}-selected, ${we}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${pn} ${Qt}`,`opacity ${pn} ${Qt}`].join(",")}}}}}};const Nt=Me=>{const{componentCls:Ee,itemHeight:we,itemMarginInline:tt,padding:qe,menuArrowSize:vt,marginXS:Rt,itemMarginBlock:Gt}=Me,en=qe+vt+Rt;return{[`${Ee}-item`]:{position:"relative",overflow:"hidden"},[`${Ee}-item, ${Ee}-submenu-title`]:{height:we,lineHeight:`${we}px`,paddingInline:qe,overflow:"hidden",textOverflow:"ellipsis",marginInline:tt,marginBlock:Gt,width:`calc(100% - ${tt*2}px)`},[`> ${Ee}-item,
|
|
> ${Ee}-submenu > ${Ee}-submenu-title`]:{height:we,lineHeight:`${we}px`},[`${Ee}-item-group-list ${Ee}-submenu-title,
|
|
${Ee}-submenu-title`]:{paddingInlineEnd:en}}};var ze=Me=>{const{componentCls:Ee,iconCls:we,itemHeight:tt,colorTextLightSolid:qe,dropdownWidth:vt,controlHeightLG:Rt,motionDurationMid:Gt,motionEaseOut:en,paddingXL:ln,itemMarginInline:sn,fontSizeLG:Tt,motionDurationSlow:Mt,paddingXS:Qt,boxShadowSecondary:jn,collapsedWidth:xn,collapsedIconSize:pn}=Me,Le={height:tt,lineHeight:`${tt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ee]:{"&-inline, &-vertical":Object.assign({[`&${Ee}-root`]:{boxShadow:"none"}},Nt(Me))},[`${Ee}-submenu-popup`]:{[`${Ee}-vertical`]:Object.assign(Object.assign({},Nt(Me)),{boxShadow:jn})}},{[`${Ee}-submenu-popup ${Ee}-vertical${Ee}-sub`]:{minWidth:vt,maxHeight:`calc(100vh - ${Rt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ee}-inline`]:{width:"100%",[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Mt}`,`background ${Mt}`,`padding ${Gt} ${en}`].join(","),[`> ${Ee}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ee}-sub${Ee}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ee}-submenu > ${Ee}-submenu-title`]:Le,[`& ${Ee}-item-group-title`]:{paddingInlineStart:ln}},[`${Ee}-item`]:Le}},{[`${Ee}-inline-collapsed`]:{width:xn,[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu ${Ee}-submenu-title`]:{[`> ${Ee}-inline-collapsed-noicon`]:{fontSize:Tt,textAlign:"center"}}},[`> ${Ee}-item,
|
|
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-item,
|
|
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-submenu > ${Ee}-submenu-title,
|
|
> ${Ee}-submenu > ${Ee}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Tt/2}px - ${sn}px)`,textOverflow:"clip",[`
|
|
${Ee}-submenu-arrow,
|
|
${Ee}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Ee}-item-icon, ${we}`]:{margin:0,fontSize:pn,lineHeight:`${tt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ee}-item-icon, ${we}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ee}-item-icon, ${we}`]:{display:"none"},"a, a:hover":{color:qe}},[`${Ee}-item-group-title`]:Object.assign(Object.assign({},Re.vS),{paddingInline:Qt})}}]};const rt=Me=>{const{componentCls:Ee,motionDurationSlow:we,motionDurationMid:tt,motionEaseInOut:qe,motionEaseOut:vt,iconCls:Rt,iconSize:Gt,iconMarginInlineEnd:en}=Me;return{[`${Ee}-item, ${Ee}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${we}`,`background ${we}`,`padding ${we} ${qe}`].join(","),[`${Ee}-item-icon, ${Rt}`]:{minWidth:Gt,fontSize:Gt,transition:[`font-size ${tt} ${vt}`,`margin ${we} ${qe}`,`color ${we}`].join(","),"+ span":{marginInlineStart:en,opacity:1,transition:[`opacity ${we} ${qe}`,`margin ${we}`,`color ${we}`].join(",")}},[`${Ee}-item-icon`]:Object.assign({},(0,Re.Ro)()),[`&${Ee}-item-only-child`]:{[`> ${Rt}, > ${Ee}-item-icon`]:{marginInlineEnd:0}}},[`${Ee}-item-disabled, ${Ee}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ee}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Bt=Me=>{const{componentCls:Ee,motionDurationSlow:we,motionEaseInOut:tt,borderRadius:qe,menuArrowSize:vt,menuArrowOffset:Rt}=Me;return{[`${Ee}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Me.margin,width:vt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${we} ${tt}, opacity ${we}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:vt*.6,height:vt*.15,backgroundColor:"currentcolor",borderRadius:qe,transition:[`background ${we} ${tt}`,`transform ${we} ${tt}`,`top ${we} ${tt}`,`color ${we} ${tt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Rt})`},"&::after":{transform:`rotate(-45deg) translateY(${Rt})`}}}}},et=Me=>{const{antCls:Ee,componentCls:we,fontSize:tt,motionDurationSlow:qe,motionDurationMid:vt,motionEaseInOut:Rt,paddingXS:Gt,padding:en,colorSplit:ln,lineWidth:sn,zIndexPopup:Tt,borderRadiusLG:Mt,subMenuItemBorderRadius:Qt,menuArrowSize:jn,menuArrowOffset:xn,lineType:pn,menuPanelMaskInset:Le,groupTitleLineHeight:Ge,groupTitleFontSize:ot}=Me;return[{"":{[`${we}`]:Object.assign(Object.assign({},(0,Re.dF)()),{"&-hidden":{display:"none"}})},[`${we}-submenu-hidden`]:{display:"none"}},{[we]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Re.Wf)(Me)),(0,Re.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:tt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${qe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${we}-item`]:{flex:"none"}},[`${we}-item, ${we}-submenu, ${we}-submenu-title`]:{borderRadius:Me.itemBorderRadius},[`${we}-item-group-title`]:{padding:`${Gt}px ${en}px`,fontSize:ot,lineHeight:Ge,transition:`all ${qe}`},[`&-horizontal ${we}-submenu`]:{transition:[`border-color ${qe} ${Rt}`,`background ${qe} ${Rt}`].join(",")},[`${we}-submenu, ${we}-submenu-inline`]:{transition:[`border-color ${qe} ${Rt}`,`background ${qe} ${Rt}`,`padding ${vt} ${Rt}`].join(",")},[`${we}-submenu ${we}-sub`]:{cursor:"initial",transition:[`background ${qe} ${Rt}`,`padding ${qe} ${Rt}`].join(",")},[`${we}-title-content`]:{transition:`color ${qe}`},[`${we}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${we}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ln,borderStyle:pn,borderWidth:0,borderTopWidth:sn,marginBlock:sn,padding:0,"&-dashed":{borderStyle:"dashed"}}}),rt(Me)),{[`${we}-item-group`]:{[`${we}-item-group-list`]:{margin:0,padding:0,[`${we}-item, ${we}-submenu-title`]:{paddingInline:`${tt*2}px ${en}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Tt,borderRadius:Mt,boxShadow:"none",transformOrigin:"0 0",[`&${we}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Le}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Le},"\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:Me.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Me.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Me.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Me.paddingXS},[`> ${we}`]:Object.assign(Object.assign(Object.assign({borderRadius:Mt},rt(Me)),Bt(Me)),{[`${we}-item, ${we}-submenu > ${we}-submenu-title`]:{borderRadius:Qt},[`${we}-submenu-title::after`]:{transition:`transform ${qe} ${Rt}`}})}}),Bt(Me)),{[`&-inline-collapsed ${we}-submenu-arrow,
|
|
&-inline ${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${xn})`},"&::after":{transform:`rotate(45deg) translateX(-${xn})`}},[`${we}-submenu-open${we}-submenu-inline > ${we}-submenu-title > ${we}-submenu-arrow`]:{transform:`translateY(-${jn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${xn})`},"&::before":{transform:`rotate(45deg) translateX(${xn})`}}})},{[`${Ee}-layout-header`]:{[we]:{lineHeight:"inherit"}}}]};var lt=(Me,Ee)=>(0,Ut.Z)("Menu",tt=>{if(Ee===!1)return[];const{colorBgElevated:qe,colorPrimary:vt,colorTextLightSolid:Rt,controlHeightLG:Gt,fontSize:en,darkItemColor:ln,darkDangerItemColor:sn,darkItemBg:Tt,darkSubMenuItemBg:Mt,darkItemSelectedColor:Qt,darkItemSelectedBg:jn,darkDangerItemSelectedBg:xn,darkItemHoverBg:pn,darkGroupTitleColor:Le,darkItemHoverColor:Ge,darkItemDisabledColor:ot,darkDangerItemHoverColor:bt,darkDangerItemSelectedColor:$t,darkDangerItemActiveBg:nn}=tt,on=en/7*5,jt=(0,be.TS)(tt,{menuArrowSize:on,menuHorizontalHeight:Gt*1.15,menuArrowOffset:`${on*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:qe}),Xt=(0,be.TS)(jt,{itemColor:ln,itemHoverColor:Ge,groupTitleColor:Le,itemSelectedColor:Qt,itemBg:Tt,popupBg:Tt,subMenuItemBg:Mt,itemActiveBg:"transparent",itemSelectedBg:jn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:pn,itemDisabledColor:ot,dangerItemColor:sn,dangerItemHoverColor:bt,dangerItemSelectedColor:$t,dangerItemActiveBg:nn,dangerItemSelectedBg:xn,menuSubMenuBg:Mt,horizontalItemSelectedColor:Rt,horizontalItemSelectedBg:vt});return[et(jt),ke(jt),ze(jt),dt(jt,"light"),dt(Xt,"dark"),ct(jt),(0,He.Z)(jt),(0,Et.oN)(jt,"slide-up"),(0,Et.oN)(jt,"slide-down"),(0,zt._y)(jt,"zoom-big")]},tt=>{const{colorPrimary:qe,colorError:vt,colorTextDisabled:Rt,colorErrorBg:Gt,colorText:en,colorTextDescription:ln,colorBgContainer:sn,colorFillAlter:Tt,colorFillContent:Mt,lineWidth:Qt,lineWidthBold:jn,controlItemBgActive:xn,colorBgTextHover:pn,controlHeightLG:Le,lineHeight:Ge,colorBgElevated:ot,marginXXS:bt,padding:$t,fontSize:nn,controlHeightSM:on,fontSizeLG:jt,colorTextLightSolid:Xt,colorErrorHover:bn}=tt,gn=new ce.C(Xt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:tt.zIndexPopupBase+50,radiusItem:tt.borderRadiusLG,itemBorderRadius:tt.borderRadiusLG,radiusSubMenuItem:tt.borderRadiusSM,subMenuItemBorderRadius:tt.borderRadiusSM,colorItemText:en,itemColor:en,colorItemTextHover:en,itemHoverColor:en,colorItemTextHoverHorizontal:qe,horizontalItemHoverColor:qe,colorGroupTitle:ln,groupTitleColor:ln,colorItemTextSelected:qe,itemSelectedColor:qe,colorItemTextSelectedHorizontal:qe,horizontalItemSelectedColor:qe,colorItemBg:sn,itemBg:sn,colorItemBgHover:pn,itemHoverBg:pn,colorItemBgActive:Mt,itemActiveBg:xn,colorSubItemBg:Tt,subMenuItemBg:Tt,colorItemBgSelected:xn,itemSelectedBg:xn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:jn,activeBarHeight:jn,colorActiveBarBorderSize:Qt,activeBarBorderWidth:Qt,colorItemTextDisabled:Rt,itemDisabledColor:Rt,colorDangerItemText:vt,dangerItemColor:vt,colorDangerItemTextHover:vt,dangerItemHoverColor:vt,colorDangerItemTextSelected:vt,dangerItemSelectedColor:vt,colorDangerItemBgActive:Gt,dangerItemActiveBg:Gt,colorDangerItemBgSelected:Gt,dangerItemSelectedBg:Gt,itemMarginInline:tt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Le,groupTitleLineHeight:Ge,collapsedWidth:Le*2,popupBg:ot,itemMarginBlock:bt,itemPaddingInline:$t,horizontalLineHeight:`${Le*1.15}px`,iconSize:nn,iconMarginInlineEnd:on-nn,collapsedIconSize:jt,groupTitleFontSize:nn,darkItemDisabledColor:new ce.C(Xt).setAlpha(.25).toRgbString(),darkItemColor:gn,darkDangerItemColor:vt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Xt,darkItemSelectedBg:qe,darkDangerItemSelectedBg:vt,darkItemHoverBg:"transparent",darkGroupTitleColor:gn,darkItemHoverColor:Xt,darkDangerItemHoverColor:bn,darkDangerItemSelectedColor:Xt,darkDangerItemActiveBg:vt}},{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"]]})(Me),me=function(Me,Ee){var we={};for(var tt in Me)Object.prototype.hasOwnProperty.call(Me,tt)&&Ee.indexOf(tt)<0&&(we[tt]=Me[tt]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var qe=0,tt=Object.getOwnPropertySymbols(Me);qe<tt.length;qe++)Ee.indexOf(tt[qe])<0&&Object.prototype.propertyIsEnumerable.call(Me,tt[qe])&&(we[tt[qe]]=Me[tt[qe]]);return we},Ct=(0,Pe.forwardRef)((Me,Ee)=>{var we,tt;const qe=Pe.useContext(re.Z),vt=qe||{},{getPrefixCls:Rt,getPopupContainer:Gt,direction:en,menu:ln}=Pe.useContext(Fe.E_),sn=Rt(),{prefixCls:Tt,className:Mt,style:Qt,theme:jn="light",expandIcon:xn,_internalDisableMenuItemTitleTooltip:pn,inlineCollapsed:Le,siderCollapsed:Ge,items:ot,children:bt,rootClassName:$t,mode:nn,selectable:on,onClick:jt,overflowedIndicatorPopupClassName:Xt}=Me,bn=me(Me,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),gn=(0,Ke.Z)(bn,["collapsedWidth"]),Zn=he(ot)||bt;(we=vt.validator)===null||we===void 0||we.call(vt,{mode:nn});const Kn=(0,ee.useEvent)(function(){var ta;jt==null||jt.apply(void 0,arguments),(ta=vt.onClick)===null||ta===void 0||ta.call(vt)}),Xn=vt.mode||nn,la=on!=null?on:vt.selectable,Dn=Pe.useMemo(()=>Ge!==void 0?Ge:Le,[Le,Ge]),An={horizontal:{motionName:`${sn}-slide-up`},inline:(0,ne.Z)(sn),other:{motionName:`${sn}-zoom-big`}},Yn=Rt("menu",Tt||vt.prefixCls),[ua,ma]=lt(Yn,!qe),Rn=fe()(`${Yn}-${jn}`,ln==null?void 0:ln.className,Mt);let Pa;if(typeof xn=="function")Pa=xn;else if(xn===null||xn===!1)Pa=null;else if(vt.expandIcon===null||vt.expandIcon===!1)Pa=null;else{const ta=xn!=null?xn:vt.expandIcon;Pa=(0,De.Tm)(ta,{className:fe()(`${Yn}-submenu-expand-icon`,(0,De.l$)(ta)?(tt=ta.props)===null||tt===void 0?void 0:tt.className:"")})}const Ga=Pe.useMemo(()=>({prefixCls:Yn,inlineCollapsed:Dn||!1,direction:en,firstLevel:!0,theme:jn,mode:Xn,disableMenuItemTitleTooltip:pn}),[Yn,Dn,en,pn,jn]);return ua(Pe.createElement(re.Z.Provider,{value:null},Pe.createElement(a.Provider,{value:Ga},Pe.createElement(te.ZP,Object.assign({getPopupContainer:Gt,overflowedIndicator:Pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:fe()(Yn,`${Yn}-${jn}`,Xt),mode:Xn,selectable:la,onClick:Kn},gn,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},ln==null?void 0:ln.style),Qt),className:Rn,prefixCls:Yn,direction:en,defaultMotions:An,expandIcon:Pa,ref:Ee,rootClassName:fe()($t,ma)}),Zn))))});const qt=(0,Pe.forwardRef)((Me,Ee)=>{const we=(0,Pe.useRef)(null),tt=Pe.useContext(Xe.D);return(0,Pe.useImperativeHandle)(Ee,()=>({menu:we.current,focus:qe=>{var vt;(vt=we.current)===null||vt===void 0||vt.focus(qe)}})),Pe.createElement(Ct,Object.assign({ref:we},Me,tt))});qt.Item=E,qt.SubMenu=x,qt.Divider=Oe,qt.ItemGroup=te.BW;var Pt=qt},38703:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return pn}});var te=oe(67294),Pe=oe(87725),Xe=oe(18299),Ie=oe(16646),fe=oe(73475),Fe=oe(94184),ue=oe.n(Fe),Ne=oe(10366),Oe=oe(53124),xe=oe(87462),Ke=oe(1413),je=oe(45987),De={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Ge=(0,te.useRef)([]),ot=(0,te.useRef)(null);return(0,te.useEffect)(function(){var bt=Date.now(),$t=!1;Ge.current.forEach(function(nn){if(nn){$t=!0;var on=nn.style;on.transitionDuration=".3s, .3s, .3s, .06s",ot.current&&bt-ot.current<100&&(on.transitionDuration="0s, 0s")}}),$t&&(ot.current=Date.now())}),Ge.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ge){var ot=(0,Ke.Z)((0,Ke.Z)({},De),Ge),bt=ot.className,$t=ot.percent,nn=ot.prefixCls,on=ot.strokeColor,jt=ot.strokeLinecap,Xt=ot.strokeWidth,bn=ot.style,gn=ot.trailColor,Zn=ot.trailWidth,Kn=ot.transition,Xn=(0,je.Z)(ot,a);delete Xn.gapPosition;var la=Array.isArray($t)?$t:[$t],Dn=Array.isArray(on)?on:[on],An=ae(),Yn=Xt/2,ua=100-Xt/2,ma="M ".concat(jt==="round"?Yn:0,",").concat(Yn,`
|
|
L `).concat(jt==="round"?ua:100,",").concat(Yn),Rn="0 0 100 ".concat(Xt),Pa=0;return te.createElement("svg",(0,xe.Z)({className:ue()("".concat(nn,"-line"),bt),viewBox:Rn,preserveAspectRatio:"none",style:bn},Xn),te.createElement("path",{className:"".concat(nn,"-line-trail"),d:ma,strokeLinecap:jt,stroke:gn,strokeWidth:Zn||Xt,fillOpacity:"0"}),la.map(function(Ga,ta){var Ua=1;switch(jt){case"round":Ua=1-Xt/100;break;case"square":Ua=1-Xt/2/100;break;default:Ua=1;break}var eo={strokeDasharray:"".concat(Ga*Ua,"px, 100px"),strokeDashoffset:"-".concat(Pa,"px"),transition:Kn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qa=Dn[ta]||Dn[Dn.length-1];return Pa+=Ga,te.createElement("path",{key:ta,className:"".concat(nn,"-line-path"),d:ma,strokeLinecap:jt,stroke:Qa,strokeWidth:Xt,fillOpacity:"0",ref:function(Be){An[ta]=Be},style:eo})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,ne=(0,z.Z)();function re(){var Le;return ne?(Le=ee,ee+=1):Le="TEST_OR_SSR",Le}var ge=function(Le){var Ge=te.useState(),ot=(0,x.Z)(Ge,2),bt=ot[0],$t=ot[1];return te.useEffect(function(){$t("rc_progress_".concat(re()))},[]),Le||bt},de=function(Ge){var ot=Ge.bg,bt=Ge.children;return te.createElement("div",{style:{width:"100%",height:"100%",background:ot}},bt)};function he(Le,Ge){return Object.keys(Le).map(function(ot){var bt=parseFloat(ot),$t="".concat(Math.floor(bt*Ge),"%");return"".concat(Le[ot]," ").concat($t)})}var ce=te.forwardRef(function(Le,Ge){var ot=Le.prefixCls,bt=Le.color,$t=Le.gradientId,nn=Le.radius,on=Le.style,jt=Le.ptg,Xt=Le.strokeLinecap,bn=Le.strokeWidth,gn=Le.size,Zn=Le.gapDegree,Kn=bt&&(0,b.Z)(bt)==="object",Xn=Kn?"#FFF":void 0,la=gn/2,Dn=te.createElement("circle",{className:"".concat(ot,"-circle-path"),r:nn,cx:la,cy:la,stroke:Xn,strokeLinecap:Xt,strokeWidth:bn,opacity:jt===0?0:1,style:on,ref:Ge});if(!Kn)return Dn;var An="".concat($t,"-conic"),Yn=Zn?"".concat(180+Zn/2,"deg"):"0deg",ua=he(bt,(360-Zn)/360),ma=he(bt,1),Rn="conic-gradient(from ".concat(Yn,", ").concat(ua.join(", "),")"),Pa="linear-gradient(to ".concat(Zn?"bottom":"top",", ").concat(ma.join(", "),")");return te.createElement(te.Fragment,null,te.createElement("mask",{id:An},Dn),te.createElement("foreignObject",{x:0,y:0,width:gn,height:gn,mask:"url(#".concat(An,")")},te.createElement(de,{bg:Pa},te.createElement(de,{bg:Rn}))))}),Re=ce,He=100,Et=function(Ge,ot,bt,$t,nn,on,jt,Xt,bn,gn){var Zn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Kn=bt/100*360*((360-on)/360),Xn=on===0?0:{bottom:0,top:180,left:90,right:-90}[jt],la=(100-$t)/100*ot;bn==="round"&&$t!==100&&(la+=gn/2,la>=ot&&(la=ot-.01));var Dn=He/2;return{stroke:typeof Xt=="string"?Xt:void 0,strokeDasharray:"".concat(ot,"px ").concat(Ge),strokeDashoffset:la+Zn,transform:"rotate(".concat(nn+Kn+Xn,"deg)"),transformOrigin:"".concat(Dn,"px ").concat(Dn,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},zt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Ut(Le){var Ge=Le!=null?Le:[];return Array.isArray(Ge)?Ge:[Ge]}var be=function(Ge){var ot=(0,Ke.Z)((0,Ke.Z)({},De),Ge),bt=ot.id,$t=ot.prefixCls,nn=ot.steps,on=ot.strokeWidth,jt=ot.trailWidth,Xt=ot.gapDegree,bn=Xt===void 0?0:Xt,gn=ot.gapPosition,Zn=ot.trailColor,Kn=ot.strokeLinecap,Xn=ot.style,la=ot.className,Dn=ot.strokeColor,An=ot.percent,Yn=(0,je.Z)(ot,zt),ua=He/2,ma=ge(bt),Rn="".concat(ma,"-gradient"),Pa=ua-on/2,Ga=Math.PI*2*Pa,ta=bn>0?90+bn/2:-90,Ua=Ga*((360-bn)/360),eo=(0,b.Z)(nn)==="object"?nn:{count:nn,space:2},Qa=eo.count,Ce=eo.space,Be=Ut(An),pe=Ut(Dn),pt=pe.find(function(Ia){return Ia&&(0,b.Z)(Ia)==="object"}),kt=pt&&(0,b.Z)(pt)==="object",Zt=kt?"butt":Kn,kn=Et(Ga,Ua,0,100,ta,bn,gn,Zn,Zt,on),Sn=ae(),Bn=function(){var ft=0;return Be.map(function(Cn,ve){var We=pe[ve]||pe[pe.length-1],Ae=Et(Ga,Ua,ft,Cn,ta,bn,gn,We,Zt,on);return ft+=Cn,te.createElement(Re,{key:ve,color:We,ptg:Cn,radius:Pa,prefixCls:$t,gradientId:Rn,style:Ae,strokeLinecap:Zt,strokeWidth:on,gapDegree:bn,ref:function(ht){Sn[ve]=ht},size:He})}).reverse()},na=function(){var ft=Math.round(Qa*(Be[0]/100)),Cn=100/Qa,ve=0;return new Array(Qa).fill(null).map(function(We,Ae){var Ze=Ae<=ft-1?pe[0]:Zn,ht=Ze&&(0,b.Z)(Ze)==="object"?"url(#".concat(Rn,")"):void 0,at=Et(Ga,Ua,ve,Cn,ta,bn,gn,Ze,"butt",on,Ce);return ve+=(Ua-at.strokeDashoffset+Ce)*100/Ua,te.createElement("circle",{key:Ae,className:"".concat($t,"-circle-path"),r:Pa,cx:ua,cy:ua,stroke:ht,strokeWidth:on,opacity:1,style:at,ref:function(nt){Sn[Ae]=nt}})})};return te.createElement("svg",(0,xe.Z)({className:ue()("".concat($t,"-circle"),la),viewBox:"0 0 ".concat(He," ").concat(He),style:Xn,id:bt,role:"presentation"},Yn),!Qa&&te.createElement("circle",{className:"".concat($t,"-circle-trail"),r:Pa,cx:ua,cy:ua,stroke:Zn,strokeLinecap:Zt,strokeWidth:jt||on,style:kn}),Qa?na():Bn())},Ue=be,ke={Line:E,Circle:Ue},gt=oe(83062),ct=oe(47448);function Je(Le){return!Le||Le<0?0:Le>100?100:Le}function _e(Le){let{success:Ge,successPercent:ot}=Le,bt=ot;return Ge&&"progress"in Ge&&(bt=Ge.progress),Ge&&"percent"in Ge&&(bt=Ge.percent),bt}const dt=Le=>{let{percent:Ge,success:ot,successPercent:bt}=Le;const $t=Je(_e({success:ot,successPercent:bt}));return[$t,Je(Je(Ge)-$t)]},Nt=Le=>{let{success:Ge={},strokeColor:ot}=Le;const{strokeColor:bt}=Ge;return[bt||ct.presetPrimaryColors.green,ot||null]},ye=(Le,Ge,ot)=>{var bt,$t,nn,on;let jt=-1,Xt=-1;if(Ge==="step"){const bn=ot.steps,gn=ot.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?(jt=Le==="small"?2:14,Xt=gn!=null?gn:8):typeof Le=="number"?[jt,Xt]=[Le,Le]:[jt=14,Xt=8]=Le,jt*=bn}else if(Ge==="line"){const bn=ot==null?void 0:ot.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?Xt=bn||(Le==="small"?6:8):typeof Le=="number"?[jt,Xt]=[Le,Le]:[jt=-1,Xt=8]=Le}else(Ge==="circle"||Ge==="dashboard")&&(typeof Le=="string"||typeof Le=="undefined"?[jt,Xt]=Le==="small"?[60,60]:[120,120]:typeof Le=="number"?[jt,Xt]=[Le,Le]:(jt=($t=(bt=Le[0])!==null&&bt!==void 0?bt:Le[1])!==null&&$t!==void 0?$t:120,Xt=(on=(nn=Le[0])!==null&&nn!==void 0?nn:Le[1])!==null&&on!==void 0?on:120));return[jt,Xt]},ze=3,rt=Le=>ze/Le*100;var et=Le=>{const{prefixCls:Ge,trailColor:ot=null,strokeLinecap:bt="round",gapPosition:$t,gapDegree:nn,width:on=120,type:jt,children:Xt,success:bn,size:gn=on}=Le,[Zn,Kn]=ye(gn,"circle");let{strokeWidth:Xn}=Le;Xn===void 0&&(Xn=Math.max(rt(Zn),6));const la={width:Zn,height:Kn,fontSize:Zn*.15+6},Dn=te.useMemo(()=>{if(nn||nn===0)return nn;if(jt==="dashboard")return 75},[nn,jt]),An=$t||jt==="dashboard"&&"bottom"||void 0,Yn=Object.prototype.toString.call(Le.strokeColor)==="[object Object]",ua=Nt({success:bn,strokeColor:Le.strokeColor}),ma=ue()(`${Ge}-inner`,{[`${Ge}-circle-gradient`]:Yn}),Rn=te.createElement(Ue,{percent:dt(Le),strokeWidth:Xn,trailWidth:Xn,strokeColor:ua,strokeLinecap:bt,trailColor:ot,prefixCls:Ge,gapDegree:Dn,gapPosition:An});return te.createElement("div",{className:ma,style:la},Zn<=20?te.createElement(gt.Z,{title:Xt},te.createElement("span",null,Rn)):te.createElement(te.Fragment,null,Rn,Xt))},lt=function(Le,Ge){var ot={};for(var bt in Le)Object.prototype.hasOwnProperty.call(Le,bt)&&Ge.indexOf(bt)<0&&(ot[bt]=Le[bt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,bt=Object.getOwnPropertySymbols(Le);$t<bt.length;$t++)Ge.indexOf(bt[$t])<0&&Object.prototype.propertyIsEnumerable.call(Le,bt[$t])&&(ot[bt[$t]]=Le[bt[$t]]);return ot};const me=Le=>{let Ge=[];return Object.keys(Le).forEach(ot=>{const bt=parseFloat(ot.replace(/%/g,""));isNaN(bt)||Ge.push({key:bt,value:Le[ot]})}),Ge=Ge.sort((ot,bt)=>ot.key-bt.key),Ge.map(ot=>{let{key:bt,value:$t}=ot;return`${$t} ${bt}%`}).join(", ")},it=(Le,Ge)=>{const{from:ot=ct.presetPrimaryColors.blue,to:bt=ct.presetPrimaryColors.blue,direction:$t=Ge==="rtl"?"to left":"to right"}=Le,nn=lt(Le,["from","to","direction"]);if(Object.keys(nn).length!==0){const on=me(nn);return{backgroundImage:`linear-gradient(${$t}, ${on})`}}return{backgroundImage:`linear-gradient(${$t}, ${ot}, ${bt})`}};var qt=Le=>{const{prefixCls:Ge,direction:ot,percent:bt,size:$t,strokeWidth:nn,strokeColor:on,strokeLinecap:jt="round",children:Xt,trailColor:bn=null,success:gn}=Le,Zn=on&&typeof on!="string"?it(on,ot):{backgroundColor:on},Kn=jt==="square"||jt==="butt"?0:void 0,Xn={backgroundColor:bn||void 0,borderRadius:Kn},la=$t!=null?$t:[-1,nn||($t==="small"?6:8)],[Dn,An]=ye(la,"line",{strokeWidth:nn}),Yn=Object.assign({width:`${Je(bt)}%`,height:An,borderRadius:Kn},Zn),ua=_e(Le),ma={width:`${Je(ua)}%`,height:An,borderRadius:Kn,backgroundColor:gn==null?void 0:gn.strokeColor},Rn={width:Dn<0?"100%":Dn,height:An};return te.createElement(te.Fragment,null,te.createElement("div",{className:`${Ge}-outer`,style:Rn},te.createElement("div",{className:`${Ge}-inner`,style:Xn},te.createElement("div",{className:`${Ge}-bg`,style:Yn}),ua!==void 0?te.createElement("div",{className:`${Ge}-success-bg`,style:ma}):null)),Xt)},Me=Le=>{const{size:Ge,steps:ot,percent:bt=0,strokeWidth:$t=8,strokeColor:nn,trailColor:on=null,prefixCls:jt,children:Xt}=Le,bn=Math.round(ot*(bt/100)),gn=Ge==="small"?2:14,Zn=Ge!=null?Ge:[gn,$t],[Kn,Xn]=ye(Zn,"step",{steps:ot,strokeWidth:$t}),la=Kn/ot,Dn=new Array(ot);for(let An=0;An<ot;An++){const Yn=Array.isArray(nn)?nn[An]:nn;Dn[An]=te.createElement("div",{key:An,className:ue()(`${jt}-steps-item`,{[`${jt}-steps-item-active`]:An<=bn-1}),style:{backgroundColor:An<=bn-1?Yn:on,width:la,height:Xn}})}return te.createElement("div",{className:`${jt}-steps-outer`},Dn,Xt)},Ee=oe(45930),we=oe(14747),tt=oe(67968),qe=oe(45503);const vt=Le=>{const Ge=Le?"100%":"-100%";return new Ee.Keyframes(`antProgress${Le?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ge}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ge}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Rt=Le=>{const{componentCls:Ge,iconCls:ot}=Le;return{[Ge]:Object.assign(Object.assign({},(0,we.Wf)(Le)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Le.fontSize,marginInlineEnd:Le.marginXS,marginBottom:Le.marginXS},[`${Ge}-outer`]:{display:"inline-block",width:"100%"},[`&${Ge}-show-info`]:{[`${Ge}-outer`]:{marginInlineEnd:`calc(-2em - ${Le.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Le.paddingXS}px)`}},[`${Ge}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Le.remainingColor,borderRadius:Le.lineBorderRadius},[`${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:Le.defaultColor}},[`${Ge}-success-bg, ${Ge}-bg`]:{position:"relative",backgroundColor:Le.defaultColor,borderRadius:Le.lineBorderRadius,transition:`all ${Le.motionDurationSlow} ${Le.motionEaseInOutCirc}`},[`${Ge}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Le.colorSuccess},[`${Ge}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Le.marginXS,color:Le.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[ot]:{fontSize:Le.fontSize}},[`&${Ge}-status-active`]:{[`${Ge}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Le.colorBgContainer,borderRadius:Le.lineBorderRadius,opacity:0,animationName:vt(),animationDuration:Le.progressActiveMotionDuration,animationTimingFunction:Le.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ge}-rtl${Ge}-status-active`]:{[`${Ge}-bg::before`]:{animationName:vt(!0)}},[`&${Ge}-status-exception`]:{[`${Ge}-bg`]:{backgroundColor:Le.colorError},[`${Ge}-text`]:{color:Le.colorError}},[`&${Ge}-status-exception ${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:Le.colorError}},[`&${Ge}-status-success`]:{[`${Ge}-bg`]:{backgroundColor:Le.colorSuccess},[`${Ge}-text`]:{color:Le.colorSuccess}},[`&${Ge}-status-success ${Ge}-inner:not(${Ge}-circle-gradient)`]:{[`${Ge}-circle-path`]:{stroke:Le.colorSuccess}}})}},Gt=Le=>{const{componentCls:Ge,iconCls:ot}=Le;return{[Ge]:{[`${Ge}-circle-trail`]:{stroke:Le.remainingColor},[`&${Ge}-circle ${Ge}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ge}-circle ${Ge}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Le.circleTextColor,fontSize:Le.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[ot]:{fontSize:`${Le.fontSize/Le.fontSizeSM}em`}},[`${Ge}-circle&-status-exception`]:{[`${Ge}-text`]:{color:Le.colorError}},[`${Ge}-circle&-status-success`]:{[`${Ge}-text`]:{color:Le.colorSuccess}}},[`${Ge}-inline-circle`]:{lineHeight:1,[`${Ge}-inner`]:{verticalAlign:"bottom"}}}},en=Le=>{const{componentCls:Ge}=Le;return{[Ge]:{[`${Ge}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Le.progressStepMinWidth,marginInlineEnd:Le.progressStepMarginInlineEnd,backgroundColor:Le.remainingColor,transition:`all ${Le.motionDurationSlow}`,"&-active":{backgroundColor:Le.defaultColor}}}}}},ln=Le=>{const{componentCls:Ge,iconCls:ot}=Le;return{[Ge]:{[`${Ge}-small&-line, ${Ge}-small&-line ${Ge}-text ${ot}`]:{fontSize:Le.fontSizeSM}}}};var sn=(0,tt.Z)("Progress",Le=>{const Ge=Le.marginXXS/2,ot=(0,qe.TS)(Le,{progressStepMarginInlineEnd:Ge,progressStepMinWidth:Ge,progressActiveMotionDuration:"2.4s"});return[Rt(ot),Gt(ot),en(ot),ln(ot)]},Le=>({circleTextColor:Le.colorText,defaultColor:Le.colorInfo,remainingColor:Le.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Tt=function(Le,Ge){var ot={};for(var bt in Le)Object.prototype.hasOwnProperty.call(Le,bt)&&Ge.indexOf(bt)<0&&(ot[bt]=Le[bt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,bt=Object.getOwnPropertySymbols(Le);$t<bt.length;$t++)Ge.indexOf(bt[$t])<0&&Object.prototype.propertyIsEnumerable.call(Le,bt[$t])&&(ot[bt[$t]]=Le[bt[$t]]);return ot};const Mt=null,Qt=["normal","exception","active","success"];var xn=te.forwardRef((Le,Ge)=>{const{prefixCls:ot,className:bt,rootClassName:$t,steps:nn,strokeColor:on,percent:jt=0,size:Xt="default",showInfo:bn=!0,type:gn="line",status:Zn,format:Kn,style:Xn}=Le,la=Tt(Le,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Dn=te.useMemo(()=>{var Be,pe;const pt=_e(Le);return parseInt(pt!==void 0?(Be=pt!=null?pt:0)===null||Be===void 0?void 0:Be.toString():(pe=jt!=null?jt:0)===null||pe===void 0?void 0:pe.toString(),10)},[jt,Le.success,Le.successPercent]),An=te.useMemo(()=>!Qt.includes(Zn)&&Dn>=100?"success":Zn||"normal",[Zn,Dn]),{getPrefixCls:Yn,direction:ua,progress:ma}=te.useContext(Oe.E_),Rn=Yn("progress",ot),[Pa,Ga]=sn(Rn),ta=te.useMemo(()=>{if(!bn)return null;const Be=_e(Le);let pe;const pt=Kn||(Zt=>`${Zt}%`),kt=gn==="line";return Kn||An!=="exception"&&An!=="success"?pe=pt(Je(jt),Je(Be)):An==="exception"?pe=kt?te.createElement(Ie.Z,null):te.createElement(fe.Z,null):An==="success"&&(pe=kt?te.createElement(Pe.Z,null):te.createElement(Xe.Z,null)),te.createElement("span",{className:`${Rn}-text`,title:typeof pe=="string"?pe:void 0},pe)},[bn,jt,Dn,An,gn,Rn,Kn]),Ua=Array.isArray(on)?on[0]:on,eo=typeof on=="string"||Array.isArray(on)?on:void 0;let Qa;gn==="line"?Qa=nn?te.createElement(Me,Object.assign({},Le,{strokeColor:eo,prefixCls:Rn,steps:nn}),ta):te.createElement(qt,Object.assign({},Le,{strokeColor:Ua,prefixCls:Rn,direction:ua}),ta):(gn==="circle"||gn==="dashboard")&&(Qa=te.createElement(et,Object.assign({},Le,{strokeColor:Ua,prefixCls:Rn,progressStatus:An}),ta));const Ce=ue()(Rn,`${Rn}-status-${An}`,`${Rn}-${gn==="dashboard"&&"circle"||nn&&"steps"||gn}`,{[`${Rn}-inline-circle`]:gn==="circle"&&ye(Xt,"circle")[0]<=20,[`${Rn}-show-info`]:bn,[`${Rn}-${Xt}`]:typeof Xt=="string",[`${Rn}-rtl`]:ua==="rtl"},ma==null?void 0:ma.className,bt,$t,Ga);return Pa(te.createElement("div",Object.assign({ref:Ge,style:Object.assign(Object.assign({},ma==null?void 0:ma.style),Xn),className:Ce,role:"progressbar","aria-valuenow":Dn},(0,Ne.Z)(la,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qa))}),pn=xn},59810:function(Te,mt,oe){"use strict";oe.d(mt,{default:function(){return Cn}});var te=oe(67294),Pe=oe(74902),Xe=oe(94184),Ie=oe.n(Xe),fe=oe(87462),Fe=oe(15671),ue=oe(43144),Ne=oe(60136),Oe=oe(51630),xe=oe(4942),Ke=oe(45987),je=oe(74165),De=oe(71002),ae=oe(15861),a=oe(64217);function y(ve,We){var Ae="cannot ".concat(ve.method," ").concat(ve.action," ").concat(We.status,"'"),Ze=new Error(Ae);return Ze.status=We.status,Ze.method=ve.method,Ze.url=ve.action,Ze}function E(ve){var We=ve.responseText||ve.response;if(!We)return We;try{return JSON.parse(We)}catch(Ae){return We}}function b(ve){var We=new XMLHttpRequest;ve.onProgress&&We.upload&&(We.upload.onprogress=function(at){at.total>0&&(at.percent=at.loaded/at.total*100),ve.onProgress(at)});var Ae=new FormData;ve.data&&Object.keys(ve.data).forEach(function(ht){var at=ve.data[ht];if(Array.isArray(at)){at.forEach(function(ut){Ae.append("".concat(ht,"[]"),ut)});return}Ae.append(ht,at)}),ve.file instanceof Blob?Ae.append(ve.filename,ve.file,ve.file.name):Ae.append(ve.filename,ve.file),We.onerror=function(at){ve.onError(at)},We.onload=function(){return We.status<200||We.status>=300?ve.onError(y(ve,We),E(We)):ve.onSuccess(E(We),We)},We.open(ve.method,ve.action,!0),ve.withCredentials&&"withCredentials"in We&&(We.withCredentials=!0);var Ze=ve.headers||{};return Ze["X-Requested-With"]!==null&&We.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ze).forEach(function(ht){Ze[ht]!==null&&We.setRequestHeader(ht,Ze[ht])}),We.send(Ae),{abort:function(){We.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var ne=oe(80334),re=function(ve,We){if(ve&&We){var Ae=Array.isArray(We)?We:We.split(","),Ze=ve.name||"",ht=ve.type||"",at=ht.replace(/\/.*$/,"");return Ae.some(function(ut){var nt=ut.trim();if(/^\*(\/\*)?$/.test(ut))return!0;if(nt.charAt(0)==="."){var Jt=Ze.toLowerCase(),It=nt.toLowerCase(),dn=[It];return(It===".jpg"||It===".jpeg")&&(dn=[".jpg",".jpeg"]),dn.some(function(yn){return Jt.endsWith(yn)})}return/\/\*$/.test(nt)?at===nt.replace(/\/.*$/,""):ht===nt?!0:/^\w+$/.test(nt)?((0,ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(nt,"'.Skip for check.")),!0):!1})}return!0};function ge(ve,We){var Ae=ve.createReader(),Ze=[];function ht(){Ae.readEntries(function(at){var ut=Array.prototype.slice.apply(at);Ze=Ze.concat(ut);var nt=!ut.length;nt?We(Ze):ht()})}ht()}var de=function(We,Ae,Ze){var ht=function at(ut,nt){ut&&(ut.path=nt||"",ut.isFile?ut.file(function(Jt){Ze(Jt)&&(ut.fullPath&&!Jt.webkitRelativePath&&(Object.defineProperties(Jt,{webkitRelativePath:{writable:!0}}),Jt.webkitRelativePath=ut.fullPath.replace(/^\//,""),Object.defineProperties(Jt,{webkitRelativePath:{writable:!1}})),Ae([Jt]))}):ut.isDirectory&&ge(ut,function(Jt){Jt.forEach(function(It){at(It,"".concat(nt).concat(ut.name,"/"))})}))};We.forEach(function(at){ht(at.webkitGetAsEntry())})},he=de,ce=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Re=function(ve){(0,Ne.Z)(Ae,ve);var We=(0,Oe.Z)(Ae);function Ae(){var Ze;(0,Fe.Z)(this,Ae);for(var ht=arguments.length,at=new Array(ht),ut=0;ut<ht;ut++)at[ut]=arguments[ut];return Ze=We.call.apply(We,[this].concat(at)),Ze.state={uid:ee()},Ze.reqs={},Ze.fileInput=void 0,Ze._isMounted=void 0,Ze.onChange=function(nt){var Jt=Ze.props,It=Jt.accept,dn=Jt.directory,yn=nt.target.files,$n=(0,Pe.Z)(yn).filter(function(Ye){return!dn||re(Ye,It)});Ze.uploadFiles($n),Ze.reset()},Ze.onClick=function(nt){var Jt=Ze.fileInput;if(Jt){var It=Ze.props,dn=It.children,yn=It.onClick;if(dn&&dn.type==="button"){var $n=Jt.parentNode;$n.focus(),$n.querySelector("button").blur()}Jt.click(),yn&&yn(nt)}},Ze.onKeyDown=function(nt){nt.key==="Enter"&&Ze.onClick(nt)},Ze.onFileDrop=function(nt){var Jt=Ze.props.multiple;if(nt.preventDefault(),nt.type!=="dragover")if(Ze.props.directory)he(Array.prototype.slice.call(nt.dataTransfer.items),Ze.uploadFiles,function(dn){return re(dn,Ze.props.accept)});else{var It=(0,Pe.Z)(nt.dataTransfer.files).filter(function(dn){return re(dn,Ze.props.accept)});Jt===!1&&(It=It.slice(0,1)),Ze.uploadFiles(It)}},Ze.uploadFiles=function(nt){var Jt=(0,Pe.Z)(nt),It=Jt.map(function(dn){return dn.uid=ee(),Ze.processFile(dn,Jt)});Promise.all(It).then(function(dn){var yn=Ze.props.onBatchStart;yn==null||yn(dn.map(function($n){var Ye=$n.origin,$a=$n.parsedFile;return{file:Ye,parsedFile:$a}})),dn.filter(function($n){return $n.parsedFile!==null}).forEach(function($n){Ze.post($n)})})},Ze.processFile=function(){var nt=(0,ae.Z)((0,je.Z)().mark(function Jt(It,dn){var yn,$n,Ye,$a,ba,Da,aa,st,xt;return(0,je.Z)().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(yn=Ze.props.beforeUpload,$n=It,!yn){St.next=14;break}return St.prev=3,St.next=6,yn(It,dn);case 6:$n=St.sent,St.next=12;break;case 9:St.prev=9,St.t0=St.catch(3),$n=!1;case 12:if($n!==!1){St.next=14;break}return St.abrupt("return",{origin:It,parsedFile:null,action:null,data:null});case 14:if(Ye=Ze.props.action,typeof Ye!="function"){St.next=21;break}return St.next=18,Ye(It);case 18:$a=St.sent,St.next=22;break;case 21:$a=Ye;case 22:if(ba=Ze.props.data,typeof ba!="function"){St.next=29;break}return St.next=26,ba(It);case 26:Da=St.sent,St.next=30;break;case 29:Da=ba;case 30:return aa=((0,De.Z)($n)==="object"||typeof $n=="string")&&$n?$n:It,aa instanceof File?st=aa:st=new File([aa],It.name,{type:It.type}),xt=st,xt.uid=It.uid,St.abrupt("return",{origin:It,data:Da,parsedFile:xt,action:$a});case 35:case"end":return St.stop()}},Jt,null,[[3,9]])}));return function(Jt,It){return nt.apply(this,arguments)}}(),Ze.saveFileInput=function(nt){Ze.fileInput=nt},Ze}return(0,ue.Z)(Ae,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(ht){var at=this,ut=ht.data,nt=ht.origin,Jt=ht.action,It=ht.parsedFile;if(this._isMounted){var dn=this.props,yn=dn.onStart,$n=dn.customRequest,Ye=dn.name,$a=dn.headers,ba=dn.withCredentials,Da=dn.method,aa=nt.uid,st=$n||b,xt={action:Jt,filename:Ye,data:ut,file:It,headers:$a,withCredentials:ba,method:Da||"post",onProgress:function(St){var Pn=at.props.onProgress;Pn==null||Pn(St,It)},onSuccess:function(St,Pn){var vn=at.props.onSuccess;vn==null||vn(St,It,Pn),delete at.reqs[aa]},onError:function(St,Pn){var vn=at.props.onError;vn==null||vn(St,Pn,It),delete at.reqs[aa]}};yn(nt),this.reqs[aa]=st(xt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(ht){var at=this.reqs;if(ht){var ut=ht.uid?ht.uid:ht;at[ut]&&at[ut].abort&&at[ut].abort(),delete at[ut]}else Object.keys(at).forEach(function(nt){at[nt]&&at[nt].abort&&at[nt].abort(),delete at[nt]})}},{key:"render",value:function(){var ht,at=this.props,ut=at.component,nt=at.prefixCls,Jt=at.className,It=at.disabled,dn=at.id,yn=at.style,$n=at.multiple,Ye=at.accept,$a=at.capture,ba=at.children,Da=at.directory,aa=at.openFileDialogOnClick,st=at.onMouseEnter,xt=at.onMouseLeave,Yt=(0,Ke.Z)(at,ce),St=Ie()((ht={},(0,xe.Z)(ht,nt,!0),(0,xe.Z)(ht,"".concat(nt,"-disabled"),It),(0,xe.Z)(ht,Jt,Jt),ht)),Pn=Da?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},vn=It?{}:{onClick:aa?this.onClick:function(){},onKeyDown:aa?this.onKeyDown:function(){},onMouseEnter:st,onMouseLeave:xt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return te.createElement(ut,(0,fe.Z)({},vn,{className:St,role:"button",style:yn}),te.createElement("input",(0,fe.Z)({},(0,a.Z)(Yt,{aria:!0,data:!0}),{id:dn,disabled:It,type:"file",ref:this.saveFileInput,onClick:function(ca){return ca.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Ye},Pn,{multiple:$n,onChange:this.onChange},$a!=null?{capture:$a}:{})),ba)}}]),Ae}(te.Component),He=Re;function Et(){}var zt=function(ve){(0,Ne.Z)(Ae,ve);var We=(0,Oe.Z)(Ae);function Ae(){var Ze;(0,Fe.Z)(this,Ae);for(var ht=arguments.length,at=new Array(ht),ut=0;ut<ht;ut++)at[ut]=arguments[ut];return Ze=We.call.apply(We,[this].concat(at)),Ze.uploader=void 0,Ze.saveUploader=function(nt){Ze.uploader=nt},Ze}return(0,ue.Z)(Ae,[{key:"abort",value:function(ht){this.uploader.abort(ht)}},{key:"render",value:function(){return te.createElement(He,(0,fe.Z)({},this.props,{ref:this.saveUploader}))}}]),Ae}(te.Component);zt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Et,onError:Et,onSuccess:Et,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Ut=zt,be=Ut,Ue=oe(5663),ke=oe(73935),gt=oe(53124),ct=oe(98866),Je=oe(10110),_e=oe(24457),dt={icon:function(We,Ae){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ae}},{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:We}}]}},name:"file",theme:"twotone"},Nt=dt,ye=oe(74643),ze=function(We,Ae){return te.createElement(ye.Z,(0,fe.Z)({},We,{ref:Ae,icon:Nt}))},rt=te.forwardRef(ze),Bt=oe(3407),et={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"},lt=et,me=function(We,Ae){return te.createElement(ye.Z,(0,fe.Z)({},We,{ref:Ae,icon:lt}))},it=te.forwardRef(me),Ct={icon:function(We,Ae){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:We}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ae}},{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:Ae}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ae}},{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:We}}]}},name:"picture",theme:"twotone"},qt=Ct,Pt=function(We,Ae){return te.createElement(ye.Z,(0,fe.Z)({},We,{ref:Ae,icon:qt}))},Me=te.forwardRef(Pt),Ee=oe(38379),we=oe(57838),tt=oe(33603),qe=oe(96159),vt=oe(71577);function Rt(ve){return Object.assign(Object.assign({},ve),{lastModified:ve.lastModified,lastModifiedDate:ve.lastModifiedDate,name:ve.name,size:ve.size,type:ve.type,uid:ve.uid,percent:0,originFileObj:ve})}function Gt(ve,We){const Ae=(0,Pe.Z)(We),Ze=Ae.findIndex(ht=>{let{uid:at}=ht;return at===ve.uid});return Ze===-1?Ae.push(ve):Ae[Ze]=ve,Ae}function en(ve,We){const Ae=ve.uid!==void 0?"uid":"name";return We.filter(Ze=>Ze[Ae]===ve[Ae])[0]}function ln(ve,We){const Ae=ve.uid!==void 0?"uid":"name",Ze=We.filter(ht=>ht[Ae]!==ve[Ae]);return Ze.length===We.length?null:Ze}const sn=function(){const We=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ze=We[We.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ze)||[""])[0]},Tt=ve=>ve.indexOf("image/")===0,Mt=ve=>{if(ve.type&&!ve.thumbUrl)return Tt(ve.type);const We=ve.thumbUrl||ve.url||"",Ae=sn(We);return/^data:image\//.test(We)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ae)?!0:!(/^data:/.test(We)||Ae)},Qt=200;function jn(ve){return new Promise(We=>{if(!ve.type||!Tt(ve.type)){We("");return}const Ae=document.createElement("canvas");Ae.width=Qt,Ae.height=Qt,Ae.style.cssText=`position: fixed; left: 0; top: 0; width: ${Qt}px; height: ${Qt}px; z-index: 9999; display: none;`,document.body.appendChild(Ae);const Ze=Ae.getContext("2d"),ht=new Image;if(ht.onload=()=>{const{width:at,height:ut}=ht;let nt=Qt,Jt=Qt,It=0,dn=0;at>ut?(Jt=ut*(Qt/at),dn=-(Jt-nt)/2):(nt=at*(Qt/ut),It=-(nt-Jt)/2),Ze.drawImage(ht,It,dn,nt,Jt);const yn=Ae.toDataURL();document.body.removeChild(Ae),window.URL.revokeObjectURL(ht.src),We(yn)},ht.crossOrigin="anonymous",ve.type.startsWith("image/svg+xml")){const at=new FileReader;at.onload=()=>{at.result&&(ht.src=at.result)},at.readAsDataURL(ve)}else if(ve.type.startsWith("image/gif")){const at=new FileReader;at.onload=()=>{at.result&&We(at.result)},at.readAsDataURL(ve)}else ht.src=window.URL.createObjectURL(ve)})}var xn=oe(84249),pn=oe(90674),Le=oe(99569),Ge=oe(38703),ot=oe(83062),$t=te.forwardRef((ve,We)=>{let{prefixCls:Ae,className:Ze,style:ht,locale:at,listType:ut,file:nt,items:Jt,progress:It,iconRender:dn,actionIconRender:yn,itemRender:$n,isImgUrl:Ye,showPreviewIcon:$a,showRemoveIcon:ba,showDownloadIcon:Da,previewIcon:aa,removeIcon:st,downloadIcon:xt,onPreview:Yt,onDownload:St,onClose:Pn}=ve;var vn,sa;const{status:ca}=nt,[fa,Fo]=te.useState(ca);te.useEffect(()=>{ca!=="removed"&&Fo(ca)},[ca]);const[to,Io]=te.useState(!1);te.useEffect(()=>{const Qn=setTimeout(()=>{Io(!0)},300);return()=>{clearTimeout(Qn)}},[]);const xo=dn(nt);let Va=te.createElement("div",{className:`${Ae}-icon`},xo);if(ut==="picture"||ut==="picture-card"||ut==="picture-circle")if(fa==="uploading"||!nt.thumbUrl&&!nt.url){const Qn=Ie()(`${Ae}-list-item-thumbnail`,{[`${Ae}-list-item-file`]:fa!=="uploading"});Va=te.createElement("div",{className:Qn},xo)}else{const Qn=Ye!=null&&Ye(nt)?te.createElement("img",{src:nt.thumbUrl||nt.url,alt:nt.name,className:`${Ae}-list-item-image`,crossOrigin:nt.crossOrigin}):xo,Jn=Ie()(`${Ae}-list-item-thumbnail`,{[`${Ae}-list-item-file`]:Ye&&!Ye(nt)});Va=te.createElement("a",{className:Jn,onClick:no=>Yt(nt,no),href:nt.url||nt.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Qn)}const va=Ie()(`${Ae}-list-item`,`${Ae}-list-item-${fa}`),io=typeof nt.linkProps=="string"?JSON.parse(nt.linkProps):nt.linkProps,po=ba?yn((typeof st=="function"?st(nt):st)||te.createElement(xn.Z,null),()=>Pn(nt),Ae,at.removeFile):null,yo=Da&&fa==="done"?yn((typeof xt=="function"?xt(nt):xt)||te.createElement(pn.Z,null),()=>St(nt),Ae,at.downloadFile):null,Ka=ut!=="picture-card"&&ut!=="picture-circle"&&te.createElement("span",{key:"download-delete",className:Ie()(`${Ae}-list-item-actions`,{picture:ut==="picture"})},yo,po),Ra=Ie()(`${Ae}-list-item-name`),fo=nt.url?[te.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ra,title:nt.name},io,{href:nt.url,onClick:Qn=>Yt(nt,Qn)}),nt.name),Ka]:[te.createElement("span",{key:"view",className:Ra,onClick:Qn=>Yt(nt,Qn),title:nt.name},nt.name),Ka],un={pointerEvents:"none",opacity:.5},pa=$a?te.createElement("a",{href:nt.url||nt.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:nt.url||nt.thumbUrl?void 0:un,onClick:Qn=>Yt(nt,Qn),title:at.previewFile},typeof aa=="function"?aa(nt):aa||te.createElement(Le.Z,null)):null,Fa=(ut==="picture-card"||ut==="picture-circle")&&fa!=="uploading"&&te.createElement("span",{className:`${Ae}-list-item-actions`},pa,fa==="done"&&yo,po),{getPrefixCls:Na}=te.useContext(gt.E_),Ja=Na(),La=te.createElement("div",{className:va},Va,fo,Fa,to&&te.createElement(Ee.default,{motionName:`${Ja}-fade`,visible:fa==="uploading",motionDeadline:2e3},Qn=>{let{className:Jn}=Qn;const no="percent"in nt?te.createElement(Ge.Z,Object.assign({},It,{type:"line",percent:nt.percent,"aria-label":nt["aria-label"],"aria-labelledby":nt["aria-labelledby"]})):null;return te.createElement("div",{className:Ie()(`${Ae}-list-item-progress`,Jn)},no)})),Wo=nt.response&&typeof nt.response=="string"?nt.response:((vn=nt.error)===null||vn===void 0?void 0:vn.statusText)||((sa=nt.error)===null||sa===void 0?void 0:sa.message)||at.uploadError,wa=fa==="error"?te.createElement(ot.Z,{title:Wo,getPopupContainer:Qn=>Qn.parentNode},La):La;return te.createElement("div",{className:Ie()(`${Ae}-list-item-container`,Ze),style:ht,ref:We},$n?$n(wa,nt,Jt,{download:St.bind(null,nt),preview:Yt.bind(null,nt),remove:Pn.bind(null,nt)}):wa)});const nn=(ve,We)=>{const{listType:Ae="text",previewFile:Ze=jn,onPreview:ht,onDownload:at,onRemove:ut,locale:nt,iconRender:Jt,isImageUrl:It=Mt,prefixCls:dn,items:yn=[],showPreviewIcon:$n=!0,showRemoveIcon:Ye=!0,showDownloadIcon:$a=!1,removeIcon:ba,previewIcon:Da,downloadIcon:aa,progress:st={size:[-1,2],showInfo:!1},appendAction:xt,appendActionVisible:Yt=!0,itemRender:St,disabled:Pn}=ve,vn=(0,we.Z)(),[sa,ca]=te.useState(!1);te.useEffect(()=>{Ae!=="picture"&&Ae!=="picture-card"&&Ae!=="picture-circle"||(yn||[]).forEach(un=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(un.originFileObj instanceof File||un.originFileObj instanceof Blob)||un.thumbUrl!==void 0||(un.thumbUrl="",Ze&&Ze(un.originFileObj).then(pa=>{un.thumbUrl=pa||"",vn()}))})},[Ae,yn,Ze]),te.useEffect(()=>{ca(!0)},[]);const fa=(un,pa)=>{if(ht)return pa==null||pa.preventDefault(),ht(un)},Fo=un=>{typeof at=="function"?at(un):un.url&&window.open(un.url)},to=un=>{ut==null||ut(un)},Io=un=>{if(Jt)return Jt(un,Ae);const pa=un.status==="uploading",Fa=It&&It(un)?te.createElement(Me,null):te.createElement(rt,null);let Na=pa?te.createElement(Bt.Z,null):te.createElement(it,null);return Ae==="picture"?Na=pa?te.createElement(Bt.Z,null):Fa:(Ae==="picture-card"||Ae==="picture-circle")&&(Na=pa?nt.uploading:Fa),Na},xo=(un,pa,Fa,Na)=>{const Ja={type:"text",size:"small",title:Na,onClick:La=>{pa(),(0,qe.l$)(un)&&un.props.onClick&&un.props.onClick(La)},className:`${Fa}-list-item-action`,disabled:Pn};if((0,qe.l$)(un)){const La=(0,qe.Tm)(un,Object.assign(Object.assign({},un.props),{onClick:()=>{}}));return te.createElement(vt.ZP,Object.assign({},Ja,{icon:La}))}return te.createElement(vt.ZP,Object.assign({},Ja),te.createElement("span",null,un))};te.useImperativeHandle(We,()=>({handlePreview:fa,handleDownload:Fo}));const{getPrefixCls:Va}=te.useContext(gt.E_),va=Va("upload",dn),io=Va(),po=Ie()(`${va}-list`,`${va}-list-${Ae}`),yo=(0,Pe.Z)(yn.map(un=>({key:un.uid,file:un})));let Ra={motionDeadline:2e3,motionName:`${va}-${Ae==="picture-card"||Ae==="picture-circle"?"animate-inline":"animate"}`,keys:yo,motionAppear:sa};const fo=te.useMemo(()=>{const un=Object.assign({},(0,tt.Z)(io));return delete un.onAppearEnd,delete un.onEnterEnd,delete un.onLeaveEnd,un},[io]);return Ae!=="picture-card"&&Ae!=="picture-circle"&&(Ra=Object.assign(Object.assign({},fo),Ra)),te.createElement("div",{className:po},te.createElement(Ee.CSSMotionList,Object.assign({},Ra,{component:!1}),un=>{let{key:pa,file:Fa,className:Na,style:Ja}=un;return te.createElement($t,{key:pa,locale:nt,prefixCls:va,className:Na,style:Ja,file:Fa,items:yn,progress:st,listType:Ae,isImgUrl:It,showPreviewIcon:$n,showRemoveIcon:Ye,showDownloadIcon:$a,removeIcon:ba,previewIcon:Da,downloadIcon:aa,iconRender:Io,actionIconRender:xo,itemRender:St,onPreview:fa,onDownload:Fo,onClose:to})}),xt&&te.createElement(Ee.default,Object.assign({},Ra,{visible:Yt,forceRender:!0}),un=>{let{className:pa,style:Fa}=un;return(0,qe.Tm)(xt,Na=>({className:Ie()(Na.className,pa),style:Object.assign(Object.assign(Object.assign({},Fa),{pointerEvents:pa?"none":void 0}),Na.style)}))}))};var jt=te.forwardRef(nn),Xt=oe(14747),bn=oe(33507),gn=oe(67968),Zn=oe(45503),Xn=ve=>{const{componentCls:We,iconCls:Ae}=ve;return{[`${We}-wrapper`]:{[`${We}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ve.colorFillAlter,border:`${ve.lineWidth}px dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[We]:{padding:`${ve.padding}px 0`},[`${We}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${We}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${We}-disabled):hover`]:{borderColor:ve.colorPrimaryHover},[`p${We}-drag-icon`]:{marginBottom:ve.margin,[Ae]:{color:ve.colorPrimary,fontSize:ve.uploadThumbnailSize}},[`p${We}-text`]:{margin:`0 0 ${ve.marginXXS}px`,color:ve.colorTextHeading,fontSize:ve.fontSizeLG},[`p${We}-hint`]:{color:ve.colorTextDescription,fontSize:ve.fontSize},[`&${We}-disabled`]:{cursor:"not-allowed",[`p${We}-drag-icon ${Ae},
|
|
p${We}-text,
|
|
p${We}-hint
|
|
`]:{color:ve.colorTextDisabled}}}}}},Dn=ve=>{const{componentCls:We,antCls:Ae,iconCls:Ze,fontSize:ht,lineHeight:at}=ve,ut=`${We}-list-item`,nt=`${ut}-actions`,Jt=`${ut}-action`,It=Math.round(ht*at);return{[`${We}-wrapper`]:{[`${We}-list`]:Object.assign(Object.assign({},(0,Xt.dF)()),{lineHeight:ve.lineHeight,[ut]:{position:"relative",height:ve.lineHeight*ht,marginTop:ve.marginXS,fontSize:ht,display:"flex",alignItems:"center",transition:`background-color ${ve.motionDurationSlow}`,"&:hover":{backgroundColor:ve.controlItemBgHover},[`${ut}-name`]:Object.assign(Object.assign({},Xt.vS),{padding:`0 ${ve.paddingXS}px`,lineHeight:at,flex:"auto",transition:`all ${ve.motionDurationSlow}`}),[nt]:{[Jt]:{opacity:0},[`${Jt}${Ae}-btn-sm`]:{height:It,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Jt}:focus-visible,
|
|
&.picture ${Jt}
|
|
`]:{opacity:1},[Ze]:{color:ve.actionsColor,transition:`all ${ve.motionDurationSlow}`},[`&:hover ${Ze}`]:{color:ve.colorText}},[`${We}-icon ${Ze}`]:{color:ve.colorTextDescription,fontSize:ht},[`${ut}-progress`]:{position:"absolute",bottom:-ve.uploadProgressOffset,width:"100%",paddingInlineStart:ht+ve.paddingXS,fontSize:ht,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ut}:hover ${Jt}`]:{opacity:1,color:ve.colorText},[`${ut}-error`]:{color:ve.colorError,[`${ut}-name, ${We}-icon ${Ze}`]:{color:ve.colorError},[nt]:{[`${Ze}, ${Ze}:hover`]:{color:ve.colorError},[Jt]:{opacity:1}}},[`${We}-list-item-container`]:{transition:`opacity ${ve.motionDurationSlow}, height ${ve.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},An=oe(45930),Yn=oe(16932);const ua=new An.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ma=new An.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Pa=ve=>{const{componentCls:We}=ve,Ae=`${We}-animate-inline`;return[{[`${We}-wrapper`]:{[`${Ae}-appear, ${Ae}-enter, ${Ae}-leave`]:{animationDuration:ve.motionDurationSlow,animationTimingFunction:ve.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ae}-appear, ${Ae}-enter`]:{animationName:ua},[`${Ae}-leave`]:{animationName:ma}}},{[`${We}-wrapper`]:(0,Yn.J$)(ve)},ua,ma]},Ga=oe(47448),ta=oe(84780);const Ua=ve=>{const{componentCls:We,iconCls:Ae,uploadThumbnailSize:Ze,uploadProgressOffset:ht}=ve,at=`${We}-list`,ut=`${at}-item`;return{[`${We}-wrapper`]:{[`
|
|
${at}${at}-picture,
|
|
${at}${at}-picture-card,
|
|
${at}${at}-picture-circle
|
|
`]:{[ut]:{position:"relative",height:Ze+ve.lineWidth*2+ve.paddingXS*2,padding:ve.paddingXS,border:`${ve.lineWidth}px ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,"&:hover":{background:"transparent"},[`${ut}-thumbnail`]:Object.assign(Object.assign({},Xt.vS),{width:Ze,height:Ze,lineHeight:`${Ze+ve.paddingSM}px`,textAlign:"center",flex:"none",[Ae]:{fontSize:ve.fontSizeHeading2,color:ve.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ut}-progress`]:{bottom:ht,width:`calc(100% - ${ve.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ze+ve.paddingXS}},[`${ut}-error`]:{borderColor:ve.colorError,[`${ut}-thumbnail ${Ae}`]:{[`svg path[fill='${Ga.blue[0]}']`]:{fill:ve.colorErrorBg},[`svg path[fill='${Ga.blue.primary}']`]:{fill:ve.colorError}}},[`${ut}-uploading`]:{borderStyle:"dashed",[`${ut}-name`]:{marginBottom:ht}}},[`${at}${at}-picture-circle ${ut}`]:{[`&, &::before, ${ut}-thumbnail`]:{borderRadius:"50%"}}}}},eo=ve=>{const{componentCls:We,iconCls:Ae,fontSizeLG:Ze,colorTextLightSolid:ht}=ve,at=`${We}-list`,ut=`${at}-item`,nt=ve.uploadPicCardSize;return{[`
|
|
${We}-wrapper${We}-picture-card-wrapper,
|
|
${We}-wrapper${We}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Xt.dF)()),{display:"inline-block",width:"100%",[`${We}${We}-select`]:{width:nt,height:nt,marginInlineEnd:ve.marginXS,marginBottom:ve.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ve.colorFillAlter,border:`${ve.lineWidth}px dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[`> ${We}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${We}-disabled):hover`]:{borderColor:ve.colorPrimary}},[`${at}${at}-picture-card, ${at}${at}-picture-circle`]:{[`${at}-item-container`]:{display:"inline-block",width:nt,height:nt,marginBlock:`0 ${ve.marginXS}px`,marginInline:`0 ${ve.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[ut]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ve.paddingXS*2}px)`,height:`calc(100% - ${ve.paddingXS*2}px)`,backgroundColor:ve.colorBgMask,opacity:0,transition:`all ${ve.motionDurationSlow}`,content:'" "'}},[`${ut}:hover`]:{[`&::before, ${ut}-actions`]:{opacity:1}},[`${ut}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ve.motionDurationSlow}`,[`${Ae}-eye, ${Ae}-download, ${Ae}-delete`]:{zIndex:10,width:Ze,margin:`0 ${ve.marginXXS}px`,fontSize:Ze,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ut}-actions, ${ut}-actions:hover`]:{[`${Ae}-eye, ${Ae}-download, ${Ae}-delete`]:{color:new ta.C(ht).setAlpha(.65).toRgbString(),"&:hover":{color:ht}}},[`${ut}-thumbnail, ${ut}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ut}-name`]:{display:"none",textAlign:"center"},[`${ut}-file + ${ut}-name`]:{position:"absolute",bottom:ve.margin,display:"block",width:`calc(100% - ${ve.paddingXS*2}px)`},[`${ut}-uploading`]:{[`&${ut}`]:{backgroundColor:ve.colorFillAlter},[`&::before, ${Ae}-eye, ${Ae}-download, ${Ae}-delete`]:{display:"none"}},[`${ut}-progress`]:{bottom:ve.marginXL,width:`calc(100% - ${ve.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${We}-wrapper${We}-picture-circle-wrapper`]:{[`${We}${We}-select`]:{borderRadius:"50%"}}}};var Ce=ve=>{const{componentCls:We}=ve;return{[`${We}-rtl`]:{direction:"rtl"}}};const Be=ve=>{const{componentCls:We,colorTextDisabled:Ae}=ve;return{[`${We}-wrapper`]:Object.assign(Object.assign({},(0,Xt.Wf)(ve)),{[We]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${We}-select`]:{display:"inline-block"},[`${We}-disabled`]:{color:Ae,cursor:"not-allowed"}})}};var pe=(0,gn.Z)("Upload",ve=>{const{fontSizeHeading3:We,fontSize:Ae,lineHeight:Ze,lineWidth:ht,controlHeightLG:at}=ve,ut=Math.round(Ae*Ze),nt=(0,Zn.TS)(ve,{uploadThumbnailSize:We*2,uploadProgressOffset:ut/2+ht,uploadPicCardSize:at*2.55});return[Be(nt),Xn(nt),Ua(nt),eo(nt),Dn(nt),Pa(nt),Ce(nt),(0,bn.Z)(nt)]},ve=>({actionsColor:ve.colorTextDescription})),pt=function(ve,We,Ae,Ze){function ht(at){return at instanceof Ae?at:new Ae(function(ut){ut(at)})}return new(Ae||(Ae=Promise))(function(at,ut){function nt(dn){try{It(Ze.next(dn))}catch(yn){ut(yn)}}function Jt(dn){try{It(Ze.throw(dn))}catch(yn){ut(yn)}}function It(dn){dn.done?at(dn.value):ht(dn.value).then(nt,Jt)}It((Ze=Ze.apply(ve,We||[])).next())})};const kt=`__LIST_IGNORE_${Date.now()}__`,Zt=(ve,We)=>{const{fileList:Ae,defaultFileList:Ze,onRemove:ht,showUploadList:at=!0,listType:ut="text",onPreview:nt,onDownload:Jt,onChange:It,onDrop:dn,previewFile:yn,disabled:$n,locale:Ye,iconRender:$a,isImageUrl:ba,progress:Da,prefixCls:aa,className:st,type:xt="select",children:Yt,style:St,itemRender:Pn,maxCount:vn,data:sa={},multiple:ca=!1,action:fa="",accept:Fo="",supportServerRender:to=!0,rootClassName:Io}=ve,xo=te.useContext(ct.Z),Va=$n!=null?$n:xo,[va,io]=(0,Ue.Z)(Ze||[],{value:Ae,postState:an=>an!=null?an:[]}),[po,yo]=te.useState("drop"),Ka=te.useRef(null);te.useMemo(()=>{const an=Date.now();(Ae||[]).forEach((Fn,zn)=>{!Fn.uid&&!Object.isFrozen(Fn)&&(Fn.uid=`__AUTO__${an}_${zn}__`)})},[Ae]);const Ra=(an,Fn,zn)=>{let En=(0,Pe.Z)(Fn),Wn=!1;vn===1?En=En.slice(-1):vn&&(Wn=En.length>vn,En=En.slice(0,vn)),(0,ke.flushSync)(()=>{io(En)});const Ba={file:an,fileList:En};zn&&(Ba.event=zn),(!Wn||En.some(bo=>bo.uid===an.uid))&&(0,ke.flushSync)(()=>{It==null||It(Ba)})},fo=(an,Fn)=>pt(void 0,void 0,void 0,function*(){const{beforeUpload:zn,transformFile:En}=ve;let Wn=an;if(zn){const Ba=yield zn(an,Fn);if(Ba===!1)return!1;if(delete an[kt],Ba===kt)return Object.defineProperty(an,kt,{value:!0,configurable:!0}),!1;typeof Ba=="object"&&Ba&&(Wn=Ba)}return En&&(Wn=yield En(Wn)),Wn}),un=an=>{const Fn=an.filter(Wn=>!Wn.file[kt]);if(!Fn.length)return;const zn=Fn.map(Wn=>Rt(Wn.file));let En=(0,Pe.Z)(va);zn.forEach(Wn=>{En=Gt(Wn,En)}),zn.forEach((Wn,Ba)=>{let bo=Wn;if(Fn[Ba].parsedFile)Wn.status="uploading";else{const{originFileObj:ao}=Wn;let Lo;try{Lo=new File([ao],ao.name,{type:ao.type})}catch(Oa){Lo=new Blob([ao],{type:ao.type}),Lo.name=ao.name,Lo.lastModifiedDate=new Date,Lo.lastModified=new Date().getTime()}Lo.uid=Wn.uid,bo=Lo}Ra(bo,En)})},pa=(an,Fn,zn)=>{try{typeof an=="string"&&(an=JSON.parse(an))}catch(Ba){}if(!en(Fn,va))return;const En=Rt(Fn);En.status="done",En.percent=100,En.response=an,En.xhr=zn;const Wn=Gt(En,va);Ra(En,Wn)},Fa=(an,Fn)=>{if(!en(Fn,va))return;const zn=Rt(Fn);zn.status="uploading",zn.percent=an.percent;const En=Gt(zn,va);Ra(zn,En,an)},Na=(an,Fn,zn)=>{if(!en(zn,va))return;const En=Rt(zn);En.error=an,En.response=Fn,En.status="error";const Wn=Gt(En,va);Ra(En,Wn)},Ja=an=>{let Fn;Promise.resolve(typeof ht=="function"?ht(an):ht).then(zn=>{var En;if(zn===!1)return;const Wn=ln(an,va);Wn&&(Fn=Object.assign(Object.assign({},an),{status:"removed"}),va==null||va.forEach(Ba=>{const bo=Fn.uid!==void 0?"uid":"name";Ba[bo]===Fn[bo]&&!Object.isFrozen(Ba)&&(Ba.status="removed")}),(En=Ka.current)===null||En===void 0||En.abort(Fn),Ra(Fn,Wn))})},La=an=>{yo(an.type),an.type==="drop"&&(dn==null||dn(an))};te.useImperativeHandle(We,()=>({onBatchStart:un,onSuccess:pa,onProgress:Fa,onError:Na,fileList:va,upload:Ka.current}));const{getPrefixCls:Wo,direction:wa,upload:Qn}=te.useContext(gt.E_),Jn=Wo("upload",aa),no=Object.assign(Object.assign({onBatchStart:un,onError:Na,onProgress:Fa,onSuccess:pa},ve),{data:sa,multiple:ca,action:fa,accept:Fo,supportServerRender:to,prefixCls:Jn,disabled:Va,beforeUpload:fo,onChange:void 0});delete no.className,delete no.style,(!Yt||Va)&&delete no.id;const[Do,Qo]=pe(Jn),[Lr]=(0,Je.Z)("Upload",_e.Z.Upload),{showRemoveIcon:wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:Ht,previewIcon:Lt,downloadIcon:Ot}=typeof at=="boolean"?{}:at,Dt=(an,Fn)=>at?te.createElement(jt,{prefixCls:Jn,listType:ut,items:va,previewFile:yn,onPreview:nt,onDownload:Jt,onRemove:Ja,showRemoveIcon:!Va&&wr,showPreviewIcon:Jo,showDownloadIcon:mr,removeIcon:Ht,previewIcon:Lt,downloadIcon:Ot,iconRender:$a,locale:Object.assign(Object.assign({},Lr),Ye),isImageUrl:ba,progress:Da,appendAction:an,appendActionVisible:Fn,itemRender:Pn,disabled:Va}):an,Gn=Ie()(`${Jn}-wrapper`,st,Io,Qo,Qn==null?void 0:Qn.className,{[`${Jn}-rtl`]:wa==="rtl",[`${Jn}-picture-card-wrapper`]:ut==="picture-card",[`${Jn}-picture-circle-wrapper`]:ut==="picture-circle"}),Sa=Object.assign(Object.assign({},Qn==null?void 0:Qn.style),St);if(xt==="drag"){const an=Ie()(Qo,Jn,`${Jn}-drag`,{[`${Jn}-drag-uploading`]:va.some(Fn=>Fn.status==="uploading"),[`${Jn}-drag-hover`]:po==="dragover",[`${Jn}-disabled`]:Va,[`${Jn}-rtl`]:wa==="rtl"});return Do(te.createElement("span",{className:Gn},te.createElement("div",{className:an,style:Sa,onDrop:La,onDragOver:La,onDragLeave:La},te.createElement(be,Object.assign({},no,{ref:Ka,className:`${Jn}-btn`}),te.createElement("div",{className:`${Jn}-drag-container`},Yt))),Dt()))}const ka=Ie()(Jn,`${Jn}-select`,{[`${Jn}-disabled`]:Va}),xa=(an=>te.createElement("div",{className:ka,style:an},te.createElement(be,Object.assign({},no,{ref:Ka}))))(Yt?void 0:{display:"none"});return Do(ut==="picture-card"||ut==="picture-circle"?te.createElement("span",{className:Gn},Dt(xa,!!Yt)):te.createElement("span",{className:Gn},xa,Dt()))};var Sn=te.forwardRef(Zt),Bn=function(ve,We){var Ae={};for(var Ze in ve)Object.prototype.hasOwnProperty.call(ve,Ze)&&We.indexOf(Ze)<0&&(Ae[Ze]=ve[Ze]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,Ze=Object.getOwnPropertySymbols(ve);ht<Ze.length;ht++)We.indexOf(Ze[ht])<0&&Object.prototype.propertyIsEnumerable.call(ve,Ze[ht])&&(Ae[Ze[ht]]=ve[Ze[ht]]);return Ae},Ia=te.forwardRef((ve,We)=>{var{style:Ae,height:Ze}=ve,ht=Bn(ve,["style","height"]);return te.createElement(Sn,Object.assign({ref:We},ht,{type:"drag",style:Object.assign(Object.assign({},Ae),{height:Ze})}))});const ft=Sn;ft.Dragger=Ia,ft.LIST_IGNORE=kt;var Cn=ft},62661:function(Te,mt){"use strict";var oe;var te=Symbol.for("react.element"),Pe=Symbol.for("react.portal"),Xe=Symbol.for("react.fragment"),Ie=Symbol.for("react.strict_mode"),fe=Symbol.for("react.profiler"),Fe=Symbol.for("react.provider"),ue=Symbol.for("react.context"),Ne=Symbol.for("react.server_context"),Oe=Symbol.for("react.forward_ref"),xe=Symbol.for("react.suspense"),Ke=Symbol.for("react.suspense_list"),je=Symbol.for("react.memo"),De=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),a;a=Symbol.for("react.module.reference");function y(E){if(typeof E=="object"&&E!==null){var b=E.$$typeof;switch(b){case te:switch(E=E.type,E){case Xe:case fe:case Ie:case xe:case Ke:return E;default:switch(E=E&&E.$$typeof,E){case Ne:case ue:case Oe:case De:case je:case Fe:return E;default:return b}}case Pe:return b}}}oe=ue,oe=Fe,oe=te,oe=Oe,oe=Xe,oe=De,oe=je,oe=Pe,oe=fe,oe=Ie,oe=xe,oe=Ke,oe=function(){return!1},oe=function(){return!1},oe=function(E){return y(E)===ue},oe=function(E){return y(E)===Fe},oe=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===te},oe=function(E){return y(E)===Oe},oe=function(E){return y(E)===Xe},oe=function(E){return y(E)===De},mt.isMemo=function(E){return y(E)===je},oe=function(E){return y(E)===Pe},oe=function(E){return y(E)===fe},oe=function(E){return y(E)===Ie},oe=function(E){return y(E)===xe},oe=function(E){return y(E)===Ke},oe=function(E){return typeof E=="string"||typeof E=="function"||E===Xe||E===fe||E===Ie||E===xe||E===Ke||E===ae||typeof E=="object"&&E!==null&&(E.$$typeof===De||E.$$typeof===je||E.$$typeof===Fe||E.$$typeof===ue||E.$$typeof===Oe||E.$$typeof===a||E.getModuleId!==void 0)},oe=y},95845:function(Te,mt,oe){"use strict";Te.exports=oe(62661)},72665:function(Te,mt){"use strict";var oe;var te=typeof Symbol=="function"&&Symbol.for,Pe=te?Symbol.for("react.element"):60103,Xe=te?Symbol.for("react.portal"):60106,Ie=te?Symbol.for("react.fragment"):60107,fe=te?Symbol.for("react.strict_mode"):60108,Fe=te?Symbol.for("react.profiler"):60114,ue=te?Symbol.for("react.provider"):60109,Ne=te?Symbol.for("react.context"):60110,Oe=te?Symbol.for("react.async_mode"):60111,xe=te?Symbol.for("react.concurrent_mode"):60111,Ke=te?Symbol.for("react.forward_ref"):60112,je=te?Symbol.for("react.suspense"):60113,De=te?Symbol.for("react.suspense_list"):60120,ae=te?Symbol.for("react.memo"):60115,a=te?Symbol.for("react.lazy"):60116,y=te?Symbol.for("react.block"):60121,E=te?Symbol.for("react.fundamental"):60117,b=te?Symbol.for("react.responder"):60118,x=te?Symbol.for("react.scope"):60119;function z(ne){if(typeof ne=="object"&&ne!==null){var re=ne.$$typeof;switch(re){case Pe:switch(ne=ne.type,ne){case Oe:case xe:case Ie:case Fe:case fe:case je:return ne;default:switch(ne=ne&&ne.$$typeof,ne){case Ne:case Ke:case a:case ae:case ue:return ne;default:return re}}case Xe:return re}}}function ee(ne){return z(ne)===xe}oe=Oe,oe=xe,oe=Ne,oe=ue,oe=Pe,oe=Ke,oe=Ie,oe=a,oe=ae,oe=Xe,oe=Fe,oe=fe,oe=je,oe=function(ne){return ee(ne)||z(ne)===Oe},oe=ee,oe=function(ne){return z(ne)===Ne},oe=function(ne){return z(ne)===ue},oe=function(ne){return typeof ne=="object"&&ne!==null&&ne.$$typeof===Pe},oe=function(ne){return z(ne)===Ke},oe=function(ne){return z(ne)===Ie},oe=function(ne){return z(ne)===a},mt.isMemo=function(ne){return z(ne)===ae},oe=function(ne){return z(ne)===Xe},oe=function(ne){return z(ne)===Fe},oe=function(ne){return z(ne)===fe},oe=function(ne){return z(ne)===je},oe=function(ne){return typeof ne=="string"||typeof ne=="function"||ne===Ie||ne===xe||ne===Fe||ne===fe||ne===je||ne===De||typeof ne=="object"&&ne!==null&&(ne.$$typeof===a||ne.$$typeof===ae||ne.$$typeof===ue||ne.$$typeof===Ne||ne.$$typeof===Ke||ne.$$typeof===E||ne.$$typeof===b||ne.$$typeof===x||ne.$$typeof===y)},oe=z},12060:function(Te,mt,oe){"use strict";Te.exports=oe(72665)},64217:function(Te,mt,oe){"use strict";oe.d(mt,{Z:function(){return Ne}});var te=oe(1413),Pe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,Xe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Ie="".concat(Pe," ").concat(Xe).split(/[\s\n]+/),fe="aria-",Fe="data-";function ue(Oe,xe){return Oe.indexOf(xe)===0}function Ne(Oe){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ke;xe===!1?Ke={aria:!0,data:!0,attr:!0}:xe===!0?Ke={aria:!0}:Ke=(0,te.Z)({},xe);var je={};return Object.keys(Oe).forEach(function(De){(Ke.aria&&(De==="role"||ue(De,fe))||Ke.data&&ue(De,Fe)||Ke.attr&&Ie.includes(De))&&(je[De]=Oe[De])}),je}}}]);
|