You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__User__Detail__Topics__No...

144 lines
386 KiB

(self.webpackChunk=self.webpackChunk||[]).push([[6820],{26227:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return nt}});var ae=ge(54476),he=ge(59301),Je={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"},Xe=Je,ce=ge(7657),Ze=function(Ae,je){return he.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Xe}))},ue=he.forwardRef(Ze),nt=ue},41464:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return nt}});var ae=ge(54476),he=ge(59301),Je={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"},Xe=Je,ce=ge(7657),Ze=function(Ae,je){return he.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Xe}))},ue=he.forwardRef(Ze),nt=ue},33853:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return nt}});var ae=ge(54476),he=ge(59301),Je={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"},Xe=Je,ce=ge(7657),Ze=function(Ae,je){return he.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Xe}))},ue=he.forwardRef(Ze),nt=ue},38819:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return nt}});var ae=ge(54476),he=ge(59301),Je={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"},Xe=Je,ce=ge(7657),Ze=function(Ae,je){return he.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Xe}))},ue=he.forwardRef(Ze),nt=ue},69453:function(xe,gt){"use strict";gt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},72179:function(){"use strict";function xe(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(xe.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(xe.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(xe.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(xe.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof xe))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var gt=[];function ge(ne,a){var y=gt.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=gt.pop();return ne===void 0?new go.Point:ne}function he(ne){gt.push(ne)}function Je(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ie=NaN,me=NaN;if(oe===0)if(re===0)ne===y&&(ie=ne,me=a);else{var le=(E-ee)/re,Ce=E-le*b;ie=ne,me=le*ie+Ce}else if(re===0){var Te=(a-x)/oe,st=a-Te*ne;ie=b,me=Te*ie+st}else{var Te=(a-x)/oe,le=(E-ee)/re,st=a-Te*ne,Ce=E-le*b;ie=(Ce-st)/(Te-le),me=Te*ie+st}return te.x=ie,te.y=me,te}function Xe(ne,a,y,x,b,E,z,ee,te,oe,re,ie,me,le){var Ce=1-te,Te=te,st=ne*Ce+y*Te,Tt=a*Ce+x*Te,$t=y*Ce+b*Te,Le=x*Ce+E*Te,Ve=b*Ce+z*Te,ot=E*Ce+ee*Te,Qe=st*Ce+$t*Te,rt=Tt*Ce+Le*Te,Mt=$t*Ce+Ve*Te,Ht=Le*Ce+ot*Te,Zt=Qe*Ce+Mt*Te,ln=rt*Ce+Ht*Te;oe.x=st,oe.y=Tt,re.x=Qe,re.y=rt,ie.x=Zt,ie.y=ln,me.x=Mt,me.y=Ht,le.x=Ve,le.y=ot}var ce=new go.Spot(.156,.156),Ze=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new xe("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ue,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=ce,b.spot2=Ze,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,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(ne,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(ne,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(ne,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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new xe("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new xe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new xe("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new xe("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new xe("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var nt=[];function Me(){var ne=nt.pop();return ne===void 0?[]:ne}function Ae(ne){ne.length=0,nt.push(ne)}function je(ne){for(var a=Me(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function ze(ne){var a=Ie(ne),y=Me();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return Ae(a),y}function Ie(ne){for(var a=je(ne),y=Me(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(x+z-1)%b],re=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Je(ee.x,ee.y,oe.x,oe.y,te.x,te.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],Ae(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=je(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=je(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=je(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=je(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=je(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=je(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=je(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=Ie(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=Ie(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=Ie(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=Ie(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=Ie(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=Ie(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=ze(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=ze(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=ze(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=ze(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=ze(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=ze(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new xe("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new xe("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new xe("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=ce,E.spot2=Ze,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new xe("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new xe("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=ue/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new xe("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new xe("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new xe("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,re=new go.PathFigure(te,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,te,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new xe("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new xe("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new xe("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*ue;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=ue*.4;var oe=ae(),re=ae(),ie=ae(),me=ae();Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,me,me);var le=ae(),Ce=ae(),Te=ae();Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,me,me,Te,le,Ce);var st=ae(),Tt=ae(),$t=ae();Xe(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,st,Tt,$t,me,me);var Le=ae(),Ve=ae(),ot=ae();return Xe(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,me,me,ot,Le,Ve),te.add(new go.PathSegment(go.PathSegment.Move,ot.x*a,ot.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Le.x*a,Le.y*y,Ve.x*a,Ve.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,ot.x*a,ot.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,$t.x*a,$t.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Te.x*a,Te.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,le.x*a,le.y*y,Ce.x*a,Ce.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,$t.x*a,$t.y*y,st.x*a,st.y*y,Tt.x*a,Tt.y*y).close()),he(oe),he(re),he(ie),he(me),he(le),he(Ce),he(Te),he(st),he(Tt),he($t),he(Le),he(Ve),he(ot),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new xe("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae(),me=new go.PathFigure((z-E)*a,ee*y,!1);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var le=ge(oe.x,oe.y);Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,re,ie);var Ce=ge(oe.x,oe.y);me.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ce.x*.1+.9)*a,(Ce.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Ce.x*a,Ce.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=ue*.35;var Te=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var st=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(st),he(te),he(oe),he(re),he(ie),he(le),he(Ce),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*ue,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*ue;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new xe("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new xe("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Je(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),he(re),te}),go.Shape.setFigureParameter("Arrow2",0,new xe("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new xe("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Je(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),he(re),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new xe("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Je(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Je(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new xe("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new xe("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Je(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Je(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new xe("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Je(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new xe("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new xe("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var ie=Je(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new xe("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=Je(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new xe("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=Je(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new xe("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Je(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new xe("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Je(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new xe("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ue*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-ue*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-ue*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ue*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-ue*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-ue*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-ue*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+ue*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+ue*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-ue*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-ue*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=ue*b,ee=ue*E,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var ie=.05,me=ue*ie;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+me)*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,me=ue*ie,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y,(te+me)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-me)*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,me=ue*ie,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y,(te+me)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-me)*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,me=ue*ie,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y,(te+me)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-me)*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,me=ue*ie,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y,(te-me)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new xe("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=ue*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=ue*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=ue*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.4,z=ue*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=ue*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=ue*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=ue*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=ue*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,me=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=ue*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=ue*.2,ee=.2,te=.5,oe=.5;var Ce=new go.PathFigure((te-ee)*a+re,oe*y+ie,!0);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),z=ue*.4,ee=.4,te=.8,oe=.5;var Te=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);x.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),z=ue*.8,ee=.8,te=1,oe=.5;var st=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);return x.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),st.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),st.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),st.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae();Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie);var me=ge(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Xe(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=ue*.3,E=.3,Xe(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var le=new go.PathFigure(.45*a,0,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),he(te),he(oe),he(re),he(ie),he(me),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*ue,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,me=.5,le=0,Ce=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me+E)*a,(le+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Ce.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Ce.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,me=z,le=z,Ce=re*me,Te=re*le;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Ce+me)/2)*a,(te+(le+Te)/2)*y,(ee-me)*a,(te+Te)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-me)*a,(te-Te)*y,(ee-Ce)*a,(te-le)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Ce)*a,(te-le)*y,(ee+me)*a,(te-Te)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Te)*y,(ee+(Ce+me)/2)*a,(te+(le+Te)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var st=new go.PathFigure(.2*a,y,!1);x.add(st),st.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Tt=new go.PathFigure(.8*a,y,!1);return x.add(Tt),Tt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=ue*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=ue*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=ue*.1,re=.1,ie=.9,me=new go.PathFigure((re-te)*a,ie*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),te=.1,oe=ue*.1,re=.4,ie=.9;var le=new go.PathFigure((re-te)*a,ie*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=ue*.05,me=.175,le=.95,ee=new go.PathFigure((me-re)*a,le*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-re)*y,(me-re)*a,(le-ie)*y,(me-ie)*a,(le-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+re)*a,le*y,(me+ie)*a,(le-re)*y,(me+re)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+re)*y,(me+re)*a,(le+ie)*y,(me+ie)*a,(le+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-re)*a,le*y,(me-ie)*a,(le+re)*y,(me-re)*a,(le+ie)*y));var re=.05,ie=ue*.05,me=.375,le=.95,te=new go.PathFigure((me-re)*a,le*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-re)*y,(me-re)*a,(le-ie)*y,(me-ie)*a,(le-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+re)*a,le*y,(me+ie)*a,(le-re)*y,(me+re)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+re)*y,(me+re)*a,(le+ie)*y,(me+ie)*a,(le+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-re)*a,le*y,(me-ie)*a,(le+re)*y,(me-re)*a,(le+ie)*y));var re=.05,ie=ue*.05,me=.625,le=.95,oe=new go.PathFigure((me-re)*a,le*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-re)*y,(me-re)*a,(le-ie)*y,(me-ie)*a,(le-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me+re)*a,le*y,(me+ie)*a,(le-re)*y,(me+re)*a,(le-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+re)*y,(me+re)*a,(le+ie)*y,(me+ie)*a,(le+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me-re)*a,le*y,(me-ie)*a,(le+re)*y,(me-re)*a,(le+ie)*y));var re=.05,ie=ue*.05,me=.825,le=.95,Ce=new go.PathFigure((me-re)*a,le*y,!0);x.add(Ce),Ce.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-re)*y,(me-re)*a,(le-ie)*y,(me-ie)*a,(le-re)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me+re)*a,le*y,(me+ie)*a,(le-re)*y,(me+re)*a,(le-ie)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+re)*y,(me+re)*a,(le+ie)*y,(me+ie)*a,(le+re)*y)),Ce.add(new go.PathSegment(go.PathSegment.Bezier,(me-re)*a,le*y,(me-ie)*a,(le+re)*y,(me-re)*a,(le+ie)*y).close());var Te=new go.PathFigure(0,y,!1);return x.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=ue*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=ue*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=ue*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*ue,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ue,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*ue,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},25730:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var xe={},gt="5.0",ge={},ae=null,he=!1,Je=!1,Xe=null,ce=!1,Ze=null,ue=null,nt=0;nt<arguments.length;nt++){var Me=arguments[nt];if(Me!==null)switch(typeof Me){case"number":gt=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?gt=Me:Xe=Me;break;case"object":typeof Me.is3D!="undefined"?ae=Me:ge=Me;break;case"boolean":he=Me,Je=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!Je&&(he=!0)),Xe!==null&&ge.id===void 0&&(ge.id=Xe);var Ae="",je="",ze=!1,Ie=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var te=function(ye){return parseFloat(ye)>4?parseFloat(ye):5};xe.setHTML5Codebase=function(ye,Ee){ue=ye,Ht(ye,Ee)},xe.setJavaCodebase=xe.setJavaCodebaseVersion=xe.isCompiledInstalled=xe.setPreCompiledScriptPath=xe.setPreCompiledResourcePath=function(){},xe.setHTML5CodebaseVersion=function(ye,Ee){var Ke=parseFloat(ye);if(Ke!==NaN&&Ke<5){console.log("The GeoGebra HTML5 codebase version "+Ke+" is deprecated. Using version latest instead.");return}Ze=ye,Mt(ye,Ee)},xe.getHTML5CodebaseVersion=function(){return ne},xe.getParameters=function(){return ge},xe.setFontsCSSURL=function(ye){z=ye},xe.setGiacJSURL=function(ye){},xe.setJNLPFile=function(ye){Ae=ye},xe.setJNLPBaseDir=function(ye){},xe.inject=function(){function ye(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ee="auto",Ke=ge.id,Ft,et=!1,mt=0;mt<arguments.length;mt++){var de=arguments[mt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ee=de:Ke=arguments[mt]):typeof de=="boolean"?et=de:de instanceof HTMLElement&&(Ft=de)}at();function at(){if(!ce){setTimeout(at,200);return}Ee=Qe(Ee);var Gt=Ft||document.getElementById(Ke);if(!Gt){console.log("possibly bug on ajax loading? ");return}if(xe.removeExistingApplet(Gt,!1),ge.width===void 0&&Gt.clientWidth&&(ge.width=Gt.clientWidth),ge.height===void 0&&Gt.clientHeight&&(ge.height=Gt.clientHeight),!(ge.width&&ge.height)&&Ee==="html5"&&(delete ge.width,delete ge.height),Ie=Ee,Ee==="screenshot")Tt(Gt,ge);else{var Yt=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?Yt=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(Yt=(!oe()||ye())&&re()),Yt?(Ie="screenshot",Le(Gt,ge,et,Ee)):st(Gt,ge,et)}}};function oe(){try{return window.self!==window.top}catch(ye){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}xe.getViews=function(){return ae},xe.isJavaInstalled=function(){return!1};var ie=function(ye){var Ee=function(mt){var de=JSON.parse(mt),at=function(At){return At.type=="G"||At.type=="E"},Gt=de.elements?de.elements.filter(at)[0]:de;if(!Gt||!Gt.url){Ke();return}ge.fileName=Gt.url,me(Gt.settings||{}),ae.is3D=!0;var Yt="https://www.geogebra.org/images/";xe.setPreviewImage(x||Gt.previewUrl,Yt+"GeoGebra_loading.png",Yt+"applet_play.png"),ye()},Ke=function(){ge.onError&&ge.onError(),Zt("Error: Fetching material (id "+ge.material_id+") failed.",ge)},Ft=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",et="/materials/"+ge.material_id+"?scope=basic";le("https://"+Ft+"/api/proxy.php?path="+encodeURIComponent(et),Ee,Ke)};function me(ye){var Ee=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ke){ye[Ke]=!!ye[Ke]}),Ee.forEach(function(Ke){ge[Ke]===void 0&&ye[Ke]!==void 0&&(ge[Ke]=ye[Ke])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function le(ye,Ee,Ke){var Ft=new XMLHttpRequest;Ft.open("GET",ye),Ft.onload=function(){Ee(Ft.responseText)},Ft.onerror=Ke,Ft.send()}xe.isHTML5Installed=function(){return!0},xe.getLoadedAppletType=function(){return Ie},xe.setPreviewImage=function(ye,Ee,Ke){x=ye,b=Ee,E=Ke},xe.removeExistingApplet=function(ye,Ee){var Ke;typeof ye=="string"&&(ye=document.getElementById(ye)),Ie=null;var Ft=null;for(Ke=0;Ke<ye.childNodes.length;Ke++){var et=ye.childNodes[Ke],mt=et.className;mt==="applet_screenshot"?Ee?(et.style.display="block",Ie="screenshot"):et.style.display="none":mt!=="applet_scaler prerender"&&(ye.removeChild(et),Ft=mt&&mt.indexOf("appletParameters")!=-1?et.id:null,Ke--)}var de=ge.id!==void 0?ge.id:Ft,at=window[de];at&&typeof at.getBase64=="function"&&(at.remove(),window[de]=null)},xe.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var ye=xe.getAppletObject();return ye&&typeof ye.recalculateEnvironments=="function"?(ye.recalculateEnvironments(),!0):!1},xe.startAnimation=function(){var ye=xe.getAppletObject();return ye&&typeof ye.startAnimation=="function"?(ye.startAnimation(),!0):!1},xe.stopAnimation=function(){var ye=xe.getAppletObject();return ye&&typeof ye.stopAnimation=="function"?(ye.stopAnimation(),!0):!1},xe.getAppletObject=function(){var ye=ge.id!==void 0?ge.id:"ggbApplet";return window[ye]},xe.resize=function(){};var Ce=function(ye,Ee,Ke){var Ft=document.createElement("param");Ft.setAttribute("name",Ee),Ft.setAttribute("value",Ke),ye.appendChild(Ft)},Te=function(ye){return ye&&ye!=="false"},st=function(ye,Ee,Ke){te(ne)<=4.2&&(Ke=!0);var Ft=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(Ft=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var et=document.createElement("div");et.classList.add("appletParameters","notranslate");var mt=Ee.width,de=Ee.height;if(Ee.disableAutoScale=Ee.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ee.disableAutoScale,Ee.width!==void 0)if(te(ne)<=4.4)Te(Ee.showToolBar)&&(Ee.height-=7),Te(Ee.showAlgebraInput)&&(Ee.height-=37),Ee.width<605&&Te(Ee.showToolBar)&&(Ee.width=605,mt=605);else{var at=100;(Te(Ee.showToolBar)||Te(Ee.showMenuBar))&&(Ee.hasOwnProperty("customToolBar")&&(Ee.customToolbar=Ee.customToolBar),at=Te(Ee.showMenuBar)?245:155),mt<at&&(Ee.width=at,mt=at)}et.style.border="none",et.style.display="inline-block";for(var Gt in Ee)Ee.hasOwnProperty(Gt)&&Gt!=="appletOnLoad"&&et.setAttribute("data-param-"+Gt,Ee[Gt]);z&&et.setAttribute("data-param-fontscssurl",z),xe.resize=function(){GGBAppletUtils.responsiveResize(ye,Ee)},window.addEventListener("resize",function(ft){xe.resize()});var Yt=typeof Ee.appletOnLoad=="function"?Ee.appletOnLoad:function(){};if(!Ke&&Ee.width!==void 0){Ee.hasOwnProperty("showSplash")||et.setAttribute("data-param-showSplash","false");var At=ye.querySelector(".applet_scaler.prerender"),$e=At!==null;if($e)var be=At.querySelector(".ggb_preview");else{var be=ot(mt,de,Ee.borderColor,!1);At=document.createElement("div"),At.className="applet_scaler",At.style.position="relative",At.style.display="block",At.style.width=mt+"px",At.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(At,"66%"),te(ne)>=5?(Ee.appletOnLoad=function(ft){var kt=ye.querySelector(".ggb_preview");kt&&kt.parentNode.removeChild(kt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(At),window.GGBT_wsf_view&&$(window).trigger("resize"),Yt(ft)},$e||At.appendChild(be)):et.appendChild(be),At.appendChild(et),$e||ye.appendChild(At),setTimeout(function(){xe.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(et),ye.appendChild(pe),Ee.appletOnLoad=function(ft){xe.resize(),Yt(ft)}}function Re(ft,kt){kt&&typeof kt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ft,kt.appletOnLoad):renderGGBElement(ft),Zt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",kt)}function He(ft,kt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ft,params:kt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Sn){Re(Sn.article,Sn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(ft.className+=" geogebraweb")):Re(ft,kt)}if(Ft){scriptLoadStarted=!0;for(var it=0;it<et.childNodes.length;it++){var bt=et.childNodes[it].tagName;bt==="TABLE"&&(et.removeChild(et.childNodes[it]),it--)}if(ggbHTML5LoadedScript!==null){var wt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');wt!=null&&wt.parentNode.removeChild(wt)}var Dt=document.createElement("script"),Rt=function(){He(et,Ee)};Dt.src=je+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Dt.src,Zt("GeoGebra HTML5 codebase loaded: '"+je+"'.",Ee),!ue&&(!Ze||Ze=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Rt()):je.requirejs?__webpack_require__.e(3690).then(function(){var ft=[__webpack_require__(63690)];Rt.apply(null,ft)}.bind(this)).catch(__webpack_require__.oe):(Dt.onload=Rt,ye.appendChild(Dt))}else He(et,Ee);Ee.height=de,Ee.width=mt},Tt=function(ye,Ee,Ke){var Ft=ot(Ee.width,Ee.height,Ee.borderColor,Ke),et=document.createElement("div");et.style.position="relative",et.style.display="block",et.style.width=Ee.width+"px",et.style.height=Ee.height+"px",et.className="applet_screenshot applet_scaler"+(Ke?" applet_screenshot_play":""),et.appendChild(Ft);var mt=GGBAppletUtils.getScale(Ee,ye,Ke);Ke?(ye.appendChild(Ve()),window.GGBT_wsf_view||(ye.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(et,"66%"),ye.appendChild(et),mt!==1&&!isNaN(mt)&&(GGBAppletUtils.scaleElement(et,mt),et.style.width=Ee.width+"px",et.style.height=Ee.height+"px",et.parentNode.style.width=Ee.width*mt+"px",et.parentNode.style.height=Ee.height*mt+"px"),xe.resize=function(){$t(ye,Ft,et,Ke)},window.addEventListener("resize",function(de){xe.resize()}),xe.resize()};function $t(ye,Ee,Ke,Ft){if(ye.contains(Ee)){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(ge,ye,Ft);Ke.parentNode!==null&&(!isNaN(et)&&et!==1?(GGBAppletUtils.scaleElement(Ke,et),Ke.parentNode.style.width=ge.width*et+"px",Ke.parentNode.style.height=ge.height*et+"px"):(GGBAppletUtils.scaleElement(Ke,1),Ke.parentNode.style.width=ge.width+"px",Ke.parentNode.style.height=ge.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()}}xe.onExitFullscreen=function(ye,Ee){Ee.appendChild(ye)};var Le=function(ye,Ee,Ke,Ft){Tt(ye,Ee,!0);for(var et=function(){var at=[];for(de=0;de<ye.childNodes.length;de++)at.push(ye.childNodes[de]);if(window.GGBT_wsf_view){var Gt=window.GGBT_wsf_view.renderFullScreen(ye,Ee.id),Yt=document.getElementById("fullscreencontainer"),At=jQuery(ye).find(".fullscreencontent");At.length>0?(Gt.remove(),At.attr("id","fullscreencontent").show(),jQuery(Yt).append(At),window.dispatchEvent(new Event("resize"))):st(Gt,Ee,!1),window.GGBT_wsf_view.launchFullScreen(Yt)}else Ie=Ft,st(ye,Ee,!1);if(!window.GGBT_wsf_view)for(de=0;de<at.length;de++)ye.removeChild(at[de])},mt=ye.getElementsByClassName("ggb_preview_play"),de=0;de<mt.length;de++)mt[de].addEventListener("click",et,!1),mt[de].addEventListener("ontouchstart",et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(ye),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ve=function(){var ye=document.createElement("div");if(ye.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ee='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ke=document.createElement("style");Ke.styleSheet?Ke.styleSheet.cssText=Ee:Ke.appendChild(document.createTextNode(Ee)),document.getElementsByTagName("head")[0].appendChild(Ke)}return ye},ot=function(ye,Ee,Ke,Ft){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=Ee-2+"px",et.style.top="0px",et.style.left="0px",et.style.overflow="hidden",et.style.backgroundColor="white";var mt="lightgrey";Ke!==void 0&&(Ke==="none"?mt="transparent":mt=Ke),et.style.border="1px solid "+mt;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var at,Gt,Yt;if(!Ft){at=document.createElement("img"),at.style.position="absolute",at.style.zIndex="1001",at.style.opacity=1,de.style.opacity=.3,Gt=360,Gt>ye/4*3&&(Gt=ye/4*3),Yt=Gt/5.8,at.setAttribute("src",b),at.setAttribute("width",Gt),at.setAttribute("height",Yt);var At=(ye-Gt)/2,$e=(Ee-Yt)/2;at.style.left=At+"px",at.style.top=$e+"px",et.appendChild(at)}}return et.appendChild(de),et},Qe=function(ye){return ye=ye.toLowerCase(),ye==="html5"||ye==="screenshot"?ye:"html5"},rt=["web","webSimple","web3d","tablet","tablet3d","phone"],Mt=function(ye,Ee){if(ne=ye,Ee){Ht(ne,!0);return}var Ke=!he;if(Ke){var Ft=te(ne);!isNaN(Ft)&&Ft<4.4&&(Ke=!1)}var et,mt;window.location.protocol.substr(0,4)==="http"?et=window.location.protocol:et="http:";var de=ne.indexOf("//");de>0?mt=ne:de===0?mt=et+ne:mt="https://www.geogebra.org/apps/5.2.814.0/";for(var at in rt)if(ne.slice(rt[at].length*-1)===rt[at]||ne.slice((rt[at].length+1)*-1)===rt[at]+"/"){Ht(mt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ke&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Te(ge.showToolBar)&&!Te(ge.showMenuBar)&&!Te(ge.showAlgebraInput)&&!Te(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?mt+="webSimple/":mt+="web3d/",Ht(mt,!1)},Ht=function(ye,Ee){if(ye.requirejs){je=ye;return}ye.slice(-1)!=="/"&&(ye+="/"),je=ye,Ee===null&&(Ee=ye.indexOf("http")===-1),ze=Ee,a="web.nocache.js",y=!1;var Ke=je.split("/");Ke.length>1&&(!Ee&&Ke[Ke.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):rt.indexOf(Ke[Ke.length-2])>=0&&(a=Ke[Ke.length-2]+".nocache.js")),Ke=ye.split("/"),ne=Ke[Ke.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var Ft=parseFloat(ne);Ft!==NaN&&Ft<5&&ye.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Ft+" is deprecated. Using version latest instead."),Mt("5.0",Ee))},Zt=function(ye,Ee){window.console&&window.console.log&&(!Ee||typeof Ee.showLogging=="undefined"||Ee.showLogging&&Ee.showLogging!=="false")&&console.log(ye)};ge.material_id!==void 0?ie(ln):ln();function ln(){var ye=gt;Ze!==null?ye=Ze:parseFloat(ye)<5&&(ye="5.0"),Mt(ye,!1),ue!==null&&Ht(ue,ze),ce=!0}return xe},GGBAppletUtils=function(){"use strict";function xe(){return window.GGBT_wsf_edit!==void 0}function gt(ce,Ze){Ze!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+Ze+","+Ze+")",ce.style.webkitTransform="scale("+Ze+","+Ze+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function ge(ce,Ze,ue,nt,Me,Ae){var je=null;if(Ae!=null&&Ae!="")for(var ze=ce.parentNode;ze!=null;)if((" "+ze.className+" ").indexOf(" "+Ae+" ")>-1){je=ze;break}else ze=ze.parentNode;var Ie=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(je)Ie=je.offsetWidth,ne=Math.max(nt?je.offsetWidth:0,je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ie):(Ie=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Ie&&(Me===void 0||!Me)&&(document.dir==="rtl"?(x=Ie-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ce&&((ue===void 0||!ue)&&Ze>0&&Ze+y<Ie?Ie=Ze:Ie-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ne-=E)),{width:Ie,height:ne}}function ae(ce,Ze,ue,nt,Me){if(ce.isScreenshoGenerator)return 1;var Ae=nt!==void 0&&nt,je=ce.noScaleMargin!=null&&ce.noScaleMargin,ze=function(ee){return ee&&ee!=="false"},Ie=ze(ce.autoHeight),ne=ge(Ze,ce.width,ue,Ie,Ae&&window.GGBT_wsf_view||je,Me),a=parseInt(ne.width),y=ce.width,x=ce.height;if(y===void 0){var b=Ze.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ae?1:ne.height/x;return ue!==void 0&&!ue&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function he(ce,Ze,ue){var nt=1,Me,Ae=!1;if(ce.hasOwnProperty("allowUpscale")&&(Ae=ce.allowUpscale),ce.hasOwnProperty("scale")&&(nt=parseFloat(ce.scale),(isNaN(nt)||nt===null||nt===0)&&(nt=1),nt>1&&(Ae=!0)),Ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Me=ae(ce,Ze,Ae,ue,ce.scaleContainerClass);else return nt;return Ae&&(!ce.hasOwnProperty("scale")||nt===1)?Me:Math.min(nt,Me)}function Je(ce){var Ze=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=ce.getBoundingClientRect(),Me=(Ze-nt.width)/2,Ae=(ue-nt.height)/2;Ae<0&&(Ae=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?ce.style.left="40px":ce.style.left=Me+"px",ce.style.top=Ae+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae<40?ce.style.top="40px":ce.style.top=Ae+"px",ce.style.left=Me+"px")}function Xe(ce,Ze){var ue=ce.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var nt=he(Ze,ce);xe()&&ue.setAttribute("data-param-scale",nt);for(var Me=null,Ae=0;Ae<ce.childNodes.length;Ae++)if(ce.childNodes[Ae].className!==void 0&&ce.childNodes[Ae].className.match(/^applet_scaler/)){Me=ce.childNodes[Ae];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var je=Ze.id!==void 0?Ze.id:"ggbApplet",ze=window[je];(ze==null||!ze.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(nt)&&nt!==1?(Me.parentNode.style.width=Ze.width*nt+"px",Me.parentNode.style.height=Ze.height*nt+"px",gt(Me,nt)):(gt(Me,1),Me.parentNode.style.width=Ze.width+"px",Me.parentNode.style.height=Ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Je(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Xe,isFlexibleWorksheetEditor:xe,positionCenter:Je,getScale:he,scaleElement:gt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var xe=n.location.search;return xe.indexOf(J)!=-1||xe.indexOf(K)!=-1}function q(xe,gt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(xe){var gt=s[L].bindings;s[L].bindings=function(){for(var ge=gt?gt():{},ae=xe[webModule.__softPermutationId],he=O;he<ae.length;he++){var Je=ae[he];ge[Je[O]]=Je[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var xe=o.createElement(Q);if(xe.id=L,xe.style.cssText=R+S,xe.tabIndex=-1,o.body.appendChild(xe),t=xe.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gt=document.compatMode==U?V:W;t.write(gt+X),t.close()}}}function w(xe){function gt(ae){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Je=he();if(Je){ae();return}function Xe(){if(!Je){if(!he())return;Je=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Xe,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Xe,!1);var ce=setInterval(function(){Xe()},$)}function ge(ae){var he=u(),Je=he.body,Xe=he.createElement(_);Xe.language=ab,Xe.crossOrigin=W,Xe.src=ae,webModule.__errFn&&(Xe.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Je.appendChild(Xe)}gt(function(){ge(xe)})}webModule.__startLoadingFragment=function(xe){return C(xe)},webModule.__installRunAsyncCode=function(xe){var gt=u(),ge=gt.body,ae=gt.createElement(_);ae.language=ab,ae.text=xe,ge.appendChild(ae),ge.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(xe){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(xe){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(xe){var gt=c[xe];return gt==null?null:gt},r=d,webModule.__errFn=e}function B(){function xe(ce){var Ze=ce.lastIndexOf(rb);Ze==-1&&(Ze=ce.length);var ue=ce.indexOf(sb);ue==-1&&(ue=ce.length);var nt=ce.lastIndexOf(tb,Math.min(ue,Ze));return nt>=O?ce.substring(O,nt+P):W}function gt(ce){if(!ce.match(/^\w+:\/\//)){var Ze=o.createElement(ub);Ze.src=ce+vb,ce=xe(Ze.src)}return ce}function ge(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ae(){for(var ce=o.getElementsByTagName(_),Ze=O;Ze<ce.length;++Ze)if(ce[Ze].src.indexOf(xb)!=-1)return xe(ce[Ze].src);return W}function he(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Je(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Xe=ge();return Xe==W&&(Xe=ae()),Xe==W&&(Xe=he()),Xe==W&&Je()&&(Xe=xe(o.location.href)),Xe=gt(Xe),Xe}function C(xe){return xe.match(/^\//)||xe.match(/^[a-zA-Z]+:\/\//)?xe:webModule.__moduleBase+xe}function D(){var xe=[],gt=O,ge=[],ae=[];function he(ce){var Ze=ae[ce](),ue=ge[ce];if(Ze in ue)return Ze;var nt=[];for(var Me in ue)nt[ue[Me]]=Me;throw r&&r(ce,nt,Ze),null}if(__gwt_isKnownPropertyValue=function(ce,Ze){return Ze in ge[ce]},webModule.__getPropMap=function(){var ce={};for(var Ze in ge)ge.hasOwnProperty(Ze)&&(ce[Ze]=he(Ze));return ce},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Je;try{Je=Cb;var Xe=Je.indexOf(Db);Xe!=-1&&(gt=parseInt(Je.substring(Xe+P),$),Je=Je.substring(O,Xe))}catch(ce){}return webModule.__softPermutationId=gt,C(Je+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},82977:function(xe,gt,ge){"use strict";ge.d(gt,{Ax:function(){return Xe},Ds:function(){return ce},KI:function(){return ue},SI:function(){return Je},f1:function(){return he}});var ae=ge(49647);function he(nt){let Me=!0;if(nt.length>0){for(let Ae=0;Ae<nt.length;Ae++)if(nt[Ae].compile_success==0||!nt[Ae].compile_success){Me=!1;break}}else Me=!1;return Me}function Je(nt,Me=""){let Ae=[];for(let je=0;je<nt.length;je++){let ze=nt[je],Ie=Me?`${Me}/${ze.name}`:`${ze.name}`;Ae.push({title:ze.name,type:ze.type,isLeaf:ze.type!=="tree",key:Ie})}return Ae}function Xe(nt,Me,Ae){for(let je=0;je<nt.length;je++){let ze=nt[je];if(ze.key===Me){ze.children=Ae;break}ze.children&&Xe(ze.children,Me,Ae)}return nt}function ce(nt,Me,Ae){let je;return function(){let ze=this,Ie=arguments,ne=function(){je=null,Ae||nt.apply(ze,Ie)},a=Ae&&!je;clearTimeout(je),je=setTimeout(ne,Me),a&&nt.apply(ze,Ie)}}const Ze=!0,ue=ae.Z.API_SERVER},5140:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return je}});var ae=ge(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Je=ge(92310),Xe=ge.n(Je),ce=ge(71418),Ze=ge(2859),ue=ge(98280),nt=ge(19374),Me=(ze,Ie,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(ze,Ie)).next())}),je=({data:ze,className:Ie,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[re,ie]=(0,ae.useState)(!1),[me,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),ze!=null&&ze.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",ze!=null&&ze.src&&Ce()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ze==null?void 0:ze.visible]);const Ce=()=>Me(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,nt.ZJ)(ze==null?void 0:ze.src);z.current.src="",z.current.src=Le,z.current.onload=function(){$t()},ie(!1),le("")}),Te=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},st=Le=>Me(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ve=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ze.title,file:Le.dataUrl}});Ve!=null&&Ve.id&&!E?(yield(0,ue.ZP)(`/api/attachments/${ze.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ve==null?void 0:Ve.id,settings:JSON.stringify(Le.state)}})).status===0&&x():Ve!=null&&Ve.id&&x(Ve),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),le("")}),Tt=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(ot=>{const Qe=document.querySelector(ot.name);Qe&&Qe.setAttribute("title",ot.title)})},$t=()=>{ee.current=new Ze.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",st),ee.current.addEventListener("beforeclose",Te),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(),ze!=null&&ze.snapshotData&&ee.current.restoreState(ze.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Tt()},300)};return ae.createElement(ae.Fragment,null,(ze==null?void 0:ze.visible)&&ae.createElement(ce.Z,{spinning:re,tip:me,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Xe()(he.imageDimensions,Ie,ne?he.fullWidth:""),style:a},ae.createElement("img",{className:he.img,ref:z}))))}},88601:function(xe,gt,ge){"use strict";var ae=ge(59301),he=ge(95237),Je=ge(43604),Xe=ge(99313),ce=ge(3113),Ze=ge(12470),ue=ge(69453),nt=ge(48136),Me=ge(59301);const Ae=(0,ae.forwardRef)(({callback:je,showSaveButton:ze,value:Ie=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(he.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,te)=>Me.createElement(Je.Z,{flex:"110px",className:ue.Z.item},Me.createElement("div",null,Me.createElement(Ze.Z,{value:`$$${ee.value}$$`}),ee.name),Me.createElement("div",{className:ue.Z.children},ee.children.map((oe,re)=>Me.createElement("div",{key:re},Me.createElement("h1",null,oe.name),Me.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,me)=>Me.createElement(Je.Z,{key:me,onClick:()=>b(ie),className:ue.Z.diamond},Me.createElement(Ze.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(he.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((ee,te)=>Me.createElement(Je.Z,{flex:"110px",className:ue.Z.item},Me.createElement("div",null,Me.createElement(Ze.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Me.createElement("div",{className:ue.Z.children},ee.children.map((oe,re)=>Me.createElement("div",{key:re},oe.name&&Me.createElement("h1",null,oe.name),Me.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,me)=>Me.createElement(Je.Z,{key:me,onClick:()=>b(ie),className:ue.Z.diamond},Me.createElement(Ze.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return je&&je(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Me.createElement("div",{className:ue.Z.mathWrap},Me.createElement(Xe.default,{defaultActiveKey:"1",items:E}),Me.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}},Ie||""),ze&&Me.createElement("div",{className:ue.Z.button},Me.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});gt.Z=Ae},45923:function(xe,gt,ge){"use strict";ge.d(gt,{h:function(){return ee}});var ae=ge(59301),he=ge(57809),Je=ge(78241),Xe=ge(3113),ce=ge(89780),Ze=ge.n(ce),ue=ge(6303),nt=ge(87671),Me=Object.defineProperty,Ae=Object.defineProperties,je=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?Me(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))Ie.call(oe,re)&&a(te,re,oe[re]);if(ze)for(var re of ze(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},x=(te,oe)=>Ae(te,je(oe));const b=he.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};gt.Z=({callback:te,onCancel:oe})=>{const[re,ie]=(0,ae.useState)("python");function me(Ce){ie(z[Ce][1])}function le(Ce){te(Ce)}return ae.createElement(Je.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(Je.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(he.default,{getPopupContainer:Ce=>Ce.parentNode,onChange:me},Object.keys(z).map(Ce=>ae.createElement(b,{key:Ce,value:Ce},z[Ce][0])))),ae.createElement(Je.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Xe.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ie={}}){const me=(0,ae.useRef)(),[le,Ce]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Te=function(st){const Tt=st.getValue();oe&&oe(Tt)};return le.on("change",Te),()=>{le.off("change",Te)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",re)},[le,re]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(me.current&&!le){const Te=Ze().fromTextArea(me.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Ce(Te)}},[me.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:me}))}},48551:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return Qn}});var ae=ge(59301),he=ge(89780),Je=ge.n(he),Xe=ge(76374),ce=ge(6303),Ze=ge(6313),ue=ge(25717),nt=ge(99498),Me=ge(25419),Ae=ge(67549),je=ge(12470),ze=({value:fe="",className:ve,showTextOnly:Se,showLines:qe,style:Lt={}})=>{const St=(0,ae.useMemo)(()=>"",[fe]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:St}}))},Ie=ge(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(fe,ve,Se)=>ve in fe?ne(fe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):fe[ve]=Se,ee=(fe,ve)=>{for(var Se in ve||(ve={}))b.call(ve,Se)&&z(fe,Se,ve[Se]);if(x)for(var Se of x(ve))E.call(ve,Se)&&z(fe,Se,ve[Se]);return fe},te=(fe,ve)=>a(fe,y(ve));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:fe,title:ve,icon:Se,actionName:qe,className:Lt="",children:St}){function on(){fe(qe)}return Ie.createElement("a",{title:ve,className:Lt,onClick:on},Ie.createElement("i",{className:`${Se}`}),St)}var ie=({watch:fe,showNullButton:ve,showNullProgramButton:Se,onActionCallback:qe,fullScreen:Lt,insertTemp:St,hidetoolBar:on,extraUse:jt})=>{const Jt=[...oe,{title:`${fe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${fe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ie.createElement("ul",{className:"markdown-toolbar-container"},!on&&Jt.map((pn,jn)=>Ie.createElement("li",{key:jn},pn.actionName?Ie.createElement(re,te(ee({},pn),{onActionCallback:qe})):Ie.createElement("span",{className:"v-line"}))),ve?Ie.createElement("li",null,Ie.createElement(re,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:qe},Ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,Se?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:qe},Ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:qe},Ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,St&&Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${St}`,onActionCallback:qe},Ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),jt&&Ie.createElement("li",null,jt),Ie.createElement("li",{className:"btn-full-screen"},Ie.createElement(re,{icon:`${Lt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Lt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:qe})))},me=ge(44991),le=ge(78241),Ce=ge(92832),Te=ge(3113),st=Object.defineProperty,Tt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Qe=(fe,ve,Se)=>ve in fe?st(fe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):fe[ve]=Se,rt=(fe,ve)=>{for(var Se in ve||(ve={}))Ve.call(ve,Se)&&Qe(fe,Se,ve[Se]);if(Le)for(var Se of Le(ve))ot.call(ve,Se)&&Qe(fe,Se,ve[Se]);return fe},Mt=(fe,ve)=>Tt(fe,$t(ve));const Ht={labelCol:{span:4},wrapperCol:{span:20}};var Zt=({callback:fe,onCancel:ve})=>{function Se(qe){fe(qe)}return ae.createElement(le.default,Mt(rt({},Ht),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Ce.default,null)),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Ce.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Te.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},ln=ge(45923),ye=ge(76021),Ee=ge(43418),Ke=ge(95237),Ft=ge(5140),et=ge(59301),mt=({callback:fe,onCancel:ve})=>{const Se=document.createElement("canvas"),qe=Se.getContext("2d");Se.width=1e3,Se.height=800,qe.fillStyle="#ffffff",qe.fillRect(0,0,Se.width,Se.height);const Lt=Se.toDataURL("image/png");return et.createElement(Ee.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},et.createElement(Ke.Z,{style:{height:"100vh"}},et.createElement(Ft.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Lt,visible:!0,title:String(Date.now())},onOk:St=>{fe({src:St.url})},onClose:ve})))},de=ge(12378);function at(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(at,go.CommandHandler),at.prototype.canAlignSelection=function(){var fe=this.diagram;return!(fe===null||fe.isReadOnly||fe.isModelReadOnly||fe.selection.count<2)},at.prototype.alignLeft=function(){var fe=this.diagram;fe.startTransaction("aligning left");var ve=1/0;fe.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.x,ve))}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve,Se.position.y))}),fe.commitTransaction("aligning left")},at.prototype.alignRight=function(){var fe=this.diagram;fe.startTransaction("aligning right");var ve=-1/0;fe.selection.each(function(Se){if(!(Se instanceof go.Link)){var qe=Se.actualBounds.x+Se.actualBounds.width;ve=Math.max(qe,ve)}}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve-Se.actualBounds.width,Se.position.y))}),fe.commitTransaction("aligning right")},at.prototype.alignTop=function(){var fe=this.diagram;fe.startTransaction("alignTop");var ve=1/0;fe.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.y,ve))}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,ve))}),fe.commitTransaction("alignTop")},at.prototype.alignBottom=function(){var fe=this.diagram;fe.startTransaction("aligning bottom");var ve=-1/0;fe.selection.each(function(Se){if(!(Se instanceof go.Link)){var qe=Se.actualBounds.y+Se.actualBounds.height;ve=Math.max(qe,ve)}}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,ve-Se.actualBounds.height))}),fe.commitTransaction("aligning bottom")},at.prototype.alignCenterX=function(){var fe=this.diagram,ve=fe.selection.first();if(ve){fe.startTransaction("aligning Center X");var Se=ve.actualBounds.x+ve.actualBounds.width/2;fe.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(Se-qe.actualBounds.width/2,qe.actualBounds.y))}),fe.commitTransaction("aligning Center X")}},at.prototype.alignCenterY=function(){var fe=this.diagram,ve=fe.selection.first();if(ve){fe.startTransaction("aligning Center Y");var Se=ve.actualBounds.y+ve.actualBounds.height/2;fe.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.actualBounds.x,Se-qe.actualBounds.height/2))}),fe.commitTransaction("aligning Center Y")}},at.prototype.alignColumn=function(fe){var ve=this.diagram;ve.startTransaction("align Column"),fe===void 0&&(fe=0),fe=parseFloat(fe);var Se=new Array;ve.selection.each(function(jt){jt instanceof go.Link||Se.push(jt)});for(var qe=0;qe<Se.length-1;qe++){var Lt=Se[qe],St=Lt.actualBounds.y+Lt.actualBounds.height+fe,on=Se[qe+1];on.move(new go.Point(Lt.actualBounds.x,St))}ve.commitTransaction("align Column")},at.prototype.alignRow=function(fe){fe===void 0&&(fe=0),fe=parseFloat(fe);var ve=this.diagram;ve.startTransaction("align Row");var Se=new Array;ve.selection.each(function(jt){jt instanceof go.Link||Se.push(jt)});for(var qe=0;qe<Se.length-1;qe++){var Lt=Se[qe],St=Lt.actualBounds.x+Lt.actualBounds.width+fe,on=Se[qe+1];on.move(new go.Point(St,Lt.actualBounds.y))}ve.commitTransaction("align Row")},at.prototype.canRotate=function(fe){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},at.prototype.rotate=function(fe){fe===void 0&&(fe=90);var ve=this.diagram;ve.startTransaction("rotate "+fe.toString());var ve=this.diagram;ve.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=fe)}),ve.commitTransaction("rotate "+fe.toString())},at.prototype.pullToFront=function(){var fe=this.diagram;fe.startTransaction("pullToFront");var ve=new go.Map;fe.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var qe=0;Se.parts.each(function(Lt){if(!Lt.isSelected){var St=Lt.zOrder;isNaN(St)?Lt.zOrder=0:qe=Math.max(qe,St)}}),ve.set(Se,qe)}),fe.selection.each(function(Se){at._assignZOrder(Se,ve.get(Se.layer)+1)}),fe.commitTransaction("pullToFront")},at.prototype.pushToBack=function(){var fe=this.diagram;fe.startTransaction("pushToBack");var ve=new go.Map;fe.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var qe=0;Se.parts.each(function(Lt){if(!Lt.isSelected){var St=Lt.zOrder;isNaN(St)?Lt.zOrder=0:qe=Math.min(qe,St)}}),ve.set(Se,qe)}),fe.selection.each(function(Se){at._assignZOrder(Se,ve.get(Se.layer)-1-at._findGroupDepth(Se))}),fe.commitTransaction("pushToBack")},at._assignZOrder=function(fe,ve,Se){Se===void 0&&(Se=fe),fe.layer===Se.layer&&(fe.zOrder=ve),fe instanceof go.Group&&fe.memberParts.each(function(qe){at._assignZOrder(qe,ve+1,Se)})},at._findGroupDepth=function(fe){if(fe instanceof go.Group){var ve=0;return fe.memberParts.each(function(Se){ve=Math.max(ve,at._findGroupDepth(Se))}),ve+1}else return 0},at.prototype.doKeyDown=function(){var fe=this.diagram;if(fe!==null){var ve=fe.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var Se=this.arrowKeyBehavior;if(Se==="none")return;if(Se==="select"){this._arrowKeySelect();return}else if(Se==="move"){this._arrowKeyMove();return}else if(Se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},at.prototype._getAllParts=function(){var fe=new Array;return this.diagram.nodes.each(function(ve){fe.push(ve)}),this.diagram.parts.each(function(ve){fe.push(ve)}),fe},at.prototype._arrowKeyMove=function(){var fe=this.diagram,ve=fe.lastInput,Se=0,qe=0;if(ve.control||ve.meta)Se=1,qe=1;else if(fe.grid!==null){var Lt=fe.grid.gridCellSize;qe=Lt.width,Se=Lt.height}fe.startTransaction("arrowKeyMove"),fe.selection.each(function(St){ve.key==="Up"?St.move(new go.Point(St.actualBounds.x,St.actualBounds.y-Se)):ve.key==="Down"?St.move(new go.Point(St.actualBounds.x,St.actualBounds.y+Se)):ve.key==="Left"?St.move(new go.Point(St.actualBounds.x-qe,St.actualBounds.y)):ve.key==="Right"&&St.move(new go.Point(St.actualBounds.x+qe,St.actualBounds.y))}),fe.commitTransaction("arrowKeyMove")},at.prototype._arrowKeySelect=function(){var fe=this.diagram,ve=fe.lastInput,Se=null;ve.key==="Up"?Se=this._findNearestPartTowards(270):ve.key==="Down"?Se=this._findNearestPartTowards(90):ve.key==="Left"?Se=this._findNearestPartTowards(180):ve.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(ve.shift?Se.isSelected=!0:ve.control||ve.meta?Se.isSelected=!Se.isSelected:fe.select(Se))},at.prototype._findNearestPartTowards=function(fe){var ve=this.diagram.selection.first();if(ve===null)return null;for(var Se=ve.actualBounds.center,qe=this._getAllParts(),Lt=1/0,St=ve,on=0;on<qe.length;on++){var jt=qe[on];if(jt!==ve&&jt.canSelect()){var Jt=jt.actualBounds.center,pn=Se.directionPoint(Jt),jn=this._angleCloseness(pn,fe);if(jn<=45){var Ye=Se.distanceSquaredPoint(Jt);Ye*=1+Math.sin(jn*Math.PI/180),Ye<Lt&&(Lt=Ye,St=jt)}}}return St},at.prototype._angleCloseness=function(fe,ve){return Math.min(Math.abs(ve-fe),Math.min(Math.abs(ve+360-fe),Math.abs(ve-360-fe)))},at.prototype._arrowKeyTree=function(){var fe=this.diagram,ve=fe.selection.first();if(ve instanceof go.Node){var Se=fe.lastInput;if(Se.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)fe.commandHandler.canExpandTree(ve)&&fe.commandHandler.expandTree(ve);else{var qe=this._sortTreeChildrenByY(ve).first();qe!==null&&fe.select(qe)}}else if(Se.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)fe.commandHandler.canCollapseTree(ve)&&fe.commandHandler.collapseTree(ve);else{var Lt=ve.findTreeParentNode();Lt!==null&&fe.select(Lt)}else if(Se.key==="Up"){var Lt=ve.findTreeParentNode();if(Lt!==null){var St=this._sortTreeChildrenByY(Lt),on=St.indexOf(ve);if(on>0){for(var jt=St.elt(on-1);jt!==null&&jt.isTreeExpanded&&!jt.isTreeLeaf;){var Jt=this._sortTreeChildrenByY(jt);jt=Jt.last()}jt!==null&&fe.select(jt)}else fe.select(Lt)}}else if(Se.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var qe=this._sortTreeChildrenByY(ve).first();qe!==null&&fe.select(qe)}else for(;ve!==null;){var Lt=ve.findTreeParentNode();if(Lt===null)break;var St=this._sortTreeChildrenByY(Lt),on=St.indexOf(ve);if(on<St.length-1){fe.select(St.elt(on+1));break}else ve=Lt}var pn=fe.selection.first();pn!==null&&fe.scrollToRect(pn.actualBounds)}},at.prototype._sortTreeChildrenByY=function(fe){var ve=new go.List().addAll(fe.findTreeChildrenNodes());return ve.sort(function(Se,qe){var Lt=Se.location,St=qe.location;return Lt.y<St.y?-1:Lt.y>St.y?1:Lt.x<St.x?-1:Lt.x>St.x?1:0}),ve},at.prototype.copyToClipboard=function(fe){go.CommandHandler.prototype.copyToClipboard.call(this,fe),this._lastPasteOffset.set(this.pasteOffset)},at.prototype.pasteFromClipboard=function(){var fe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(fe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),fe},Object.defineProperty(at.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(fe){if(fe!=="move"&&fe!=="select"&&fe!=="scroll"&&fe!=="tree"&&fe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+fe);this._arrowKeyBehavior=fe}}),Object.defineProperty(at.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(fe){if(!(fe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+fe);this._pasteOffset.set(fe)}});var Gt=at,Yt=ge(72179),At=ge(43604),$e=ge(98280),be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=ge(59301),Re=(fe,ve,Se)=>new Promise((qe,Lt)=>{var St=Jt=>{try{jt(Se.next(Jt))}catch(pn){Lt(pn)}},on=Jt=>{try{jt(Se.throw(Jt))}catch(pn){Lt(pn)}},jt=Jt=>Jt.done?qe(Jt.value):Promise.resolve(Jt.value).then(St,on);jt((Se=Se.apply(fe,ve)).next())});function He({onCancel:fe,callback:ve}){let Se=(0,ae.useRef)(),qe=(0,ae.useRef)(),Lt=(0,ae.useRef)(),St=(0,ae.useRef)(!1);const on=(0,ae.useRef)(!1),[jt,Jt]=(0,ae.useState)(0);function pn(){const Ye=de.bx.make,Qt={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"};Se.current=new de.S0(qe.current,{padding:20,grid:Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:_e=>{var ct=_e.diagram.commandHandler.addTopLevelParts(_e.diagram.selection,!0);ct||_e.diagram.currentTool.doCancel()},commandHandler:Ye(Gt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:_e=>{var ct=_e.subject;ct.location=ct.location.copy().snapToGridPoint(_e.diagram.grid.gridOrigin,_e.diagram.grid.gridCellSize),setTimeout(()=>{_e.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:_e=>{var ct=_e.subject;setTimeout(()=>{_e.diagram.commandHandler.editTextBlock()})},LinkRelinked:_e=>{var ct=_e.parameter.part;ct.invalidateConnectedLinks();var pt=_e.subject;_e.diagram.toolManager.linkingTool.isForwards?pt.toNode.invalidateConnectedLinks():pt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=Ye(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),Ye(de.bn,{name:"SHAPE",fill:Qt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ye(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.nodeTemplate.toolTip=Ye("ToolTip",Ye(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Ye(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Ye(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Mn(_e,ct){var pt=(yt,_t)=>{yt.handled=!0,yt.diagram.model.commit(Ut=>{var Nt=_t.part.adornedPart,mn=new de.E9().setRectSpot(Nt.actualBounds,_e);mn.subtract(Nt.location),mn.scale(2,2),mn.x+=Math.sign(mn.x)*130,mn.y+=Math.sign(mn.y)*130,mn.add(Nt.location),mn.snapToGridPoint(yt.diagram.grid.gridOrigin,yt.diagram.grid.gridCellSize);var un=Ut.copyNodeData(Nt.data);Ut.setGroupKeyForNodeData(un,Ut.getGroupKeyForNodeData(Nt.data)),Ut.addNodeData(un);var qn={from:Nt.key,to:Ut.getKeyForNodeData(un)};Ut.addLinkData(qn);var aa=yt.diagram.findNodeForData(un);aa.location=mn,yt.diagram.select(aa),setTimeout(()=>{yt.diagram.commandHandler.editTextBlock()},20)})};return Ye(de.bn,{figure:ct,alignment:_e,alignmentFocus:_e.opposite(),width:_e.equals(de.z6.Top)||_e.equals(de.z6.Bottom)?25:18,height:_e.equals(de.z6.Top)||_e.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Qt.white,strokeWidth:4,mouseEnter:(yt,_t)=>_t.fill="dodgerblue",mouseLeave:(yt,_t)=>_t.fill="orange",isActionable:!0,click:pt,contextClick:pt})}function Xn(_e){return Ye(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(ct,pt)=>pt.fill="dodgerblue",mouseLeave:(ct,pt)=>pt.fill="orange",click:(ct,pt)=>{ct.diagram.commandHandler.showContextMenu(pt.part.adornedPart)}},_e||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.Vm,{padding:10}),Mn(de.z6.Top,"TriangleUp"),Mn(de.z6.Left,"TriangleLeft"),Mn(de.z6.Right,"TriangleRight"),Mn(de.z6.Bottom,"TriangleDown"),Xn({alignment:new de.z6(.75,0)}));function xn(_e,ct){return(pt,yt)=>{pt.handled=!0,pt.diagram.model.commit(_t=>{_t.set(yt.part.adornedPart.data,_e,ct)})}}function se(_e,ct){return ct||(ct="color"),Ye(de.bn,{width:16,height:16,stroke:"lightgray",fill:_e,margin:1,background:"transparent",mouseEnter:(pt,yt)=>yt.stroke="dodgerblue",mouseLeave:(pt,yt)=>yt.stroke="lightgray",click:xn(ct,_e),contextClick:xn(ct,_e)})}function Be(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",se(Qt.white,"fill"),se(Qt.beige,"fill"),se(Qt.extralightblue,"fill"),se(Qt.extralightred,"fill"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",se(Qt.lightgray,"fill"),se(Qt.lightgreen,"fill"),se(Qt.lightblue,"fill"),se(Qt.lightred,"fill")))]}function Fe(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",se(Qt.black),se(Qt.green),se(Qt.blue),se(Qt.red))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",se(Qt.white),se(Qt.magenta),se(Qt.purple),se(Qt.orange)))]}function Oe(_e,ct){return ct||(ct="thickness"),Ye(de.bn,"LineH",{width:16,height:16,strokeWidth:_e,margin:1,background:"transparent",mouseEnter:(pt,yt)=>yt.background="dodgerblue",mouseLeave:(pt,yt)=>yt.background="transparent",click:xn(ct,_e),contextClick:xn(ct,_e)})}function We(_e,ct){return ct||(ct="dash"),Ye(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:_e,margin:1,background:"transparent",mouseEnter:(pt,yt)=>yt.background="dodgerblue",mouseLeave:(pt,yt)=>yt.background="transparent",click:xn(ct,_e),contextClick:xn(ct,_e)})}function Ue(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Oe(1),Oe(2),Oe(3),Oe(4))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",We(null),We([2,4]),We([4,4])))]}function ke(_e,ct){return ct||(ct="figure"),Ye(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:_e,margin:1,background:"transparent",mouseEnter:(pt,yt)=>yt.fill="dodgerblue",mouseLeave:(pt,yt)=>yt.fill="lightgray",click:xn(ct,_e),contextClick:xn(ct,_e)})}Se.current.nodeTemplate.contextMenu=Ye("ContextMenu",Ye("ContextMenuButton",Ye(de.s_,"Horizontal",ke("Rectangle"),ke("RoundedRectangle"),ke("Ellipse"),ke("Diamond"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",ke("Parallelogram2"),ke("ManualOperation"),ke("Procedure"),ke("Cylinder1"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",ke("Terminator"),ke("CreateRequest"),ke("Document"),ke("TriangleDown"))),Be(),Fe(),Ue()),Se.current.groupTemplate=Ye(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(_e,ct)=>{var pt=ct.addMembers(ct.diagram.selection,!0);pt||ct.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(de.s_,"Auto",{name:"BODY"},Ye(de.bn,{parameter1:10,fill:Qt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.Vm,{background:"transparent",margin:20})),Ye(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),Se.current.groupTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.s_,"Auto",Ye(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ye(de.Vm,{margin:1.5})),Xn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Se.current.groupTemplate.contextMenu=Ye("ContextMenu",Be(),Fe(),Ue()),Se.current.linkTemplate=Ye(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",_e=>_e>=1?10:0),new de.KX("toShortLength","dir",_e=>_e>=1?10:0),new de.KX("points").makeTwoWay(),Ye(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",_e=>_e===1)),Ye(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",_e=>_e>=1),new de.KX("width","thickness",_e=>7+3*_e),new de.KX("height","thickness",_e=>7+3*_e),new de.KX("segmentOffset","thickness",_e=>new de.E9(-15,4+1.5*_e))),Ye(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",_e=>_e===2),new de.KX("width","thickness",_e=>7+3*_e),new de.KX("height","thickness",_e=>7+3*_e),new de.KX("segmentOffset","thickness",_e=>new de.E9(-15,4+1.5*_e))),Ye(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.linkTemplate.selectionAdornmentTemplate=Ye(de.uz,Ye(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ne(2)},new de.KX("pathPattern","thickness",Ne)),Xn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ne(_e){return Ye(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(_e+4).toString()+" H3"})}function Bt(_e){var ct="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return _e===0?ct="M0 0 M16 16 M0 8 L16 8":_e===2&&(ct="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ye(de.bn,{geometryString:ct,margin:2,background:"transparent",mouseEnter:(pt,yt)=>yt.background="dodgerblue",mouseLeave:(pt,yt)=>yt.background="transparent",click:xn("dir",_e),contextClick:xn("dir",_e)})}function xt(_e){var ct=(pt,yt)=>{pt.handled=!0,pt.diagram.model.commit(_t=>{var Ut=yt.part.adornedPart;_t.set(Ut.data,_e?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(_e?Ut.toNode:Ut.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(pt,yt)=>yt.background="dodgerblue",mouseLeave:(pt,yt)=>yt.background="transparent",click:ct,contextClick:ct})}function Ct(_e,ct){var pt=0,yt=de.z6.RightSide;_e.equals(de.z6.Top)?(pt=270,yt=de.z6.TopSide):_e.equals(de.z6.Left)?(pt=180,yt=de.z6.LeftSide):_e.equals(de.z6.Bottom)&&(pt=90,yt=de.z6.BottomSide),ct||(pt-=180);var _t=(Ut,Nt)=>{Ut.handled=!0,Ut.diagram.model.commit(mn=>{var un=Nt.part.adornedPart;mn.set(un.data,ct?"toSpot":"fromSpot",de.z6.stringify(yt)),(ct?un.toNode:un.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{alignment:_e,alignmentFocus:_e.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:pt,background:"transparent",mouseEnter:(Ut,Nt)=>Nt.background="dodgerblue",mouseLeave:(Ut,Nt)=>Nt.background="transparent",click:_t,contextClick:_t})}Se.current.linkTemplate.contextMenu=Ye("ContextMenu",Fe(),Ue(),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Bt(0),Bt(1),Bt(2))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ye(de.s_,"Spot",xt(!1),Ct(de.z6.Top,!1),Ct(de.z6.Left,!1),Ct(de.z6.Right,!1),Ct(de.z6.Bottom,!1)),Ye(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},xt(!0),Ct(de.z6.Top,!0),Ct(de.z6.Left,!0),Ct(de.z6.Right,!0),Ct(de.z6.Bottom,!0)))));const Ge=`{ "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 rn=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Pn(_e){return console.log("shapeName:",_e),rn.indexOf(_e)>=0}var Dn=new de.YI(Lt.current,{maxSelectionCount:1,linkTemplate:Ye(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Ye(de.uz,"Link",{locationSpot:de.z6.Center},Ye(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ye(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Ye(de.bn,{isPanelMain:!0,strokeWidth:2}),Ye(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(_e=>({text:"\u672A\u547D\u540D",size:"100 100",figure:_e.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(_e){var ct;const pt=_e.subject.part;var yt=(ct=document.activeElement)==null?void 0:ct.value;typeof yt=="string"&&yt.trim()===""&&Se.current.model.commit(function(_t){_t.set(pt.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),Dn.nodeTemplate=Ye(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),Ye(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{Se.current.grid=Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Se.current.grid.visible=!0,Se.current.grid.gridCellStroke="darkgray",Se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Se.current,Se.current}const jn=()=>Re(this,null,function*(){var Ye=Se.current.makeImage();const Qt=yield(0,$e.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ye.src}});ve({src:Qt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{pn()},500),Jt(jt+1),()=>{Se.current=null}),[]),pe.createElement("div",{ref:on,className:St.current?`${be.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(Ee.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!jt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(Ke.Z,null,pe.createElement(At.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(At.Z,{onClick:()=>{var Ye,Qt,Mn=Se.current.selection.first();if(St.current=!St.current,document.activeElement&&Mn){let Xn=(Qt=(Ye=document.activeElement)==null?void 0:Ye.value)==null?void 0:Qt.trim();typeof Xn=="string"&&Se.current.model.commit(function(xn){xn.set(Mn.data,"text",Xn||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}Jt(jt+1)}},pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:fe},pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:be.flowChartWrp},pe.createElement("div",{style:{display:"flex",height:"100%"}},pe.createElement("div",{style:{width:"300px",height:"100%"}},pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:be.myPaletteDiv,ref:Lt})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:qe,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(Te.ZP,{size:"large",onClick:jn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var it=He,bt=ge(5112),wt=ge(5871);const Dt=bt.ZP.Group,Rt={margin:"0 8px"};var ft=({callback:fe,onCancel:ve})=>{function Se(qe){fe(qe)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Rt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Rt},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(wt.Z,null)),ae.createElement("span",{style:Rt},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(wt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Rt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Dt,null,ae.createElement(bt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(bt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(bt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(bt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Te.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},kt=ge(78673),Sn=ge(25730),bn=ge.n(Sn),nn=(0,ae.forwardRef)(({use3d:fe,width:ve,height:Se,callback:qe,showSaveButton:Lt},St)=>{const on=(0,ae.useRef)(),jt=(0,ae.useRef)(),[Jt,pn]=(0,ae.useState)(!1),jn=(0,ae.useRef)({id:on,appName:"graphing",width:ve||1e3,height:Se||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{jt.current=new(bn())(jn.current,!0),window.onload=function(){jt.current.inject("applet_container")}},[]);const Ye=()=>{var Qt=window.ggbApplet.getPNGBase64(1,!0,72);return qe&&qe(Qt),Qt};return(0,ae.useEffect)(()=>{jn.current.appName=Jt?"3D":"graphing",jt.current.inject("applet_container")},[Jt]),(0,ae.useEffect)(()=>{pn(fe)},[fe]),(0,ae.useImperativeHandle)(St,()=>({getImgData:Ye})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:on}),ae.createElement(Ke.Z,{align:"middle"},ae.createElement(At.Z,{flex:1},ae.createElement(kt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Jt,onChange:Qt=>pn(Qt)})),ae.createElement(At.Z,null,ae.createElement(Te.ZP,{size:"large",onClick:Ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),en=ge(88601),Pe=ge(1012),we=ge(8591);const De="link",tt="upload-image",lt="add-flowchart",Et="draw-image",zt="add-flowchart",ht="code-block",Ot="add-table",Kt="------------",Xt={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var qt=ge(28934),cn=(fe,ve,Se)=>new Promise((qe,Lt)=>{var St=Jt=>{try{jt(Se.next(Jt))}catch(pn){Lt(pn)}},on=Jt=>{try{jt(Se.throw(Jt))}catch(pn){Lt(pn)}},jt=Jt=>Jt.done?qe(Jt.value):Promise.resolve(Jt.value).then(St,on);jt((Se=Se.apply(fe,ve)).next())});function fn(){}let wn=0;const an=1e4,tn="\u2581",hn="@\u2581\u2581@",En="@\u2581@",$n=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,sn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function zn(fe){return/^\d+$/.test(fe)?`${fe}px`:fe}const Nn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Un={[Nn+"-B"]:"bold",[Nn+"-I"]:"italic"},ta={[De]:"\u6DFB\u52A0\u94FE\u63A5",[ht]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[tt]:"\u6DFB\u52A0\u56FE\u7247",[Et]:"\u6DFB\u52A0\u753B\u56FE",[lt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ot]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Qn=({defaultValue:fe="",onChange:ve,width:Se="100%",height:qe=400,miniToolbar:Lt=!1,isFocus:St=!1,watch:on,insertTemp:jt,mode:Jt="markdown",id:pn="markdown-editor-id",showResizeBar:jn=!1,noStorage:Ye=!1,showNullButton:Qt=!1,showNullProgramButton:Mn=!1,hidetoolBar:Xn=!1,fullScreen:xn=!1,onBlur:se,onCMBeforeChange:Be,onFullScreen:Fe,className:Oe="",disablePaste:We=!1,disabled:Ue=!1,disabledFill:ke=!1,placeholder:Ne="",values:Bt="",extraUse:xt,onAddBlank:Ct})=>{const[Ge,rn]=(0,ae.useState)(null),[Pn,Dn]=(0,ae.useState)(fe),[_e,ct]=(0,ae.useState)(on),[pt,yt]=(0,ae.useState)(xn),[_t,Ut]=(0,ae.useState)(""),[Nt,mn]=(0,ae.useState)(0),[un,qn]=(0,ae.useState)(qe),[aa,Kn]=(0,ae.useState)(!1),ca=(0,ae.useRef)((0,Pe.Z)()),Pa=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[ia,Vn]=(0,ae.useState)(0),[Gn,ma]=(0,ae.useState)(0),ea=(0,ae.useRef)(),ra=(0,ae.useRef)(),na=(0,ae.useRef)(),Wn=(0,ae.useRef)(),fa=()=>cn(void 0,null,function*(){var vt;const dt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:ca.current}});(vt=dt==null?void 0:dt.attachments)!=null&&vt.length&&(console.log("cm:",Ge,ea),dt.attachments.map(ut=>{ut.content_type.indexOf("image")>-1?Ge.replaceSelection(`![,](/api/attachments/${ut.id}?type=${ut.content_type})`):ut.content_type.indexOf("video")>-1?Ge.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ut.content_type.indexOf("pdf")>-1?Ge.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ut.id}?type=${ut.content_type}&disposition=inline" target="_blank">${ut.name}</a>`):Ge.replaceSelection(`[${ut.name}](${ENV.API_SERVER}/api/attachments/${ut.id}?type=${ut.content_type})`)}))});(0,ae.useEffect)(()=>{const vt=window.scrollY||window.pageYOffset;Dn(Bt),Ge==null||Ge.setValue(Bt),window.scrollTo(0,vt)},[Bt]),(0,ae.useEffect)(()=>{Fe==null||Fe(pt)},[pt]),(0,ae.useEffect)(()=>{if(ea.current){let vt=function(ut,Pt){var dn;if(We){Pt.preventDefault();return}const Fn=Pt.clipboardData;if(Fn){const kn=Fn.types.toString(),Rn=Fn.items;if(kn==="Files"||Fn.types.indexOf("Files")>-1){if(Pt.preventDefault(),Jt=="stex")return;try{let Hn=Rn[1];((dn=Rn[0])==null?void 0:dn.kind)==="file"&&(Hn=Rn[0]);const Zn=Hn.getAsFile(),oa=Zn.name.split(".").pop();(0,ye.I)(Zn,It=>{var gn,Ln,Vt;It.id?((gn=Zn==null?void 0:Zn.type)==null?void 0:gn.indexOf("image"))>-1?dt.replaceSelection(`<img width="100%" src="/api/attachments/${It.id}?type=${It.content_type})" alt="" />`):((Ln=Zn==null?void 0:Zn.type)==null?void 0:Ln.indexOf("video"))>-1?dt.replaceSelection(`<video width="100%" controls src="/api/attachments/${It.id}"></video>`):((Vt=Zn==null?void 0:Zn.type)==null?void 0:Vt.indexOf("pdf"))>-1?dt.replaceSelection(`<a href="/api/attachments/${It.id}?type=${Zn.type}&disposition=inline" target="_blank">${Zn.name}</a>`):sn.includes(oa)?dt.replaceSelection(`<a href="/api/attachments/${It.id}?type=office&disposition=inline" target="_blank">${Zn.name}</a>`):dt.replaceSelection(`[${Zn.name}](/api/attachments/${It.id}?type=${It.content_type})`):(It==null?void 0:It.status)===401&&(we.ZP.warning((It==null?void 0:It.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Hn){we.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const dt=Je().fromTextArea(ea.current,{mode:Jt,lineNumbers:!Lt,lineWrapping:!0,value:fe,autoCloseTags:!Mn,autoCloseBrackets:!0});return dt.on("keyup",function(ut,Pt){Pt.keyCode===8&&(ut.getValue()==""?dt.setOption("placeholder",Ne):dt.setOption("placeholder",null))}),dt.on("keydown",function(ut,Pt){if(Pt.keyCode===8){var dn=In(ut);dn&&Pt.preventDefault()}}),St&&dt.focus(),dt.on("paste",vt),dt.on("dragleave",function(ut,Pt){ra.current.classList.remove("mouse-hover-md")}),Ue&&dt.on("beforeChange",function(ut,Pt){(Pt.origin==="paste"||Pt.origin==="+input")&&Pt.cancel()}),rn(dt),()=>{dt.off("paste",vt)}}},[]);const Wt=(0,ae.useCallback)(()=>{if(ra.current)try{}catch(vt){console.log(vt,"---- to set md editor body height")}},[un,ra,pt]);(0,ae.useEffect)(()=>{function vt(){let dt=new Xe.Z(ut=>{for(let Pt of ut)(Pt.target.offsetHeight>0||Pt.target.offsetWidth>0)&&(Wt(),Ge.setSize("100%","100%"),Ge.refresh())});return dt.observe(ea.current.parentElement),dt}if(Ge){const dt=vt();return()=>{var ut,Pt;(ut=ea.current)!=null&&ut.parentElement&&dt.unobserve((Pt=ea.current)==null?void 0:Pt.parentElement)}}},[Ge,Wt]),(0,ae.useEffect)(()=>{if(Ge){let vt=[];for(const[dt,ut]of Object.entries(Un)){let Pt={[dt]:()=>{Yn(ut)}};vt.push(Pt),Ge.addKeyMap(Pt)}return Sa.current=setInterval(()=>{Pa.current&&fa()},4e3),()=>{clearInterval(Sa.current);for(let dt of vt)Ge.removeKeyMap(dt)}}},[Ge]),(0,ae.useEffect)(()=>{xn!==pt&&yt(xn)},[xn]),(0,qt.Z)(()=>{if(!Ye&&Nt>0){let vt=new Date().getTime(),dt=window.sessionStorage.getItem(pn);vt>=Nt+an&&(!dt||dt!==Pn)&&(window.sessionStorage.setItem(pn,Pn),Kn(!0))}},an),(0,ae.useEffect)(()=>{ct(on)},[Ge,on]),(0,ae.useEffect)(()=>{Ge&&St&&Ge.focus()},[Ge,St]),(0,ae.useEffect)(()=>{if(_e&&Ge){let vt=function(ut){let Pt=ut.target;if(Wn.current){let dn=Pt.scrollTop/Pt.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*dn}};const dt=Ge.getScrollerElement();return dt.addEventListener("scroll",vt),()=>{dt.removeEventListener("scroll",vt)}}},[Ge,_e]),(0,ae.useEffect)(()=>{if(Ge&&Be){let vt=function(dt,ut){Be(dt,ut)};return Ge.on("beforeChange",vt),()=>{Ge.off("beforeChange",vt)}}},[Ge,Be]),(0,ae.useEffect)(()=>{if(Ge&&se){let vt=function(){se(Ge.getValue())};return Ge.on("blur",vt),()=>{Ge.off("blur",vt)}}},[Ge,se]);function In(vt,dt){var ut=vt.getDoc(),Pt=ut.getCursor(),dn=ut.getLine(Pt.line),Fn=dn.charAt(Pt.ch-1),kn=dn.lastIndexOf("@\u2581@",Pt.ch),Rn=dn.lastIndexOf("@\u2581\u2581@",Pt.ch),Hn=kn>Rn?kn:Rn,Zn=kn>Rn?3:4;if(hn.indexOf(Fn)===-1)return null;if(console.log("change1:",dt,vt,dn,Pt,Hn,kn,Rn,Fn),Hn>=0&&Pt.ch-Hn<5){var oa=Hn+Zn;return ut.replaceRange("",{line:Pt.line,ch:Hn},{line:Pt.line,ch:oa}),{line:Pt.line,ch:oa}}return null}(0,ae.useEffect)(()=>{if(Ge){let vt=function(dt,ut){const Pt=dt.getValue();Dn(Pt),mn(new Date().getTime()),dt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(Mn?ve(Pt,ga(Pt)):ve(Pt))};return Ge.on("change",vt),()=>{Ge.off("change",vt)}}},[Ge,ve]),(0,ae.useEffect)(()=>{if(Ge)if(fe==null)Ge.setValue(""),Dn("");else{const vt=window.scrollY||window.pageYOffset;fe!==Ge.getValue()&&(Ge.setValue(fe),Dn(fe),Ge.setCursor(Ue?1:Ge.lineCount(),0),window.scrollTo(0,vt))}},[Ge,fe]);const Yn=(0,ae.useCallback)(vt=>{const dt=Ge.getCursor(),ut=Ge.getSelection();let Pt=ut.split(`
`);switch(vt){case"bold":return Ge.replaceSelection("**"+ut+"**"),ut===""&&Ge.setCursor(dt.line,dt.ch+2),Ge.focus();case"italic":return Ge.replaceSelection("*"+ut+"*"),ut===""&&Ge.setCursor(dt.line,dt.ch+1),Ge.focus();case"code":return Ge.replaceSelection("`"+ut+"`"),ut===""&&Ge.setCursor(dt.line,dt.ch+1),Ge.focus();case"inline-latex":return Ut("inline-latex"),Ge.focus();case"latex":return Ge.replaceSelection("```latex\n"+ut+"\n```"),Ge.setCursor(dt.line+1,ut.length+1),Ge.focus();case"line-break":return Ge.replaceSelection(`<br/>
`),Ge.focus();case"list-ul":return ut===""?Ge.replaceSelection("- "+ut):Ge.replaceSelection(Pt.map(dn=>dn===""?"":`- ${dn}`).join(`
`)),Ge.focus();case"list-ol":return ut===""?Ge.replaceSelection("1. "+ut):Ge.replaceSelection(Pt.map((dn,Fn)=>dn===""?"":`${Fn+1}. ${dn}`).join(`
`)),Ge.focus();case"add-null-ch":Ct==null||Ct();return;case"add-signal":return ut===""&&Ge.setCursor(dt.line,dt.ch),Ge.replaceSelection(En),Ge.focus();case"add-multiple":return ut===""&&Ge.setCursor(dt.line,dt.ch),Ge.replaceSelection(hn),Ge.focus();case"inster-template-1":return ut===""&&Ge.setCursor(dt.line,dt.ch),Ge.replaceSelection($n),Ge.focus();case"eraser":return Ge.setValue(""),Ge.focus();case"trigger-watch":return ct(!_e),Ge.focus();case"trigger-full-screen":return yt(!pt),Ge.focus();case De:Ut(De);return;case ht:Ut(ht);return;case tt:Ut(tt);return;case Et:Ut(Et);return;case"maths-latex":Ut("maths-latex");return;case lt:Ut(lt);return;case Ot:Ut(Ot);return;default:throw new Error}},[Ge,_e,pt]),Cn=(0,ae.useCallback)((vt,dt)=>{var ut,Pt,dn,Fn,kn,Rn;switch(Ut(""),_t){case De:const{title:gn,link:Ln}=vt;return Ge.replaceSelection(`[${gn}](${Ln})`),Ge.focus();case ht:const{language:Vt,content:yn}=vt;return Ge.replaceSelection(["```"+Vt,yn,"```"].join(`
`)),Ge.focus();case"maths-latex":for(var Hn=atob(vt),Zn=new Uint8Array(Hn.length),oa=0;oa<Hn.length;oa++)Zn[oa]=Hn.charCodeAt(oa);var It=new Blob([Zn],{type:"image/png"});(0,ye.I)(It,sa=>{sa.id?Ge.replaceSelection(`![,](/api/attachments/${sa.id}?type=${sa.content_type})`):(sa==null?void 0:sa.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ge.replaceSelection("`$$"+vt+"$$`");break;case tt:case Et:case zt:const{src:An,alt:la}=vt,Bn=dt,ua=(dn=(Pt=(ut=Bn==null?void 0:Bn.name)==null?void 0:ut.split("."))==null?void 0:Pt.pop)==null?void 0:dn.call(Pt);return((Fn=Bn==null?void 0:Bn.type)==null?void 0:Fn.indexOf("image"))>-1||!(Bn!=null&&Bn.type)?Bn.align||Bn.width?Ge.replaceSelection(`<p style="text-align:${Bn.align||"initial"}"><img width="${Bn.width?Bn.width+"%":"initial"}" src="${An}" alt="${la||""}" /></p>`):Ge.replaceSelection(`<img width="100%" src="${An}" alt="${la||""}" />`):((kn=Bn==null?void 0:Bn.type)==null?void 0:kn.indexOf("video"))>-1?Ge.replaceSelection(`<video width="100%" controls src="${An}"></video>`):((Rn=Bn==null?void 0:Bn.type)==null?void 0:Rn.indexOf("pdf"))>-1?Ge.replaceSelection(`<a href="${An}?type=${Bn.type}&disposition=inline" target="_blank">${Bn.name}</a>`):sn.includes(ua)?Ge.replaceSelection(`<a href="${An}?type=office&disposition=inline" target="_blank">${Bn.name}</a>`):Ge.replaceSelection(`[${Bn.name}](${An})`),Ge.focus();case Ot:const{row:Fa,col:Ba,align:$a}=vt;let wa=`
`;for(let sa=0;sa<Fa;sa++){let xa=[],Ca=[];for(let Ea=0;Ea<Ba;Ea++)sa===1&&Ca.push(Xt[$a]),xa.push(" ");sa===1&&(wa+=`| ${Ca.join(" | ")} |
`),wa+=`| ${xa.join(Ba===1?"":" | ")} |
`}return Ge.replaceSelection(wa+`
`),Ge.focus();default:throw new Error}},[Ge,_t]),da=(0,ae.useMemo)(()=>{switch(_t){case De:return ae.createElement(Zt,{callback:Cn,onCancel:_n});case ht:return ae.createElement(ln.Z,{callback:Cn,onCancel:_n});case tt:return ae.createElement(ye.Z,{callback:Cn,onCancel:_n});case lt:return ae.createElement(it,{callback:Cn,onCancel:_n});case Ot:return ae.createElement(ft,{callback:Cn,onCancel:_n});case"maths-latex":return ae.createElement(nn,{showSaveButton:!0,callback:Cn});case"inline-latex":return ae.createElement(en.Z,{showSaveButton:!0,callback:Cn});default:return null}},[_t]);function _n(){Ut("")}(0,ae.useEffect)(()=>{if(na.current){let vt=function(kn){dn=!0,Fn=kn.pageY},dt=function(){dn=!1},ut=function(kn){if(dn){let Rn=kn.pageY-Fn;Rn<0&&(Rn=0),Rn>300&&(Rn=300);let Hn=qe+Rn+"px";qn(Hn)}},Pt=na.current,dn=!1,Fn=0;return Pt.addEventListener("mousedown",vt),document.addEventListener("mousemove",ut),document.addEventListener("mouseup",dt),()=>{Pt.removeEventListener("mousedown",vt),document.removeEventListener("mousemove",ut),document.removeEventListener("mouseup",dt)}}},[Ge,na]),(0,ae.useEffect)(()=>{qn(qe)},[qe]);const pa=zn(Se),ha=zn(un),On={width:pa,height:ha},Tn=(0,ae.useMemo)(()=>{if(Nt){let vt=new Date(Nt),dt=vt.getHours(),ut=vt.getMinutes(),Pt=vt.getSeconds();return dt=dt<10?"0"+dt:dt,ut=ut<10?"0"+ut:ut,Pt=Pt<10?"0"+Pt:Pt,`${dt}:${ut}:${Pt}`}return 0},[Nt]),ga=vt=>{const dt=[];if(Mn){let ut=-1;vt=vt.replace(/(@▁▁@|@▁@)/g,function(Pt,dn,Fn){dt.push({multiLine:Pt!==En})})}return dt};function va(){window.sessionStorage.removeItem(pn),Kn(!1),mn(0)}function La(){Kn(!1),mn(0),Ge.setValue(window.sessionStorage.getItem(pn))}(0,ae.useEffect)(()=>{ta[_t]&&_t!==Et&&_t!==lt&&setTimeout(()=>{const vt=document.getElementsByClassName("markdown-popup-form")[0],dt=window.innerWidth/2-vt.offsetWidth/2,ut=window.innerHeight/2-vt.offsetHeight/2;Vn(dt),ma(ut)},0)},[_t]);const ya=vt=>{vt.preventDefault();const dt=vt.clientX-ia,ut=vt.clientY-Gn;document.body.onmousemove=Pt=>{let dn=Pt.clientX-dt,Fn=Pt.clientY-ut;const kn=document.getElementsByClassName("markdown-popup-form")[0],Rn=window.innerWidth-kn.offsetWidth,Hn=window.innerHeight-kn.offsetHeight;dn=Math.max(0,Math.min(dn,Rn)),Fn=Math.max(0,Math.min(Fn,Hn)),ba(Pt.clientX,Pt.clientY,dt,ut)&&(Vn(dn),ma(Fn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(vt,dt,ut,Pt)=>{const dn=document.body.clientHeight,Fn=document.body.clientWidth;return vt<20&&ut>vt||vt>Fn-20&&ut<vt||dt<20&&Pt>dt||dt>dn-20&&Pt<dt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ra},ae.createElement("div",{className:`markdown-editor-container ${Oe} ${_e?"on-preview":""} ${Lt?"mini":""} ${pt?"full-screen":""}`,style:On},ae.createElement(ie,{insertTemp:jt,watch:_e,fullScreen:pt,showNullButton:Qt,showNullProgramButton:Mn,onActionCallback:Yn,hidetoolBar:Xn,extraUse:xt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ea,placeholder:Ne})),_e?ae.createElement("div",{ref:Wn,className:"preview-container"},Jt==="stex"&&ae.createElement(ze,{value:Pn}),Jt!=="stex"&&ae.createElement(je.Z,{disabledFill:ke,showProgramFill:Mn,value:Pn})):null))),jn?ae.createElement("a",{ref:na,className:"editor-resize"}):null,_t===Et&&ae.createElement(mt,{callback:Cn,onCancel:_n}),_t===lt&&ae.createElement(it,{callback:Cn,onCancel:_n}),ae.createElement(me.Z,null,ta[_t]&&_t!==Et&&_t!==lt?ae.createElement(Ee.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:ia,top:Gn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},ta[_t]),open:!0,onCancel:_n,footer:null,destroyOnClose:!0,width:_t===lt?"1200px":null,height:_t===lt?"80vh":null,className:"markdown-popup-form"},da):null))}},76021:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return re},I:function(){return me}});var ae=ge(78241),he=ge(8591),Je=ge(92832),Xe=ge(81327),ce=ge(5871),Ze=ge(5112),ue=ge(3113),nt=ge(82977),Me=ge(59301),Ae=ge(53229),je=ge(59301),ze=Object.defineProperty,Ie=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(le,Ce,Te)=>Ce in le?ze(le,Ce,{enumerable:!0,configurable:!0,writable:!0,value:Te}):le[Ce]=Te,E=(le,Ce)=>{for(var Te in Ce||(Ce={}))y.call(Ce,Te)&&b(le,Te,Ce[Te]);if(a)for(var Te of a(Ce))x.call(Ce,Te)&&b(le,Te,Ce[Te]);return le},z=(le,Ce)=>Ie(le,ne(Ce));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:le,onCancel:Ce})=>{const[Te]=ee();let st=(0,Me.useRef)();function Tt(Ve){st.current.width=Te.getFieldValue("width"),st.current.align=Te.getFieldValue("align"),le(Ve,st.current)}function $t(Ve,ot){if(Ve.status===-1){he.ZP.error(Ve.message);return}Te.setFieldsValue({src:`/api/attachments/${Ve.id}`,type:ot.type})}function Le(Ve){let ot=Ve.target.files[0];st.current=ot,me(ot,$t)}return je.createElement(ae.default,z(E({form:Te},oe),{className:"upload-image-panel",onFinish:Tt,style:{width:470,overflow:"hidden"}}),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},je.createElement("div",{className:"flex-container"},je.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},je.createElement(Je.default,{style:te})),je.createElement(ie,{onFileChange:Le}))),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},je.createElement(Je.default,{style:{width:264}})),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},je.createElement(Xe.Z,null,je.createElement(ae.default.Item,{name:"width",style:{margin:0}},je.createElement(ce.Z,{style:{width:264}})),je.createElement("span",{className:"ml8"},"%"))),je.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},je.createElement(Ze.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),je.createElement("aside",null,je.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},je.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),je.createElement(ue.ZP,{type:"default",onClick:Ce},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return je.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",je.createElement("input",{type:"file",onChange:le}))}function me(le,Ce){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ae.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Te=new FormData;Te.append("editormd-image-file",le),Te.append("file_param_name","editormd-image-file"),Te.append("byxhr","true");var st=new window.XMLHttpRequest;st.withCredentials=!0,st.addEventListener("load",function(Tt){Ce(JSON.parse(Tt.target.responseText),le)},!1),st.addEventListener("error",function(Tt){console.error(Tt)},!1),st.open("POST",`${nt.KI}/api/attachments.json`),st.send(Te)}},44991:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return Je}});var ae=ge(59301),he=ge(4676);class Je extends ae.Component{constructor(ce){super(ce);const Ze=window.document;this.node=Ze.createElement("div"),Ze.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,he.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},28934:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return he}});var ae=ge(59301);function he(Je,Xe){const ce=(0,ae.useRef)();(0,ae.useEffect)(()=>{ce.current=Je}),(0,ae.useEffect)(()=>{function Ze(){ce.current()}if(Xe!==null){let ue=setInterval(Ze,Xe);return()=>clearInterval(ue)}},[Xe])}},6984:function(xe,gt,ge){"use strict";ge.r(gt),ge.d(gt,{default:function(){return re}});var ae=ge(59301),he=ge(75790),Je=ge(78241),Xe=ge(8591),ce=ge(66104),Ze=ge(92832),ue=ge(54580),nt=ge(3113),Me=ge(48551),Ae=ge(59189),je=ge(49647),ze={bg:"bg___VqFqM",flexRow:"flexRow___BMnDG",flexJustifyCenter:"flexJustifyCenter___oeWhy",flexAlignEnd:"flexAlignEnd___AM_yy",flexAlignCenter:"flexAlignCenter___oCn1N",flexColumn:"flexColumn___PQMFg",formWrap:"formWrap___iwUem",titleWrap:"titleWrap___SA96h",fieldWrap:"fieldWrap___tSPUZ",mdWrap:"mdWrap___C7Agk",backgroundFa:"backgroundFa___FaNz_",button:"button___fqiOn"},Ie=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,E=(ie,me,le)=>me in ie?Ie(ie,me,{enumerable:!0,configurable:!0,writable:!0,value:le}):ie[me]=le,z=(ie,me)=>{for(var le in me||(me={}))x.call(me,le)&&E(ie,le,me[le]);if(y)for(var le of y(me))b.call(me,le)&&E(ie,le,me[le]);return ie},ee=(ie,me)=>ne(ie,a(me)),te=(ie,me,le)=>new Promise((Ce,Te)=>{var st=Le=>{try{$t(le.next(Le))}catch(Ve){Te(Ve)}},Tt=Le=>{try{$t(le.throw(Le))}catch(Ve){Te(Ve)}},$t=Le=>Le.done?Ce(Le.value):Promise.resolve(Le.value).then(st,Tt);$t((le=le.apply(ie,me)).next())});const oe=({shixunHomeworks:ie,newCourse:me,globalSetting:le,loading:Ce,dispatch:Te,match:st})=>{var Tt;const $t=(0,he.useParams)(),[Le]=Je.default.useForm(),[Ve,ot]=(0,ae.useState)({}),[Qe,rt]=(0,ae.useState)(!1),[Mt,Ht]=(0,ae.useState)([]),[Zt,ln]=(0,ae.useState)([]),{commonHomeWorkEditDefaultData:ye}=ie,Ee={name:"file",multiple:!0,action:je.Z.API_SERVER+"/api/attachments.json",defaultFileList:Mt,onChange(mt){const{status:de}=mt.file;de==="done"?Xe.ZP.success(`${mt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`):de==="error"&&Xe.ZP.error(`${mt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)}};(0,ae.useEffect)(()=>{Ft()},[$t.topicId]);const Ke=mt=>mt==null?void 0:mt.map(de=>({uid:de.id,response:{id:de.id},name:de.title,status:"done",url:de.url})),Ft=()=>te(void 0,null,function*(){const mt=yield Te({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:$t.topicId}});mt&&(Le.setFieldsValue({name:mt.name}),Le.setFieldsValue({description:mt.description}),Le.setFieldsValue({reference_answer:mt.reference_answer}),Ht([...Ke(mt.attachments)]),ln([...Ke(mt.reference_attachments)]),rt(!0))}),et=mt=>te(void 0,null,function*(){var de,at;const Gt=z({},Ve);Gt.attachment_ids&&(Gt.attachment_ids=(de=Gt==null?void 0:Gt.attachment_ids.fileList)==null?void 0:de.map(At=>{var $e;return($e=At.response)==null?void 0:$e.id})),Gt.reference_attachment_ids&&(Gt.reference_attachment_ids=(at=Gt==null?void 0:Gt.reference_attachment_ids.fileList)==null?void 0:at.map(At=>{var $e;return($e=At.response)==null?void 0:$e.id})),(yield(0,Ae.yT)(ee(z({id:$t.topicId},Gt),{base_on_project:null,type:1})))&&he.history.push(`/users/${$t.username}/topics/${$t.topicId}/${$t.topictype}/normal/detail`)});return ae.createElement("section",{className:ze.bg},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},ae.createElement(ce.Z,{separator:">"},ae.createElement(ce.Z.Item,null,ae.createElement(he.Link,{to:`/users/${$t.username}/${$t.topictype==="personal"?"topics":"topicbank"}/${$t.topictype}`},$t.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),ae.createElement(ce.Z.Item,null,ae.createElement(he.Link,{to:`/users/${$t.username}/topics/${$t.topicId}/${$t.topictype}/normal/detail`},"\u8BE6\u60C5")),ae.createElement(ce.Z.Item,null,"\u7F16\u8F91")))),ae.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91"),ae.createElement(Je.default,{form:Le,className:ze.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{ot(z({},Le.getFieldsValue()))},onFinish:et},ae.createElement("div",{className:ze.fieldWrap},ae.createElement(Je.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(Ze.default,{maxLength:60,suffix:`${((Tt=Ve.name)==null?void 0:Tt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ae.createElement("div",{className:ze.mdWrap},ae.createElement(Je.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ae.createElement(Me.Z,{id:"topic-normal-description",watch:!0,defaultValue:ye.description})),ae.createElement("div",null,ae.createElement(Je.default.Item,{name:"attachment_ids"},Qe&&ae.createElement(ue.default,z({defaultFileList:Mt},Ee),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:ze.mdWrap},ae.createElement(Je.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ae.createElement(Me.Z,{id:"topic-normal-reference_answer",defaultValue:ye.reference_answer,watch:!0})),ae.createElement("div",null,ae.createElement(Je.default.Item,{name:"reference_attachment_ids"},Qe&&ae.createElement(ue.default,ee(z({},Ee),{defaultFileList:Zt}),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:ze.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(Je.default.Item,null,ae.createElement(nt.ZP,{size:"middle",type:"primary",className:`${ze.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),ae.createElement(nt.ZP,{size:"middle",type:"primary",ghost:!0,className:ze.button,onClick:()=>he.history.push(`/users/${$t.username}/topics/${$t.topicId}/${$t.topictype}/normal/detail`)},"\u53D6\u6D88"))))))};var re=(0,he.connect)(({shixunHomeworks:ie,newCourse:me,loading:le,globalSetting:Ce})=>({shixunHomeworks:ie,newCourse:me,globalSetting:Ce,loading:le.effects}))(oe)},56762:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return he}});var ae=ge(59301);function he(){const[,Je]=ae.useReducer(Xe=>Xe+1,0);return Je}},66104:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return $t}});var ae=ge(92310),he=ge.n(ae),Je=ge(11592),Xe=ge(26112),ce=ge(59301),Ze=ge(92343),ue=ge(36355),nt=ge(84105),Me=ge(91857);const Ae=Le=>{let{children:Ve}=Le;const{getPrefixCls:ot}=ce.useContext(ue.E_),Qe=ot("breadcrumb");return ce.createElement("li",{className:`${Qe}-separator`,"aria-hidden":"true"},Ve===""?Ve:Ve||"/")};Ae.__ANT_BREADCRUMB_SEPARATOR=!0;var je=Ae,ze=function(Le,Ve){var ot={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ve.indexOf(Qe)<0&&(ot[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Qe=Object.getOwnPropertySymbols(Le);rt<Qe.length;rt++)Ve.indexOf(Qe[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[rt])&&(ot[Qe[rt]]=Le[Qe[rt]]);return ot};function Ie(Le,Ve){if(Le.title===void 0||Le.title===null)return null;const ot=Object.keys(Ve).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${ot})`,"g"),(Qe,rt)=>Ve[rt]||Qe)}function ne(Le,Ve,ot,Qe){if(ot==null)return null;const{className:rt,onClick:Mt}=Ve,Ht=ze(Ve,["className","onClick"]),Zt=Object.assign(Object.assign({},(0,Xe.Z)(Ht,{data:!0,aria:!0})),{onClick:Mt});return Qe!==void 0?ce.createElement("a",Object.assign({},Zt,{className:he()(`${Le}-link`,rt),href:Qe}),ot):ce.createElement("span",Object.assign({},Zt,{className:he()(`${Le}-link`,rt)}),ot)}function a(Le,Ve){return(Qe,rt,Mt,Ht,Zt)=>{if(Ve)return Ve(Qe,rt,Mt,Ht);const ln=Ie(Qe,rt);return ne(Le,Qe,ln,Zt)}}var y=function(Le,Ve){var ot={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ve.indexOf(Qe)<0&&(ot[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Qe=Object.getOwnPropertySymbols(Le);rt<Qe.length;rt++)Ve.indexOf(Qe[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[rt])&&(ot[Qe[rt]]=Le[Qe[rt]]);return ot};const x=Le=>{const{prefixCls:Ve,separator:ot="/",children:Qe,menu:rt,overlay:Mt,dropdownProps:Ht,href:Zt}=Le,ye=(Ee=>{if(rt||Mt){const Ke=Object.assign({},Ht);if(rt){const Ft=rt||{},{items:et}=Ft,mt=y(Ft,["items"]);Ke.menu=Object.assign(Object.assign({},mt),{items:et==null?void 0:et.map((de,at)=>{var{key:Gt,title:Yt,label:At,path:$e}=de,be=y(de,["key","title","label","path"]);let pe=At!=null?At:Yt;return $e&&(pe=ce.createElement("a",{href:`${Zt}${$e}`},pe)),Object.assign(Object.assign({},be),{key:Gt!=null?Gt:at,label:pe})})})}else Mt&&(Ke.overlay=Mt);return ce.createElement(Me.Z,Object.assign({placement:"bottom"},Ke),ce.createElement("span",{className:`${Ve}-overlay-link`},Ee,ce.createElement(nt.Z,null)))}return Ee})(Qe);return ye!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,ye),ot&&ce.createElement(je,null,ot)):null},b=Le=>{const{prefixCls:Ve,children:ot,href:Qe}=Le,rt=y(Le,["prefixCls","children","href"]),{getPrefixCls:Mt}=ce.useContext(ue.E_),Ht=Mt("breadcrumb",Ve);return ce.createElement(x,Object.assign({},rt,{prefixCls:Ht}),ne(Ht,rt,ot,Qe))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ge(17313),ee=ge(83116),te=ge(37613);const oe=Le=>{const{componentCls:Ve,iconCls:ot}=Le;return{[Ve]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[ot]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ve}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ve}-link`]:{[`
> ${ot} + span,
> ${ot} + a
`]:{marginInlineStart:Le.marginXXS}},[`${Ve}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${ot}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var re=(0,ee.Z)("Breadcrumb",Le=>{const Ve=(0,te.TS)(Le,{});return[oe(Ve)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ie=function(Le,Ve){var ot={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ve.indexOf(Qe)<0&&(ot[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Qe=Object.getOwnPropertySymbols(Le);rt<Qe.length;rt++)Ve.indexOf(Qe[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[rt])&&(ot[Qe[rt]]=Le[Qe[rt]]);return ot};function me(Le){const{breadcrumbName:Ve,children:ot}=Le,Qe=ie(Le,["breadcrumbName","children"]),rt=Object.assign({title:Ve},Qe);return ot&&(rt.menu={items:ot.map(Mt=>{var{breadcrumbName:Ht}=Mt,Zt=ie(Mt,["breadcrumbName"]);return Object.assign(Object.assign({},Zt),{title:Ht})})}),rt}function le(Le,Ve){return(0,ce.useMemo)(()=>Le||(Ve?Ve.map(me):null),[Le,Ve])}var Ce=function(Le,Ve){var ot={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ve.indexOf(Qe)<0&&(ot[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Qe=Object.getOwnPropertySymbols(Le);rt<Qe.length;rt++)Ve.indexOf(Qe[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[rt])&&(ot[Qe[rt]]=Le[Qe[rt]]);return ot};const Te=(Le,Ve)=>{if(Ve===void 0)return Ve;let ot=(Ve||"").replace(/^\//,"");return Object.keys(Le).forEach(Qe=>{ot=ot.replace(`:${Qe}`,Le[Qe])}),ot},st=Le=>{const{prefixCls:Ve,separator:ot="/",style:Qe,className:rt,rootClassName:Mt,routes:Ht,items:Zt,children:ln,itemRender:ye,params:Ee={}}=Le,Ke=Ce(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ft,direction:et,breadcrumb:mt}=ce.useContext(ue.E_);let de;const at=Ft("breadcrumb",Ve),[Gt,Yt]=re(at),At=le(Zt,Ht),$e=a(at,ye);if(At&&At.length>0){const Re=[],He=Zt||Ht;de=At.map((it,bt)=>{const{path:wt,key:Dt,type:Rt,menu:ft,overlay:kt,onClick:Sn,className:bn,separator:vn,dropdownProps:nn}=it,en=Te(Ee,wt);en!==void 0&&Re.push(en);const Pe=Dt!=null?Dt:bt;if(Rt==="separator")return ce.createElement(je,{key:Pe},vn);const we={},De=bt===At.length-1;ft?we.menu=ft:kt&&(we.overlay=kt);let{href:tt}=it;return Re.length&&en!==void 0&&(tt=`#/${Re.join("/")}`),ce.createElement(x,Object.assign({key:Pe},we,(0,Xe.Z)(it,{data:!0,aria:!0}),{className:bn,dropdownProps:nn,href:tt,separator:De?"":ot,onClick:Sn,prefixCls:at}),$e(it,Ee,He,Re,tt))})}else if(ln){const Re=(0,Je.Z)(ln).length;de=(0,Je.Z)(ln).map((He,it)=>{if(!He)return He;const bt=it===Re-1;return(0,Ze.Tm)(He,{separator:bt?"":ot,key:it})})}const be=he()(at,mt==null?void 0:mt.className,{[`${at}-rtl`]:et==="rtl"},rt,Mt,Yt),pe=Object.assign(Object.assign({},mt==null?void 0:mt.style),Qe);return Gt(ce.createElement("nav",Object.assign({className:be,style:pe},Ke),ce.createElement("ol",null,de)))};st.Item=E,st.Separator=je;var Tt=st,$t=Tt},91857:function(xe,gt,ge){"use strict";var ae=ge(59301),he=ge(38819),Je=ge(92310),Xe=ge.n(Je),ce=ge(31561),Ze=ge(70425),ue=ge(18929),nt=ge(2738),Me=ge(79676),Ae=ge(53487),je=ge(92343),ze=ge(36355),Ie=ge(20834),ne=ge(40875),a=ge(88088),y=ge(47211);const x=null,b=te=>{const{menu:oe,arrow:re,prefixCls:ie,children:me,trigger:le,disabled:Ce,dropdownRender:Te,getPopupContainer:st,overlayClassName:Tt,rootClassName:$t,open:Le,onOpenChange:Ve,visible:ot,onVisibleChange:Qe,mouseEnterDelay:rt=.15,mouseLeaveDelay:Mt=.1,autoAdjustOverflow:Ht=!0,placement:Zt="",overlay:ln,transitionName:ye}=te,{getPopupContainer:Ee,getPrefixCls:Ke,direction:Ft}=ae.useContext(ze.E_),et=ae.useMemo(()=>{const ft=Ke();return ye!==void 0?ye:Zt.includes("top")?`${ft}-slide-down`:`${ft}-slide-up`},[Ke,Zt,ye]),mt=ae.useMemo(()=>Zt?Zt.includes("Center")?Zt.slice(0,Zt.indexOf("Center")):Zt:Ft==="rtl"?"bottomRight":"bottomLeft",[Zt,Ft]),de=Ke("dropdown",ie),[at,Gt]=(0,y.Z)(de),[,Yt]=(0,a.Z)(),At=ae.Children.only(me),$e=(0,je.Tm)(At,{className:Xe()(`${de}-trigger`,{[`${de}-rtl`]:Ft==="rtl"},At.props.className),disabled:Ce}),be=Ce?[]:le;let pe;be&&be.includes("contextMenu")&&(pe=!0);const[Re,He]=(0,ue.Z)(!1,{value:Le!=null?Le:ot}),it=(0,Ze.useEvent)(ft=>{Ve==null||Ve(ft),Qe==null||Qe(ft),He(ft)}),bt=Xe()(Tt,$t,Gt,{[`${de}-rtl`]:Ft==="rtl"}),wt=(0,Me.Z)({arrowPointAtCenter:typeof re=="object"&&re.pointAtCenter,autoAdjustOverflow:Ht,offset:Yt.marginXXS,arrowWidth:re?Yt.sizePopupArrow:0,borderRadius:Yt.borderRadius}),Dt=ae.useCallback(()=>{He(!1)},[]),Rt=()=>{let ft;return oe!=null&&oe.items?ft=ae.createElement(Ie.default,Object.assign({},oe)):typeof ln=="function"?ft=ln():ft=ln,Te&&(ft=Te(ft)),ft=ae.Children.only(typeof ft=="string"?ae.createElement("span",null,ft):ft),ae.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ae.createElement("span",{className:`${de}-menu-submenu-arrow`},ae.createElement(he.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Dt,validator:kt=>{let{mode:Sn}=kt}},ft)};return at(ae.createElement(ce.Z,Object.assign({alignPoint:pe},(0,nt.Z)(te,["rootClassName"]),{mouseEnterDelay:rt,mouseLeaveDelay:Mt,visible:Re,builtinPlacements:wt,arrow:!!re,overlayClassName:bt,prefixCls:de,getPopupContainer:st||Ee,transitionName:et,trigger:be,overlay:Rt,placement:mt,onVisibleChange:it}),$e))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ae.Z)(b,"dropdown",te=>te,E),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,gt.Z=b},47211:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return je}});var ae=ge(17313),he=ge(13826),Je=ge(92899),Xe=ge(29878),ce=ge(19447),Ze=ge(83116),ue=ge(37613),Me=ze=>{const{componentCls:Ie,menuCls:ne,colorError:a,colorTextLightSolid:y}=ze,x=`${ne}-item`;return{[`${Ie}, ${Ie}-menu-submenu`]:{[`${ne} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ae=ze=>{const{componentCls:Ie,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:re,fontSizeIcon:ie,controlPaddingHorizontal:me,colorBgElevated:le}=ze;return[{[Ie]:Object.assign(Object.assign({},(0,ae.Wf)(ze)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ie}},[`${Ie}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Ie}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomLeft,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomLeft,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottom,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottom,
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomRight,
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topLeft,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topLeft,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-top,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-top,
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topRight,
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomLeft,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottom,
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topLeft,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-top,
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topRight`]:{animationName:he.ly}})},(0,ce.ZP)(ze,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ie} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ie}, ${Ie}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:ze.borderRadiusLG,outline:"none",boxShadow:ze.boxShadowSecondary},(0,ae.Qy)(ze)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${me}px`,color:ze.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:ze.marginXS,fontSize:ze.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:ze.colorText,fontWeight:"normal",fontSize:te,lineHeight:ze.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ze.borderRadiusSM,"&:hover, &-active":{backgroundColor:ze.controlItemBgHover}},(0,ae.Qy)(ze)),{"&-selected":{color:ze.colorPrimary,backgroundColor:ze.controlItemBgActive,"&:hover, &-active":{backgroundColor:ze.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ze.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ze.colorSplit},[`${Ie}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ze.paddingXS,[`${Ie}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ze.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${ze.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:me+ze.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Ie}-menu-submenu-title`]:{[`&, ${Ie}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Ie}-menu-submenu-title`]:{color:ze.colorPrimary}})}},[(0,he.oN)(ze,"slide-up"),(0,he.oN)(ze,"slide-down"),(0,Je.Fm)(ze,"move-up"),(0,Je.Fm)(ze,"move-down"),(0,Xe._y)(ze,"zoom-big")]]};var je=(0,Ze.Z)("Dropdown",(ze,Ie)=>{let{rootPrefixCls:ne}=Ie;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=ze,oe=(x-b*E)/2,{dropdownArrowOffset:re}=(0,ce.fS)({contentRadius:te}),ie=(0,ue.TS)(ze,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:re,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ae(ie),Me(ie)]},ze=>({zIndexPopup:ze.zIndexPopupBase+50}))},45818:function(xe,gt,ge){"use strict";ge.d(gt,{D:function(){return z},Z:function(){return oe}});var ae=ge(54476),he=ge(59301),Je={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"},Xe=Je,ce=ge(7657),Ze=function(ie,me){return he.createElement(ce.Z,(0,ae.Z)({},ie,{ref:me,icon:Xe}))},ue=he.forwardRef(Ze),nt=ue,Me=ge(33853),Ae=ge(38819),je=ge(92310),ze=ge.n(je),Ie=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var me={};for(var le in re)Object.prototype.hasOwnProperty.call(re,le)&&ie.indexOf(le)<0&&(me[le]=re[le]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,le=Object.getOwnPropertySymbols(re);Ce<le.length;Ce++)ie.indexOf(le[Ce])<0&&Object.prototype.propertyIsEnumerable.call(re,le[Ce])&&(me[le[Ce]]=re[le[Ce]]);return me};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=he.createContext({}),ee=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var oe=he.forwardRef((re,ie)=>{const{prefixCls:me,className:le,trigger:Ce,children:Te,defaultCollapsed:st=!1,theme:Tt="dark",style:$t={},collapsible:Le=!1,reverseArrow:Ve=!1,width:ot=200,collapsedWidth:Qe=80,zeroWidthTriggerStyle:rt,breakpoint:Mt,onCollapse:Ht,onBreakpoint:Zt}=re,ln=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ye}=(0,he.useContext)(x.Gs),[Ee,Ke]=(0,he.useState)("collapsed"in re?re.collapsed:st),[Ft,et]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in re&&Ke(re.collapsed)},[re.collapsed]);const mt=($e,be)=>{"collapsed"in re||Ke($e),Ht==null||Ht($e,be)},de=(0,he.useRef)();de.current=$e=>{et($e.matches),Zt==null||Zt($e.matches),Ee!==$e.matches&&mt($e.matches,"responsive")},(0,he.useEffect)(()=>{function $e(pe){return de.current(pe)}let be;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&Mt&&Mt in E){be=pe(`(max-width: ${E[Mt]})`);try{be.addEventListener("change",$e)}catch(Re){be.addListener($e)}$e(be)}}return()=>{try{be==null||be.removeEventListener("change",$e)}catch(pe){be==null||be.removeListener($e)}}},[Mt]),(0,he.useEffect)(()=>{const $e=ee("ant-sider-");return ye.addSider($e),()=>ye.removeSider($e)},[]);const at=()=>{mt(!Ee,"clickTrigger")},{getPrefixCls:Gt}=(0,he.useContext)(y.E_),Yt=()=>{const $e=Gt("layout-sider",me),be=(0,Ie.Z)(ln,["collapsed"]),pe=Ee?Qe:ot,Re=a(pe)?`${pe}px`:String(pe),He=parseFloat(String(Qe||0))===0?he.createElement("span",{onClick:at,className:ze()(`${$e}-zero-width-trigger`,`${$e}-zero-width-trigger-${Ve?"right":"left"}`),style:rt},Ce||he.createElement(nt,null)):null,wt={expanded:Ve?he.createElement(Ae.Z,null):he.createElement(Me.Z,null),collapsed:Ve?he.createElement(Me.Z,null):he.createElement(Ae.Z,null)}[Ee?"collapsed":"expanded"],Dt=Ce!==null?He||he.createElement("div",{className:`${$e}-trigger`,onClick:at,style:{width:Re}},Ce||wt):null,Rt=Object.assign(Object.assign({},$t),{flex:`0 0 ${Re}`,maxWidth:Re,minWidth:Re,width:Re}),ft=ze()($e,`${$e}-${Tt}`,{[`${$e}-collapsed`]:!!Ee,[`${$e}-has-trigger`]:Le&&Ce!==null&&!He,[`${$e}-below`]:!!Ft,[`${$e}-zero-width`]:parseFloat(Re)===0},le);return he.createElement("aside",Object.assign({className:ft},be,{style:Rt,ref:ie}),he.createElement("div",{className:`${$e}-children`},Te),Le||Ft&&He?Dt:null)},At=he.useMemo(()=>({siderCollapsed:Ee}),[Ee]);return he.createElement(z.Provider,{value:At},Yt())})},84966:function(xe,gt,ge){"use strict";ge.d(gt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ie},ZP:function(){return ee}});var ae=ge(94480),he=ge(92310),Je=ge.n(he),Xe=ge(2738),ce=ge(59301),Ze=ge(36355),ue=ge(83116),Me=te=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:me,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:le,background:me},[`${oe}-sider-zero-width-trigger`]:{color:le,background:me,border:`1px solid ${re}`,borderInlineStart:0}}}};const Ae=te=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:me,footerBg:le,triggerBg:Ce,headerHeight:Te,headerPadding:st,headerColor:Tt,footerPadding:$t,triggerHeight:Le,zeroTriggerHeight:Ve,zeroTriggerWidth:ot,motionDurationMid:Qe,motionDurationSlow:rt,fontSize:Mt,borderRadius:Ht,bodyBg:Zt,headerBg:ln,siderBg:ye}=te;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Zt,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},[`${re}-sider`]:{position:"relative",minWidth:0,background:ye,transition:`all ${Qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:me,lineHeight:`${Le}px`,textAlign:"center",background:Ce,cursor:"pointer",transition:`all ${Qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Te,insetInlineEnd:-ot,zIndex:1,width:ot,height:Ve,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ye,borderStartStartRadius:0,borderStartEndRadius:Ht,borderEndEndRadius:Ht,borderEndStartRadius:0,cursor:"pointer",transition:`background ${rt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${rt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ot,borderStartStartRadius:Ht,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ht}}}}},Me(te)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:Te,padding:st,color:Tt,lineHeight:`${Te}px`,background:ln,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:$t,color:ie,fontSize:Mt,background:le},[`${re}-content`]:{flex:"auto",minHeight:0}}};var je=(0,ue.Z)("Layout",te=>[Ae(te)],te=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:me,controlHeightSM:le,marginXXS:Ce,colorTextLightSolid:Te,colorBgContainer:st}=te,Tt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${Tt}px`,headerColor:me,footerPadding:`${le}px ${Tt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Ce*2,triggerBg:"#002140",triggerColor:Te,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:st,lightTriggerBg:st,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ze=function(te,oe){var re={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(re[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ie=Object.getOwnPropertySymbols(te);me<ie.length;me++)oe.indexOf(ie[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[me])&&(re[ie[me]]=te[ie[me]]);return re};const Ie=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:re,displayName:ie}=te;return me=>ce.forwardRef((Ce,Te)=>ce.createElement(me,Object.assign({ref:Te,suffixCls:oe,tagName:re},Ce)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:re,suffixCls:ie,className:me,tagName:le}=te,Ce=ze(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Te}=ce.useContext(Ze.E_),st=Te("layout",re),[Tt,$t]=je(st),Le=ie?`${st}-${ie}`:st;return Tt(ce.createElement(le,Object.assign({className:Je()(re||Le,me,$t),ref:oe},Ce)))}),y=ce.forwardRef((te,oe)=>{const{direction:re}=ce.useContext(Ze.E_),[ie,me]=ce.useState([]),{prefixCls:le,className:Ce,rootClassName:Te,children:st,hasSider:Tt,tagName:$t,style:Le}=te,Ve=ze(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ot=(0,Xe.Z)(Ve,["suffixCls"]),{getPrefixCls:Qe,layout:rt}=ce.useContext(Ze.E_),Mt=Qe("layout",le),[Ht,Zt]=je(Mt),ln=Je()(Mt,{[`${Mt}-has-sider`]:typeof Tt=="boolean"?Tt:ie.length>0,[`${Mt}-rtl`]:re==="rtl"},rt==null?void 0:rt.className,Ce,Te,Zt),ye=ce.useMemo(()=>({siderHook:{addSider:Ee=>{me(Ke=>[].concat((0,ae.Z)(Ke),[Ee]))},removeSider:Ee=>{me(Ke=>Ke.filter(Ft=>Ft!==Ee))}}}),[]);return Ht(ce.createElement(Ie.Provider,{value:ye},ce.createElement($t,Object.assign({ref:oe,className:ln,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),Le)},ot),st)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(xe,gt,ge){"use strict";ge.d(gt,{J:function(){return Ze}});var ae=ge(59301),he=ge(33234),Je=ge(70425),Xe=function(ue,nt){var Me={};for(var Ae in ue)Object.prototype.hasOwnProperty.call(ue,Ae)&&nt.indexOf(Ae)<0&&(Me[Ae]=ue[Ae]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ae=Object.getOwnPropertySymbols(ue);je<Ae.length;je++)nt.indexOf(Ae[je])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ae[je])&&(Me[Ae[je]]=ue[Ae[je]]);return Me};const ce=ae.createContext(null),Ze=ae.forwardRef((ue,nt)=>{const{children:Me}=ue,Ae=Xe(ue,["children"]),je=ae.useContext(ce),ze=ae.useMemo(()=>Object.assign(Object.assign({},je),Ae),[je,Ae.prefixCls,Ae.mode,Ae.selectable]);return ae.createElement(ce.Provider,{value:ze},ae.createElement(he.BR,null,(0,Je.supportNodeRef)(Me)?ae.cloneElement(Me,{ref:nt}):Me))});gt.Z=ce},20834:function(xe,gt,ge){"use strict";ge.d(gt,{default:function(){return At}});var ae=ge(15285),he=ge(59301),Je=ge(45818),Xe=ge(92310),ce=ge.n(Xe),Ze=ge(36355),ue=function($e,be){var pe={};for(var Re in $e)Object.prototype.hasOwnProperty.call($e,Re)&&be.indexOf(Re)<0&&(pe[Re]=$e[Re]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Re=Object.getOwnPropertySymbols($e);He<Re.length;He++)be.indexOf(Re[He])<0&&Object.prototype.propertyIsEnumerable.call($e,Re[He])&&(pe[Re[He]]=$e[Re[He]]);return pe},Me=$e=>{const{prefixCls:be,className:pe,dashed:Re}=$e,He=ue($e,["prefixCls","className","dashed"]),{getPrefixCls:it}=he.useContext(Ze.E_),bt=it("menu",be),wt=ce()({[`${bt}-item-divider-dashed`]:!!Re},pe);return he.createElement(ae.iz,Object.assign({className:wt},He))},Ae=ge(11592),je=ge(2738),ze=ge(6848),Ie=ge(92343),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=$e=>{var be;const{className:pe,children:Re,icon:He,title:it,danger:bt}=$e,{prefixCls:wt,firstLevel:Dt,direction:Rt,disableMenuItemTitleTooltip:ft,inlineCollapsed:kt}=he.useContext(a),Sn=we=>{const De=he.createElement("span",{className:`${wt}-title-content`},Re);return(!He||(0,Ie.l$)(Re)&&Re.type==="span")&&Re&&we&&Dt&&typeof Re=="string"?he.createElement("div",{className:`${wt}-inline-collapsed-noicon`},Re.charAt(0)):De},{siderCollapsed:bn}=he.useContext(Je.D);let vn=it;typeof it=="undefined"?vn=Dt?Re:"":it===!1&&(vn="");const nn={title:vn};!bn&&!kt&&(nn.title=null,nn.open=!1);const en=(0,Ae.Z)(Re).length;let Pe=he.createElement(ae.ck,Object.assign({},(0,je.Z)($e,["title","icon","danger"]),{className:ce()({[`${wt}-item-danger`]:bt,[`${wt}-item-only-child`]:(He?en+1:en)===1},pe),title:typeof it=="string"?it:void 0}),(0,Ie.Tm)(He,{className:ce()((0,Ie.l$)(He)?(be=He.props)===null||be===void 0?void 0:be.className:"",`${wt}-item-icon`)}),Sn(kt));return ft||(Pe=he.createElement(ze.Z,Object.assign({},nn,{placement:Rt==="rtl"?"left":"right",overlayClassName:`${wt}-inline-collapsed-tooltip`}),Pe)),Pe},E=$e=>{var be;const{popupClassName:pe,icon:Re,title:He,theme:it}=$e,bt=he.useContext(a),{prefixCls:wt,inlineCollapsed:Dt,theme:Rt}=bt,ft=(0,ae.Xl)();let kt;if(!Re)kt=Dt&&!ft.length&&He&&typeof He=="string"?he.createElement("div",{className:`${wt}-inline-collapsed-noicon`},He.charAt(0)):he.createElement("span",{className:`${wt}-title-content`},He);else{const bn=(0,Ie.l$)(He)&&He.type==="span";kt=he.createElement(he.Fragment,null,(0,Ie.Tm)(Re,{className:ce()((0,Ie.l$)(Re)?(be=Re.props)===null||be===void 0?void 0:be.className:"",`${wt}-item-icon`)}),bn?He:he.createElement("span",{className:`${wt}-title-content`},He))}const Sn=he.useMemo(()=>Object.assign(Object.assign({},bt),{firstLevel:!1}),[bt]);return he.createElement(a.Provider,{value:Sn},he.createElement(ae.Wd,Object.assign({},(0,je.Z)($e,["icon"]),{title:kt,popupClassName:ce()(wt,pe,`${wt}-${it||Rt}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),oe=ge(40875),re=function($e,be){var pe={};for(var Re in $e)Object.prototype.hasOwnProperty.call($e,Re)&&be.indexOf(Re)<0&&(pe[Re]=$e[Re]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Re=Object.getOwnPropertySymbols($e);He<Re.length;He++)be.indexOf(Re[He])<0&&Object.prototype.propertyIsEnumerable.call($e,Re[He])&&(pe[Re[He]]=$e[Re[He]]);return pe};function ie($e){return($e||[]).map((be,pe)=>{if(be&&typeof be=="object"){const Re=be,{label:He,children:it,key:bt,type:wt}=Re,Dt=re(Re,["label","children","key","type"]),Rt=bt!=null?bt:`tmp-${pe}`;return it||wt==="group"?wt==="group"?he.createElement(ae.BW,Object.assign({key:Rt},Dt,{title:He}),ie(it)):he.createElement(E,Object.assign({key:Rt},Dt,{title:He}),ie(it)):wt==="divider"?he.createElement(Me,Object.assign({key:Rt},Dt)):he.createElement(x,Object.assign({key:Rt},Dt),He)}return null}).filter(be=>be)}function me($e){return he.useMemo(()=>$e&&ie($e),[$e])}var le=ge(64993),Ce=ge(17313),Te=ge(8378),st=ge(13826),Tt=ge(29878),$t=ge(83116),Le=ge(37613),ot=$e=>{const{componentCls:be,motionDurationSlow:pe,horizontalLineHeight:Re,colorSplit:He,lineWidth:it,lineType:bt,itemPaddingInline:wt}=$e;return{[`${be}-horizontal`]:{lineHeight:Re,border:0,borderBottom:`${it}px ${bt} ${He}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${be}-item, ${be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:wt},[`> ${be}-item:hover,
> ${be}-item-active,
> ${be}-submenu ${be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${be}-item, ${be}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${be}-submenu-arrow`]:{display:"none"}}}},rt=$e=>{let{componentCls:be,menuArrowOffset:pe}=$e;return{[`${be}-rtl`]:{direction:"rtl"},[`${be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${be}-rtl${be}-vertical,
${be}-submenu-rtl ${be}-vertical`]:{[`${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const Mt=$e=>Object.assign({},(0,Ce.oN)($e));var Zt=($e,be)=>{const{componentCls:pe,itemColor:Re,itemSelectedColor:He,groupTitleColor:it,itemBg:bt,subMenuItemBg:wt,itemSelectedBg:Dt,activeBarHeight:Rt,activeBarWidth:ft,activeBarBorderWidth:kt,motionDurationSlow:Sn,motionEaseInOut:bn,motionEaseOut:vn,itemPaddingInline:nn,motionDurationMid:en,itemHoverColor:Pe,lineType:we,colorSplit:De,itemDisabledColor:tt,dangerItemColor:lt,dangerItemHoverColor:Et,dangerItemSelectedColor:zt,dangerItemActiveBg:ht,dangerItemSelectedBg:Ot,itemHoverBg:Kt,itemActiveBg:Xt,menuSubMenuBg:qt,horizontalItemSelectedColor:cn,horizontalItemSelectedBg:fn,horizontalItemBorderRadius:wn,horizontalItemHoverBg:an,popupBg:tn}=$e;return{[`${pe}-${be}, ${pe}-${be} > ${pe}`]:{color:Re,background:bt,[`&${pe}-root:focus-visible`]:Object.assign({},Mt($e)),[`${pe}-item-group-title`]:{color:it},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:He}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${tt} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:Pe}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Xt}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Xt}}},[`${pe}-item-danger`]:{color:lt,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Et}},[`&${pe}-item:active`]:{background:ht}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:He,[`&${pe}-item-danger`]:{color:zt},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:Dt,[`&${pe}-item-danger`]:{backgroundColor:Ot}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},Mt($e))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:qt},[`&${pe}-popup > ${pe}`]:{backgroundColor:tn},[`&${pe}-horizontal`]:Object.assign(Object.assign({},be==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:kt,marginTop:-kt,marginBottom:0,borderRadius:wn,"&::after":{position:"absolute",insetInline:nn,bottom:0,borderBottom:`${Rt}px solid transparent`,transition:`border-color ${Sn} ${bn}`,content:'""'},"&:hover, &-active, &-open":{background:an,"&::after":{borderBottomWidth:Rt,borderBottomColor:cn}},"&-selected":{color:cn,backgroundColor:fn,"&:hover":{backgroundColor:fn},"&::after":{borderBottomWidth:Rt,borderBottomColor:cn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${kt}px ${we} ${De}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:wt},[`${pe}-item, ${pe}-submenu-title`]:kt&&ft?{width:`calc(100% + ${kt}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ft}px solid ${He}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${en} ${vn}`,`opacity ${en} ${vn}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:zt}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${en} ${bn}`,`opacity ${en} ${bn}`].join(",")}}}}}};const ln=$e=>{const{componentCls:be,itemHeight:pe,itemMarginInline:Re,padding:He,menuArrowSize:it,marginXS:bt,itemMarginBlock:wt}=$e,Dt=He+it+bt;return{[`${be}-item`]:{position:"relative",overflow:"hidden"},[`${be}-item, ${be}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:He,overflow:"hidden",textOverflow:"ellipsis",marginInline:Re,marginBlock:wt,width:`calc(100% - ${Re*2}px)`},[`> ${be}-item,
> ${be}-submenu > ${be}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${be}-item-group-list ${be}-submenu-title,
${be}-submenu-title`]:{paddingInlineEnd:Dt}}};var Ee=$e=>{const{componentCls:be,iconCls:pe,itemHeight:Re,colorTextLightSolid:He,dropdownWidth:it,controlHeightLG:bt,motionDurationMid:wt,motionEaseOut:Dt,paddingXL:Rt,itemMarginInline:ft,fontSizeLG:kt,motionDurationSlow:Sn,paddingXS:bn,boxShadowSecondary:vn,collapsedWidth:nn,collapsedIconSize:en}=$e,Pe={height:Re,lineHeight:`${Re}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[be]:{"&-inline, &-vertical":Object.assign({[`&${be}-root`]:{boxShadow:"none"}},ln($e))},[`${be}-submenu-popup`]:{[`${be}-vertical`]:Object.assign(Object.assign({},ln($e)),{boxShadow:vn})}},{[`${be}-submenu-popup ${be}-vertical${be}-sub`]:{minWidth:it,maxHeight:`calc(100vh - ${bt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${be}-inline`]:{width:"100%",[`&${be}-root`]:{[`${be}-item, ${be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Sn}`,`background ${Sn}`,`padding ${wt} ${Dt}`].join(","),[`> ${be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${be}-sub${be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${be}-submenu > ${be}-submenu-title`]:Pe,[`& ${be}-item-group-title`]:{paddingInlineStart:Rt}},[`${be}-item`]:Pe}},{[`${be}-inline-collapsed`]:{width:nn,[`&${be}-root`]:{[`${be}-item, ${be}-submenu ${be}-submenu-title`]:{[`> ${be}-inline-collapsed-noicon`]:{fontSize:kt,textAlign:"center"}}},[`> ${be}-item,
> ${be}-item-group > ${be}-item-group-list > ${be}-item,
> ${be}-item-group > ${be}-item-group-list > ${be}-submenu > ${be}-submenu-title,
> ${be}-submenu > ${be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${kt/2}px - ${ft}px)`,textOverflow:"clip",[`
${be}-submenu-arrow,
${be}-submenu-expand-icon
`]:{opacity:0},[`${be}-item-icon, ${pe}`]:{margin:0,fontSize:en,lineHeight:`${Re}px`,"+ span":{display:"inline-block",opacity:0}}},[`${be}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${be}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:He}},[`${be}-item-group-title`]:Object.assign(Object.assign({},Ce.vS),{paddingInline:bn})}}]};const Ke=$e=>{const{componentCls:be,motionDurationSlow:pe,motionDurationMid:Re,motionEaseInOut:He,motionEaseOut:it,iconCls:bt,iconSize:wt,iconMarginInlineEnd:Dt}=$e;return{[`${be}-item, ${be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${He}`].join(","),[`${be}-item-icon, ${bt}`]:{minWidth:wt,fontSize:wt,transition:[`font-size ${Re} ${it}`,`margin ${pe} ${He}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:Dt,opacity:1,transition:[`opacity ${pe} ${He}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${be}-item-icon`]:Object.assign({},(0,Ce.Ro)()),[`&${be}-item-only-child`]:{[`> ${bt}, > ${be}-item-icon`]:{marginInlineEnd:0}}},[`${be}-item-disabled, ${be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ft=$e=>{const{componentCls:be,motionDurationSlow:pe,motionEaseInOut:Re,borderRadius:He,menuArrowSize:it,menuArrowOffset:bt}=$e;return{[`${be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:$e.margin,width:it,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${Re}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:it*.6,height:it*.15,backgroundColor:"currentcolor",borderRadius:He,transition:[`background ${pe} ${Re}`,`transform ${pe} ${Re}`,`top ${pe} ${Re}`,`color ${pe} ${Re}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${bt})`},"&::after":{transform:`rotate(-45deg) translateY(${bt})`}}}}},et=$e=>{const{antCls:be,componentCls:pe,fontSize:Re,motionDurationSlow:He,motionDurationMid:it,motionEaseInOut:bt,paddingXS:wt,padding:Dt,colorSplit:Rt,lineWidth:ft,zIndexPopup:kt,borderRadiusLG:Sn,subMenuItemBorderRadius:bn,menuArrowSize:vn,menuArrowOffset:nn,lineType:en,menuPanelMaskInset:Pe,groupTitleLineHeight:we,groupTitleFontSize:De}=$e;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Ce.dF)()),{"&-hidden":{display:"none"}})},[`${pe}-submenu-hidden`]:{display:"none"}},{[pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ce.Wf)($e)),(0,Ce.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Re,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${He} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:$e.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${wt}px ${Dt}px`,fontSize:De,lineHeight:we,transition:`all ${He}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${He} ${bt}`,`background ${He} ${bt}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${He} ${bt}`,`background ${He} ${bt}`,`padding ${it} ${bt}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${He} ${bt}`,`padding ${He} ${bt}`].join(",")},[`${pe}-title-content`]:{transition:`color ${He}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Rt,borderStyle:en,borderWidth:0,borderTopWidth:ft,marginBlock:ft,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ke($e)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${Re*2}px ${Dt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:kt,borderRadius:Sn,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Pe},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:$e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:$e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:$e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:$e.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Sn},Ke($e)),Ft($e)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:bn},[`${pe}-submenu-title::after`]:{transition:`transform ${He} ${bt}`}})}}),Ft($e)),{[`&-inline-collapsed ${pe}-submenu-arrow,
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${nn})`},"&::after":{transform:`rotate(45deg) translateX(-${nn})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${vn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${nn})`},"&::before":{transform:`rotate(45deg) translateX(${nn})`}}})},{[`${be}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var mt=($e,be)=>(0,$t.Z)("Menu",Re=>{if(be===!1)return[];const{colorBgElevated:He,colorPrimary:it,colorTextLightSolid:bt,controlHeightLG:wt,fontSize:Dt,darkItemColor:Rt,darkDangerItemColor:ft,darkItemBg:kt,darkSubMenuItemBg:Sn,darkItemSelectedColor:bn,darkItemSelectedBg:vn,darkDangerItemSelectedBg:nn,darkItemHoverBg:en,darkGroupTitleColor:Pe,darkItemHoverColor:we,darkItemDisabledColor:De,darkDangerItemHoverColor:tt,darkDangerItemSelectedColor:lt,darkDangerItemActiveBg:Et}=Re,zt=Dt/7*5,ht=(0,Le.TS)(Re,{menuArrowSize:zt,menuHorizontalHeight:wt*1.15,menuArrowOffset:`${zt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:He}),Ot=(0,Le.TS)(ht,{itemColor:Rt,itemHoverColor:we,groupTitleColor:Pe,itemSelectedColor:bn,itemBg:kt,popupBg:kt,subMenuItemBg:Sn,itemActiveBg:"transparent",itemSelectedBg:vn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:en,itemDisabledColor:De,dangerItemColor:ft,dangerItemHoverColor:tt,dangerItemSelectedColor:lt,dangerItemActiveBg:Et,dangerItemSelectedBg:nn,menuSubMenuBg:Sn,horizontalItemSelectedColor:bt,horizontalItemSelectedBg:it});return[et(ht),ot(ht),Ee(ht),Zt(ht,"light"),Zt(Ot,"dark"),rt(ht),(0,Te.Z)(ht),(0,st.oN)(ht,"slide-up"),(0,st.oN)(ht,"slide-down"),(0,Tt._y)(ht,"zoom-big")]},Re=>{const{colorPrimary:He,colorError:it,colorTextDisabled:bt,colorErrorBg:wt,colorText:Dt,colorTextDescription:Rt,colorBgContainer:ft,colorFillAlter:kt,colorFillContent:Sn,lineWidth:bn,lineWidthBold:vn,controlItemBgActive:nn,colorBgTextHover:en,controlHeightLG:Pe,lineHeight:we,colorBgElevated:De,marginXXS:tt,padding:lt,fontSize:Et,controlHeightSM:zt,fontSizeLG:ht,colorTextLightSolid:Ot,colorErrorHover:Kt}=Re,Xt=new le.C(Ot).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Re.zIndexPopupBase+50,radiusItem:Re.borderRadiusLG,itemBorderRadius:Re.borderRadiusLG,radiusSubMenuItem:Re.borderRadiusSM,subMenuItemBorderRadius:Re.borderRadiusSM,colorItemText:Dt,itemColor:Dt,colorItemTextHover:Dt,itemHoverColor:Dt,colorItemTextHoverHorizontal:He,horizontalItemHoverColor:He,colorGroupTitle:Rt,groupTitleColor:Rt,colorItemTextSelected:He,itemSelectedColor:He,colorItemTextSelectedHorizontal:He,horizontalItemSelectedColor:He,colorItemBg:ft,itemBg:ft,colorItemBgHover:en,itemHoverBg:en,colorItemBgActive:Sn,itemActiveBg:nn,colorSubItemBg:kt,subMenuItemBg:kt,colorItemBgSelected:nn,itemSelectedBg:nn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:vn,activeBarHeight:vn,colorActiveBarBorderSize:bn,activeBarBorderWidth:bn,colorItemTextDisabled:bt,itemDisabledColor:bt,colorDangerItemText:it,dangerItemColor:it,colorDangerItemTextHover:it,dangerItemHoverColor:it,colorDangerItemTextSelected:it,dangerItemSelectedColor:it,colorDangerItemBgActive:wt,dangerItemActiveBg:wt,colorDangerItemBgSelected:wt,dangerItemSelectedBg:wt,itemMarginInline:Re.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pe,groupTitleLineHeight:we,collapsedWidth:Pe*2,popupBg:De,itemMarginBlock:tt,itemPaddingInline:lt,horizontalLineHeight:`${Pe*1.15}px`,iconSize:Et,iconMarginInlineEnd:zt-Et,collapsedIconSize:ht,groupTitleFontSize:Et,darkItemDisabledColor:new le.C(Ot).setAlpha(.25).toRgbString(),darkItemColor:Xt,darkDangerItemColor:it,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ot,darkItemSelectedBg:He,darkDangerItemSelectedBg:it,darkItemHoverBg:"transparent",darkGroupTitleColor:Xt,darkItemHoverColor:Ot,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:Ot,darkDangerItemActiveBg:it}},{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"]]})($e),de=function($e,be){var pe={};for(var Re in $e)Object.prototype.hasOwnProperty.call($e,Re)&&be.indexOf(Re)<0&&(pe[Re]=$e[Re]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Re=Object.getOwnPropertySymbols($e);He<Re.length;He++)be.indexOf(Re[He])<0&&Object.prototype.propertyIsEnumerable.call($e,Re[He])&&(pe[Re[He]]=$e[Re[He]]);return pe},Gt=(0,he.forwardRef)(($e,be)=>{var pe,Re;const He=he.useContext(oe.Z),it=He||{},{getPrefixCls:bt,getPopupContainer:wt,direction:Dt,menu:Rt}=he.useContext(Ze.E_),ft=bt(),{prefixCls:kt,className:Sn,style:bn,theme:vn="light",expandIcon:nn,_internalDisableMenuItemTitleTooltip:en,inlineCollapsed:Pe,siderCollapsed:we,items:De,children:tt,rootClassName:lt,mode:Et,selectable:zt,onClick:ht,overflowedIndicatorPopupClassName:Ot}=$e,Kt=de($e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Xt=(0,je.Z)(Kt,["collapsedWidth"]),qt=me(De)||tt;(pe=it.validator)===null||pe===void 0||pe.call(it,{mode:Et});const cn=(0,ee.useEvent)(function(){var Nn;ht==null||ht.apply(void 0,arguments),(Nn=it.onClick)===null||Nn===void 0||Nn.call(it)}),fn=it.mode||Et,wn=zt!=null?zt:it.selectable,an=he.useMemo(()=>we!==void 0?we:Pe,[Pe,we]),tn={horizontal:{motionName:`${ft}-slide-up`},inline:(0,te.Z)(ft),other:{motionName:`${ft}-zoom-big`}},hn=bt("menu",kt||it.prefixCls),[En,$n]=mt(hn,!He),sn=ce()(`${hn}-${vn}`,Rt==null?void 0:Rt.className,Sn);let zn;if(typeof nn=="function")zn=nn;else if(nn===null||nn===!1)zn=null;else if(it.expandIcon===null||it.expandIcon===!1)zn=null;else{const Nn=nn!=null?nn:it.expandIcon;zn=(0,Ie.Tm)(Nn,{className:ce()(`${hn}-submenu-expand-icon`,(0,Ie.l$)(Nn)?(Re=Nn.props)===null||Re===void 0?void 0:Re.className:"")})}const Jn=he.useMemo(()=>({prefixCls:hn,inlineCollapsed:an||!1,direction:Dt,firstLevel:!0,theme:vn,mode:fn,disableMenuItemTitleTooltip:en}),[hn,an,Dt,en,vn]);return En(he.createElement(oe.Z.Provider,{value:null},he.createElement(a.Provider,{value:Jn},he.createElement(ae.ZP,Object.assign({getPopupContainer:wt,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(hn,`${hn}-${vn}`,Ot),mode:fn,selectable:wn,onClick:cn},Xt,{inlineCollapsed:an,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),bn),className:sn,prefixCls:hn,direction:Dt,defaultMotions:tn,expandIcon:zn,ref:be,rootClassName:ce()(lt,$n)}),qt))))});const Yt=(0,he.forwardRef)(($e,be)=>{const pe=(0,he.useRef)(null),Re=he.useContext(Je.D);return(0,he.useImperativeHandle)(be,()=>({menu:pe.current,focus:He=>{var it;(it=pe.current)===null||it===void 0||it.focus(He)}})),he.createElement(Gt,Object.assign({ref:pe},$e,Re))});Yt.Item=x,Yt.SubMenu=E,Yt.Divider=Me,Yt.ItemGroup=ae.BW;var At=Yt},93948:function(xe,gt,ge){"use strict";ge.d(gt,{Z:function(){return en}});var ae=ge(59301),he=ge(29679),Je=ge(40001),Xe=ge(19248),ce=ge(99267),Ze=ge(92310),ue=ge.n(Ze),nt=ge(2738),Me=ge(36355),Ae=ge(54476),je=ge(33885),ze=ge(75931),Ie={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var we=(0,ae.useRef)([]),De=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var tt=Date.now(),lt=!1;we.current.forEach(function(Et){if(Et){lt=!0;var zt=Et.style;zt.transitionDuration=".3s, .3s, .3s, .06s",De.current&&tt-De.current<100&&(zt.transitionDuration="0s, 0s")}}),lt&&(De.current=Date.now())}),we.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(we){var De=(0,je.Z)((0,je.Z)({},Ie),we),tt=De.className,lt=De.percent,Et=De.prefixCls,zt=De.strokeColor,ht=De.strokeLinecap,Ot=De.strokeWidth,Kt=De.style,Xt=De.trailColor,qt=De.trailWidth,cn=De.transition,fn=(0,ze.Z)(De,a);delete fn.gapPosition;var wn=Array.isArray(lt)?lt:[lt],an=Array.isArray(zt)?zt:[zt],tn=ne(),hn=Ot/2,En=100-Ot/2,$n="M ".concat(ht==="round"?hn:0,",").concat(hn,`
L `).concat(ht==="round"?En:100,",").concat(hn),sn="0 0 100 ".concat(Ot),zn=0;return ae.createElement("svg",(0,Ae.Z)({className:ue()("".concat(Et,"-line"),tt),viewBox:sn,preserveAspectRatio:"none",style:Kt},fn),ae.createElement("path",{className:"".concat(Et,"-line-trail"),d:$n,strokeLinecap:ht,stroke:Xt,strokeWidth:qt||Ot,fillOpacity:"0"}),wn.map(function(Jn,Nn){var Un=1;switch(ht){case"round":Un=1-Ot/100;break;case"square":Un=1-Ot/2/100;break;default:Un=1;break}var ta={strokeDasharray:"".concat(Jn*Un,"px, 100px"),strokeDashoffset:"-".concat(zn,"px"),transition:cn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Qn=an[Nn]||an[an.length-1];return zn+=Jn,ae.createElement("path",{key:Nn,className:"".concat(Et,"-line-path"),d:$n,strokeLinecap:ht,stroke:Qn,strokeWidth:Ot,fillOpacity:"0",ref:function(ve){tn[Nn]=ve},style:ta})}))},x=y,b=ge(76190),E=ge(42978),z=ge(47273),ee=0,te=(0,z.Z)();function oe(){var Pe;return te?(Pe=ee,ee+=1):Pe="TEST_OR_SSR",Pe}var re=function(Pe){var we=ae.useState(),De=(0,E.Z)(we,2),tt=De[0],lt=De[1];return ae.useEffect(function(){lt("rc_progress_".concat(oe()))},[]),Pe||tt},ie=function(we){var De=we.bg,tt=we.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:De}},tt)};function me(Pe,we){return Object.keys(Pe).map(function(De){var tt=parseFloat(De),lt="".concat(Math.floor(tt*we),"%");return"".concat(Pe[De]," ").concat(lt)})}var le=ae.forwardRef(function(Pe,we){var De=Pe.prefixCls,tt=Pe.color,lt=Pe.gradientId,Et=Pe.radius,zt=Pe.style,ht=Pe.ptg,Ot=Pe.strokeLinecap,Kt=Pe.strokeWidth,Xt=Pe.size,qt=Pe.gapDegree,cn=tt&&(0,b.Z)(tt)==="object",fn=cn?"#FFF":void 0,wn=Xt/2,an=ae.createElement("circle",{className:"".concat(De,"-circle-path"),r:Et,cx:wn,cy:wn,stroke:fn,strokeLinecap:Ot,strokeWidth:Kt,opacity:ht===0?0:1,style:zt,ref:we});if(!cn)return an;var tn="".concat(lt,"-conic"),hn=qt?"".concat(180+qt/2,"deg"):"0deg",En=me(tt,(360-qt)/360),$n=me(tt,1),sn="conic-gradient(from ".concat(hn,", ").concat(En.join(", "),")"),zn="linear-gradient(to ".concat(qt?"bottom":"top",", ").concat($n.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:tn},an),ae.createElement("foreignObject",{x:0,y:0,width:Xt,height:Xt,mask:"url(#".concat(tn,")")},ae.createElement(ie,{bg:zn},ae.createElement(ie,{bg:sn}))))}),Ce=le,Te=100,st=function(we,De,tt,lt,Et,zt,ht,Ot,Kt,Xt){var qt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,cn=tt/100*360*((360-zt)/360),fn=zt===0?0:{bottom:0,top:180,left:90,right:-90}[ht],wn=(100-lt)/100*De;Kt==="round"&&lt!==100&&(wn+=Xt/2,wn>=De&&(wn=De-.01));var an=Te/2;return{stroke:typeof Ot=="string"?Ot:void 0,strokeDasharray:"".concat(De,"px ").concat(we),strokeDashoffset:wn+qt,transform:"rotate(".concat(Et+cn+fn,"deg)"),transformOrigin:"".concat(an,"px ").concat(an,"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}},Tt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function $t(Pe){var we=Pe!=null?Pe:[];return Array.isArray(we)?we:[we]}var Le=function(we){var De=(0,je.Z)((0,je.Z)({},Ie),we),tt=De.id,lt=De.prefixCls,Et=De.steps,zt=De.strokeWidth,ht=De.trailWidth,Ot=De.gapDegree,Kt=Ot===void 0?0:Ot,Xt=De.gapPosition,qt=De.trailColor,cn=De.strokeLinecap,fn=De.style,wn=De.className,an=De.strokeColor,tn=De.percent,hn=(0,ze.Z)(De,Tt),En=Te/2,$n=re(tt),sn="".concat($n,"-gradient"),zn=En-zt/2,Jn=Math.PI*2*zn,Nn=Kt>0?90+Kt/2:-90,Un=Jn*((360-Kt)/360),ta=(0,b.Z)(Et)==="object"?Et:{count:Et,space:2},Qn=ta.count,fe=ta.space,ve=$t(tn),Se=$t(an),qe=Se.find(function(jn){return jn&&(0,b.Z)(jn)==="object"}),Lt=qe&&(0,b.Z)(qe)==="object",St=Lt?"butt":cn,on=st(Jn,Un,0,100,Nn,Kt,Xt,qt,St,zt),jt=ne(),Jt=function(){var Ye=0;return ve.map(function(Qt,Mn){var Xn=Se[Mn]||Se[Se.length-1],xn=st(Jn,Un,Ye,Qt,Nn,Kt,Xt,Xn,St,zt);return Ye+=Qt,ae.createElement(Ce,{key:Mn,color:Xn,ptg:Qt,radius:zn,prefixCls:lt,gradientId:sn,style:xn,strokeLinecap:St,strokeWidth:zt,gapDegree:Kt,ref:function(Be){jt[Mn]=Be},size:Te})}).reverse()},pn=function(){var Ye=Math.round(Qn*(ve[0]/100)),Qt=100/Qn,Mn=0;return new Array(Qn).fill(null).map(function(Xn,xn){var se=xn<=Ye-1?Se[0]:qt,Be=se&&(0,b.Z)(se)==="object"?"url(#".concat(sn,")"):void 0,Fe=st(Jn,Un,Mn,Qt,Nn,Kt,Xt,se,"butt",zt,fe);return Mn+=(Un-Fe.strokeDashoffset+fe)*100/Un,ae.createElement("circle",{key:xn,className:"".concat(lt,"-circle-path"),r:zn,cx:En,cy:En,stroke:Be,strokeWidth:zt,opacity:1,style:Fe,ref:function(We){jt[xn]=We}})})};return ae.createElement("svg",(0,Ae.Z)({className:ue()("".concat(lt,"-circle"),wn),viewBox:"0 0 ".concat(Te," ").concat(Te),style:fn,id:tt,role:"presentation"},hn),!Qn&&ae.createElement("circle",{className:"".concat(lt,"-circle-trail"),r:zn,cx:En,cy:En,stroke:qt,strokeLinecap:St,strokeWidth:ht||zt,style:on}),Qn?pn():Jt())},Ve=Le,ot={Line:x,Circle:Ve},Qe=ge(6848),rt=ge(30071);function Mt(Pe){return!Pe||Pe<0?0:Pe>100?100:Pe}function Ht(Pe){let{success:we,successPercent:De}=Pe,tt=De;return we&&"progress"in we&&(tt=we.progress),we&&"percent"in we&&(tt=we.percent),tt}const Zt=Pe=>{let{percent:we,success:De,successPercent:tt}=Pe;const lt=Mt(Ht({success:De,successPercent:tt}));return[lt,Mt(Mt(we)-lt)]},ln=Pe=>{let{success:we={},strokeColor:De}=Pe;const{strokeColor:tt}=we;return[tt||rt.presetPrimaryColors.green,De||null]},ye=(Pe,we,De)=>{var tt,lt,Et,zt;let ht=-1,Ot=-1;if(we==="step"){const Kt=De.steps,Xt=De.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?(ht=Pe==="small"?2:14,Ot=Xt!=null?Xt:8):typeof Pe=="number"?[ht,Ot]=[Pe,Pe]:[ht=14,Ot=8]=Pe,ht*=Kt}else if(we==="line"){const Kt=De==null?void 0:De.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?Ot=Kt||(Pe==="small"?6:8):typeof Pe=="number"?[ht,Ot]=[Pe,Pe]:[ht=-1,Ot=8]=Pe}else(we==="circle"||we==="dashboard")&&(typeof Pe=="string"||typeof Pe=="undefined"?[ht,Ot]=Pe==="small"?[60,60]:[120,120]:typeof Pe=="number"?[ht,Ot]=[Pe,Pe]:(ht=(lt=(tt=Pe[0])!==null&&tt!==void 0?tt:Pe[1])!==null&&lt!==void 0?lt:120,Ot=(zt=(Et=Pe[0])!==null&&Et!==void 0?Et:Pe[1])!==null&&zt!==void 0?zt:120));return[ht,Ot]},Ee=3,Ke=Pe=>Ee/Pe*100;var et=Pe=>{const{prefixCls:we,trailColor:De=null,strokeLinecap:tt="round",gapPosition:lt,gapDegree:Et,width:zt=120,type:ht,children:Ot,success:Kt,size:Xt=zt}=Pe,[qt,cn]=ye(Xt,"circle");let{strokeWidth:fn}=Pe;fn===void 0&&(fn=Math.max(Ke(qt),6));const wn={width:qt,height:cn,fontSize:qt*.15+6},an=ae.useMemo(()=>{if(Et||Et===0)return Et;if(ht==="dashboard")return 75},[Et,ht]),tn=lt||ht==="dashboard"&&"bottom"||void 0,hn=Object.prototype.toString.call(Pe.strokeColor)==="[object Object]",En=ln({success:Kt,strokeColor:Pe.strokeColor}),$n=ue()(`${we}-inner`,{[`${we}-circle-gradient`]:hn}),sn=ae.createElement(Ve,{percent:Zt(Pe),strokeWidth:fn,trailWidth:fn,strokeColor:En,strokeLinecap:tt,trailColor:De,prefixCls:we,gapDegree:an,gapPosition:tn});return ae.createElement("div",{className:$n,style:wn},qt<=20?ae.createElement(Qe.Z,{title:Ot},ae.createElement("span",null,sn)):ae.createElement(ae.Fragment,null,sn,Ot))},mt=function(Pe,we){var De={};for(var tt in Pe)Object.prototype.hasOwnProperty.call(Pe,tt)&&we.indexOf(tt)<0&&(De[tt]=Pe[tt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols(Pe);lt<tt.length;lt++)we.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,tt[lt])&&(De[tt[lt]]=Pe[tt[lt]]);return De};const de=Pe=>{let we=[];return Object.keys(Pe).forEach(De=>{const tt=parseFloat(De.replace(/%/g,""));isNaN(tt)||we.push({key:tt,value:Pe[De]})}),we=we.sort((De,tt)=>De.key-tt.key),we.map(De=>{let{key:tt,value:lt}=De;return`${lt} ${tt}%`}).join(", ")},at=(Pe,we)=>{const{from:De=rt.presetPrimaryColors.blue,to:tt=rt.presetPrimaryColors.blue,direction:lt=we==="rtl"?"to left":"to right"}=Pe,Et=mt(Pe,["from","to","direction"]);if(Object.keys(Et).length!==0){const zt=de(Et);return{backgroundImage:`linear-gradient(${lt}, ${zt})`}}return{backgroundImage:`linear-gradient(${lt}, ${De}, ${tt})`}};var Yt=Pe=>{const{prefixCls:we,direction:De,percent:tt,size:lt,strokeWidth:Et,strokeColor:zt,strokeLinecap:ht="round",children:Ot,trailColor:Kt=null,success:Xt}=Pe,qt=zt&&typeof zt!="string"?at(zt,De):{backgroundColor:zt},cn=ht==="square"||ht==="butt"?0:void 0,fn={backgroundColor:Kt||void 0,borderRadius:cn},wn=lt!=null?lt:[-1,Et||(lt==="small"?6:8)],[an,tn]=ye(wn,"line",{strokeWidth:Et}),hn=Object.assign({width:`${Mt(tt)}%`,height:tn,borderRadius:cn},qt),En=Ht(Pe),$n={width:`${Mt(En)}%`,height:tn,borderRadius:cn,backgroundColor:Xt==null?void 0:Xt.strokeColor},sn={width:an<0?"100%":an,height:tn};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${we}-outer`,style:sn},ae.createElement("div",{className:`${we}-inner`,style:fn},ae.createElement("div",{className:`${we}-bg`,style:hn}),En!==void 0?ae.createElement("div",{className:`${we}-success-bg`,style:$n}):null)),Ot)},$e=Pe=>{const{size:we,steps:De,percent:tt=0,strokeWidth:lt=8,strokeColor:Et,trailColor:zt=null,prefixCls:ht,children:Ot}=Pe,Kt=Math.round(De*(tt/100)),Xt=we==="small"?2:14,qt=we!=null?we:[Xt,lt],[cn,fn]=ye(qt,"step",{steps:De,strokeWidth:lt}),wn=cn/De,an=new Array(De);for(let tn=0;tn<De;tn++){const hn=Array.isArray(Et)?Et[tn]:Et;an[tn]=ae.createElement("div",{key:tn,className:ue()(`${ht}-steps-item`,{[`${ht}-steps-item-active`]:tn<=Kt-1}),style:{backgroundColor:tn<=Kt-1?hn:zt,width:wn,height:fn}})}return ae.createElement("div",{className:`${ht}-steps-outer`},an,Ot)},be=ge(36237),pe=ge(17313),Re=ge(83116),He=ge(37613);const it=Pe=>{const we=Pe?"100%":"-100%";return new be.Keyframes(`antProgress${Pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${we}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${we}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},bt=Pe=>{const{componentCls:we,iconCls:De}=Pe;return{[we]:Object.assign(Object.assign({},(0,pe.Wf)(Pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Pe.fontSize,marginInlineEnd:Pe.marginXS,marginBottom:Pe.marginXS},[`${we}-outer`]:{display:"inline-block",width:"100%"},[`&${we}-show-info`]:{[`${we}-outer`]:{marginInlineEnd:`calc(-2em - ${Pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pe.paddingXS}px)`}},[`${we}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pe.remainingColor,borderRadius:Pe.lineBorderRadius},[`${we}-inner:not(${we}-circle-gradient)`]:{[`${we}-circle-path`]:{stroke:Pe.defaultColor}},[`${we}-success-bg, ${we}-bg`]:{position:"relative",backgroundColor:Pe.defaultColor,borderRadius:Pe.lineBorderRadius,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOutCirc}`},[`${we}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pe.colorSuccess},[`${we}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pe.marginXS,color:Pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[De]:{fontSize:Pe.fontSize}},[`&${we}-status-active`]:{[`${we}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Pe.colorBgContainer,borderRadius:Pe.lineBorderRadius,opacity:0,animationName:it(),animationDuration:Pe.progressActiveMotionDuration,animationTimingFunction:Pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${we}-rtl${we}-status-active`]:{[`${we}-bg::before`]:{animationName:it(!0)}},[`&${we}-status-exception`]:{[`${we}-bg`]:{backgroundColor:Pe.colorError},[`${we}-text`]:{color:Pe.colorError}},[`&${we}-status-exception ${we}-inner:not(${we}-circle-gradient)`]:{[`${we}-circle-path`]:{stroke:Pe.colorError}},[`&${we}-status-success`]:{[`${we}-bg`]:{backgroundColor:Pe.colorSuccess},[`${we}-text`]:{color:Pe.colorSuccess}},[`&${we}-status-success ${we}-inner:not(${we}-circle-gradient)`]:{[`${we}-circle-path`]:{stroke:Pe.colorSuccess}}})}},wt=Pe=>{const{componentCls:we,iconCls:De}=Pe;return{[we]:{[`${we}-circle-trail`]:{stroke:Pe.remainingColor},[`&${we}-circle ${we}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${we}-circle ${we}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Pe.circleTextColor,fontSize:Pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[De]:{fontSize:`${Pe.fontSize/Pe.fontSizeSM}em`}},[`${we}-circle&-status-exception`]:{[`${we}-text`]:{color:Pe.colorError}},[`${we}-circle&-status-success`]:{[`${we}-text`]:{color:Pe.colorSuccess}}},[`${we}-inline-circle`]:{lineHeight:1,[`${we}-inner`]:{verticalAlign:"bottom"}}}},Dt=Pe=>{const{componentCls:we}=Pe;return{[we]:{[`${we}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Pe.progressStepMinWidth,marginInlineEnd:Pe.progressStepMarginInlineEnd,backgroundColor:Pe.remainingColor,transition:`all ${Pe.motionDurationSlow}`,"&-active":{backgroundColor:Pe.defaultColor}}}}}},Rt=Pe=>{const{componentCls:we,iconCls:De}=Pe;return{[we]:{[`${we}-small&-line, ${we}-small&-line ${we}-text ${De}`]:{fontSize:Pe.fontSizeSM}}}};var ft=(0,Re.Z)("Progress",Pe=>{const we=Pe.marginXXS/2,De=(0,He.TS)(Pe,{progressStepMarginInlineEnd:we,progressStepMinWidth:we,progressActiveMotionDuration:"2.4s"});return[bt(De),wt(De),Dt(De),Rt(De)]},Pe=>({circleTextColor:Pe.colorText,defaultColor:Pe.colorInfo,remainingColor:Pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),kt=function(Pe,we){var De={};for(var tt in Pe)Object.prototype.hasOwnProperty.call(Pe,tt)&&we.indexOf(tt)<0&&(De[tt]=Pe[tt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols(Pe);lt<tt.length;lt++)we.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,tt[lt])&&(De[tt[lt]]=Pe[tt[lt]]);return De};const Sn=null,bn=["normal","exception","active","success"];var nn=ae.forwardRef((Pe,we)=>{const{prefixCls:De,className:tt,rootClassName:lt,steps:Et,strokeColor:zt,percent:ht=0,size:Ot="default",showInfo:Kt=!0,type:Xt="line",status:qt,format:cn,style:fn}=Pe,wn=kt(Pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),an=ae.useMemo(()=>{var ve,Se;const qe=Ht(Pe);return parseInt(qe!==void 0?(ve=qe!=null?qe:0)===null||ve===void 0?void 0:ve.toString():(Se=ht!=null?ht:0)===null||Se===void 0?void 0:Se.toString(),10)},[ht,Pe.success,Pe.successPercent]),tn=ae.useMemo(()=>!bn.includes(qt)&&an>=100?"success":qt||"normal",[qt,an]),{getPrefixCls:hn,direction:En,progress:$n}=ae.useContext(Me.E_),sn=hn("progress",De),[zn,Jn]=ft(sn),Nn=ae.useMemo(()=>{if(!Kt)return null;const ve=Ht(Pe);let Se;const qe=cn||(St=>`${St}%`),Lt=Xt==="line";return cn||tn!=="exception"&&tn!=="success"?Se=qe(Mt(ht),Mt(ve)):tn==="exception"?Se=Lt?ae.createElement(Xe.Z,null):ae.createElement(ce.Z,null):tn==="success"&&(Se=Lt?ae.createElement(he.Z,null):ae.createElement(Je.Z,null)),ae.createElement("span",{className:`${sn}-text`,title:typeof Se=="string"?Se:void 0},Se)},[Kt,ht,an,tn,Xt,sn,cn]),Un=Array.isArray(zt)?zt[0]:zt,ta=typeof zt=="string"||Array.isArray(zt)?zt:void 0;let Qn;Xt==="line"?Qn=Et?ae.createElement($e,Object.assign({},Pe,{strokeColor:ta,prefixCls:sn,steps:Et}),Nn):ae.createElement(Yt,Object.assign({},Pe,{strokeColor:Un,prefixCls:sn,direction:En}),Nn):(Xt==="circle"||Xt==="dashboard")&&(Qn=ae.createElement(et,Object.assign({},Pe,{strokeColor:Un,prefixCls:sn,progressStatus:tn}),Nn));const fe=ue()(sn,`${sn}-status-${tn}`,`${sn}-${Xt==="dashboard"&&"circle"||Et&&"steps"||Xt}`,{[`${sn}-inline-circle`]:Xt==="circle"&&ye(Ot,"circle")[0]<=20,[`${sn}-show-info`]:Kt,[`${sn}-${Ot}`]:typeof Ot=="string",[`${sn}-rtl`]:En==="rtl"},$n==null?void 0:$n.className,tt,lt,Jn);return zn(ae.createElement("div",Object.assign({ref:we,style:Object.assign(Object.assign({},$n==null?void 0:$n.style),fn),className:fe,role:"progressbar","aria-valuenow":an},(0,nt.Z)(wn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Qn))}),en=nn},54580:function(xe,gt,ge){"use strict";ge.d(gt,{default:function(){return xn}});var ae=ge(59301),he=ge(94480),Je=ge(92310),Xe=ge.n(Je),ce=ge(54476),Ze=ge(67732),ue=ge(83652),nt=ge(42403),Me=ge(158),Ae=ge(20068),je=ge(75931),ze=ge(75044),Ie=ge(76190),ne=ge(3202),a=ge(26112);function y(se,Be){var Fe="cannot ".concat(se.method," ").concat(se.action," ").concat(Be.status,"'"),Oe=new Error(Fe);return Oe.status=Be.status,Oe.method=se.method,Oe.url=se.action,Oe}function x(se){var Be=se.responseText||se.response;if(!Be)return Be;try{return JSON.parse(Be)}catch(Fe){return Be}}function b(se){var Be=new XMLHttpRequest;se.onProgress&&Be.upload&&(Be.upload.onprogress=function(Ue){Ue.total>0&&(Ue.percent=Ue.loaded/Ue.total*100),se.onProgress(Ue)});var Fe=new FormData;se.data&&Object.keys(se.data).forEach(function(We){var Ue=se.data[We];if(Array.isArray(Ue)){Ue.forEach(function(ke){Fe.append("".concat(We,"[]"),ke)});return}Fe.append(We,Ue)}),se.file instanceof Blob?Fe.append(se.filename,se.file,se.file.name):Fe.append(se.filename,se.file),Be.onerror=function(Ue){se.onError(Ue)},Be.onload=function(){return Be.status<200||Be.status>=300?se.onError(y(se,Be),x(Be)):se.onSuccess(x(Be),Be)},Be.open(se.method,se.action,!0),se.withCredentials&&"withCredentials"in Be&&(Be.withCredentials=!0);var Oe=se.headers||{};return Oe["X-Requested-With"]!==null&&Be.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Oe).forEach(function(We){Oe[We]!==null&&Be.setRequestHeader(We,Oe[We])}),Be.send(Fe),{abort:function(){Be.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=ge(48736),oe=function(se,Be){if(se&&Be){var Fe=Array.isArray(Be)?Be:Be.split(","),Oe=se.name||"",We=se.type||"",Ue=We.replace(/\/.*$/,"");return Fe.some(function(ke){var Ne=ke.trim();if(/^\*(\/\*)?$/.test(ke))return!0;if(Ne.charAt(0)==="."){var Bt=Oe.toLowerCase(),xt=Ne.toLowerCase(),Ct=[xt];return(xt===".jpg"||xt===".jpeg")&&(Ct=[".jpg",".jpeg"]),Ct.some(function(Ge){return Bt.endsWith(Ge)})}return/\/\*$/.test(Ne)?Ue===Ne.replace(/\/.*$/,""):We===Ne?!0:/^\w+$/.test(Ne)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ne,"'.Skip for check.")),!0):!1})}return!0};function re(se,Be){var Fe=se.createReader(),Oe=[];function We(){Fe.readEntries(function(Ue){var ke=Array.prototype.slice.apply(Ue);Oe=Oe.concat(ke);var Ne=!ke.length;Ne?Be(Oe):We()})}We()}var ie=function(Be,Fe,Oe){var We=function Ue(ke,Ne){ke&&(ke.path=Ne||"",ke.isFile?ke.file(function(Bt){Oe(Bt)&&(ke.fullPath&&!Bt.webkitRelativePath&&(Object.defineProperties(Bt,{webkitRelativePath:{writable:!0}}),Bt.webkitRelativePath=ke.fullPath.replace(/^\//,""),Object.defineProperties(Bt,{webkitRelativePath:{writable:!1}})),Fe([Bt]))}):ke.isDirectory&&re(ke,function(Bt){Bt.forEach(function(xt){Ue(xt,"".concat(Ne).concat(ke.name,"/"))})}))};Be.forEach(function(Ue){We(Ue.webkitGetAsEntry())})},me=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ce=function(se){(0,nt.Z)(Fe,se);var Be=(0,Me.Z)(Fe);function Fe(){var Oe;(0,Ze.Z)(this,Fe);for(var We=arguments.length,Ue=new Array(We),ke=0;ke<We;ke++)Ue[ke]=arguments[ke];return Oe=Be.call.apply(Be,[this].concat(Ue)),Oe.state={uid:ee()},Oe.reqs={},Oe.fileInput=void 0,Oe._isMounted=void 0,Oe.onChange=function(Ne){var Bt=Oe.props,xt=Bt.accept,Ct=Bt.directory,Ge=Ne.target.files,rn=(0,he.Z)(Ge).filter(function(Pn){return!Ct||oe(Pn,xt)});Oe.uploadFiles(rn),Oe.reset()},Oe.onClick=function(Ne){var Bt=Oe.fileInput;if(Bt){var xt=Ne.target,Ct=Oe.props.onClick;if(xt&&xt.tagName==="BUTTON"){var Ge=Bt.parentNode;Ge.focus(),xt.blur()}Bt.click(),Ct&&Ct(Ne)}},Oe.onKeyDown=function(Ne){Ne.key==="Enter"&&Oe.onClick(Ne)},Oe.onFileDrop=function(Ne){var Bt=Oe.props.multiple;if(Ne.preventDefault(),Ne.type!=="dragover")if(Oe.props.directory)me(Array.prototype.slice.call(Ne.dataTransfer.items),Oe.uploadFiles,function(Ct){return oe(Ct,Oe.props.accept)});else{var xt=(0,he.Z)(Ne.dataTransfer.files).filter(function(Ct){return oe(Ct,Oe.props.accept)});Bt===!1&&(xt=xt.slice(0,1)),Oe.uploadFiles(xt)}},Oe.uploadFiles=function(Ne){var Bt=(0,he.Z)(Ne),xt=Bt.map(function(Ct){return Ct.uid=ee(),Oe.processFile(Ct,Bt)});Promise.all(xt).then(function(Ct){var Ge=Oe.props.onBatchStart;Ge==null||Ge(Ct.map(function(rn){var Pn=rn.origin,Dn=rn.parsedFile;return{file:Pn,parsedFile:Dn}})),Ct.filter(function(rn){return rn.parsedFile!==null}).forEach(function(rn){Oe.post(rn)})})},Oe.processFile=function(){var Ne=(0,ne.Z)((0,ze.Z)().mark(function Bt(xt,Ct){var Ge,rn,Pn,Dn,_e,ct,pt,yt,_t;return(0,ze.Z)().wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:if(Ge=Oe.props.beforeUpload,rn=xt,!Ge){Nt.next=14;break}return Nt.prev=3,Nt.next=6,Ge(xt,Ct);case 6:rn=Nt.sent,Nt.next=12;break;case 9:Nt.prev=9,Nt.t0=Nt.catch(3),rn=!1;case 12:if(rn!==!1){Nt.next=14;break}return Nt.abrupt("return",{origin:xt,parsedFile:null,action:null,data:null});case 14:if(Pn=Oe.props.action,typeof Pn!="function"){Nt.next=21;break}return Nt.next=18,Pn(xt);case 18:Dn=Nt.sent,Nt.next=22;break;case 21:Dn=Pn;case 22:if(_e=Oe.props.data,typeof _e!="function"){Nt.next=29;break}return Nt.next=26,_e(xt);case 26:ct=Nt.sent,Nt.next=30;break;case 29:ct=_e;case 30:return pt=((0,Ie.Z)(rn)==="object"||typeof rn=="string")&&rn?rn:xt,pt instanceof File?yt=pt:yt=new File([pt],xt.name,{type:xt.type}),_t=yt,_t.uid=xt.uid,Nt.abrupt("return",{origin:xt,data:ct,parsedFile:_t,action:Dn});case 35:case"end":return Nt.stop()}},Bt,null,[[3,9]])}));return function(Bt,xt){return Ne.apply(this,arguments)}}(),Oe.saveFileInput=function(Ne){Oe.fileInput=Ne},Oe}return(0,ue.Z)(Fe,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(We){var Ue=this,ke=We.data,Ne=We.origin,Bt=We.action,xt=We.parsedFile;if(this._isMounted){var Ct=this.props,Ge=Ct.onStart,rn=Ct.customRequest,Pn=Ct.name,Dn=Ct.headers,_e=Ct.withCredentials,ct=Ct.method,pt=Ne.uid,yt=rn||b,_t={action:Bt,filename:Pn,data:ke,file:xt,headers:Dn,withCredentials:_e,method:ct||"post",onProgress:function(Nt){var mn=Ue.props.onProgress;mn==null||mn(Nt,xt)},onSuccess:function(Nt,mn){var un=Ue.props.onSuccess;un==null||un(Nt,xt,mn),delete Ue.reqs[pt]},onError:function(Nt,mn){var un=Ue.props.onError;un==null||un(Nt,mn,xt),delete Ue.reqs[pt]}};Ge(Ne),this.reqs[pt]=yt(_t)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(We){var Ue=this.reqs;if(We){var ke=We.uid?We.uid:We;Ue[ke]&&Ue[ke].abort&&Ue[ke].abort(),delete Ue[ke]}else Object.keys(Ue).forEach(function(Ne){Ue[Ne]&&Ue[Ne].abort&&Ue[Ne].abort(),delete Ue[Ne]})}},{key:"render",value:function(){var We=this.props,Ue=We.component,ke=We.prefixCls,Ne=We.className,Bt=We.disabled,xt=We.id,Ct=We.style,Ge=We.multiple,rn=We.accept,Pn=We.capture,Dn=We.children,_e=We.directory,ct=We.openFileDialogOnClick,pt=We.onMouseEnter,yt=We.onMouseLeave,_t=(0,je.Z)(We,le),Ut=Xe()((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},ke,!0),"".concat(ke,"-disabled"),Bt),Ne,Ne)),Nt=_e?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},mn=Bt?{}:{onClick:ct?this.onClick:function(){},onKeyDown:ct?this.onKeyDown:function(){},onMouseEnter:pt,onMouseLeave:yt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ue,(0,ce.Z)({},mn,{className:Ut,role:"button",style:Ct}),ae.createElement("input",(0,ce.Z)({},(0,a.Z)(_t,{aria:!0,data:!0}),{id:xt,disabled:Bt,type:"file",ref:this.saveFileInput,onClick:function(qn){return qn.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:rn},Nt,{multiple:Ge,onChange:this.onChange},Pn!=null?{capture:Pn}:{})),Dn)}}]),Fe}(ae.Component),Te=Ce;function st(){}var Tt=function(se){(0,nt.Z)(Fe,se);var Be=(0,Me.Z)(Fe);function Fe(){var Oe;(0,Ze.Z)(this,Fe);for(var We=arguments.length,Ue=new Array(We),ke=0;ke<We;ke++)Ue[ke]=arguments[ke];return Oe=Be.call.apply(Be,[this].concat(Ue)),Oe.uploader=void 0,Oe.saveUploader=function(Ne){Oe.uploader=Ne},Oe}return(0,ue.Z)(Fe,[{key:"abort",value:function(We){this.uploader.abort(We)}},{key:"render",value:function(){return ae.createElement(Te,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Fe}(ae.Component);Tt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:st,onError:st,onSuccess:st,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var $t=Tt,Le=$t,Ve=ge(18929),ot=ge(4676),Qe=ge(36355),rt=ge(1684),Mt=ge(9763),Ht=ge(31724),Zt={icon:function(Be,Fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Fe}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Be}}]}},name:"file",theme:"twotone"},ln=Zt,ye=ge(7657),Ee=function(Be,Fe){return ae.createElement(ye.Z,(0,ce.Z)({},Be,{ref:Fe,icon:ln}))},Ke=ae.forwardRef(Ee),Ft=Ke,et=ge(58617),mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=mt,at=function(Be,Fe){return ae.createElement(ye.Z,(0,ce.Z)({},Be,{ref:Fe,icon:de}))},Gt=ae.forwardRef(at),Yt=Gt,At={icon:function(Be,Fe){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Be}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Fe}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Fe}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Fe}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Be}}]}},name:"picture",theme:"twotone"},$e=At,be=function(Be,Fe){return ae.createElement(ye.Z,(0,ce.Z)({},Be,{ref:Fe,icon:$e}))},pe=ae.forwardRef(be),Re=pe,He=ge(77900),it=ge(56762),bt=ge(62892),wt=ge(92343),Dt=ge(3113);function Rt(se){return Object.assign(Object.assign({},se),{lastModified:se.lastModified,lastModifiedDate:se.lastModifiedDate,name:se.name,size:se.size,type:se.type,uid:se.uid,percent:0,originFileObj:se})}function ft(se,Be){const Fe=(0,he.Z)(Be),Oe=Fe.findIndex(We=>{let{uid:Ue}=We;return Ue===se.uid});return Oe===-1?Fe.push(se):Fe[Oe]=se,Fe}function kt(se,Be){const Fe=se.uid!==void 0?"uid":"name";return Be.filter(Oe=>Oe[Fe]===se[Fe])[0]}function Sn(se,Be){const Fe=se.uid!==void 0?"uid":"name",Oe=Be.filter(We=>We[Fe]!==se[Fe]);return Oe.length===Be.length?null:Oe}const bn=function(){const Be=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Oe=Be[Be.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Oe)||[""])[0]},vn=se=>se.indexOf("image/")===0,nn=se=>{if(se.type&&!se.thumbUrl)return vn(se.type);const Be=se.thumbUrl||se.url||"",Fe=bn(Be);return/^data:image\//.test(Be)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Fe)?!0:!(/^data:/.test(Be)||Fe)},en=200;function Pe(se){return new Promise(Be=>{if(!se.type||!vn(se.type)){Be("");return}const Fe=document.createElement("canvas");Fe.width=en,Fe.height=en,Fe.style.cssText=`position: fixed; left: 0; top: 0; width: ${en}px; height: ${en}px; z-index: 9999; display: none;`,document.body.appendChild(Fe);const Oe=Fe.getContext("2d"),We=new Image;if(We.onload=()=>{const{width:Ue,height:ke}=We;let Ne=en,Bt=en,xt=0,Ct=0;Ue>ke?(Bt=ke*(en/Ue),Ct=-(Bt-Ne)/2):(Ne=Ue*(en/ke),xt=-(Ne-Bt)/2),Oe.drawImage(We,xt,Ct,Ne,Bt);const Ge=Fe.toDataURL();document.body.removeChild(Fe),window.URL.revokeObjectURL(We.src),Be(Ge)},We.crossOrigin="anonymous",se.type.startsWith("image/svg+xml")){const Ue=new FileReader;Ue.onload=()=>{Ue.result&&(We.src=Ue.result)},Ue.readAsDataURL(se)}else if(se.type.startsWith("image/gif")){const Ue=new FileReader;Ue.onload=()=>{Ue.result&&Be(Ue.result)},Ue.readAsDataURL(se)}else We.src=window.URL.createObjectURL(se)})}var we=ge(26227),De=ge(41464),tt=ge(15277),lt=ge(93948),Et=ge(6848),ht=ae.forwardRef((se,Be)=>{let{prefixCls:Fe,className:Oe,style:We,locale:Ue,listType:ke,file:Ne,items:Bt,progress:xt,iconRender:Ct,actionIconRender:Ge,itemRender:rn,isImgUrl:Pn,showPreviewIcon:Dn,showRemoveIcon:_e,showDownloadIcon:ct,previewIcon:pt,removeIcon:yt,downloadIcon:_t,onPreview:Ut,onDownload:Nt,onClose:mn}=se;var un,qn;const{status:aa}=Ne,[Kn,ca]=ae.useState(aa);ae.useEffect(()=>{aa!=="removed"&&ca(aa)},[aa]);const[Pa,Sa]=ae.useState(!1);ae.useEffect(()=>{const On=setTimeout(()=>{Sa(!0)},300);return()=>{clearTimeout(On)}},[]);const ia=Ct(Ne);let Vn=ae.createElement("div",{className:`${Fe}-icon`},ia);if(ke==="picture"||ke==="picture-card"||ke==="picture-circle")if(Kn==="uploading"||!Ne.thumbUrl&&!Ne.url){const On=Xe()(`${Fe}-list-item-thumbnail`,{[`${Fe}-list-item-file`]:Kn!=="uploading"});Vn=ae.createElement("div",{className:On},ia)}else{const On=Pn!=null&&Pn(Ne)?ae.createElement("img",{src:Ne.thumbUrl||Ne.url,alt:Ne.name,className:`${Fe}-list-item-image`,crossOrigin:Ne.crossOrigin}):ia,Tn=Xe()(`${Fe}-list-item-thumbnail`,{[`${Fe}-list-item-file`]:Pn&&!Pn(Ne)});Vn=ae.createElement("a",{className:Tn,onClick:ga=>Ut(Ne,ga),href:Ne.url||Ne.thumbUrl,target:"_blank",rel:"noopener noreferrer"},On)}const Gn=Xe()(`${Fe}-list-item`,`${Fe}-list-item-${Kn}`),ma=typeof Ne.linkProps=="string"?JSON.parse(Ne.linkProps):Ne.linkProps,ea=_e?Ge((typeof yt=="function"?yt(Ne):yt)||ae.createElement(we.Z,null),()=>mn(Ne),Fe,Ue.removeFile):null,ra=ct&&Kn==="done"?Ge((typeof _t=="function"?_t(Ne):_t)||ae.createElement(De.Z,null),()=>Nt(Ne),Fe,Ue.downloadFile):null,na=ke!=="picture-card"&&ke!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Xe()(`${Fe}-list-item-actions`,{picture:ke==="picture"})},ra,ea),Wn=Xe()(`${Fe}-list-item-name`),fa=Ne.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Wn,title:Ne.name},ma,{href:Ne.url,onClick:On=>Ut(Ne,On)}),Ne.name),na]:[ae.createElement("span",{key:"view",className:Wn,onClick:On=>Ut(Ne,On),title:Ne.name},Ne.name),na],Wt={pointerEvents:"none",opacity:.5},In=Dn?ae.createElement("a",{href:Ne.url||Ne.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ne.url||Ne.thumbUrl?void 0:Wt,onClick:On=>Ut(Ne,On),title:Ue.previewFile},typeof pt=="function"?pt(Ne):pt||ae.createElement(tt.Z,null)):null,Yn=(ke==="picture-card"||ke==="picture-circle")&&Kn!=="uploading"&&ae.createElement("span",{className:`${Fe}-list-item-actions`},In,Kn==="done"&&ra,ea),{getPrefixCls:Cn}=ae.useContext(Qe.E_),da=Cn(),_n=ae.createElement("div",{className:Gn},Vn,fa,Yn,Pa&&ae.createElement(He.default,{motionName:`${da}-fade`,visible:Kn==="uploading",motionDeadline:2e3},On=>{let{className:Tn}=On;const ga="percent"in Ne?ae.createElement(lt.Z,Object.assign({},xt,{type:"line",percent:Ne.percent,"aria-label":Ne["aria-label"],"aria-labelledby":Ne["aria-labelledby"]})):null;return ae.createElement("div",{className:Xe()(`${Fe}-list-item-progress`,Tn)},ga)})),pa=Ne.response&&typeof Ne.response=="string"?Ne.response:((un=Ne.error)===null||un===void 0?void 0:un.statusText)||((qn=Ne.error)===null||qn===void 0?void 0:qn.message)||Ue.uploadError,ha=Kn==="error"?ae.createElement(Et.Z,{title:pa,getPopupContainer:On=>On.parentNode},_n):_n;return ae.createElement("div",{className:Xe()(`${Fe}-list-item-container`,Oe),style:We,ref:Be},rn?rn(ha,Ne,Bt,{download:Nt.bind(null,Ne),preview:Ut.bind(null,Ne),remove:mn.bind(null,Ne)}):ha)});const Ot=(se,Be)=>{const{listType:Fe="text",previewFile:Oe=Pe,onPreview:We,onDownload:Ue,onRemove:ke,locale:Ne,iconRender:Bt,isImageUrl:xt=nn,prefixCls:Ct,items:Ge=[],showPreviewIcon:rn=!0,showRemoveIcon:Pn=!0,showDownloadIcon:Dn=!1,removeIcon:_e,previewIcon:ct,downloadIcon:pt,progress:yt={size:[-1,2],showInfo:!1},appendAction:_t,appendActionVisible:Ut=!0,itemRender:Nt,disabled:mn}=se,un=(0,it.Z)(),[qn,aa]=ae.useState(!1);ae.useEffect(()=>{Fe!=="picture"&&Fe!=="picture-card"&&Fe!=="picture-circle"||(Ge||[]).forEach(Wt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Wt.originFileObj instanceof File||Wt.originFileObj instanceof Blob)||Wt.thumbUrl!==void 0||(Wt.thumbUrl="",Oe&&Oe(Wt.originFileObj).then(In=>{Wt.thumbUrl=In||"",un()}))})},[Fe,Ge,Oe]),ae.useEffect(()=>{aa(!0)},[]);const Kn=(Wt,In)=>{if(We)return In==null||In.preventDefault(),We(Wt)},ca=Wt=>{typeof Ue=="function"?Ue(Wt):Wt.url&&window.open(Wt.url)},Pa=Wt=>{ke==null||ke(Wt)},Sa=Wt=>{if(Bt)return Bt(Wt,Fe);const In=Wt.status==="uploading",Yn=xt&&xt(Wt)?ae.createElement(Re,null):ae.createElement(Ft,null);let Cn=In?ae.createElement(et.Z,null):ae.createElement(Yt,null);return Fe==="picture"?Cn=In?ae.createElement(et.Z,null):Yn:(Fe==="picture-card"||Fe==="picture-circle")&&(Cn=In?Ne.uploading:Yn),Cn},ia=(Wt,In,Yn,Cn)=>{const da={type:"text",size:"small",title:Cn,onClick:_n=>{In(),(0,wt.l$)(Wt)&&Wt.props.onClick&&Wt.props.onClick(_n)},className:`${Yn}-list-item-action`,disabled:mn};if((0,wt.l$)(Wt)){const _n=(0,wt.Tm)(Wt,Object.assign(Object.assign({},Wt.props),{onClick:()=>{}}));return ae.createElement(Dt.ZP,Object.assign({},da,{icon:_n}))}return ae.createElement(Dt.ZP,Object.assign({},da),ae.createElement("span",null,Wt))};ae.useImperativeHandle(Be,()=>({handlePreview:Kn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(Qe.E_),Gn=Vn("upload",Ct),ma=Vn(),ea=Xe()(`${Gn}-list`,`${Gn}-list-${Fe}`),ra=(0,he.Z)(Ge.map(Wt=>({key:Wt.uid,file:Wt})));let Wn={motionDeadline:2e3,motionName:`${Gn}-${Fe==="picture-card"||Fe==="picture-circle"?"animate-inline":"animate"}`,keys:ra,motionAppear:qn};const fa=ae.useMemo(()=>{const Wt=Object.assign({},(0,bt.Z)(ma));return delete Wt.onAppearEnd,delete Wt.onEnterEnd,delete Wt.onLeaveEnd,Wt},[ma]);return Fe!=="picture-card"&&Fe!=="picture-circle"&&(Wn=Object.assign(Object.assign({},fa),Wn)),ae.createElement("div",{className:ea},ae.createElement(He.CSSMotionList,Object.assign({},Wn,{component:!1}),Wt=>{let{key:In,file:Yn,className:Cn,style:da}=Wt;return ae.createElement(ht,{key:In,locale:Ne,prefixCls:Gn,className:Cn,style:da,file:Yn,items:Ge,progress:yt,listType:Fe,isImgUrl:xt,showPreviewIcon:rn,showRemoveIcon:Pn,showDownloadIcon:Dn,removeIcon:_e,previewIcon:ct,downloadIcon:pt,iconRender:Sa,actionIconRender:ia,itemRender:Nt,onPreview:Kn,onDownload:ca,onClose:Pa})}),_t&&ae.createElement(He.default,Object.assign({},Wn,{visible:Ut,forceRender:!0}),Wt=>{let{className:In,style:Yn}=Wt;return(0,wt.Tm)(_t,Cn=>({className:Xe()(Cn.className,In),style:Object.assign(Object.assign(Object.assign({},Yn),{pointerEvents:In?"none":void 0}),Cn.style)}))}))};var Xt=ae.forwardRef(Ot),qt=ge(17313),cn=ge(8378),fn=ge(83116),wn=ge(37613),tn=se=>{const{componentCls:Be,iconCls:Fe}=se;return{[`${Be}-wrapper`]:{[`${Be}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[Be]:{padding:`${se.padding}px 0`},[`${Be}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Be}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Be}-disabled):hover`]:{borderColor:se.colorPrimaryHover},[`p${Be}-drag-icon`]:{marginBottom:se.margin,[Fe]:{color:se.colorPrimary,fontSize:se.uploadThumbnailSize}},[`p${Be}-text`]:{margin:`0 0 ${se.marginXXS}px`,color:se.colorTextHeading,fontSize:se.fontSizeLG},[`p${Be}-hint`]:{color:se.colorTextDescription,fontSize:se.fontSize},[`&${Be}-disabled`]:{cursor:"not-allowed",[`p${Be}-drag-icon ${Fe},
p${Be}-text,
p${Be}-hint
`]:{color:se.colorTextDisabled}}}}}},En=se=>{const{componentCls:Be,antCls:Fe,iconCls:Oe,fontSize:We,lineHeight:Ue}=se,ke=`${Be}-list-item`,Ne=`${ke}-actions`,Bt=`${ke}-action`,xt=Math.round(We*Ue);return{[`${Be}-wrapper`]:{[`${Be}-list`]:Object.assign(Object.assign({},(0,qt.dF)()),{lineHeight:se.lineHeight,[ke]:{position:"relative",height:se.lineHeight*We,marginTop:se.marginXS,fontSize:We,display:"flex",alignItems:"center",transition:`background-color ${se.motionDurationSlow}`,"&:hover":{backgroundColor:se.controlItemBgHover},[`${ke}-name`]:Object.assign(Object.assign({},qt.vS),{padding:`0 ${se.paddingXS}px`,lineHeight:Ue,flex:"auto",transition:`all ${se.motionDurationSlow}`}),[Ne]:{[Bt]:{opacity:0},[`${Bt}${Fe}-btn-sm`]:{height:xt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
${Bt}:focus-visible,
&.picture ${Bt}
`]:{opacity:1},[Oe]:{color:se.actionsColor,transition:`all ${se.motionDurationSlow}`},[`&:hover ${Oe}`]:{color:se.colorText}},[`${Be}-icon ${Oe}`]:{color:se.colorTextDescription,fontSize:We},[`${ke}-progress`]:{position:"absolute",bottom:-se.uploadProgressOffset,width:"100%",paddingInlineStart:We+se.paddingXS,fontSize:We,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ke}:hover ${Bt}`]:{opacity:1,color:se.colorText},[`${ke}-error`]:{color:se.colorError,[`${ke}-name, ${Be}-icon ${Oe}`]:{color:se.colorError},[Ne]:{[`${Oe}, ${Oe}:hover`]:{color:se.colorError},[Bt]:{opacity:1}}},[`${Be}-list-item-container`]:{transition:`opacity ${se.motionDurationSlow}, height ${se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},$n=ge(36237),sn=ge(1950);const zn=new $n.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Jn=new $n.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Un=se=>{const{componentCls:Be}=se,Fe=`${Be}-animate-inline`;return[{[`${Be}-wrapper`]:{[`${Fe}-appear, ${Fe}-enter, ${Fe}-leave`]:{animationDuration:se.motionDurationSlow,animationTimingFunction:se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Fe}-appear, ${Fe}-enter`]:{animationName:zn},[`${Fe}-leave`]:{animationName:Jn}}},{[`${Be}-wrapper`]:(0,sn.J$)(se)},zn,Jn]},ta=ge(30071),Qn=ge(64993);const fe=se=>{const{componentCls:Be,iconCls:Fe,uploadThumbnailSize:Oe,uploadProgressOffset:We}=se,Ue=`${Be}-list`,ke=`${Ue}-item`;return{[`${Be}-wrapper`]:{[`
${Ue}${Ue}-picture,
${Ue}${Ue}-picture-card,
${Ue}${Ue}-picture-circle
`]:{[ke]:{position:"relative",height:Oe+se.lineWidth*2+se.paddingXS*2,padding:se.paddingXS,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusLG,"&:hover":{background:"transparent"},[`${ke}-thumbnail`]:Object.assign(Object.assign({},qt.vS),{width:Oe,height:Oe,lineHeight:`${Oe+se.paddingSM}px`,textAlign:"center",flex:"none",[Fe]:{fontSize:se.fontSizeHeading2,color:se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ke}-progress`]:{bottom:We,width:`calc(100% - ${se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Oe+se.paddingXS}},[`${ke}-error`]:{borderColor:se.colorError,[`${ke}-thumbnail ${Fe}`]:{[`svg path[fill='${ta.blue[0]}']`]:{fill:se.colorErrorBg},[`svg path[fill='${ta.blue.primary}']`]:{fill:se.colorError}}},[`${ke}-uploading`]:{borderStyle:"dashed",[`${ke}-name`]:{marginBottom:We}}},[`${Ue}${Ue}-picture-circle ${ke}`]:{[`&, &::before, ${ke}-thumbnail`]:{borderRadius:"50%"}}}}},ve=se=>{const{componentCls:Be,iconCls:Fe,fontSizeLG:Oe,colorTextLightSolid:We}=se,Ue=`${Be}-list`,ke=`${Ue}-item`,Ne=se.uploadPicCardSize;return{[`
${Be}-wrapper${Be}-picture-card-wrapper,
${Be}-wrapper${Be}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,qt.dF)()),{display:"inline-block",width:"100%",[`${Be}${Be}-select`]:{width:Ne,height:Ne,marginInlineEnd:se.marginXS,marginBottom:se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[`> ${Be}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Be}-disabled):hover`]:{borderColor:se.colorPrimary}},[`${Ue}${Ue}-picture-card, ${Ue}${Ue}-picture-circle`]:{[`${Ue}-item-container`]:{display:"inline-block",width:Ne,height:Ne,marginBlock:`0 ${se.marginXS}px`,marginInline:`0 ${se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[ke]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${se.paddingXS*2}px)`,height:`calc(100% - ${se.paddingXS*2}px)`,backgroundColor:se.colorBgMask,opacity:0,transition:`all ${se.motionDurationSlow}`,content:'" "'}},[`${ke}:hover`]:{[`&::before, ${ke}-actions`]:{opacity:1}},[`${ke}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${se.motionDurationSlow}`,[`${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{zIndex:10,width:Oe,margin:`0 ${se.marginXXS}px`,fontSize:Oe,cursor:"pointer",transition:`all ${se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ke}-actions, ${ke}-actions:hover`]:{[`${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{color:new Qn.C(We).setAlpha(.65).toRgbString(),"&:hover":{color:We}}},[`${ke}-thumbnail, ${ke}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ke}-name`]:{display:"none",textAlign:"center"},[`${ke}-file + ${ke}-name`]:{position:"absolute",bottom:se.margin,display:"block",width:`calc(100% - ${se.paddingXS*2}px)`},[`${ke}-uploading`]:{[`&${ke}`]:{backgroundColor:se.colorFillAlter},[`&::before, ${Fe}-eye, ${Fe}-download, ${Fe}-delete`]:{display:"none"}},[`${ke}-progress`]:{bottom:se.marginXL,width:`calc(100% - ${se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Be}-wrapper${Be}-picture-circle-wrapper`]:{[`${Be}${Be}-select`]:{borderRadius:"50%"}}}};var qe=se=>{const{componentCls:Be}=se;return{[`${Be}-rtl`]:{direction:"rtl"}}};const Lt=se=>{const{componentCls:Be,colorTextDisabled:Fe}=se;return{[`${Be}-wrapper`]:Object.assign(Object.assign({},(0,qt.Wf)(se)),{[Be]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Be}-select`]:{display:"inline-block"},[`${Be}-disabled`]:{color:Fe,cursor:"not-allowed"}})}};var St=(0,fn.Z)("Upload",se=>{const{fontSizeHeading3:Be,fontSize:Fe,lineHeight:Oe,lineWidth:We,controlHeightLG:Ue}=se,ke=Math.round(Fe*Oe),Ne=(0,wn.TS)(se,{uploadThumbnailSize:Be*2,uploadProgressOffset:ke/2+We,uploadPicCardSize:Ue*2.55});return[Lt(Ne),tn(Ne),fe(Ne),ve(Ne),En(Ne),Un(Ne),qe(Ne),(0,cn.Z)(Ne)]},se=>({actionsColor:se.colorTextDescription})),on=function(se,Be,Fe,Oe){function We(Ue){return Ue instanceof Fe?Ue:new Fe(function(ke){ke(Ue)})}return new(Fe||(Fe=Promise))(function(Ue,ke){function Ne(Ct){try{xt(Oe.next(Ct))}catch(Ge){ke(Ge)}}function Bt(Ct){try{xt(Oe.throw(Ct))}catch(Ge){ke(Ge)}}function xt(Ct){Ct.done?Ue(Ct.value):We(Ct.value).then(Ne,Bt)}xt((Oe=Oe.apply(se,Be||[])).next())})};const jt=`__LIST_IGNORE_${Date.now()}__`,Jt=(se,Be)=>{const{fileList:Fe,defaultFileList:Oe,onRemove:We,showUploadList:Ue=!0,listType:ke="text",onPreview:Ne,onDownload:Bt,onChange:xt,onDrop:Ct,previewFile:Ge,disabled:rn,locale:Pn,iconRender:Dn,isImageUrl:_e,progress:ct,prefixCls:pt,className:yt,type:_t="select",children:Ut,style:Nt,itemRender:mn,maxCount:un,data:qn={},multiple:aa=!1,action:Kn="",accept:ca="",supportServerRender:Pa=!0,rootClassName:Sa}=se,ia=ae.useContext(rt.Z),Vn=rn!=null?rn:ia,[Gn,ma]=(0,Ve.Z)(Oe||[],{value:Fe,postState:It=>It!=null?It:[]}),[ea,ra]=ae.useState("drop"),na=ae.useRef(null);ae.useMemo(()=>{const It=Date.now();(Fe||[]).forEach((gn,Ln)=>{!gn.uid&&!Object.isFrozen(gn)&&(gn.uid=`__AUTO__${It}_${Ln}__`)})},[Fe]);const Wn=(It,gn,Ln)=>{let Vt=(0,he.Z)(gn),yn=!1;un===1?Vt=Vt.slice(-1):un&&(yn=Vt.length>un,Vt=Vt.slice(0,un)),(0,ot.flushSync)(()=>{ma(Vt)});const An={file:It,fileList:Vt};Ln&&(An.event=Ln),(!yn||Vt.some(la=>la.uid===It.uid))&&(0,ot.flushSync)(()=>{xt==null||xt(An)})},fa=(It,gn)=>on(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:Vt}=se;let yn=It;if(Ln){const An=yield Ln(It,gn);if(An===!1)return!1;if(delete It[jt],An===jt)return Object.defineProperty(It,jt,{value:!0,configurable:!0}),!1;typeof An=="object"&&An&&(yn=An)}return Vt&&(yn=yield Vt(yn)),yn}),Wt=It=>{const gn=It.filter(yn=>!yn.file[jt]);if(!gn.length)return;const Ln=gn.map(yn=>Rt(yn.file));let Vt=(0,he.Z)(Gn);Ln.forEach(yn=>{Vt=ft(yn,Vt)}),Ln.forEach((yn,An)=>{let la=yn;if(gn[An].parsedFile)yn.status="uploading";else{const{originFileObj:Bn}=yn;let ua;try{ua=new File([Bn],Bn.name,{type:Bn.type})}catch(Fa){ua=new Blob([Bn],{type:Bn.type}),ua.name=Bn.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=yn.uid,la=ua}Wn(la,Vt)})},In=(It,gn,Ln)=>{try{typeof It=="string"&&(It=JSON.parse(It))}catch(An){}if(!kt(gn,Gn))return;const Vt=Rt(gn);Vt.status="done",Vt.percent=100,Vt.response=It,Vt.xhr=Ln;const yn=ft(Vt,Gn);Wn(Vt,yn)},Yn=(It,gn)=>{if(!kt(gn,Gn))return;const Ln=Rt(gn);Ln.status="uploading",Ln.percent=It.percent;const Vt=ft(Ln,Gn);Wn(Ln,Vt,It)},Cn=(It,gn,Ln)=>{if(!kt(Ln,Gn))return;const Vt=Rt(Ln);Vt.error=It,Vt.response=gn,Vt.status="error";const yn=ft(Vt,Gn);Wn(Vt,yn)},da=It=>{let gn;Promise.resolve(typeof We=="function"?We(It):We).then(Ln=>{var Vt;if(Ln===!1)return;const yn=Sn(It,Gn);yn&&(gn=Object.assign(Object.assign({},It),{status:"removed"}),Gn==null||Gn.forEach(An=>{const la=gn.uid!==void 0?"uid":"name";An[la]===gn[la]&&!Object.isFrozen(An)&&(An.status="removed")}),(Vt=na.current)===null||Vt===void 0||Vt.abort(gn),Wn(gn,yn))})},_n=It=>{ra(It.type),It.type==="drop"&&(Ct==null||Ct(It))};ae.useImperativeHandle(Be,()=>({onBatchStart:Wt,onSuccess:In,onProgress:Yn,onError:Cn,fileList:Gn,upload:na.current}));const{getPrefixCls:pa,direction:ha,upload:On}=ae.useContext(Qe.E_),Tn=pa("upload",pt),ga=Object.assign(Object.assign({onBatchStart:Wt,onError:Cn,onProgress:Yn,onSuccess:In},se),{data:qn,multiple:aa,action:Kn,accept:ca,supportServerRender:Pa,prefixCls:Tn,disabled:Vn,beforeUpload:fa,onChange:void 0});delete ga.className,delete ga.style,(!Ut||Vn)&&delete ga.id;const[va,La]=St(Tn),[ya]=(0,Mt.Z)("Upload",Ht.Z.Upload),{showRemoveIcon:ba,showPreviewIcon:vt,showDownloadIcon:dt,removeIcon:ut,previewIcon:Pt,downloadIcon:dn}=typeof Ue=="boolean"?{}:Ue,Fn=(It,gn)=>Ue?ae.createElement(Xt,{prefixCls:Tn,listType:ke,items:Gn,previewFile:Ge,onPreview:Ne,onDownload:Bt,onRemove:da,showRemoveIcon:!Vn&&ba,showPreviewIcon:vt,showDownloadIcon:dt,removeIcon:ut,previewIcon:Pt,downloadIcon:dn,iconRender:Dn,locale:Object.assign(Object.assign({},ya),Pn),isImageUrl:_e,progress:ct,appendAction:It,appendActionVisible:gn,itemRender:mn,disabled:Vn}):It,kn=Xe()(`${Tn}-wrapper`,yt,Sa,La,On==null?void 0:On.className,{[`${Tn}-rtl`]:ha==="rtl",[`${Tn}-picture-card-wrapper`]:ke==="picture-card",[`${Tn}-picture-circle-wrapper`]:ke==="picture-circle"}),Rn=Object.assign(Object.assign({},On==null?void 0:On.style),Nt);if(_t==="drag"){const It=Xe()(La,Tn,`${Tn}-drag`,{[`${Tn}-drag-uploading`]:Gn.some(gn=>gn.status==="uploading"),[`${Tn}-drag-hover`]:ea==="dragover",[`${Tn}-disabled`]:Vn,[`${Tn}-rtl`]:ha==="rtl"});return va(ae.createElement("span",{className:kn},ae.createElement("div",{className:It,style:Rn,onDrop:_n,onDragOver:_n,onDragLeave:_n},ae.createElement(Le,Object.assign({},ga,{ref:na,className:`${Tn}-btn`}),ae.createElement("div",{className:`${Tn}-drag-container`},Ut))),Fn()))}const Hn=Xe()(Tn,`${Tn}-select`,{[`${Tn}-disabled`]:Vn}),oa=(It=>ae.createElement("div",{className:Hn,style:It},ae.createElement(Le,Object.assign({},ga,{ref:na}))))(Ut?void 0:{display:"none"});return va(ke==="picture-card"||ke==="picture-circle"?ae.createElement("span",{className:kn},Fn(oa,!!Ut)):ae.createElement("span",{className:kn},oa,Fn()))};var jn=ae.forwardRef(Jt),Ye=function(se,Be){var Fe={};for(var Oe in se)Object.prototype.hasOwnProperty.call(se,Oe)&&Be.indexOf(Oe)<0&&(Fe[Oe]=se[Oe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Oe=Object.getOwnPropertySymbols(se);We<Oe.length;We++)Be.indexOf(Oe[We])<0&&Object.prototype.propertyIsEnumerable.call(se,Oe[We])&&(Fe[Oe[We]]=se[Oe[We]]);return Fe},Mn=ae.forwardRef((se,Be)=>{var{style:Fe,height:Oe}=se,We=Ye(se,["style","height"]);return ae.createElement(jn,Object.assign({ref:Be},We,{type:"drag",style:Object.assign(Object.assign({},Fe),{height:Oe})}))});const Xn=jn;Xn.Dragger=Mn,Xn.LIST_IGNORE=jt;var xn=Xn}}]);