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.
167 lines
407 KiB
167 lines
407 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[8517],{84249:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return le}});var ne=re(87462),Pe=re(67294),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Me=Ke,ce=re(74643),we=function(ze,Ie){return Pe.createElement(ce.Z,(0,ne.Z)({},ze,{ref:Ie,icon:Me}))},le=Pe.forwardRef(we)},90674:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return le}});var ne=re(87462),Pe=re(67294),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Me=Ke,ce=re(74643),we=function(ze,Ie){return Pe.createElement(ce.Z,(0,ne.Z)({},ze,{ref:Ie,icon:Me}))},le=Pe.forwardRef(we)},22751:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return le}});var ne=re(87462),Pe=re(67294),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Me=Ke,ce=re(74643),we=function(ze,Ie){return Pe.createElement(ce.Z,(0,ne.Z)({},ze,{ref:Ie,icon:Me}))},le=Pe.forwardRef(we)},91034:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return le}});var ne=re(87462),Pe=re(67294),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Me=Ke,ce=re(74643),we=function(ze,Ie){return Pe.createElement(ce.Z,(0,ne.Z)({},ze,{ref:Ie,icon:Me}))},le=Pe.forwardRef(we)},71736:function(Ne,st){"use strict";st.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Ne(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ne.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Ne.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Ne.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Ne.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Ne))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var st=[];function re(ae,a){var y=st.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=st.pop();return ae===void 0?new go.Point:ae}function Pe(ae){st.push(ae)}function Ke(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ae-y,ge=b-z,ie=NaN,me=NaN;if(oe===0)if(ge===0)ae===y&&(ie=ae,me=a);else{var se=(x-ee)/ge,Ge=x-se*b;ie=ae,me=se*ie+Ge}else if(ge===0){var xe=(a-E)/oe,rt=a-xe*ae;ie=b,me=xe*ie+rt}else{var xe=(a-E)/oe,se=(x-ee)/ge,rt=a-xe*ae,Ge=x-se*b;ie=(Ge-rt)/(xe-se),me=xe*ie+rt}return te.x=ie,te.y=me,te}function Me(ae,a,y,E,b,x,z,ee,te,oe,ge,ie,me,se){var Ge=1-te,xe=te,rt=ae*Ge+y*xe,St=a*Ge+E*xe,Wt=y*Ge+b*xe,Ee=E*Ge+x*xe,tt=b*Ge+z*xe,Ue=x*Ge+ee*xe,Qe=rt*Ge+Wt*xe,ot=St*Ge+Ee*xe,vt=Wt*Ge+tt*xe,kt=Ee*Ge+Ue*xe,nn=Qe*Ge+vt*xe,Jt=ot*Ge+kt*xe;oe.x=rt,oe.y=St,ge.x=Qe,ge.y=ot,ie.x=nn,ie.y=Jt,me.x=vt,me.y=kt,se.x=tt,se.y=Ue}var ce=new go.Spot(.156,.156),we=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ne("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ce,b.spot2=we,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ne("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ne("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ne("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ne("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Ne("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var Ye=[];function ze(){var ae=Ye.pop();return ae===void 0?[]:ae}function Ie(ae){ae.length=0,Ye.push(ae)}function We(ae){for(var a=ze(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function De(ae){var a=Te(ae),y=ze();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return Ie(a),y}function Te(ae){for(var a=We(ae),y=ze(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%b],ge=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ke(ee.x,ee.y,oe.x,oe.y,te.x,te.y,ge.x,ge.y,new go.Point)}return y[y.length]=y[0],Ie(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=We(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=We(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=We(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=We(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=We(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=We(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=We(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=Te(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=Te(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=Te(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=Te(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=Te(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=Te(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Ie(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=De(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ie(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=De(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ie(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=De(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ie(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=De(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ie(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=De(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ie(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=De(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Ie(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ne("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ne("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Ne("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ce,x.spot2=we,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Ne("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ne("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ne("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ne("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ne("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ge=new go.PathFigure(te,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,a,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ge.add(new go.PathSegment(go.PathSegment.Line,te,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ne("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ne("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ne("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var oe=ne(),ge=ne(),ie=ne(),me=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ge,ie,me,me);var se=ne(),Ge=ne(),xe=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,xe,se,Ge);var rt=ne(),St=ne(),Wt=ne();Me(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,rt,St,Wt,me,me);var Ee=ne(),tt=ne(),Ue=ne();return Me(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,Ue,Ee,tt),te.add(new go.PathSegment(go.PathSegment.Move,Ue.x*a,Ue.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Ee.x*a,Ee.y*y,tt.x*a,tt.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,ge.x*a,ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ue.x*a,Ue.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Wt.x*a,Wt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,Ge.x*a,Ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Wt.x*a,Wt.y*y,rt.x*a,rt.y*y,St.x*a,St.y*y).close()),Pe(oe),Pe(ge),Pe(ie),Pe(me),Pe(se),Pe(Ge),Pe(xe),Pe(rt),Pe(St),Pe(Wt),Pe(Ee),Pe(tt),Pe(Ue),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ne("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),oe=ne(),ge=ne(),ie=ne(),me=new go.PathFigure((z-x)*a,ee*y,!1);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ge,ie,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y));var se=re(oe.x,oe.y);Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,ge,ie);var Ge=re(oe.x,oe.y);me.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.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,(Ge.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ge.x*.1+.9)*a,(Ge.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var xe=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),xe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var rt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(rt),Pe(te),Pe(oe),Pe(ge),Pe(ie),Pe(se),Pe(Ge),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ne("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ne("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ge.x,ge.y),Pe(ge),te}),go.Shape.setFigureParameter("Arrow2",0,new Ne("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ne("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ge=Ke(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ge.x,ge.y),Pe(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ne("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Ke(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=Ke(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ne("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ne("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Ke(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),Pe(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Ne("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ne("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ne("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,ge=new go.PathFigure(a,.5*y,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,x/y);var ie=Ke(.7,te/y,1,.5,0,z/y,1,z/y,ne());return oe.spot2=new go.Spot(ie.x,ie.y),Pe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Ne("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=Ke(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ne("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=Ke(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ne("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ne("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Ke(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ne("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,oe=.1,ge=new go.PathFigure(te*a,(oe+x)*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+x)*y,(te-b)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-x)*y,(te+b)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+x)*y));var ie=.05,me=le*ie;te=.05,oe=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+me)*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,me=le*ie,te=.825,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y,(te+me)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-me)*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,me=le*ie,te=.5,oe=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y,(te+me)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-me)*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,me=le*ie,te=.175,oe=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y,(te+me)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-me)*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,me=le*ie,te=.05,oe=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y,(te-me)*a,(oe-ie)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Ne("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,oe=.5,ge=new go.PathFigure(.8*a,.5*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,y)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,oe=.5,ge=(b-a)/2,ie=(x-y)/2,me=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=le*.4,ee=.4,te=.2,oe=.5;var se=new go.PathFigure(te*a+ge,(oe+ee)*y+ie,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ge,oe*y+ie,te*a+ge,(oe-ee)*y+ie,(te-ee+z*.5)*a+ge,(oe-z)*y+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te-ee+z*.5)*a+ge,(oe+z)*y+ie,te*a+ge,(oe+ee)*y+ie).close()),z=le*.2,ee=.2,te=.5,oe=.5;var Ge=new go.PathFigure((te-ee)*a+ge,oe*y+ie,!0);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te-ee)*a+ge,(oe-z)*y+ie,(te-z)*a+ge,(oe-ee)*y+ie)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ge,oe*y+ie,(te-z)*a+ge,(oe+ee)*y+ie,(te-ee)*a+ge,(oe+z)*y+ie)),z=le*.4,ee=.4,te=.8,oe=.5;var xe=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),xe.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),z=le*.8,ee=.8,te=1,oe=.5;var rt=new go.PathFigure(te*a+ge,(oe-ee)*y+ie,!0);return E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ge,oe*y+ie,(te+z)*a+ge,(oe-ee)*y+ie,(te+ee)*a+ge,(oe-z)*y+ie)),rt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe+ee)*y+ie,(te+ee)*a+ge,(oe+z)*y+ie,(te+z)*a+ge,(oe+ee)*y+ie)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ge,oe*y+ie,te*a+ge,(oe+ee)*y+ie,(te+ee-z*.5)*a+ge,(oe+z)*y+ie)),rt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ge,(oe-ee)*y+ie,(te+ee-z*.5)*a+ge,(oe-z)*y+ie,te*a+ge,(oe-ee)*y+ie).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),oe=ne(),ge=ne(),ie=ne();Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,ie);var me=re(oe.x,oe.y),se=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Me(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),b=le*.3,x=.3,Me(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ge,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Me(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ge,ie),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Pe(te),Pe(oe),Pe(ge),Pe(ie),Pe(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ge=1,ie=.5,me=.5,se=0,Ge=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,ie*y,ge*a,.7*y,ge*a,ie*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Ge.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Ge.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Ge.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=ge*.5,me=z,se=z,Ge=ge*me,xe=ge*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Ge+me)/2)*a,(te+(se+xe)/2)*y,(ee-me)*a,(te+xe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-me)*a,(te-xe)*y,(ee-Ge)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Ge)*a,(te-se)*y,(ee+me)*a,(te-xe)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+xe)*y,(ee+(Ge+me)/2)*a,(te+(se+xe)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var rt=new go.PathFigure(.2*a,y,!1);E.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var St=new go.PathFigure(.8*a,y,!1);return E.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,oe=.9,ge=new go.PathFigure((te-z)*a,oe*y,!0);E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=le*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=le*.1,ge=.1,ie=.9,me=new go.PathFigure((ge-te)*a,ie*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),te=.1,oe=le*.1,ge=.4,ie=.9;var se=new go.PathFigure((ge-te)*a,ie*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie-te)*y,(ge-te)*a,(ie-oe)*y,(ge-oe)*a,(ie-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*a,ie*y,(ge+oe)*a,(ie-te)*y,(ge+te)*a,(ie-oe)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*a,(ie+te)*y,(ge+te)*a,(ie+oe)*y,(ge+oe)*a,(ie+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*a,ie*y,(ge-oe)*a,(ie+te)*y,(ge-te)*a,(ie+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ge=.05,ie=le*.05,me=.175,se=.95,ee=new go.PathFigure((me-ge)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-ie)*y,(me-ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+ie)*a,(se-ge)*y,(me+ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+ie)*y,(me+ie)*a,(se+ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-ie)*a,(se+ge)*y,(me-ge)*a,(se+ie)*y));var ge=.05,ie=le*.05,me=.375,se=.95,te=new go.PathFigure((me-ge)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-ie)*y,(me-ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+ie)*a,(se-ge)*y,(me+ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+ie)*y,(me+ie)*a,(se+ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-ie)*a,(se+ge)*y,(me-ge)*a,(se+ie)*y));var ge=.05,ie=le*.05,me=.625,se=.95,oe=new go.PathFigure((me-ge)*a,se*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-ie)*y,(me-ie)*a,(se-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+ie)*a,(se-ge)*y,(me+ge)*a,(se-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+ie)*y,(me+ie)*a,(se+ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-ie)*a,(se+ge)*y,(me-ge)*a,(se+ie)*y));var ge=.05,ie=le*.05,me=.825,se=.95,Ge=new go.PathFigure((me-ge)*a,se*y,!0);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ge)*y,(me-ge)*a,(se-ie)*y,(me-ie)*a,(se-ge)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*a,se*y,(me+ie)*a,(se-ge)*y,(me+ge)*a,(se-ie)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ge)*y,(me+ge)*a,(se+ie)*y,(me+ie)*a,(se+ge)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*a,se*y,(me-ie)*a,(se+ge)*y,(me-ge)*a,(se+ie)*y).close());var xe=new go.PathFigure(0,y,!1);return E.add(xe),xe.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,oe=.35,ge=.775,ie=new go.PathFigure((oe-ee)*a,ge*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge-ee)*y,(oe-ee)*a,(ge-te)*y,(oe-te)*a,(ge-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ge*y,(oe+te)*a,(ge-ee)*y,(oe+ee)*a,(ge-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ge+ee)*y,(oe+ee)*a,(ge+te)*y,(oe+te)*a,(ge+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ge*y,(oe-te)*a,(ge+ee)*y,(oe-ee)*a,(ge+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ne={},st="5.0",re={},ne=null,Pe=!1,Ke=!1,Me=null,ce=!1,we=null,le=null,Ye=0;Ye<arguments.length;Ye++){var ze=arguments[Ye];if(ze!==null)switch(typeof ze){case"number":st=ze.toFixed(1);break;case"string":ze.match(new RegExp("^[0-9]\\.[0-9]+$"))?st=ze:Me=ze;break;case"object":typeof ze.is3D!="undefined"?ne=ze:re=ze;break;case"boolean":Pe=ze,Ke=!0;break}}ne===null&&(ne={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!Ke&&(Pe=!0)),Me!==null&&re.id===void 0&&(re.id=Me);var Ie="",We="",De=!1,Te=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var te=function(Le){return parseFloat(Le)>4?parseFloat(Le):5};Ne.setHTML5Codebase=function(Le,Ae){le=Le,kt(Le,Ae)},Ne.setJavaCodebase=Ne.setJavaCodebaseVersion=Ne.isCompiledInstalled=Ne.setPreCompiledScriptPath=Ne.setPreCompiledResourcePath=function(){},Ne.setHTML5CodebaseVersion=function(Le,Ae){var Je=parseFloat(Le);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}we=Le,vt(Le,Ae)},Ne.getHTML5CodebaseVersion=function(){return ae},Ne.getParameters=function(){return re},Ne.setFontsCSSURL=function(Le){z=Le},Ne.setGiacJSURL=function(Le){},Ne.setJNLPFile=function(Le){Ie=Le},Ne.setJNLPBaseDir=function(Le){},Ne.inject=function(){function Le(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ae="auto",Je=re.id,$t,nt=!1,ft=0;ft<arguments.length;ft++){var de=arguments[ft];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ae=de:Je=arguments[ft]):typeof de=="boolean"?nt=de:de instanceof HTMLElement&&($t=de)}dt();function dt(){if(!ce){setTimeout(dt,200);return}Ae=Qe(Ae);var wt=$t||document.getElementById(Je);if(!wt){console.log("possibly bug on ajax loading? ");return}if(Ne.removeExistingApplet(wt,!1),re.width===void 0&&wt.clientWidth&&(re.width=wt.clientWidth),re.height===void 0&&wt.clientHeight&&(re.height=wt.clientHeight),!(re.width&&re.height)&&Ae==="html5"&&(delete re.width,delete re.height),Te=Ae,Ae==="screenshot")St(wt,re);else{var jt=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?jt=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(jt=(!oe()||Le())&&ge()),jt?(Te="screenshot",Ee(wt,re,nt,Ae)):rt(wt,re,nt)}}};function oe(){try{return window.self!==window.top}catch(Le){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ne.getViews=function(){return ne},Ne.isJavaInstalled=function(){return!1};var ie=function(Le){var Ae=function(ft){var de=JSON.parse(ft),dt=function(Pt){return Pt.type=="G"||Pt.type=="E"},wt=de.elements?de.elements.filter(dt)[0]:de;if(!wt||!wt.url){Je();return}re.fileName=wt.url,me(wt.settings||{}),ne.is3D=!0;var jt="https://www.geogebra.org/images/";Ne.setPreviewImage(E||wt.previewUrl,jt+"GeoGebra_loading.png",jt+"applet_play.png"),Le()},Je=function(){re.onError&&re.onError(),nn("Error: Fetching material (id "+re.material_id+") failed.",re)},$t=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",nt="/materials/"+re.material_id+"?scope=basic";se("https://"+$t+"/api/proxy.php?path="+encodeURIComponent(nt),Ae,Je)};function me(Le){var Ae=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Je){Le[Je]=!!Le[Je]}),Ae.forEach(function(Je){re[Je]===void 0&&Le[Je]!==void 0&&(re[Je]=Le[Je])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function se(Le,Ae,Je){var $t=new XMLHttpRequest;$t.open("GET",Le),$t.onload=function(){Ae($t.responseText)},$t.onerror=Je,$t.send()}Ne.isHTML5Installed=function(){return!0},Ne.getLoadedAppletType=function(){return Te},Ne.setPreviewImage=function(Le,Ae,Je){E=Le,b=Ae,x=Je},Ne.removeExistingApplet=function(Le,Ae){var Je;typeof Le=="string"&&(Le=document.getElementById(Le)),Te=null;var $t=null;for(Je=0;Je<Le.childNodes.length;Je++){var nt=Le.childNodes[Je],ft=nt.className;ft==="applet_screenshot"?Ae?(nt.style.display="block",Te="screenshot"):nt.style.display="none":ft!=="applet_scaler prerender"&&(Le.removeChild(nt),$t=ft&&ft.indexOf("appletParameters")!=-1?nt.id:null,Je--)}var de=re.id!==void 0?re.id:$t,dt=window[de];dt&&typeof dt.getBase64=="function"&&(dt.remove(),window[de]=null)},Ne.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Le=Ne.getAppletObject();return Le&&typeof Le.recalculateEnvironments=="function"?(Le.recalculateEnvironments(),!0):!1},Ne.startAnimation=function(){var Le=Ne.getAppletObject();return Le&&typeof Le.startAnimation=="function"?(Le.startAnimation(),!0):!1},Ne.stopAnimation=function(){var Le=Ne.getAppletObject();return Le&&typeof Le.stopAnimation=="function"?(Le.stopAnimation(),!0):!1},Ne.getAppletObject=function(){var Le=re.id!==void 0?re.id:"ggbApplet";return window[Le]},Ne.resize=function(){};var Ge=function(Le,Ae,Je){var $t=document.createElement("param");$t.setAttribute("name",Ae),$t.setAttribute("value",Je),Le.appendChild($t)},xe=function(Le){return Le&&Le!=="false"},rt=function(Le,Ae,Je){te(ae)<=4.2&&(Je=!0);var $t=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&($t=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var nt=document.createElement("div");nt.classList.add("appletParameters","notranslate");var ft=Ae.width,de=Ae.height;if(Ae.disableAutoScale=Ae.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ae.disableAutoScale,Ae.width!==void 0)if(te(ae)<=4.4)xe(Ae.showToolBar)&&(Ae.height-=7),xe(Ae.showAlgebraInput)&&(Ae.height-=37),Ae.width<605&&xe(Ae.showToolBar)&&(Ae.width=605,ft=605);else{var dt=100;(xe(Ae.showToolBar)||xe(Ae.showMenuBar))&&(Ae.hasOwnProperty("customToolBar")&&(Ae.customToolbar=Ae.customToolBar),dt=xe(Ae.showMenuBar)?245:155),ft<dt&&(Ae.width=dt,ft=dt)}nt.style.border="none",nt.style.display="inline-block";for(var wt in Ae)Ae.hasOwnProperty(wt)&&wt!=="appletOnLoad"&&nt.setAttribute("data-param-"+wt,Ae[wt]);z&&nt.setAttribute("data-param-fontscssurl",z),Ne.resize=function(){GGBAppletUtils.responsiveResize(Le,Ae)},window.addEventListener("resize",function(At){Ne.resize()});var jt=typeof Ae.appletOnLoad=="function"?Ae.appletOnLoad:function(){};if(!Je&&Ae.width!==void 0){Ae.hasOwnProperty("showSplash")||nt.setAttribute("data-param-showSplash","false");var Pt=Le.querySelector(".applet_scaler.prerender"),ke=Pt!==null;if(ke)var be=Pt.querySelector(".ggb_preview");else{var be=Ue(ft,de,Ae.borderColor,!1);Pt=document.createElement("div"),Pt.className="applet_scaler",Pt.style.position="relative",Pt.style.display="block",Pt.style.width=ft+"px",Pt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),te(ae)>=5?(Ae.appletOnLoad=function(At){var Dt=Le.querySelector(".ggb_preview");Dt&&Dt.parentNode.removeChild(Dt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Pt),window.GGBT_wsf_view&&$(window).trigger("resize"),jt(At)},ke||Pt.appendChild(be)):nt.appendChild(be),Pt.appendChild(nt),ke||Le.appendChild(Pt),setTimeout(function(){Ne.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(nt),Le.appendChild(pe),Ae.appletOnLoad=function(At){Ne.resize(),jt(At)}}function ve(At,Dt){Dt&&typeof Dt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(At,Dt.appletOnLoad):renderGGBElement(At),nn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Dt)}function Fe(At,Dt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:At,params:Dt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(sn){ve(sn.article,sn.params)}),html5AppletsToProcess=null)},te(ae)<5&&(At.className+=" geogebraweb")):ve(At,Dt)}if($t){scriptLoadStarted=!0;for(var Ze=0;Ze<nt.childNodes.length;Ze++){var gt=nt.childNodes[Ze].tagName;gt==="TABLE"&&(nt.removeChild(nt.childNodes[Ze]),Ze--)}if(ggbHTML5LoadedScript!==null){var ct=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ct!=null&&ct.parentNode.removeChild(ct)}var yt=document.createElement("script"),Ot=function(){Fe(nt,Ae)};yt.src=We+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=yt.src,nn("GeoGebra HTML5 codebase loaded: '"+We+"'.",Ae),!le&&(!we||we=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ot()):We.requirejs?__webpack_require__.e(12).then(function(){var At=[__webpack_require__(12)];Ot.apply(null,At)}.bind(this)).catch(__webpack_require__.oe):(yt.onload=Ot,Le.appendChild(yt))}else Fe(nt,Ae);Ae.height=de,Ae.width=ft},St=function(Le,Ae,Je){var $t=Ue(Ae.width,Ae.height,Ae.borderColor,Je),nt=document.createElement("div");nt.style.position="relative",nt.style.display="block",nt.style.width=Ae.width+"px",nt.style.height=Ae.height+"px",nt.className="applet_screenshot applet_scaler"+(Je?" applet_screenshot_play":""),nt.appendChild($t);var ft=GGBAppletUtils.getScale(Ae,Le,Je);Je?(Le.appendChild(tt()),window.GGBT_wsf_view||(Le.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(nt,"66%"),Le.appendChild(nt),ft!==1&&!isNaN(ft)&&(GGBAppletUtils.scaleElement(nt,ft),nt.style.width=Ae.width+"px",nt.style.height=Ae.height+"px",nt.parentNode.style.width=Ae.width*ft+"px",nt.parentNode.style.height=Ae.height*ft+"px"),Ne.resize=function(){Wt(Le,$t,nt,Je)},window.addEventListener("resize",function(de){Ne.resize()}),Ne.resize()};function Wt(Le,Ae,Je,$t){if(Le.contains(Ae)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}var nt=GGBAppletUtils.getScale(re,Le,$t);Je.parentNode!==null&&(!isNaN(nt)&&nt!==1?(GGBAppletUtils.scaleElement(Je,nt),Je.parentNode.style.width=re.width*nt+"px",Je.parentNode.style.height=re.height*nt+"px"):(GGBAppletUtils.scaleElement(Je,1),Je.parentNode.style.width=re.width+"px",Je.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Le),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ne.onExitFullscreen=function(Le,Ae){Ae.appendChild(Le)};var Ee=function(Le,Ae,Je,$t){St(Le,Ae,!0);for(var nt=function(){var dt=[];for(de=0;de<Le.childNodes.length;de++)dt.push(Le.childNodes[de]);if(window.GGBT_wsf_view){var wt=window.GGBT_wsf_view.renderFullScreen(Le,Ae.id),jt=document.getElementById("fullscreencontainer"),Pt=jQuery(Le).find(".fullscreencontent");Pt.length>0?(wt.remove(),Pt.attr("id","fullscreencontent").show(),jQuery(jt).append(Pt),window.dispatchEvent(new Event("resize"))):rt(wt,Ae,!1),window.GGBT_wsf_view.launchFullScreen(jt)}else Te=$t,rt(Le,Ae,!1);if(!window.GGBT_wsf_view)for(de=0;de<dt.length;de++)Le.removeChild(dt[de])},ft=Le.getElementsByClassName("ggb_preview_play"),de=0;de<ft.length;de++)ft[de].addEventListener("click",nt,!1),ft[de].addEventListener("ontouchstart",nt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Le),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},tt=function(){var Le=document.createElement("div");if(Le.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ae='.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");}',Je=document.createElement("style");Je.styleSheet?Je.styleSheet.cssText=Ae:Je.appendChild(document.createTextNode(Ae)),document.getElementsByTagName("head")[0].appendChild(Je)}return Le},Ue=function(Le,Ae,Je,$t){var nt=document.createElement("div");nt.className="ggb_preview",nt.style.position="absolute",nt.style.zIndex="90",nt.style.width=Le-2+"px",nt.style.height=Ae-2+"px",nt.style.top="0px",nt.style.left="0px",nt.style.overflow="hidden",nt.style.backgroundColor="white";var ft="lightgrey";Je!==void 0&&(Je==="none"?ft="transparent":ft=Je),nt.style.border="1px solid "+ft;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var dt,wt,jt;if(!$t){dt=document.createElement("img"),dt.style.position="absolute",dt.style.zIndex="1001",dt.style.opacity=1,de.style.opacity=.3,wt=360,wt>Le/4*3&&(wt=Le/4*3),jt=wt/5.8,dt.setAttribute("src",b),dt.setAttribute("width",wt),dt.setAttribute("height",jt);var Pt=(Le-wt)/2,ke=(Ae-jt)/2;dt.style.left=Pt+"px",dt.style.top=ke+"px",nt.appendChild(dt)}}return nt.appendChild(de),nt},Qe=function(Le){return Le=Le.toLowerCase(),Le==="html5"||Le==="screenshot"?Le:"html5"},ot=["web","webSimple","web3d","tablet","tablet3d","phone"],vt=function(Le,Ae){if(ae=Le,Ae){kt(ae,!0);return}var Je=!Pe;if(Je){var $t=te(ae);!isNaN($t)&&$t<4.4&&(Je=!1)}var nt,ft;window.location.protocol.substr(0,4)==="http"?nt=window.location.protocol:nt="http:";var de=ae.indexOf("//");de>0?ft=ae:de===0?ft=nt+ae:ft="https://www.geogebra.org/apps/5.2.814.0/";for(var dt in ot)if(ae.slice(ot[dt].length*-1)===ot[dt]||ae.slice((ot[dt].length+1)*-1)===ot[dt]+"/"){kt(ft,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!xe(re.showToolBar)&&!xe(re.showMenuBar)&&!xe(re.showAlgebraInput)&&!xe(re.enableRightClick)&&(!re.appName||re.appName=="classic")?ft+="webSimple/":ft+="web3d/",kt(ft,!1)},kt=function(Le,Ae){if(Le.requirejs){We=Le;return}Le.slice(-1)!=="/"&&(Le+="/"),We=Le,Ae===null&&(Ae=Le.indexOf("http")===-1),De=Ae,a="web.nocache.js",y=!1;var Je=We.split("/");Je.length>1&&(!Ae&&Je[Je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):ot.indexOf(Je[Je.length-2])>=0&&(a=Je[Je.length-2]+".nocache.js")),Je=Le.split("/"),ae=Je[Je.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var $t=parseFloat(ae);$t!==NaN&&$t<5&&Le.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+$t+" is deprecated. Using version latest instead."),vt("5.0",Ae))},nn=function(Le,Ae){window.console&&window.console.log&&(!Ae||typeof Ae.showLogging=="undefined"||Ae.showLogging&&Ae.showLogging!=="false")&&console.log(Le)};re.material_id!==void 0?ie(Jt):Jt();function Jt(){var Le=st;we!==null?Le=we:parseFloat(Le)<5&&(Le="5.0"),vt(Le,!1),le!==null&&kt(le,De),ce=!0}return Ne},GGBAppletUtils=function(){"use strict";function Ne(){return window.GGBT_wsf_edit!==void 0}function st(ce,we){we!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+we+","+we+")",ce.style.webkitTransform="scale("+we+","+we+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function re(ce,we,le,Ye,ze,Ie){var We=null;if(Ie!=null&&Ie!="")for(var De=ce.parentNode;De!=null;)if((" "+De.className+" ").indexOf(" "+Ie+" ")>-1){We=De;break}else De=De.parentNode;var Te=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(We)Te=We.offsetWidth,ae=Math.max(Ye?We.offsetWidth:0,We.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Te=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Te):(Te=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Te&&(ze===void 0||!ze)&&(document.dir==="rtl"?(E=Te-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ce&&((le===void 0||!le)&&we>0&&we+y<Te?Te=we:Te-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:Te,height:ae}}function ne(ce,we,le,Ye,ze){if(ce.isScreenshoGenerator)return 1;var Ie=Ye!==void 0&&Ye,We=ce.noScaleMargin!=null&&ce.noScaleMargin,De=function(ee){return ee&&ee!=="false"},Te=De(ce.autoHeight),ae=re(we,ce.width,le,Te,Ie&&window.GGBT_wsf_view||We,ze),a=parseInt(ae.width),y=ce.width,E=ce.height;if(y===void 0){var b=we.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Ie?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Pe(ce,we,le){var Ye=1,ze,Ie=!1;if(ce.hasOwnProperty("allowUpscale")&&(Ie=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Ye=parseFloat(ce.scale),(isNaN(Ye)||Ye===null||Ye===0)&&(Ye=1),Ye>1&&(Ie=!0)),we&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ie=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))ze=ne(ce,we,Ie,le,ce.scaleContainerClass);else return Ye;return Ie&&(!ce.hasOwnProperty("scale")||Ye===1)?ze:Math.min(Ye,ze)}function Ke(ce){var we=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),Ye=ce.getBoundingClientRect(),ze=(we-Ye.width)/2,Ie=(le-Ye.height)/2;Ie<0&&(Ie=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ze<40?ce.style.left="40px":ce.style.left=ze+"px",ce.style.top=Ie+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ie<40?ce.style.top="40px":ce.style.top=Ie+"px",ce.style.left=ze+"px")}function Me(ce,we){var le=ce.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(we.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var Ye=Pe(we,ce);Ne()&&le.setAttribute("data-param-scale",Ye);for(var ze=null,Ie=0;Ie<ce.childNodes.length;Ie++)if(ce.childNodes[Ie].className!==void 0&&ce.childNodes[Ie].className.match(/^applet_scaler/)){ze=ce.childNodes[Ie];break}if(ze!==null&&ze.querySelector(".noscale")!==null)return;var We=we.id!==void 0?we.id:"ggbApplet",De=window[We];(De==null||!De.recalculateEnvironments)&&ze!==null&&!ze.className.match(/fullscreen/)&&(ze.parentNode.style.transform="",!isNaN(Ye)&&Ye!==1?(ze.parentNode.style.width=we.width*Ye+"px",ze.parentNode.style.height=we.height*Ye+"px",st(ze,Ye)):(st(ze,1),ze.parentNode.style.width=we.width+"px",ze.parentNode.style.height=we.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ke(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Me,isFlexibleWorksheetEditor:Ne,positionCenter:Ke,getScale:Pe,scaleElement:st}}();__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 Ne=n.location.search;return Ne.indexOf(J)!=-1||Ne.indexOf(K)!=-1}function q(Ne,st){}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(Ne){var st=s[L].bindings;s[L].bindings=function(){for(var re=st?st():{},ne=Ne[webModule.__softPermutationId],Pe=O;Pe<ne.length;Pe++){var Ke=ne[Pe];re[Ke[O]]=Ke[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var Ne=o.createElement(Q);if(Ne.id=L,Ne.style.cssText=R+S,Ne.tabIndex=-1,o.body.appendChild(Ne),t=Ne.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var st=document.compatMode==U?V:W;t.write(st+X),t.close()}}}function w(Ne){function st(ne){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ke=Pe();if(Ke){ne();return}function Me(){if(!Ke){if(!Pe())return;Ke=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Me,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Me,!1);var ce=setInterval(function(){Me()},$)}function re(ne){var Pe=u(),Ke=Pe.body,Me=Pe.createElement(_);Me.language=ab,Me.crossOrigin=W,Me.src=ne,webModule.__errFn&&(Me.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),Ke.appendChild(Me)}st(function(){re(Ne)})}webModule.__startLoadingFragment=function(Ne){return C(Ne)},webModule.__installRunAsyncCode=function(Ne){var st=u(),re=st.body,ne=st.createElement(_);ne.language=ab,ne.text=Ne,re.appendChild(ne),re.removeChild(ne)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ne){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ne){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ne){var st=c[Ne];return st==null?null:st},r=d,webModule.__errFn=e}function B(){function Ne(ce){var we=ce.lastIndexOf(rb);we==-1&&(we=ce.length);var le=ce.indexOf(sb);le==-1&&(le=ce.length);var Ye=ce.lastIndexOf(tb,Math.min(le,we));return Ye>=O?ce.substring(O,Ye+P):W}function st(ce){if(!ce.match(/^\w+:\/\//)){var we=o.createElement(ub);we.src=ce+vb,ce=Ne(we.src)}return ce}function re(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ne(){for(var ce=o.getElementsByTagName(_),we=O;we<ce.length;++we)if(ce[we].src.indexOf(xb)!=-1)return Ne(ce[we].src);return W}function Pe(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Ke(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Me=re();return Me==W&&(Me=ne()),Me==W&&(Me=Pe()),Me==W&&Ke()&&(Me=Ne(o.location.href)),Me=st(Me),Me}function C(Ne){return Ne.match(/^\//)||Ne.match(/^[a-zA-Z]+:\/\//)?Ne:webModule.__moduleBase+Ne}function D(){var Ne=[],st=O,re=[],ne=[];function Pe(ce){var we=ne[ce](),le=re[ce];if(we in le)return we;var Ye=[];for(var ze in le)Ye[le[ze]]=ze;throw r&&r(ce,Ye,we),null}if(__gwt_isKnownPropertyValue=function(ce,we){return we in re[ce]},webModule.__getPropMap=function(){var ce={};for(var we in re)re.hasOwnProperty(we)&&(ce[we]=Pe(we));return ce},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ke;try{Ke=Cb;var Me=Ke.indexOf(Db);Me!=-1&&(st=parseInt(Ke.substring(Me+P),$),Ke=Ke.substring(O,Me))}catch(ce){}return webModule.__softPermutationId=st,C(Ke+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Ne,st,re){"use strict";re.d(st,{Ax:function(){return Me},Ds:function(){return ce},KI:function(){return le},SI:function(){return Ke},f1:function(){return Pe}});var ne=re(11320);function Pe(Ye){let ze=!0;if(Ye.length>0){for(let Ie=0;Ie<Ye.length;Ie++)if(Ye[Ie].compile_success==0||!Ye[Ie].compile_success){ze=!1;break}}else ze=!1;return ze}function Ke(Ye,ze=""){let Ie=[];for(let We=0;We<Ye.length;We++){let De=Ye[We],Te=ze?`${ze}/${De.name}`:`${De.name}`;Ie.push({title:De.name,type:De.type,isLeaf:De.type!=="tree",key:Te})}return Ie}function Me(Ye,ze,Ie){for(let We=0;We<Ye.length;We++){let De=Ye[We];if(De.key===ze){De.children=Ie;break}De.children&&Me(De.children,ze,Ie)}return Ye}function ce(Ye,ze,Ie){let We;return function(){let De=this,Te=arguments,ae=function(){We=null,Ie||Ye.apply(De,Te)},a=Ie&&!We;clearTimeout(We),We=setTimeout(ae,ze),a&&Ye.apply(De,Te)}}const we=!0,le=ne.Z.API_SERVER},63205:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return We}});var ne=re(67294),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ke=re(94184),Me=re.n(Ke),ce=re(57953),we=re(15979),le=re(33170),Ye=re(28706),ze=(De,Te,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(De,Te)).next())}),We=({data:De,className:Te,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),oe=(0,ne.useRef)(null),[ge,ie]=(0,ne.useState)(!1),[me,se]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),De!=null&&De.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",De!=null&&De.src&&Ge()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[De==null?void 0:De.visible]);const Ge=()=>ze(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Ee=yield(0,Ye.ZJ)(De==null?void 0:De.src);z.current.src="",z.current.src=Ee,z.current.onload=function(){Wt()},ie(!1),se("")}),xe=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},rt=Ee=>ze(void 0,null,function*(){ie(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const tt=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:De.title,file:Ee.dataUrl}});tt!=null&&tt.id&&!x?(yield(0,le.ZP)(`/api/attachments/${De.id}/add_subitem.json`,{method:"post",body:{subitem_id:tt==null?void 0:tt.id,settings:JSON.stringify(Ee.state)}})).status===0&&E():tt!=null&&tt.id&&E(tt),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),se("")}),St=()=>{const Ee=document.querySelector('a[href="https://markerjs.com/"]');Ee&&Ee.parentNode&&(Ee.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Ue=>{const Qe=document.querySelector(Ue.name);Qe&&Qe.setAttribute("title",Ue.title)})},Wt=()=>{ee.current=new we.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",rt),ee.current.addEventListener("beforeclose",xe),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),De!=null&&De.snapshotData&&ee.current.restoreState(De.snapshotData),setTimeout(()=>{window.scrollTo(0,0),St()},300)};return ne.createElement(ne.Fragment,null,(De==null?void 0:De.visible)&&ne.createElement(ce.Z,{spinning:ge,tip:me,style:{position:"absolute"}},ne.createElement("div",{ref:oe,className:Me()(Pe.imageDimensions,Te,ae?Pe.fullWidth:""),style:a},ne.createElement("img",{className:Pe.img,ref:z}))))}},36527:function(Ne,st,re){"use strict";var ne=re(67294),Pe=re(71230),Ke=re(15746),Me=re(66368),ce=re(71577),we=re(85725),le=re(71736),Ye=re(84279),ze=re(67294);const Ie=(0,ne.forwardRef)(({callback:We,showSaveButton:De,value:Te=""},ae)=>{const a=(0,ne.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ze.createElement(Pe.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>ze.createElement(Ke.Z,{flex:"110px",className:le.Z.item},ze.createElement("div",null,ze.createElement(we.Z,{value:`$$${ee.value}$$`}),ee.name),ze.createElement("div",{className:le.Z.children},ee.children.map((oe,ge)=>ze.createElement("div",{key:ge},ze.createElement("h1",null,oe.name),ze.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,me)=>ze.createElement(Ke.Z,{key:me,onClick:()=>b(ie),className:le.Z.diamond},ze.createElement(we.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ze.createElement(Pe.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>ze.createElement(Ke.Z,{flex:"110px",className:le.Z.item},ze.createElement("div",null,ze.createElement(we.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),ze.createElement("div",{className:le.Z.children},ee.children.map((oe,ge)=>ze.createElement("div",{key:ge},oe.name&&ze.createElement("h1",null,oe.name),ze.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ie,me)=>ze.createElement(Ke.Z,{key:me,onClick:()=>b(ie),className:le.Z.diamond},ze.createElement(we.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return We&&We(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),ze.createElement("div",{className:le.Z.mathWrap},ze.createElement(Me.default,{defaultActiveKey:"1",items:x}),ze.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Te||""),De&&ze.createElement("div",{className:le.Z.button},ze.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});st.Z=Ie},57444:function(Ne,st,re){"use strict";re.d(st,{h:function(){return ee}});var ne=re(67294),Pe=re(11713),Ke=re(22150),Me=re(71577),ce=re(4631),we=re.n(ce),le=re(71749),Ye=re(30483),ze=Object.defineProperty,Ie=Object.defineProperties,We=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,oe,ge)=>oe in te?ze(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[oe]=ge,y=(te,oe)=>{for(var ge in oe||(oe={}))Te.call(oe,ge)&&a(te,ge,oe[ge]);if(De)for(var ge of De(oe))ae.call(oe,ge)&&a(te,ge,oe[ge]);return te},E=(te,oe)=>Ie(te,We(oe));const b=Pe.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};st.Z=({callback:te,onCancel:oe})=>{const[ge,ie]=(0,ne.useState)("python");function me(Ge){ie(z[Ge][1])}function se(Ge){te(Ge)}return ne.createElement(Ke.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(Pe.default,{getPopupContainer:Ge=>Ge.parentNode,onChange:me},Object.keys(z).map(Ge=>ne.createElement(b,{key:Ge,value:Ge},z[Ge][0])))),ne.createElement(Ke.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ee,{mode:ge})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Me.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:ie={}}){const me=(0,ne.useRef)(),[se,Ge]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let xe=function(rt){const St=rt.getValue();oe&&oe(St)};return se.on("change",xe),()=>{se.off("change",xe)}}},[se,oe]),(0,ne.useEffect)(()=>{se&&se.setOption("mode",ge)},[se,ge]),(0,ne.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ne.useEffect)(()=>{if(me.current&&!se){const xe=we().fromTextArea(me.current,y({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Ge(xe)}},[me.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:me}))}},35567:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return jn}});var ne=re(67294),Pe=re(4631),Ke=re.n(Pe),Me=re(91033),ce=re(71749),we=re(57341),le=re(82801),Ye=re(88386),ze=re(49047),Ie=re(80785),We=re(85725),De=({value:Se="",className:ye,showTextOnly:fe,showLines:qe,style:Lt={}})=>{const Ct=(0,ne.useMemo)(()=>"",[Se]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Ct}}))},Te=re(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Se,ye,fe)=>ye in Se?ae(Se,ye,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Se[ye]=fe,ee=(Se,ye)=>{for(var fe in ye||(ye={}))b.call(ye,fe)&&z(Se,fe,ye[fe]);if(E)for(var fe of E(ye))x.call(ye,fe)&&z(Se,fe,ye[fe]);return Se},te=(Se,ye)=>a(Se,y(ye));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ge({onActionCallback:Se,title:ye,icon:fe,actionName:qe,className:Lt="",children:Ct}){function Sn(){Se(qe)}return Te.createElement("a",{title:ye,className:Lt,onClick:Sn},Te.createElement("i",{className:`${fe}`}),Ct)}var ie=({watch:Se,showNullButton:ye,showNullProgramButton:fe,onActionCallback:qe,fullScreen:Lt,insertTemp:Ct,hidetoolBar:Sn,extraUse:Yt})=>{const gn=[...oe,{title:`${Se?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Se?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Te.createElement("ul",{className:"markdown-toolbar-container"},!Sn&&gn.map((Bn,Hn)=>Te.createElement("li",{key:Hn},Bn.actionName?Te.createElement(ge,te(ee({},Bn),{onActionCallback:qe})):Te.createElement("span",{className:"v-line"}))),ye?Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:qe},Te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,fe?Te.createElement(Te.Fragment,null,Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:qe},Te.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:qe},Te.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ct&&Te.createElement("li",null,Te.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ct}`,onActionCallback:qe},Te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Yt&&Te.createElement("li",null,Yt),Te.createElement("li",{className:"btn-full-screen"},Te.createElement(ge,{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=re(76621),se=re(22150),Ge=re(69677),xe=re(71577),rt=Object.defineProperty,St=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,Qe=(Se,ye,fe)=>ye in Se?rt(Se,ye,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Se[ye]=fe,ot=(Se,ye)=>{for(var fe in ye||(ye={}))tt.call(ye,fe)&&Qe(Se,fe,ye[fe]);if(Ee)for(var fe of Ee(ye))Ue.call(ye,fe)&&Qe(Se,fe,ye[fe]);return Se},vt=(Se,ye)=>St(Se,Wt(ye));const kt={labelCol:{span:4},wrapperCol:{span:20}};var nn=({callback:Se,onCancel:ye})=>{function fe(qe){Se(qe)}return ne.createElement(se.default,vt(ot({},kt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:fe,style:{width:500}}),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(Ge.default,null)),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(Ge.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(xe.ZP,{type:"ghost",onClick:ye},"\u53D6\u6D88")))},Jt=re(57444),Le=re(70859),Ae=re(14446),Je=re(71230),$t=re(63205),nt=re(67294),ft=({callback:Se,onCancel:ye})=>{const fe=document.createElement("canvas"),qe=fe.getContext("2d");fe.width=1e3,fe.height=800,qe.fillStyle="#ffffff",qe.fillRect(0,0,fe.width,fe.height);const Lt=fe.toDataURL("image/png");return nt.createElement(Ae.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},nt.createElement(Je.Z,{style:{height:"100vh"}},nt.createElement($t.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Lt,visible:!0,title:String(Date.now())},onOk:Ct=>{Se({src:Ct.url})},onClose:ye})))},de=re(23495);function dt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(dt,go.CommandHandler),dt.prototype.canAlignSelection=function(){var Se=this.diagram;return!(Se===null||Se.isReadOnly||Se.isModelReadOnly||Se.selection.count<2)},dt.prototype.alignLeft=function(){var Se=this.diagram;Se.startTransaction("aligning left");var ye=1/0;Se.selection.each(function(fe){fe instanceof go.Link||(ye=Math.min(fe.position.x,ye))}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(ye,fe.position.y))}),Se.commitTransaction("aligning left")},dt.prototype.alignRight=function(){var Se=this.diagram;Se.startTransaction("aligning right");var ye=-1/0;Se.selection.each(function(fe){if(!(fe instanceof go.Link)){var qe=fe.actualBounds.x+fe.actualBounds.width;ye=Math.max(qe,ye)}}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(ye-fe.actualBounds.width,fe.position.y))}),Se.commitTransaction("aligning right")},dt.prototype.alignTop=function(){var Se=this.diagram;Se.startTransaction("alignTop");var ye=1/0;Se.selection.each(function(fe){fe instanceof go.Link||(ye=Math.min(fe.position.y,ye))}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(fe.position.x,ye))}),Se.commitTransaction("alignTop")},dt.prototype.alignBottom=function(){var Se=this.diagram;Se.startTransaction("aligning bottom");var ye=-1/0;Se.selection.each(function(fe){if(!(fe instanceof go.Link)){var qe=fe.actualBounds.y+fe.actualBounds.height;ye=Math.max(qe,ye)}}),Se.selection.each(function(fe){fe instanceof go.Link||fe.move(new go.Point(fe.actualBounds.x,ye-fe.actualBounds.height))}),Se.commitTransaction("aligning bottom")},dt.prototype.alignCenterX=function(){var Se=this.diagram,ye=Se.selection.first();if(ye){Se.startTransaction("aligning Center X");var fe=ye.actualBounds.x+ye.actualBounds.width/2;Se.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(fe-qe.actualBounds.width/2,qe.actualBounds.y))}),Se.commitTransaction("aligning Center X")}},dt.prototype.alignCenterY=function(){var Se=this.diagram,ye=Se.selection.first();if(ye){Se.startTransaction("aligning Center Y");var fe=ye.actualBounds.y+ye.actualBounds.height/2;Se.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.actualBounds.x,fe-qe.actualBounds.height/2))}),Se.commitTransaction("aligning Center Y")}},dt.prototype.alignColumn=function(Se){var ye=this.diagram;ye.startTransaction("align Column"),Se===void 0&&(Se=0),Se=parseFloat(Se);var fe=new Array;ye.selection.each(function(Yt){Yt instanceof go.Link||fe.push(Yt)});for(var qe=0;qe<fe.length-1;qe++){var Lt=fe[qe],Ct=Lt.actualBounds.y+Lt.actualBounds.height+Se,Sn=fe[qe+1];Sn.move(new go.Point(Lt.actualBounds.x,Ct))}ye.commitTransaction("align Column")},dt.prototype.alignRow=function(Se){Se===void 0&&(Se=0),Se=parseFloat(Se);var ye=this.diagram;ye.startTransaction("align Row");var fe=new Array;ye.selection.each(function(Yt){Yt instanceof go.Link||fe.push(Yt)});for(var qe=0;qe<fe.length-1;qe++){var Lt=fe[qe],Ct=Lt.actualBounds.x+Lt.actualBounds.width+Se,Sn=fe[qe+1];Sn.move(new go.Point(Ct,Lt.actualBounds.y))}ye.commitTransaction("align Row")},dt.prototype.canRotate=function(Se){var ye=this.diagram;return!(ye===null||ye.isReadOnly||ye.isModelReadOnly||ye.selection.count<1)},dt.prototype.rotate=function(Se){Se===void 0&&(Se=90);var ye=this.diagram;ye.startTransaction("rotate "+Se.toString());var ye=this.diagram;ye.selection.each(function(fe){fe instanceof go.Link||fe instanceof go.Group||(fe.angle+=Se)}),ye.commitTransaction("rotate "+Se.toString())},dt.prototype.pullToFront=function(){var Se=this.diagram;Se.startTransaction("pullToFront");var ye=new go.Map;Se.selection.each(function(fe){ye.set(fe.layer,0)}),ye.iteratorKeys.each(function(fe){var qe=0;fe.parts.each(function(Lt){if(!Lt.isSelected){var Ct=Lt.zOrder;isNaN(Ct)?Lt.zOrder=0:qe=Math.max(qe,Ct)}}),ye.set(fe,qe)}),Se.selection.each(function(fe){dt._assignZOrder(fe,ye.get(fe.layer)+1)}),Se.commitTransaction("pullToFront")},dt.prototype.pushToBack=function(){var Se=this.diagram;Se.startTransaction("pushToBack");var ye=new go.Map;Se.selection.each(function(fe){ye.set(fe.layer,0)}),ye.iteratorKeys.each(function(fe){var qe=0;fe.parts.each(function(Lt){if(!Lt.isSelected){var Ct=Lt.zOrder;isNaN(Ct)?Lt.zOrder=0:qe=Math.min(qe,Ct)}}),ye.set(fe,qe)}),Se.selection.each(function(fe){dt._assignZOrder(fe,ye.get(fe.layer)-1-dt._findGroupDepth(fe))}),Se.commitTransaction("pushToBack")},dt._assignZOrder=function(Se,ye,fe){fe===void 0&&(fe=Se),Se.layer===fe.layer&&(Se.zOrder=ye),Se instanceof go.Group&&Se.memberParts.each(function(qe){dt._assignZOrder(qe,ye+1,fe)})},dt._findGroupDepth=function(Se){if(Se instanceof go.Group){var ye=0;return Se.memberParts.each(function(fe){ye=Math.max(ye,dt._findGroupDepth(fe))}),ye+1}else return 0},dt.prototype.doKeyDown=function(){var Se=this.diagram;if(Se!==null){var ye=Se.lastInput;if(ye.key==="Up"||ye.key==="Down"||ye.key==="Left"||ye.key==="Right"){var fe=this.arrowKeyBehavior;if(fe==="none")return;if(fe==="select"){this._arrowKeySelect();return}else if(fe==="move"){this._arrowKeyMove();return}else if(fe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},dt.prototype._getAllParts=function(){var Se=new Array;return this.diagram.nodes.each(function(ye){Se.push(ye)}),this.diagram.parts.each(function(ye){Se.push(ye)}),Se},dt.prototype._arrowKeyMove=function(){var Se=this.diagram,ye=Se.lastInput,fe=0,qe=0;if(ye.control||ye.meta)fe=1,qe=1;else if(Se.grid!==null){var Lt=Se.grid.gridCellSize;qe=Lt.width,fe=Lt.height}Se.startTransaction("arrowKeyMove"),Se.selection.each(function(Ct){ye.key==="Up"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y-fe)):ye.key==="Down"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y+fe)):ye.key==="Left"?Ct.move(new go.Point(Ct.actualBounds.x-qe,Ct.actualBounds.y)):ye.key==="Right"&&Ct.move(new go.Point(Ct.actualBounds.x+qe,Ct.actualBounds.y))}),Se.commitTransaction("arrowKeyMove")},dt.prototype._arrowKeySelect=function(){var Se=this.diagram,ye=Se.lastInput,fe=null;ye.key==="Up"?fe=this._findNearestPartTowards(270):ye.key==="Down"?fe=this._findNearestPartTowards(90):ye.key==="Left"?fe=this._findNearestPartTowards(180):ye.key==="Right"&&(fe=this._findNearestPartTowards(0)),fe!==null&&(ye.shift?fe.isSelected=!0:ye.control||ye.meta?fe.isSelected=!fe.isSelected:Se.select(fe))},dt.prototype._findNearestPartTowards=function(Se){var ye=this.diagram.selection.first();if(ye===null)return null;for(var fe=ye.actualBounds.center,qe=this._getAllParts(),Lt=1/0,Ct=ye,Sn=0;Sn<qe.length;Sn++){var Yt=qe[Sn];if(Yt!==ye&&Yt.canSelect()){var gn=Yt.actualBounds.center,Bn=fe.directionPoint(gn),Hn=this._angleCloseness(Bn,Se);if(Hn<=45){var et=fe.distanceSquaredPoint(gn);et*=1+Math.sin(Hn*Math.PI/180),et<Lt&&(Lt=et,Ct=Yt)}}}return Ct},dt.prototype._angleCloseness=function(Se,ye){return Math.min(Math.abs(ye-Se),Math.min(Math.abs(ye+360-Se),Math.abs(ye-360-Se)))},dt.prototype._arrowKeyTree=function(){var Se=this.diagram,ye=Se.selection.first();if(ye instanceof go.Node){var fe=Se.lastInput;if(fe.key==="Right"){if(!ye.isTreeLeaf)if(!ye.isTreeExpanded)Se.commandHandler.canExpandTree(ye)&&Se.commandHandler.expandTree(ye);else{var qe=this._sortTreeChildrenByY(ye).first();qe!==null&&Se.select(qe)}}else if(fe.key==="Left")if(!ye.isTreeLeaf&&ye.isTreeExpanded)Se.commandHandler.canCollapseTree(ye)&&Se.commandHandler.collapseTree(ye);else{var Lt=ye.findTreeParentNode();Lt!==null&&Se.select(Lt)}else if(fe.key==="Up"){var Lt=ye.findTreeParentNode();if(Lt!==null){var Ct=this._sortTreeChildrenByY(Lt),Sn=Ct.indexOf(ye);if(Sn>0){for(var Yt=Ct.elt(Sn-1);Yt!==null&&Yt.isTreeExpanded&&!Yt.isTreeLeaf;){var gn=this._sortTreeChildrenByY(Yt);Yt=gn.last()}Yt!==null&&Se.select(Yt)}else Se.select(Lt)}}else if(fe.key==="Down")if(ye.isTreeExpanded&&!ye.isTreeLeaf){var qe=this._sortTreeChildrenByY(ye).first();qe!==null&&Se.select(qe)}else for(;ye!==null;){var Lt=ye.findTreeParentNode();if(Lt===null)break;var Ct=this._sortTreeChildrenByY(Lt),Sn=Ct.indexOf(ye);if(Sn<Ct.length-1){Se.select(Ct.elt(Sn+1));break}else ye=Lt}var Bn=Se.selection.first();Bn!==null&&Se.scrollToRect(Bn.actualBounds)}},dt.prototype._sortTreeChildrenByY=function(Se){var ye=new go.List().addAll(Se.findTreeChildrenNodes());return ye.sort(function(fe,qe){var Lt=fe.location,Ct=qe.location;return Lt.y<Ct.y?-1:Lt.y>Ct.y?1:Lt.x<Ct.x?-1:Lt.x>Ct.x?1:0}),ye},dt.prototype.copyToClipboard=function(Se){go.CommandHandler.prototype.copyToClipboard.call(this,Se),this._lastPasteOffset.set(this.pasteOffset)},dt.prototype.pasteFromClipboard=function(){var Se=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Se,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Se},Object.defineProperty(dt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Se){if(Se!=="move"&&Se!=="select"&&Se!=="scroll"&&Se!=="tree"&&Se!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Se);this._arrowKeyBehavior=Se}}),Object.defineProperty(dt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Se){if(!(Se instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Se);this._pasteOffset.set(Se)}});var wt=dt,jt=re(18023),Pt=re(15746),ke=re(33170),be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=re(67294),ve=(Se,ye,fe)=>new Promise((qe,Lt)=>{var Ct=gn=>{try{Yt(fe.next(gn))}catch(Bn){Lt(Bn)}},Sn=gn=>{try{Yt(fe.throw(gn))}catch(Bn){Lt(Bn)}},Yt=gn=>gn.done?qe(gn.value):Promise.resolve(gn.value).then(Ct,Sn);Yt((fe=fe.apply(Se,ye)).next())});function Fe({onCancel:Se,callback:ye}){let fe=(0,ne.useRef)(),qe=(0,ne.useRef)(),Lt=(0,ne.useRef)(),Ct=(0,ne.useRef)(!1);const Sn=(0,ne.useRef)(!1),[Yt,gn]=(0,ne.useState)(0);function Bn(){const et=de.bx.make,rn={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};fe.current=new de.S0(qe.current,{padding:20,grid:et(de.s_,"Grid",et(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),et(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ve=>{var ht=Ve.diagram.commandHandler.addTopLevelParts(Ve.diagram.selection,!0);ht||Ve.diagram.currentTool.doCancel()},commandHandler:et(wt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ve=>{var ht=Ve.subject;ht.location=ht.location.copy().snapToGridPoint(Ve.diagram.grid.gridOrigin,Ve.diagram.grid.gridCellSize),setTimeout(()=>{Ve.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ve=>{var ht=Ve.subject;setTimeout(()=>{Ve.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ve=>{var ht=Ve.parameter.part;ht.invalidateConnectedLinks();var zt=Ve.subject;Ve.diagram.toolManager.linkingTool.isForwards?zt.toNode.invalidateConnectedLinks():zt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),fe.current.nodeTemplate=et(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),et(de.bn,{name:"SHAPE",fill:rn.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")),et(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),et(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),fe.current.nodeTemplate.toolTip=et("ToolTip",et(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},et(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),et(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function ue(Ve,ht){var zt=(lt,un)=>{lt.handled=!0,lt.diagram.model.commit(Rt=>{var vn=un.part.adornedPart,$n=new de.E9().setRectSpot(vn.actualBounds,Ve);$n.subtract(vn.location),$n.scale(2,2),$n.x+=Math.sign($n.x)*130,$n.y+=Math.sign($n.y)*130,$n.add(vn.location),$n.snapToGridPoint(lt.diagram.grid.gridOrigin,lt.diagram.grid.gridCellSize);var Nn=Rt.copyNodeData(vn.data);Rt.setGroupKeyForNodeData(Nn,Rt.getGroupKeyForNodeData(vn.data)),Rt.addNodeData(Nn);var ea={from:vn.key,to:Rt.getKeyForNodeData(Nn)};Rt.addLinkData(ea);var ta=lt.diagram.findNodeForData(Nn);ta.location=$n,lt.diagram.select(ta),setTimeout(()=>{lt.diagram.commandHandler.editTextBlock()},20)})};return et(de.bn,{figure:ht,alignment:Ve,alignmentFocus:Ve.opposite(),width:Ve.equals(de.z6.Top)||Ve.equals(de.z6.Bottom)?25:18,height:Ve.equals(de.z6.Top)||Ve.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:rn.white,strokeWidth:4,mouseEnter:(lt,un)=>un.fill="dodgerblue",mouseLeave:(lt,un)=>un.fill="orange",isActionable:!0,click:zt,contextClick:zt})}function $e(Ve){return et(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(ht,zt)=>zt.fill="dodgerblue",mouseLeave:(ht,zt)=>zt.fill="orange",click:(ht,zt)=>{ht.diagram.commandHandler.showContextMenu(zt.part.adornedPart)}},Ve||{})}fe.current.nodeTemplate.selectionAdornmentTemplate=et(de.uz,"Spot",et(de.Vm,{padding:10}),ue(de.z6.Top,"TriangleUp"),ue(de.z6.Left,"TriangleLeft"),ue(de.z6.Right,"TriangleRight"),ue(de.z6.Bottom,"TriangleDown"),$e({alignment:new de.z6(.75,0)}));function Ce(Ve,ht){return(zt,lt)=>{zt.handled=!0,zt.diagram.model.commit(un=>{un.set(lt.part.adornedPart.data,Ve,ht)})}}function Oe(Ve,ht){return ht||(ht="color"),et(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ve,margin:1,background:"transparent",mouseEnter:(zt,lt)=>lt.stroke="dodgerblue",mouseLeave:(zt,lt)=>lt.stroke="lightgray",click:Ce(ht,Ve),contextClick:Ce(ht,Ve)})}function at(){return[et("ContextMenuButton",et(de.s_,"Horizontal",Oe(rn.white,"fill"),Oe(rn.beige,"fill"),Oe(rn.extralightblue,"fill"),Oe(rn.extralightred,"fill"))),et("ContextMenuButton",et(de.s_,"Horizontal",Oe(rn.lightgray,"fill"),Oe(rn.lightgreen,"fill"),Oe(rn.lightblue,"fill"),Oe(rn.lightred,"fill")))]}function He(){return[et("ContextMenuButton",et(de.s_,"Horizontal",Oe(rn.black),Oe(rn.green),Oe(rn.blue),Oe(rn.red))),et("ContextMenuButton",et(de.s_,"Horizontal",Oe(rn.white),Oe(rn.magenta),Oe(rn.purple),Oe(rn.orange)))]}function _e(Ve,ht){return ht||(ht="thickness"),et(de.bn,"LineH",{width:16,height:16,strokeWidth:Ve,margin:1,background:"transparent",mouseEnter:(zt,lt)=>lt.background="dodgerblue",mouseLeave:(zt,lt)=>lt.background="transparent",click:Ce(ht,Ve),contextClick:Ce(ht,Ve)})}function Re(Ve,ht){return ht||(ht="dash"),et(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ve,margin:1,background:"transparent",mouseEnter:(zt,lt)=>lt.background="dodgerblue",mouseLeave:(zt,lt)=>lt.background="transparent",click:Ce(ht,Ve),contextClick:Ce(ht,Ve)})}function Mt(){return[et("ContextMenuButton",et(de.s_,"Horizontal",_e(1),_e(2),_e(3),_e(4))),et("ContextMenuButton",et(de.s_,"Horizontal",Re(null),Re([2,4]),Re([4,4])))]}function Ft(Ve,ht){return ht||(ht="figure"),et(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ve,margin:1,background:"transparent",mouseEnter:(zt,lt)=>lt.fill="dodgerblue",mouseLeave:(zt,lt)=>lt.fill="lightgray",click:Ce(ht,Ve),contextClick:Ce(ht,Ve)})}fe.current.nodeTemplate.contextMenu=et("ContextMenu",et("ContextMenuButton",et(de.s_,"Horizontal",Ft("Rectangle"),Ft("RoundedRectangle"),Ft("Ellipse"),Ft("Diamond"))),et("ContextMenuButton",et(de.s_,"Horizontal",Ft("Parallelogram2"),Ft("ManualOperation"),Ft("Procedure"),Ft("Cylinder1"))),et("ContextMenuButton",et(de.s_,"Horizontal",Ft("Terminator"),Ft("CreateRequest"),Ft("Document"),Ft("TriangleDown"))),at(),He(),Mt()),fe.current.groupTemplate=et(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ve,ht)=>{var zt=ht.addMembers(ht.diagram.selection,!0);zt||ht.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),et(de.s_,"Auto",{name:"BODY"},et(de.bn,{parameter1:10,fill:rn.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")),et(de.Vm,{background:"transparent",margin:20})),et(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),fe.current.groupTemplate.selectionAdornmentTemplate=et(de.uz,"Spot",et(de.s_,"Auto",et(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),et(de.Vm,{margin:1.5})),$e({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),fe.current.groupTemplate.contextMenu=et("ContextMenu",at(),He(),Mt()),fe.current.linkTemplate=et(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ve=>Ve>=1?10:0),new de.KX("toShortLength","dir",Ve=>Ve>=1?10:0),new de.KX("points").makeTwoWay(),et(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),et(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ve=>Ve===1)),et(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ve=>Ve>=1),new de.KX("width","thickness",Ve=>7+3*Ve),new de.KX("height","thickness",Ve=>7+3*Ve),new de.KX("segmentOffset","thickness",Ve=>new de.E9(-15,4+1.5*Ve))),et(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ve=>Ve===2),new de.KX("width","thickness",Ve=>7+3*Ve),new de.KX("height","thickness",Ve=>7+3*Ve),new de.KX("segmentOffset","thickness",Ve=>new de.E9(-15,4+1.5*Ve))),et(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),fe.current.linkTemplate.selectionAdornmentTemplate=et(de.uz,et(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ht(2)},new de.KX("pathPattern","thickness",Ht)),$e({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ht(Ve){return et(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ve+4).toString()+" H3"})}function qt(Ve){var ht="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ve===0?ht="M0 0 M16 16 M0 8 L16 8":Ve===2&&(ht="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),et(de.bn,{geometryString:ht,margin:2,background:"transparent",mouseEnter:(zt,lt)=>lt.background="dodgerblue",mouseLeave:(zt,lt)=>lt.background="transparent",click:Ce("dir",Ve),contextClick:Ce("dir",Ve)})}function dn(Ve){var ht=(zt,lt)=>{zt.handled=!0,zt.diagram.model.commit(un=>{var Rt=lt.part.adornedPart;un.set(Rt.data,Ve?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ve?Rt.toNode:Rt.fromNode).invalidateConnectedLinks()})};return et(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(zt,lt)=>lt.background="dodgerblue",mouseLeave:(zt,lt)=>lt.background="transparent",click:ht,contextClick:ht})}function fn(Ve,ht){var zt=0,lt=de.z6.RightSide;Ve.equals(de.z6.Top)?(zt=270,lt=de.z6.TopSide):Ve.equals(de.z6.Left)?(zt=180,lt=de.z6.LeftSide):Ve.equals(de.z6.Bottom)&&(zt=90,lt=de.z6.BottomSide),ht||(zt-=180);var un=(Rt,vn)=>{Rt.handled=!0,Rt.diagram.model.commit($n=>{var Nn=vn.part.adornedPart;$n.set(Nn.data,ht?"toSpot":"fromSpot",de.z6.stringify(lt)),(ht?Nn.toNode:Nn.fromNode).invalidateConnectedLinks()})};return et(de.bn,{alignment:Ve,alignmentFocus:Ve.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:zt,background:"transparent",mouseEnter:(Rt,vn)=>vn.background="dodgerblue",mouseLeave:(Rt,vn)=>vn.background="transparent",click:un,contextClick:un})}fe.current.linkTemplate.contextMenu=et("ContextMenu",He(),Mt(),et("ContextMenuButton",et(de.s_,"Horizontal",qt(0),qt(1),qt(2))),et("ContextMenuButton",et(de.s_,"Horizontal",et(de.s_,"Spot",dn(!1),fn(de.z6.Top,!1),fn(de.z6.Left,!1),fn(de.z6.Right,!1),fn(de.z6.Bottom,!1)),et(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},dn(!0),fn(de.z6.Top,!0),fn(de.z6.Left,!0),fn(de.z6.Right,!0),fn(de.z6.Bottom,!0)))));const An=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var Xe=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Xn(Ve){return console.log("shapeName:",Ve),Xe.indexOf(Ve)>=0}var On=new de.YI(Lt.current,{maxSelectionCount:1,linkTemplate:et(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:et(de.uz,"Link",{locationSpot:de.z6.Center},et(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),et(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),et(de.bn,{isPanelMain:!0,strokeWidth:2}),et(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ve=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ve.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return fe.current.addDiagramListener("TextEdited",function(Ve){var ht;const zt=Ve.subject.part;var lt=(ht=document.activeElement)==null?void 0:ht.value;typeof lt=="string"&<.trim()===""&&fe.current.model.commit(function(un){un.set(zt.data,"text","\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}),On.nodeTemplate=et(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),et(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")),et(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{fe.current.grid=et(de.s_,"Grid",et(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),et(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),fe.current.grid.visible=!0,fe.current.grid.gridCellStroke="darkgray",fe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=fe.current,fe.current}const Hn=()=>ve(this,null,function*(){var et=fe.current.makeImage();const rn=yield(0,ke.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:et.src}});ye({src:rn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{Bn()},500),gn(Yt+1),()=>{fe.current=null}),[]),pe.createElement("div",{ref:Sn,className:Ct.current?`${be.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement(Ae.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Yt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(Je.Z,null,pe.createElement(Pt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(Pt.Z,{onClick:()=>{var et,rn,ue=fe.current.selection.first();if(Ct.current=!Ct.current,document.activeElement&&ue){let $e=(rn=(et=document.activeElement)==null?void 0:et.value)==null?void 0:rn.trim();typeof $e=="string"&&fe.current.model.commit(function(Ce){Ce.set(ue.data,"text",$e||"\u672A\u547D\u540D"),fe.current.commandHandler.stopCommand()},"increment")}gn(Yt+1)}},pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Se},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(xe.ZP,{size:"large",onClick:Hn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Ze=Fe,gt=re(78045),ct=re(31795);const yt=gt.ZP.Group,Ot={margin:"0 8px"};var At=({callback:Se,onCancel:ye})=>{function fe(qe){Se(qe)}return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:fe},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:Ot},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:Ot},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(ct.Z,null)),ne.createElement("span",{style:Ot},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(ct.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:Ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(yt,null,ne.createElement(gt.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(gt.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(gt.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(gt.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(xe.ZP,{type:"ghost",onClick:ye},"\u53D6\u6D88")))},Dt=re(47897),sn=re(61016),en=re.n(sn),Xt=(0,ne.forwardRef)(({use3d:Se,width:ye,height:fe,callback:qe,showSaveButton:Lt},Ct)=>{const Sn=(0,ne.useRef)(),Yt=(0,ne.useRef)(),[gn,Bn]=(0,ne.useState)(!1),Hn=(0,ne.useRef)({id:Sn,appName:"graphing",width:ye||1e3,height:fe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ne.useEffect)(()=>{Yt.current=new(en())(Hn.current,!0),window.onload=function(){Yt.current.inject("applet_container")}},[]);const et=()=>{var rn=window.ggbApplet.getPNGBase64(1,!0,72);return qe&&qe(rn),rn};return(0,ne.useEffect)(()=>{Hn.current.appName=gn?"3D":"graphing",Yt.current.inject("applet_container")},[gn]),(0,ne.useEffect)(()=>{Bn(Se)},[Se]),(0,ne.useImperativeHandle)(Ct,()=>({getImgData:et})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Sn}),ne.createElement(Je.Z,{align:"middle"},ne.createElement(Pt.Z,{flex:1},ne.createElement(Dt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:gn,onChange:rn=>Bn(rn)})),ne.createElement(Pt.Z,null,ne.createElement(xe.ZP,{size:"large",onClick:et,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),cn=re(36527),he=re(25934),Be=re(2453);const je="link",it="upload-image",mt="add-flowchart",Nt="draw-image",Gt="add-flowchart",bt="code-block",xt="add-table",Ut="------------",Zt={default:Ut,left:`:${Ut}`,center:`:${Ut}:`,right:`${Ut}:`};var on=re(99914),an=(Se,ye,fe)=>new Promise((qe,Lt)=>{var Ct=gn=>{try{Yt(fe.next(gn))}catch(Bn){Lt(Bn)}},Sn=gn=>{try{Yt(fe.throw(gn))}catch(Bn){Lt(Bn)}},Yt=gn=>gn.done?qe(gn.value):Promise.resolve(gn.value).then(Ct,Sn);Yt((fe=fe.apply(Se,ye)).next())});function hn(){}let bn=0;const tn=1e4,Qt="\u2581",mn="@\u2581\u2581@",pn="@\u2581@",wn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,ln=["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 xn(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}const Cn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",In={[Cn+"-B"]:"bold",[Cn+"-I"]:"italic"},Un={[je]:"\u6DFB\u52A0\u94FE\u63A5",[bt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[it]:"\u6DFB\u52A0\u56FE\u7247",[Nt]:"\u6DFB\u52A0\u753B\u56FE",[mt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[xt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var jn=({defaultValue:Se="",onChange:ye,width:fe="100%",height:qe=400,miniToolbar:Lt=!1,isFocus:Ct=!1,watch:Sn,insertTemp:Yt,mode:gn="markdown",id:Bn="markdown-editor-id",showResizeBar:Hn=!1,noStorage:et=!1,showNullButton:rn=!1,showNullProgramButton:ue=!1,hidetoolBar:$e=!1,fullScreen:Ce=!1,onBlur:Oe,onCMBeforeChange:at,onFullScreen:He,className:_e="",disablePaste:Re=!1,disabled:Mt=!1,disabledFill:Ft=!1,placeholder:Ht="",values:qt="",extraUse:dn,isShowTool:fn=!0,disableImageUpload:An=!1})=>{const[Xe,Xn]=(0,ne.useState)(null),[On,Ve]=(0,ne.useState)(Se),[ht,zt]=(0,ne.useState)(Sn),[lt,un]=(0,ne.useState)(Ce),[Rt,vn]=(0,ne.useState)(""),[$n,Nn]=(0,ne.useState)(0),[ea,ta]=(0,ne.useState)(qe),[ua,na]=(0,ne.useState)(!1),Vn=(0,ne.useRef)((0,he.Z)()),Mn=(0,ne.useRef)(!1),da=(0,ne.useRef)(),[la,sa]=(0,ne.useState)(0),[aa,Kn]=(0,ne.useState)(0),_n=(0,ne.useRef)(),Kt=(0,ne.useRef)(),Gn=(0,ne.useRef)(),Wn=(0,ne.useRef)(),Zn=()=>an(void 0,null,function*(){var Bt;const ut=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Vn.current}});(Bt=ut==null?void 0:ut.attachments)!=null&&Bt.length&&(console.log("cm:",Xe,_n),ut.attachments.map(pt=>{pt.content_type.indexOf("image")>-1?Xe.replaceSelection(``):pt.content_type.indexOf("video")>-1?Xe.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):pt.content_type.indexOf("pdf")>-1?Xe.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${pt.id}?type=${pt.content_type}&disposition=inline" target="_blank">${pt.name}</a>`):Xe.replaceSelection(`[${pt.name}](${ENV.API_SERVER}/api/attachments/${pt.id}?type=${pt.content_type})`)}))});(0,ne.useEffect)(()=>{const Bt=window.scrollY||window.pageYOffset;Ve(qt),Xe==null||Xe.setValue(qt),window.scrollTo(0,Bt)},[qt]),(0,ne.useEffect)(()=>{He==null||He(lt)},[lt]),(0,ne.useEffect)(()=>{if(_n.current){let Bt=function(pt,Et){var Pn,Dn;if(Re){Et.preventDefault();return}const Tn=Et.clipboardData;if(Tn){const Tt=Tn.types.toString(),Vt=Tn.items;if(Tt==="Files"||Tn.types.indexOf("Files")>-1){if(Et.preventDefault(),gn=="stex")return;try{let Ln=Vt[1];((Pn=Vt[0])==null?void 0:Pn.kind)==="file"&&(Ln=Vt[0]);const It=Ln.getAsFile(),En=It.name.split(".").pop();if(An&&((Dn=It==null?void 0:It.type)==null?void 0:Dn.indexOf("image"))>-1)return!0;(0,Le.I)(It,Fn=>{var Jn,ga,qn;Fn.id?((Jn=It==null?void 0:It.type)==null?void 0:Jn.indexOf("image"))>-1?ut.replaceSelection(`<img width="100%" src="/api/attachments/${Fn.id}?type=${Fn.content_type})" alt="" />`):((ga=It==null?void 0:It.type)==null?void 0:ga.indexOf("video"))>-1?ut.replaceSelection(`<video width="100%" controls src="/api/attachments/${Fn.id}"></video>`):((qn=It==null?void 0:It.type)==null?void 0:qn.indexOf("pdf"))>-1?ut.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=${It.type}&disposition=inline" target="_blank">${It.name}</a>`):ln.includes(En)?ut.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=office&disposition=inline" target="_blank">${It.name}</a>`):ut.replaceSelection(`[${It.name}](/api/attachments/${Fn.id}?type=${Fn.content_type})`):(Fn==null?void 0:Fn.status)===401&&(Be.ZP.warning((Fn==null?void 0:Fn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ln){Be.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ut=Ke().fromTextArea(_n.current,{mode:gn,lineNumbers:!Lt,lineWrapping:!0,value:Se,autoCloseTags:!ue,autoCloseBrackets:!0});return ut.on("keyup",function(pt,Et){Et.keyCode===8&&(pt.getValue()==""?ut.setOption("placeholder",Ht):ut.setOption("placeholder",null))}),ut.on("keydown",function(pt,Et){if(Et.keyCode===8){var Pn=Qn(pt);Pn&&Et.preventDefault()}}),Ct&&ut.focus(),ut.on("paste",Bt),ut.on("dragleave",function(pt,Et){Kt.current.classList.remove("mouse-hover-md")}),Mt&&ut.on("beforeChange",function(pt,Et){(Et.origin==="paste"||Et.origin==="+input")&&Et.cancel()}),Xn(ut),()=>{ut.off("paste",Bt)}}},[]);const oa=(0,ne.useCallback)(()=>{if(Kt.current)try{}catch(Bt){console.log(Bt,"---- to set md editor body height")}},[ea,Kt,lt]);(0,ne.useEffect)(()=>{function Bt(){let ut=new Me.Z(pt=>{for(let Et of pt)(Et.target.offsetHeight>0||Et.target.offsetWidth>0)&&(oa(),Xe.setSize("100%","100%"),Xe.refresh())});return ut.observe(_n.current.parentElement),ut}if(Xe){const ut=Bt();return()=>{var pt,Et;(pt=_n.current)!=null&&pt.parentElement&&ut.unobserve((Et=_n.current)==null?void 0:Et.parentElement)}}},[Xe,oa]),(0,ne.useEffect)(()=>{if(Xe){let Bt=[];for(const[ut,pt]of Object.entries(In)){let Et={[ut]:()=>{ca(pt)}};Bt.push(Et),Xe.addKeyMap(Et)}return da.current=setInterval(()=>{Mn.current&&Zn()},4e3),()=>{clearInterval(da.current);for(let ut of Bt)Xe.removeKeyMap(ut)}}},[Xe]),(0,ne.useEffect)(()=>{Ce!==lt&&un(Ce)},[Ce]),(0,on.Z)(()=>{if(!et&&$n>0){let Bt=new Date().getTime(),ut=window.sessionStorage.getItem(Bn);Bt>=$n+tn&&(!ut||ut!==On)&&(window.sessionStorage.setItem(Bn,On),na(!0))}},tn),(0,ne.useEffect)(()=>{zt(Sn)},[Xe,Sn]),(0,ne.useEffect)(()=>{Xe&&Ct&&Xe.focus()},[Xe,Ct]),(0,ne.useEffect)(()=>{if(ht&&Xe){let Bt=function(pt){let Et=pt.target;if(Wn.current){let Pn=Et.scrollTop/Et.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*Pn}};const ut=Xe.getScrollerElement();return ut.addEventListener("scroll",Bt),()=>{ut.removeEventListener("scroll",Bt)}}},[Xe,ht]),(0,ne.useEffect)(()=>{if(Xe&&at){let Bt=function(ut,pt){at(ut,pt)};return Xe.on("beforeChange",Bt),()=>{Xe.off("beforeChange",Bt)}}},[Xe,at]),(0,ne.useEffect)(()=>{if(Xe&&Oe){let Bt=function(){Oe(Xe.getValue())};return Xe.on("blur",Bt),()=>{Xe.off("blur",Bt)}}},[Xe,Oe]);function Qn(Bt,ut){var pt=Bt.getDoc(),Et=pt.getCursor(),Pn=pt.getLine(Et.line),Dn=Pn.charAt(Et.ch-1),Tn=Pn.lastIndexOf("@\u2581@",Et.ch),Tt=Pn.lastIndexOf("@\u2581\u2581@",Et.ch),Vt=Tn>Tt?Tn:Tt,Ln=Tn>Tt?3:4;if(mn.indexOf(Dn)===-1)return null;if(console.log("change1:",ut,Bt,Pn,Et,Vt,Tn,Tt,Dn),Vt>=0&&Et.ch-Vt<5){var It=Vt+Ln;return pt.replaceRange("",{line:Et.line,ch:Vt},{line:Et.line,ch:It}),{line:Et.line,ch:It}}return null}(0,ne.useEffect)(()=>{if(Xe){let Bt=function(ut,pt){const Et=ut.getValue();Ve(Et),Nn(new Date().getTime()),ut.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ye&&(ue?ye(Et,Pa(Et)):ye(Et))};return Xe.on("change",Bt),()=>{Xe.off("change",Bt)}}},[Xe,ye]),(0,ne.useEffect)(()=>{if(Xe)if(Se==null)Xe.setValue(""),Ve("");else{const Bt=window.scrollY||window.pageYOffset;Se!==Xe.getValue()&&(Xe.setValue(Se),Ve(Se),Xe.setCursor(Mt?1:Xe.lineCount(),0),window.scrollTo(0,Bt))}},[Xe,Se]);const ca=(0,ne.useCallback)(Bt=>{const ut=Xe.getCursor(),pt=Xe.getSelection();let Et=pt.split(`
|
|
`);switch(Bt){case"bold":return Xe.replaceSelection("**"+pt+"**"),pt===""&&Xe.setCursor(ut.line,ut.ch+2),Xe.focus();case"italic":return Xe.replaceSelection("*"+pt+"*"),pt===""&&Xe.setCursor(ut.line,ut.ch+1),Xe.focus();case"code":return Xe.replaceSelection("`"+pt+"`"),pt===""&&Xe.setCursor(ut.line,ut.ch+1),Xe.focus();case"inline-latex":return vn("inline-latex"),Xe.focus();case"latex":return Xe.replaceSelection("```latex\n"+pt+"\n```"),Xe.setCursor(ut.line+1,pt.length+1),Xe.focus();case"line-break":return Xe.replaceSelection(`<br/>
|
|
`),Xe.focus();case"list-ul":return pt===""?Xe.replaceSelection("- "+pt):Xe.replaceSelection(Et.map(Pn=>Pn===""?"":`- ${Pn}`).join(`
|
|
`)),Xe.focus();case"list-ol":return pt===""?Xe.replaceSelection("1. "+pt):Xe.replaceSelection(Et.map((Pn,Dn)=>Pn===""?"":`${Dn+1}. ${Pn}`).join(`
|
|
`)),Xe.focus();case"add-null-ch":return pt===""&&Xe.setCursor(ut.line,ut.ch),Xe.replaceSelection(Qt),Xe.focus();case"add-signal":return pt===""&&Xe.setCursor(ut.line,ut.ch),Xe.replaceSelection(pn),Xe.focus();case"add-multiple":return pt===""&&Xe.setCursor(ut.line,ut.ch),Xe.replaceSelection(mn),Xe.focus();case"inster-template-1":return pt===""&&Xe.setCursor(ut.line,ut.ch),Xe.replaceSelection(wn),Xe.focus();case"eraser":return Xe.setValue(""),Xe.focus();case"trigger-watch":return zt(!ht),Xe.focus();case"trigger-full-screen":return un(!lt),Xe.focus();case je:vn(je);return;case bt:vn(bt);return;case it:vn(it);return;case Nt:vn(Nt);return;case"maths-latex":vn("maths-latex");return;case mt:vn(mt);return;case xt:vn(xt);return;default:throw new Error}},[Xe,ht,lt]),Yn=(0,ne.useCallback)((Bt,ut)=>{var pt,Et,Pn,Dn,Tn,Tt;if(vn(""),!(An&&Rt==it))switch(Rt){case je:const{title:Fn,link:Jn}=Bt;return Xe.replaceSelection(`[${Fn}](${Jn})`),Xe.focus();case bt:const{language:ga,content:qn}=Bt;return Xe.replaceSelection(["```"+ga,qn,"```"].join(`
|
|
`)),Xe.focus();case"maths-latex":for(var Vt=atob(Bt),Ln=new Uint8Array(Vt.length),It=0;It<Vt.length;It++)Ln[It]=Vt.charCodeAt(It);var En=new Blob([Ln],{type:"image/png"});(0,Le.I)(En,ia=>{ia.id?Xe.replaceSelection(``):(ia==null?void 0:ia.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Xe.replaceSelection("`$$"+Bt+"$$`");break;case it:case Nt:case Gt:const{src:ma,alt:wa}=Bt,kn=ut,Ba=(Pn=(Et=(pt=kn==null?void 0:kn.name)==null?void 0:pt.split("."))==null?void 0:Et.pop)==null?void 0:Pn.call(Et);return((Dn=kn==null?void 0:kn.type)==null?void 0:Dn.indexOf("image"))>-1||!(kn!=null&&kn.type)?kn.align||kn.width?Xe.replaceSelection(`<p style="text-align:${kn.align||"initial"}"><img width="${kn.width?kn.width+"%":"initial"}" src="${ma}" alt="${wa||""}" /></p>`):Xe.replaceSelection(`<img width="100%" src="${ma}" alt="${wa||""}" />`):((Tn=kn==null?void 0:kn.type)==null?void 0:Tn.indexOf("video"))>-1?Xe.replaceSelection(`<video width="100%" controls src="${ma}"></video>`):((Tt=kn==null?void 0:kn.type)==null?void 0:Tt.indexOf("pdf"))>-1?Xe.replaceSelection(`<a href="${ma}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):ln.includes(Ba)?Xe.replaceSelection(`<a href="${ma}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):Xe.replaceSelection(`[${kn.name}](${ma})`),Xe.focus();case xt:const{row:$a,col:Fa,align:Oa}=Bt;let va=`
|
|
`;for(let ia=0;ia<$a;ia++){let Ca=[],Ea=[];for(let xa=0;xa<Fa;xa++)ia===1&&Ea.push(Zt[Oa]),Ca.push(" ");ia===1&&(va+=`| ${Ea.join(" | ")} |
|
|
`),va+=`| ${Ca.join(Fa===1?"":" | ")} |
|
|
`}return Xe.replaceSelection(va+`
|
|
`),Xe.focus();default:throw new Error}},[Xe,Rt,An]),zn=(0,ne.useMemo)(()=>{switch(Rt){case je:return ne.createElement(nn,{callback:Yn,onCancel:yn});case bt:return ne.createElement(Jt.Z,{callback:Yn,onCancel:yn});case it:return ne.createElement(Le.Z,{callback:Yn,onCancel:yn});case mt:return ne.createElement(Ze,{callback:Yn,onCancel:yn});case xt:return ne.createElement(At,{callback:Yn,onCancel:yn});case"maths-latex":return ne.createElement(Xt,{showSaveButton:!0,callback:Yn});case"inline-latex":return ne.createElement(cn.Z,{showSaveButton:!0,callback:Yn});default:return null}},[Rt]);function yn(){vn("")}(0,ne.useEffect)(()=>{if(Gn.current){let Bt=function(Tn){Pn=!0,Dn=Tn.pageY},ut=function(){Pn=!1},pt=function(Tn){if(Pn){let Tt=Tn.pageY-Dn;Tt<0&&(Tt=0),Tt>300&&(Tt=300);let Vt=qe+Tt+"px";ta(Vt)}},Et=Gn.current,Pn=!1,Dn=0;return Et.addEventListener("mousedown",Bt),document.addEventListener("mousemove",pt),document.addEventListener("mouseup",ut),()=>{Et.removeEventListener("mousedown",Bt),document.removeEventListener("mousemove",pt),document.removeEventListener("mouseup",ut)}}},[Xe,Gn]),(0,ne.useEffect)(()=>{ta(qe)},[qe]);const ra=xn(fe),Sa=xn(ea),fa={width:ra,height:Sa},ya=(0,ne.useMemo)(()=>{if($n){let Bt=new Date($n),ut=Bt.getHours(),pt=Bt.getMinutes(),Et=Bt.getSeconds();return ut=ut<10?"0"+ut:ut,pt=pt<10?"0"+pt:pt,Et=Et<10?"0"+Et:Et,`${ut}:${pt}:${Et}`}return 0},[$n]),Pa=Bt=>{const ut=[];if(ue){let pt=-1;Bt=Bt.replace(/(@▁▁@|@▁@)/g,function(Et,Pn,Dn){ut.push({multiLine:Et!==pn})})}return ut};function La(){window.sessionStorage.removeItem(Bn),na(!1),Nn(0)}function ba(){na(!1),Nn(0),Xe.setValue(window.sessionStorage.getItem(Bn))}(0,ne.useEffect)(()=>{Un[Rt]&&Rt!==Nt&&Rt!==mt&&setTimeout(()=>{const Bt=document.getElementsByClassName("markdown-popup-form")[0],ut=window.innerWidth/2-Bt.offsetWidth/2,pt=window.innerHeight/2-Bt.offsetHeight/2;sa(ut),Kn(pt)},0)},[Rt]);const ha=Bt=>{Bt.preventDefault();const ut=Bt.clientX-la,pt=Bt.clientY-aa;document.body.onmousemove=Et=>{let Pn=Et.clientX-ut,Dn=Et.clientY-pt;const Tn=document.getElementsByClassName("markdown-popup-form")[0],Tt=window.innerWidth-Tn.offsetWidth,Vt=window.innerHeight-Tn.offsetHeight;Pn=Math.max(0,Math.min(Pn,Tt)),Dn=Math.max(0,Math.min(Dn,Vt)),pa(Et.clientX,Et.clientY,ut,pt)&&(sa(Pn),Kn(Dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(Bt,ut,pt,Et)=>{const Pn=document.body.clientHeight,Dn=document.body.clientWidth;return Bt<20&&pt>Bt||Bt>Dn-20&&pt<Bt||ut<20&&Et>ut||ut>Pn-20&&Et<ut?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:Kt},ne.createElement("div",{className:`markdown-editor-container ${_e} ${ht?"on-preview":""} ${Lt?"mini":""} ${lt?"full-screen":""}`,style:fa},fn&&ne.createElement(ie,{insertTemp:Yt,watch:ht,fullScreen:lt,showNullButton:rn,showNullProgramButton:ue,onActionCallback:ca,hidetoolBar:$e,extraUse:dn}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:_n,placeholder:Ht})),ht?ne.createElement("div",{ref:Wn,className:"preview-container"},gn==="stex"&&ne.createElement(De,{value:On}),gn!=="stex"&&ne.createElement(We.Z,{disabledFill:Ft,showProgramFill:ue,value:On})):null))),Hn?ne.createElement("a",{ref:Gn,className:"editor-resize"}):null,Rt===Nt&&ne.createElement(ft,{callback:Yn,onCancel:yn}),Rt===mt&&ne.createElement(Ze,{callback:Yn,onCancel:yn}),ne.createElement(me.Z,null,Un[Rt]&&Rt!==Nt&&Rt!==mt?ne.createElement(Ae.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:la,top:aa},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:ha},Un[Rt]),open:!0,onCancel:yn,footer:null,destroyOnClose:!0,width:Rt===mt?"1200px":null,height:Rt===mt?"80vh":null,className:"markdown-popup-form"},zn):null))}},70859:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return ge},I:function(){return me}});var ne=re(22150),Pe=re(2453),Ke=re(69677),Me=re(93421),ce=re(31795),we=re(78045),le=re(71577),Ye=re(15476),ze=re(67294),Ie=re(52262),We=re(67294),De=Object.defineProperty,Te=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(se,Ge,xe)=>Ge in se?De(se,Ge,{enumerable:!0,configurable:!0,writable:!0,value:xe}):se[Ge]=xe,x=(se,Ge)=>{for(var xe in Ge||(Ge={}))y.call(Ge,xe)&&b(se,xe,Ge[xe]);if(a)for(var xe of a(Ge))E.call(Ge,xe)&&b(se,xe,Ge[xe]);return se},z=(se,Ge)=>Te(se,ae(Ge));const{useForm:ee}=ne.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:se,onCancel:Ge})=>{const[xe]=ee();let rt=(0,ze.useRef)();function St(tt){rt.current.width=xe.getFieldValue("width"),rt.current.align=xe.getFieldValue("align"),se(tt,rt.current)}function Wt(tt,Ue){if(tt.status===-1){Pe.ZP.error(tt.message);return}xe.setFieldsValue({src:`/api/attachments/${tt.id}`,type:Ue.type})}function Ee(tt){let Ue=tt.target.files[0];rt.current=Ue,me(Ue,Wt)}return We.createElement(ne.default,z(x({form:xe},oe),{className:"upload-image-panel",onFinish:St,style:{width:470,overflow:"hidden"}}),We.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},We.createElement("div",{className:"flex-container"},We.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},We.createElement(Ke.default,{style:te})),We.createElement(ie,{onFileChange:Ee}))),We.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},We.createElement(Ke.default,{style:{width:264}})),We.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},We.createElement(Me.Z,null,We.createElement(ne.default.Item,{name:"width",style:{margin:0}},We.createElement(ce.Z,{style:{width:264}})),We.createElement("span",{className:"ml8"},"%"))),We.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},We.createElement(we.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),We.createElement("aside",null,We.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},We.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(le.ZP,{type:"default",onClick:Ge},"\u53D6\u6D88"))))};function ie({onFileChange:se}){return We.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",We.createElement("input",{type:"file",onChange:se}))}function me(se,Ge){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ie.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let xe=new FormData;xe.append("editormd-image-file",se),xe.append("file_param_name","editormd-image-file"),xe.append("byxhr","true");var rt=new window.XMLHttpRequest;rt.withCredentials=!0,rt.addEventListener("load",function(St){Ge(JSON.parse(St.target.responseText),se)},!1),rt.addEventListener("error",function(St){console.error(St)},!1),rt.open("POST",`${Ye.KI}/api/attachments.json`),rt.send(xe)}},76621:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return Ke}});var ne=re(67294),Pe=re(73935);class Ke extends ne.Component{constructor(ce){super(ce);const we=window.document;this.node=we.createElement("div"),we.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Pe.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return Pe}});var ne=re(67294);function Pe(Ke,Me){const ce=(0,ne.useRef)();(0,ne.useEffect)(()=>{ce.current=Ke}),(0,ne.useEffect)(()=>{function we(){ce.current()}if(Me!==null){let le=setInterval(we,Me);return()=>clearInterval(le)}},[Me])}},38361:function(Ne,st,re){"use strict";re.r(st),re.d(st,{default:function(){return Ge}});var ne=re(67294),Pe=re(35973),Ke=re(22150),Me=re(2453),ce=re(85673),we=re(69677),le=re(59810),Ye=re(71230),ze=re(15746),Ie=re(31795),We=re(84567),De=re(71577),Te=re(35567),ae=re(86763),a=re(11320),y={bg:"bg___iB8eB",flexRow:"flexRow___rWsOs",flexJustifyCenter:"flexJustifyCenter___GenLk",flexAlignEnd:"flexAlignEnd___AMfei",flexAlignCenter:"flexAlignCenter___rQos5",flexColumn:"flexColumn___fJhyT",formWrap:"formWrap___pNpQ9",titleWrap:"titleWrap____VSL0",fieldWrap:"fieldWrap___ACUG9",mdWrap:"mdWrap___xFqQa",backgroundFa:"backgroundFa___MuFzN",button:"button___tzh3S"},E=Object.defineProperty,b=Object.defineProperties,x=Object.getOwnPropertyDescriptors,z=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,oe=(xe,rt,St)=>rt in xe?E(xe,rt,{enumerable:!0,configurable:!0,writable:!0,value:St}):xe[rt]=St,ge=(xe,rt)=>{for(var St in rt||(rt={}))ee.call(rt,St)&&oe(xe,St,rt[St]);if(z)for(var St of z(rt))te.call(rt,St)&&oe(xe,St,rt[St]);return xe},ie=(xe,rt)=>b(xe,x(rt)),me=(xe,rt,St)=>new Promise((Wt,Ee)=>{var tt=ot=>{try{Qe(St.next(ot))}catch(vt){Ee(vt)}},Ue=ot=>{try{Qe(St.throw(ot))}catch(vt){Ee(vt)}},Qe=ot=>ot.done?Wt(ot.value):Promise.resolve(ot.value).then(tt,Ue);Qe((St=St.apply(xe,rt)).next())});const se=({shixunHomeworks:xe,newCourse:rt,globalSetting:St,loading:Wt,dispatch:Ee})=>{var tt;const Ue=(0,Pe.useParams)(),[Qe]=Ke.default.useForm(),[ot,vt]=(0,ne.useState)({}),[kt,nn]=(0,ne.useState)(!1),[Jt,Le]=(0,ne.useState)([]),[Ae,Je]=(0,ne.useState)([]),{commonHomeWorkEditDefaultData:$t}=xe,nt={name:"file",multiple:!0,action:a.Z.API_SERVER+"/api/attachments.json",defaultFileList:Jt,onChange(wt){const{status:jt}=wt.file;jt==="done"?Me.ZP.success(`${wt.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`):jt==="error"&&Me.ZP.error(`${wt.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)}};(0,ne.useEffect)(()=>{de()},[Ue.topicId]);const ft=wt=>wt==null?void 0:wt.map(jt=>({uid:jt.id,response:{id:jt.id},name:jt.title,status:"done",url:jt.url})),de=()=>me(void 0,null,function*(){const wt=yield Ee({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:Ue.topicId}});wt&&(Qe.setFieldsValue({name:wt.name}),Qe.setFieldsValue({description:wt.description}),Qe.setFieldsValue(ge({},wt)),vt(ge({},wt)),Le([...ft(wt.attachments)]),Je([...ft(wt.reference_attachments)]),nn(!0))}),dt=wt=>me(void 0,null,function*(){var jt,Pt;const ke=ge({},wt);ke.attachment_ids&&(ke.attachment_ids=(jt=ke==null?void 0:ke.attachment_ids.fileList)==null?void 0:jt.map(pe=>pe.response.id)),ke.reference_attachment_ids&&(ke.reference_attachment_ids=(Pt=ke==null?void 0:ke.reference_attachment_ids.fileList)==null?void 0:Pt.map(pe=>pe.response.id)),(yield(0,ae.yT)(ie(ge(ge({id:Ue.topicId},Ue),ke),{type:3})))&&Pe.history.push(`/users/${Ue.username}/topics/${Ue.topicId}/${Ue.topictype}/group/detail`)});return ne.createElement("section",{className:y.bg},ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},ne.createElement(ce.Z,{separator:">"},ne.createElement(ce.Z.Item,null,ne.createElement(Pe.Link,{to:`/users/${Ue.username}/${Ue.topictype==="personal"?"topics":"topicbank"}/${Ue.topictype}`},Ue.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),ne.createElement(ce.Z.Item,null,ne.createElement(Pe.Link,{to:`/users/${Ue.username}/topics/${Ue.topicId}/${Ue.topictype}/group/detail`},"\u8BE6\u60C5")),ne.createElement(ce.Z.Item,null,"\u7F16\u8F91")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u666E\u901A\u4F5C\u4E1A"),ne.createElement(Ke.default,{form:Qe,className:y.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{vt(ge({},Qe.getFieldsValue()))},onFinish:dt},ne.createElement("div",{className:y.fieldWrap},ne.createElement(Ke.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(we.default,{maxLength:60,suffix:`${((tt=ot.name)==null?void 0:tt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:y.mdWrap},ne.createElement(Ke.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ne.createElement(Te.Z,{watch:!0,defaultValue:$t.description})),ne.createElement("div",null,ne.createElement(Ke.default.Item,{name:"attachment_ids"},kt&&ne.createElement(le.default,ge({defaultFileList:Jt},nt),ne.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09"))),ne.createElement(Ye.Z,{gutter:[20,20]},ne.createElement(ze.Z,{flex:"230px"},ne.createElement(Ke.default.Item,{name:"min_num",label:"\u5206\u7EC4\u8BBE\u7F6E",rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},ne.createElement(Ie.Z,{style:{width:200},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),ne.createElement(ze.Z,{flex:"230px"},ne.createElement(Ke.default.Item,{name:"max_num",label:ne.createElement("div",null,"\xA0"),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},ne.createElement(Ie.Z,{style:{width:200},max:10,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),ne.createElement(ze.Z,null,ne.createElement("div",{className:"mt30"},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),ne.createElement(Ye.Z,null,ne.createElement(ze.Z,null,ne.createElement(Ke.default.Item,{name:"base_on_project",valuePropName:"checked"},ne.createElement(We.default,{value:1,defaultChecked:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),ne.createElement("span",{className:"c-light-black"},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),ne.createElement("div",{className:y.mdWrap},ne.createElement(Ke.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(Te.Z,{defaultValue:$t.reference_answer,watch:!0})),ne.createElement("div",null,ne.createElement(Ke.default.Item,{name:"reference_attachment_ids"},kt&&ne.createElement(le.default,ie(ge({},nt),{defaultFileList:Ae}),ne.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ne.createElement("div",{className:y.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(Ke.default.Item,null,ne.createElement(De.ZP,{size:"middle",type:"primary",className:`${y.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),ne.createElement(De.ZP,{size:"middle",type:"primary",ghost:!0,className:y.button,onClick:()=>Pe.history.push(`/users/${Ue.username}/topics/${Ue.topicId}/${Ue.topictype}/group/detail`)},"\u53D6\u6D88"))))))};var Ge=(0,Pe.connect)(({shixunHomeworks:xe,newCourse:rt,loading:St,globalSetting:Wt})=>({shixunHomeworks:xe,newCourse:rt,globalSetting:Wt,loading:St.effects}))(se)},57838:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return Pe}});var ne=re(67294);function Pe(){const[,Ke]=ne.useReducer(Me=>Me+1,0);return Ke}},85673:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return Wt}});var ne=re(94184),Pe=re.n(ne),Ke=re(37419),Me=re(1337),ce=re(67294),we=re(96159),le=re(53124),Ye=re(42922),ze=re(35874);const Ie=Ee=>{let{children:tt}=Ee;const{getPrefixCls:Ue}=ce.useContext(le.E_),Qe=Ue("breadcrumb");return ce.createElement("li",{className:`${Qe}-separator`,"aria-hidden":"true"},tt===""?tt:tt||"/")};Ie.__ANT_BREADCRUMB_SEPARATOR=!0;var We=Ie,De=function(Ee,tt){var Ue={};for(var Qe in Ee)Object.prototype.hasOwnProperty.call(Ee,Qe)&&tt.indexOf(Qe)<0&&(Ue[Qe]=Ee[Qe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Qe=Object.getOwnPropertySymbols(Ee);ot<Qe.length;ot++)tt.indexOf(Qe[ot])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Qe[ot])&&(Ue[Qe[ot]]=Ee[Qe[ot]]);return Ue};function Te(Ee,tt){if(Ee.title===void 0||Ee.title===null)return null;const Ue=Object.keys(tt).join("|");return typeof Ee.title=="object"?Ee.title:String(Ee.title).replace(new RegExp(`:(${Ue})`,"g"),(Qe,ot)=>tt[ot]||Qe)}function ae(Ee,tt,Ue,Qe){if(Ue==null)return null;const{className:ot,onClick:vt}=tt,kt=De(tt,["className","onClick"]),nn=Object.assign(Object.assign({},(0,Me.Z)(kt,{data:!0,aria:!0})),{onClick:vt});return Qe!==void 0?ce.createElement("a",Object.assign({},nn,{className:Pe()(`${Ee}-link`,ot),href:Qe}),Ue):ce.createElement("span",Object.assign({},nn,{className:Pe()(`${Ee}-link`,ot)}),Ue)}function a(Ee,tt){return(Qe,ot,vt,kt,nn)=>{if(tt)return tt(Qe,ot,vt,kt);const Jt=Te(Qe,ot);return ae(Ee,Qe,Jt,nn)}}var y=function(Ee,tt){var Ue={};for(var Qe in Ee)Object.prototype.hasOwnProperty.call(Ee,Qe)&&tt.indexOf(Qe)<0&&(Ue[Qe]=Ee[Qe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Qe=Object.getOwnPropertySymbols(Ee);ot<Qe.length;ot++)tt.indexOf(Qe[ot])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Qe[ot])&&(Ue[Qe[ot]]=Ee[Qe[ot]]);return Ue};const E=Ee=>{const{prefixCls:tt,separator:Ue="/",children:Qe,menu:ot,overlay:vt,dropdownProps:kt,href:nn}=Ee,Le=(Ae=>{if(ot||vt){const Je=Object.assign({},kt);if(ot){const $t=ot||{},{items:nt}=$t,ft=y($t,["items"]);Je.menu=Object.assign(Object.assign({},ft),{items:nt==null?void 0:nt.map((de,dt)=>{var{key:wt,title:jt,label:Pt,path:ke}=de,be=y(de,["key","title","label","path"]);let pe=Pt!=null?Pt:jt;return ke&&(pe=ce.createElement("a",{href:`${nn}${ke}`},pe)),Object.assign(Object.assign({},be),{key:wt!=null?wt:dt,label:pe})})})}else vt&&(Je.overlay=vt);return ce.createElement(ze.Z,Object.assign({placement:"bottom"},Je),ce.createElement("span",{className:`${tt}-overlay-link`},Ae,ce.createElement(Ye.Z,null)))}return Ae})(Qe);return Le!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,Le),Ue&&ce.createElement(We,null,Ue)):null},b=Ee=>{const{prefixCls:tt,children:Ue,href:Qe}=Ee,ot=y(Ee,["prefixCls","children","href"]),{getPrefixCls:vt}=ce.useContext(le.E_),kt=vt("breadcrumb",tt);return ce.createElement(E,Object.assign({},ot,{prefixCls:kt}),ae(kt,ot,Ue,Qe))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=re(14747),ee=re(67968),te=re(45503);const oe=Ee=>{const{componentCls:tt,iconCls:Ue}=Ee;return{[tt]:Object.assign(Object.assign({},(0,z.Wf)(Ee)),{color:Ee.itemColor,fontSize:Ee.fontSize,[Ue]:{fontSize:Ee.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Ee.linkColor,transition:`color ${Ee.motionDurationMid}`,padding:`0 ${Ee.paddingXXS}px`,borderRadius:Ee.borderRadiusSM,height:Ee.lineHeight*Ee.fontSize,display:"inline-block",marginInline:-Ee.marginXXS,"&:hover":{color:Ee.linkHoverColor,backgroundColor:Ee.colorBgTextHover}},(0,z.Qy)(Ee)),"li:last-child":{color:Ee.lastItemColor},[`${tt}-separator`]:{marginInline:Ee.separatorMargin,color:Ee.separatorColor},[`${tt}-link`]:{[`
|
|
> ${Ue} + span,
|
|
> ${Ue} + a
|
|
`]:{marginInlineStart:Ee.marginXXS}},[`${tt}-overlay-link`]:{borderRadius:Ee.borderRadiusSM,height:Ee.lineHeight*Ee.fontSize,display:"inline-block",padding:`0 ${Ee.paddingXXS}px`,marginInline:-Ee.marginXXS,[`> ${Ue}`]:{marginInlineStart:Ee.marginXXS,fontSize:Ee.fontSizeIcon},"&:hover":{color:Ee.linkHoverColor,backgroundColor:Ee.colorBgTextHover,a:{color:Ee.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Ee.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",Ee=>{const tt=(0,te.TS)(Ee,{});return[oe(tt)]},Ee=>({itemColor:Ee.colorTextDescription,lastItemColor:Ee.colorText,iconFontSize:Ee.fontSize,linkColor:Ee.colorTextDescription,linkHoverColor:Ee.colorText,separatorColor:Ee.colorTextDescription,separatorMargin:Ee.marginXS})),ie=function(Ee,tt){var Ue={};for(var Qe in Ee)Object.prototype.hasOwnProperty.call(Ee,Qe)&&tt.indexOf(Qe)<0&&(Ue[Qe]=Ee[Qe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Qe=Object.getOwnPropertySymbols(Ee);ot<Qe.length;ot++)tt.indexOf(Qe[ot])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Qe[ot])&&(Ue[Qe[ot]]=Ee[Qe[ot]]);return Ue};function me(Ee){const{breadcrumbName:tt,children:Ue}=Ee,Qe=ie(Ee,["breadcrumbName","children"]),ot=Object.assign({title:tt},Qe);return Ue&&(ot.menu={items:Ue.map(vt=>{var{breadcrumbName:kt}=vt,nn=ie(vt,["breadcrumbName"]);return Object.assign(Object.assign({},nn),{title:kt})})}),ot}function se(Ee,tt){return(0,ce.useMemo)(()=>Ee||(tt?tt.map(me):null),[Ee,tt])}var Ge=function(Ee,tt){var Ue={};for(var Qe in Ee)Object.prototype.hasOwnProperty.call(Ee,Qe)&&tt.indexOf(Qe)<0&&(Ue[Qe]=Ee[Qe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,Qe=Object.getOwnPropertySymbols(Ee);ot<Qe.length;ot++)tt.indexOf(Qe[ot])<0&&Object.prototype.propertyIsEnumerable.call(Ee,Qe[ot])&&(Ue[Qe[ot]]=Ee[Qe[ot]]);return Ue};const xe=(Ee,tt)=>{if(tt===void 0)return tt;let Ue=(tt||"").replace(/^\//,"");return Object.keys(Ee).forEach(Qe=>{Ue=Ue.replace(`:${Qe}`,Ee[Qe])}),Ue},rt=Ee=>{const{prefixCls:tt,separator:Ue="/",style:Qe,className:ot,rootClassName:vt,routes:kt,items:nn,children:Jt,itemRender:Le,params:Ae={}}=Ee,Je=Ge(Ee,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:$t,direction:nt,breadcrumb:ft}=ce.useContext(le.E_);let de;const dt=$t("breadcrumb",tt),[wt,jt]=ge(dt),Pt=se(nn,kt),ke=a(dt,Le);if(Pt&&Pt.length>0){const ve=[],Fe=nn||kt;de=Pt.map((Ze,gt)=>{const{path:ct,key:yt,type:Ot,menu:At,overlay:Dt,onClick:sn,className:en,separator:_t,dropdownProps:Xt}=Ze,cn=xe(Ae,ct);cn!==void 0&&ve.push(cn);const he=yt!=null?yt:gt;if(Ot==="separator")return ce.createElement(We,{key:he},_t);const Be={},je=gt===Pt.length-1;At?Be.menu=At:Dt&&(Be.overlay=Dt);let{href:it}=Ze;return ve.length&&cn!==void 0&&(it=`#/${ve.join("/")}`),ce.createElement(E,Object.assign({key:he},Be,(0,Me.Z)(Ze,{data:!0,aria:!0}),{className:en,dropdownProps:Xt,href:it,separator:je?"":Ue,onClick:sn,prefixCls:dt}),ke(Ze,Ae,Fe,ve,it))})}else if(Jt){const ve=(0,Ke.Z)(Jt).length;de=(0,Ke.Z)(Jt).map((Fe,Ze)=>{if(!Fe)return Fe;const gt=Ze===ve-1;return(0,we.Tm)(Fe,{separator:gt?"":Ue,key:Ze})})}const be=Pe()(dt,ft==null?void 0:ft.className,{[`${dt}-rtl`]:nt==="rtl"},ot,vt,jt),pe=Object.assign(Object.assign({},ft==null?void 0:ft.style),Qe);return wt(ce.createElement("nav",Object.assign({className:be,style:pe},Je),ce.createElement("ol",null,de)))};rt.Item=x,rt.Separator=We;var St=rt,Wt=St},84567:function(Ne,st,re){"use strict";re.d(st,{default:function(){return ge}});var ne=re(94184),Pe=re.n(ne),Ke=re(95860),Me=re(67294),ce=re(53124),we=re(98866),le=re(65223),ze=Me.createContext(null),Ie=re(63185),We=re(45353),De=re(92429),Te=function(ie,me){var se={};for(var Ge in ie)Object.prototype.hasOwnProperty.call(ie,Ge)&&me.indexOf(Ge)<0&&(se[Ge]=ie[Ge]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ge=Object.getOwnPropertySymbols(ie);xe<Ge.length;xe++)me.indexOf(Ge[xe])<0&&Object.prototype.propertyIsEnumerable.call(ie,Ge[xe])&&(se[Ge[xe]]=ie[Ge[xe]]);return se};const ae=(ie,me)=>{var se;const{prefixCls:Ge,className:xe,rootClassName:rt,children:St,indeterminate:Wt=!1,style:Ee,onMouseEnter:tt,onMouseLeave:Ue,skipGroup:Qe=!1,disabled:ot}=ie,vt=Te(ie,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:kt,direction:nn,checkbox:Jt}=Me.useContext(ce.E_),Le=Me.useContext(ze),{isFormItemInput:Ae}=Me.useContext(le.aM),Je=Me.useContext(we.Z),$t=(se=(Le==null?void 0:Le.disabled)||ot)!==null&&se!==void 0?se:Je,nt=Me.useRef(vt.value);Me.useEffect(()=>{Le==null||Le.registerValue(vt.value)},[]),Me.useEffect(()=>{if(!Qe)return vt.value!==nt.current&&(Le==null||Le.cancelValue(nt.current),Le==null||Le.registerValue(vt.value),nt.current=vt.value),()=>Le==null?void 0:Le.cancelValue(vt.value)},[vt.value]);const ft=kt("checkbox",Ge),[de,dt]=(0,Ie.ZP)(ft),wt=Object.assign({},vt);Le&&!Qe&&(wt.onChange=function(){vt.onChange&&vt.onChange.apply(vt,arguments),Le.toggleOption&&Le.toggleOption({label:St,value:vt.value})},wt.name=Le.name,wt.checked=Le.value.includes(vt.value));const jt=Pe()(`${ft}-wrapper`,{[`${ft}-rtl`]:nn==="rtl",[`${ft}-wrapper-checked`]:wt.checked,[`${ft}-wrapper-disabled`]:$t,[`${ft}-wrapper-in-form-item`]:Ae},Jt==null?void 0:Jt.className,xe,rt,dt),Pt=Pe()({[`${ft}-indeterminate`]:Wt},De.A,dt),ke=Wt?"mixed":void 0;return de(Me.createElement(We.Z,{component:"Checkbox",disabled:$t},Me.createElement("label",{className:jt,style:Object.assign(Object.assign({},Jt==null?void 0:Jt.style),Ee),onMouseEnter:tt,onMouseLeave:Ue},Me.createElement(Ke.Z,Object.assign({"aria-checked":ke},wt,{prefixCls:ft,className:Pt,disabled:$t,ref:me})),St!==void 0&&Me.createElement("span",null,St))))};var y=Me.forwardRef(ae),E=re(74902),b=re(10366),x=function(ie,me){var se={};for(var Ge in ie)Object.prototype.hasOwnProperty.call(ie,Ge)&&me.indexOf(Ge)<0&&(se[Ge]=ie[Ge]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Ge=Object.getOwnPropertySymbols(ie);xe<Ge.length;xe++)me.indexOf(Ge[xe])<0&&Object.prototype.propertyIsEnumerable.call(ie,Ge[xe])&&(se[Ge[xe]]=ie[Ge[xe]]);return se};const z=(ie,me)=>{const{defaultValue:se,children:Ge,options:xe=[],prefixCls:rt,className:St,rootClassName:Wt,style:Ee,onChange:tt}=ie,Ue=x(ie,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Qe,direction:ot}=Me.useContext(ce.E_),[vt,kt]=Me.useState(Ue.value||se||[]),[nn,Jt]=Me.useState([]);Me.useEffect(()=>{"value"in Ue&&kt(Ue.value||[])},[Ue.value]);const Le=Me.useMemo(()=>xe.map(be=>typeof be=="string"||typeof be=="number"?{label:be,value:be}:be),[xe]),Ae=be=>{Jt(pe=>pe.filter(ve=>ve!==be))},Je=be=>{Jt(pe=>[].concat((0,E.Z)(pe),[be]))},$t=be=>{const pe=vt.indexOf(be.value),ve=(0,E.Z)(vt);pe===-1?ve.push(be.value):ve.splice(pe,1),"value"in Ue||kt(ve),tt==null||tt(ve.filter(Fe=>nn.includes(Fe)).sort((Fe,Ze)=>{const gt=Le.findIndex(yt=>yt.value===Fe),ct=Le.findIndex(yt=>yt.value===Ze);return gt-ct}))},nt=Qe("checkbox",rt),ft=`${nt}-group`,[de,dt]=(0,Ie.ZP)(nt),wt=(0,b.Z)(Ue,["value","disabled"]),jt=xe.length?Le.map(be=>Me.createElement(y,{prefixCls:nt,key:be.value.toString(),disabled:"disabled"in be?be.disabled:Ue.disabled,value:be.value,checked:vt.includes(be.value),onChange:be.onChange,className:`${ft}-item`,style:be.style,title:be.title},be.label)):Ge,Pt={toggleOption:$t,value:vt,disabled:Ue.disabled,name:Ue.name,registerValue:Je,cancelValue:Ae},ke=Pe()(ft,{[`${ft}-rtl`]:ot==="rtl"},St,Wt,dt);return de(Me.createElement("div",Object.assign({className:ke,style:Ee},wt,{ref:me}),Me.createElement(ze.Provider,{value:Pt},jt)))},ee=Me.forwardRef(z);var te=Me.memo(ee);const oe=y;oe.Group=te,oe.__ANT_CHECKBOX=!0;var ge=oe},63185:function(Ne,st,re){"use strict";re.d(st,{C2:function(){return ce}});var ne=re(14747),Pe=re(45503),Ke=re(67968);const Me=we=>{const{checkboxCls:le}=we,Ye=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(we)),{display:"inline-flex",flexWrap:"wrap",columnGap:we.marginXS,[`> ${we.antCls}-row`]:{flex:1}}),[Ye]:Object.assign(Object.assign({},(0,ne.Wf)(we)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ye}`]:{marginInlineStart:0},[`&${Ye}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(we)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:we.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(we))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:we.checkboxSize,height:we.checkboxSize,direction:"ltr",backgroundColor:we.colorBgContainer,border:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`,borderRadius:we.borderRadiusSM,borderCollapse:"separate",transition:`all ${we.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:we.checkboxSize/14*5,height:we.checkboxSize/14*8,border:`${we.lineWidthBold}px solid ${we.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${we.motionDurationFast} ${we.motionEaseInBack}, opacity ${we.motionDurationFast}`}},"& + span":{paddingInlineStart:we.paddingXS,paddingInlineEnd:we.paddingXS}})},{[`
|
|
${Ye}:not(${Ye}-disabled),
|
|
${le}:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{borderColor:we.colorPrimary}},[`${Ye}:not(${Ye}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:we.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:we.colorPrimary,borderColor:we.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${we.motionDurationMid} ${we.motionEaseOutBack} ${we.motionDurationFast}`}}},[`
|
|
${Ye}-checked:not(${Ye}-disabled),
|
|
${le}-checked:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{backgroundColor:we.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:we.colorBgContainer,borderColor:we.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:we.fontSizeLG/2,height:we.fontSizeLG/2,backgroundColor:we.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ye}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:we.colorBgContainerDisabled,borderColor:we.colorBorder,"&:after":{borderColor:we.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:we.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:we.colorTextDisabled}}}]};function ce(we,le){const Ye=(0,Pe.TS)(le,{checkboxCls:`.${we}`,checkboxSize:le.controlInteractiveSize});return[Me(Ye)]}st.ZP=(0,Ke.Z)("Checkbox",(we,le)=>{let{prefixCls:Ye}=le;return[ce(Ye,we)]})},35874:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return pe}});var ne=re(67294),Pe=re(91034),Ke=re(94184),Me=re.n(Ke),ce=re(87462),we=re(4942),le=re(97685),Ye=re(45987),ze=re(62709),Ie=re(71002),We=re(12060);function De(ve,Fe,Ze){var gt=React.useRef({});return(!("value"in gt.current)||Ze(gt.current.condition,Fe))&&(gt.current.value=ve(),gt.current.condition=Fe),gt.current.value}function Te(ve,Fe){typeof ve=="function"?ve(Fe):(0,Ie.Z)(ve)==="object"&&ve&&"current"in ve&&(ve.current=Fe)}function ae(){for(var ve=arguments.length,Fe=new Array(ve),Ze=0;Ze<ve;Ze++)Fe[Ze]=arguments[Ze];var gt=Fe.filter(function(ct){return ct});return gt.length<=1?gt[0]:function(ct){Fe.forEach(function(yt){Te(yt,ct)})}}function a(){for(var ve=arguments.length,Fe=new Array(ve),Ze=0;Ze<ve;Ze++)Fe[Ze]=arguments[Ze];return useMemo(function(){return ae.apply(void 0,Fe)},Fe,function(gt,ct){return gt.length===ct.length&>.every(function(yt,Ot){return yt===ct[Ot]})})}function y(ve){var Fe,Ze,gt=(0,We.isMemo)(ve)?ve.type.type:ve.type;return!(typeof gt=="function"&&!((Fe=gt.prototype)!==null&&Fe!==void 0&&Fe.render)||typeof ve=="function"&&!((Ze=ve.prototype)!==null&&Ze!==void 0&&Ze.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Fe){var Ze=Fe.keyCode;if(Fe.altKey&&!Fe.ctrlKey||Fe.metaKey||Ze>=E.F1&&Ze<=E.F12)return!1;switch(Ze){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=E.ZERO&&Fe<=E.NINE||Fe>=E.NUM_ZERO&&Fe<=E.NUM_MULTIPLY||Fe>=E.A&&Fe<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(Fe){return+setTimeout(Fe,16)},z=function(Fe){return clearTimeout(Fe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(Fe){return window.requestAnimationFrame(Fe)},z=function(Fe){return window.cancelAnimationFrame(Fe)});var ee=0,te=new Map;function oe(ve){te.delete(ve)}var ge=function(Fe){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var gt=ee;function ct(yt){if(yt===0)oe(gt),Fe();else{var Ot=x(function(){ct(yt-1)});te.set(gt,Ot)}}return ct(Ze),gt};ge.cancel=function(ve){var Fe=te.get(ve);return oe(Fe),z(Fe)};var ie=ge,me=b.ESC,se=b.TAB;function Ge(ve){var Fe=ve.visible,Ze=ve.triggerRef,gt=ve.onVisibleChange,ct=ve.autoFocus,yt=ve.overlayRef,Ot=ne.useRef(!1),At=function(){if(Fe){var _t,Xt;(_t=Ze.current)===null||_t===void 0||(Xt=_t.focus)===null||Xt===void 0||Xt.call(_t),gt==null||gt(!1)}},Dt=function(){var _t;return(_t=yt.current)!==null&&_t!==void 0&&_t.focus?(yt.current.focus(),Ot.current=!0,!0):!1},sn=function(_t){switch(_t.keyCode){case me:At();break;case se:{var Xt=!1;Ot.current||(Xt=Dt()),Xt?_t.preventDefault():At();break}}};ne.useEffect(function(){return Fe?(window.addEventListener("keydown",sn),ct&&ie(Dt,3),function(){window.removeEventListener("keydown",sn),Ot.current=!1}):function(){Ot.current=!1}},[Fe])}var xe=(0,ne.forwardRef)(function(ve,Fe){var Ze=ve.overlay,gt=ve.arrow,ct=ve.prefixCls,yt=(0,ne.useMemo)(function(){var At;return typeof Ze=="function"?At=Ze():At=Ze,At},[Ze]),Ot=ae(Fe,yt==null?void 0:yt.ref);return ne.createElement(ne.Fragment,null,gt&&ne.createElement("div",{className:"".concat(ct,"-arrow")}),ne.cloneElement(yt,{ref:y(yt)?Ot:void 0}))}),rt=xe,St={adjustX:1,adjustY:1},Wt=[0,0],Ee={topLeft:{points:["bl","tl"],overflow:St,offset:[0,-4],targetOffset:Wt},top:{points:["bc","tc"],overflow:St,offset:[0,-4],targetOffset:Wt},topRight:{points:["br","tr"],overflow:St,offset:[0,-4],targetOffset:Wt},bottomLeft:{points:["tl","bl"],overflow:St,offset:[0,4],targetOffset:Wt},bottom:{points:["tc","bc"],overflow:St,offset:[0,4],targetOffset:Wt},bottomRight:{points:["tr","br"],overflow:St,offset:[0,4],targetOffset:Wt}},tt=Ee,Ue=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function Qe(ve,Fe){var Ze,gt=ve.arrow,ct=gt===void 0?!1:gt,yt=ve.prefixCls,Ot=yt===void 0?"rc-dropdown":yt,At=ve.transitionName,Dt=ve.animation,sn=ve.align,en=ve.placement,_t=en===void 0?"bottomLeft":en,Xt=ve.placements,cn=Xt===void 0?tt:Xt,he=ve.getPopupContainer,Be=ve.showAction,je=ve.hideAction,it=ve.overlayClassName,mt=ve.overlayStyle,Nt=ve.visible,Gt=ve.trigger,bt=Gt===void 0?["hover"]:Gt,xt=ve.autoFocus,Ut=ve.overlay,Zt=ve.children,on=ve.onVisibleChange,an=(0,Ye.Z)(ve,Ue),hn=ne.useState(),bn=(0,le.Z)(hn,2),tn=bn[0],Qt=bn[1],mn="visible"in ve?Nt:tn,pn=ne.useRef(null),wn=ne.useRef(null),ln=ne.useRef(null);ne.useImperativeHandle(Fe,function(){return pn.current});var xn=function(qe){Qt(qe),on==null||on(qe)};Ge({visible:mn,triggerRef:ln,onVisibleChange:xn,autoFocus:xt,overlayRef:wn});var Rn=function(qe){var Lt=ve.onOverlayClick;Qt(!1),Lt&&Lt(qe)},Cn=function(){return ne.createElement(rt,{ref:wn,overlay:Ut,prefixCls:Ot,arrow:ct})},In=function(){return typeof Ut=="function"?Cn:Cn()},Un=function(){var qe=ve.minOverlayWidthMatchTrigger,Lt=ve.alignPoint;return"minOverlayWidthMatchTrigger"in ve?qe:!Lt},jn=function(){var qe=ve.openClassName;return qe!==void 0?qe:"".concat(Ot,"-open")},Se=ne.cloneElement(Zt,{className:Me()((Ze=Zt.props)===null||Ze===void 0?void 0:Ze.className,mn&&jn()),ref:y(Zt)?ae(ln,Zt.ref):void 0}),ye=je;return!ye&&bt.indexOf("contextMenu")!==-1&&(ye=["click"]),ne.createElement(ze.Z,(0,ce.Z)({builtinPlacements:cn},an,{prefixCls:Ot,ref:pn,popupClassName:Me()(it,(0,we.Z)({},"".concat(Ot,"-show-arrow"),ct)),popupStyle:mt,action:bt,showAction:Be,hideAction:ye,popupPlacement:_t,popupAlign:sn,popupTransitionName:At,popupAnimation:Dt,popupVisible:mn,stretch:Un()?"minWidth":"",popup:In(),onPopupVisibleChange:xn,onPopupClick:Rn,getPopupContainer:he}),Se)}var ot=ne.forwardRef(Qe),vt=ot,kt=re(60276),nn=re(5663),Jt=re(10366),Le=re(80636),Ae=re(8745),Je=re(96159),$t=re(53124),nt=re(68508),ft=re(76529),de=re(46605),dt=re(66748);const wt=null,jt=ve=>{const{menu:Fe,arrow:Ze,prefixCls:gt,children:ct,trigger:yt,disabled:Ot,dropdownRender:At,getPopupContainer:Dt,overlayClassName:sn,rootClassName:en,open:_t,onOpenChange:Xt,visible:cn,onVisibleChange:he,mouseEnterDelay:Be=.15,mouseLeaveDelay:je=.1,autoAdjustOverflow:it=!0,placement:mt="",overlay:Nt,transitionName:Gt}=ve,{getPopupContainer:bt,getPrefixCls:xt,direction:Ut}=ne.useContext($t.E_),Zt=ne.useMemo(()=>{const Se=xt();return Gt!==void 0?Gt:mt.includes("top")?`${Se}-slide-down`:`${Se}-slide-up`},[xt,mt,Gt]),on=ne.useMemo(()=>mt?mt.includes("Center")?mt.slice(0,mt.indexOf("Center")):mt:Ut==="rtl"?"bottomRight":"bottomLeft",[mt,Ut]),an=xt("dropdown",gt),[hn,bn]=(0,dt.Z)(an),[,tn]=(0,de.Z)(),Qt=ne.Children.only(ct),mn=(0,Je.Tm)(Qt,{className:Me()(`${an}-trigger`,{[`${an}-rtl`]:Ut==="rtl"},Qt.props.className),disabled:Ot}),pn=Ot?[]:yt;let wn;pn&&pn.includes("contextMenu")&&(wn=!0);const[ln,xn]=(0,nn.Z)(!1,{value:_t!=null?_t:cn}),Rn=(0,kt.useEvent)(Se=>{Xt==null||Xt(Se),he==null||he(Se),xn(Se)}),Cn=Me()(sn,en,bn,{[`${an}-rtl`]:Ut==="rtl"}),In=(0,Le.Z)({arrowPointAtCenter:typeof Ze=="object"&&Ze.pointAtCenter,autoAdjustOverflow:it,offset:tn.marginXXS,arrowWidth:Ze?tn.sizePopupArrow:0,borderRadius:tn.borderRadius}),Un=ne.useCallback(()=>{xn(!1)},[]),jn=()=>{let Se;return Fe!=null&&Fe.items?Se=ne.createElement(nt.default,Object.assign({},Fe)):typeof Nt=="function"?Se=Nt():Se=Nt,At&&(Se=At(Se)),Se=ne.Children.only(typeof Se=="string"?ne.createElement("span",null,Se):Se),ne.createElement(ft.J,{prefixCls:`${an}-menu`,expandIcon:ne.createElement("span",{className:`${an}-menu-submenu-arrow`},ne.createElement(Pe.Z,{className:`${an}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Un,validator:ye=>{let{mode:fe}=ye}},Se)};return hn(ne.createElement(vt,Object.assign({alignPoint:wn},(0,Jt.Z)(ve,["rootClassName"]),{mouseEnterDelay:Be,mouseLeaveDelay:je,visible:ln,builtinPlacements:In,arrow:!!Ze,overlayClassName:Cn,prefixCls:an,getPopupContainer:Dt||bt,transitionName:Zt,trigger:pn,overlay:jn,placement:on,onVisibleChange:Rn}),mn))};function Pt(ve){return Object.assign(Object.assign({},ve),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ke=(0,Ae.Z)(jt,"dropdown",ve=>ve,Pt),be=ve=>ne.createElement(ke,Object.assign({},ve),ne.createElement("span",null));jt._InternalPanelDoNotUseOrYouWillBeFired=be;var pe=jt},66748:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return We}});var ne=re(14747),Pe=re(67771),Ke=re(33297),Me=re(50438),ce=re(97414),we=re(67968),le=re(45503),ze=De=>{const{componentCls:Te,menuCls:ae,colorError:a,colorTextLightSolid:y}=De,E=`${ae}-item`;return{[`${Te}, ${Te}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ie=De=>{const{componentCls:Te,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ge,fontSizeIcon:ie,controlPaddingHorizontal:me,colorBgElevated:se}=De;return[{[Te]:Object.assign(Object.assign({},(0,ne.Wf)(De)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ie}},[`${Te}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ie},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Te}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Te}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Te}-placement-bottomRight`]:{animationName:Pe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Te}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Te}-placement-topRight`]:{animationName:Pe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Te}-placement-bottomRight`]:{animationName:Pe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Te}-placement-topRight`]:{animationName:Pe.ly}})},(0,ce.ZP)(De,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Te} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Te}, ${Te}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:De.borderRadiusLG,outline:"none",boxShadow:De.boxShadowSecondary},(0,ne.Qy)(De)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${me}px`,color:De.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:De.marginXS,fontSize:De.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:De.colorText,fontWeight:"normal",fontSize:te,lineHeight:De.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:De.borderRadiusSM,"&:hover, &-active":{backgroundColor:De.controlItemBgHover}},(0,ne.Qy)(De)),{"&-selected":{color:De.colorPrimary,backgroundColor:De.controlItemBgActive,"&:hover, &-active":{backgroundColor:De.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${De.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:De.colorSplit},[`${Te}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:De.paddingXS,[`${Te}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:De.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${De.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:me+De.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Te}-menu-submenu-title`]:{[`&, ${Te}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Te}-menu-submenu-title`]:{color:De.colorPrimary}})}},[(0,Pe.oN)(De,"slide-up"),(0,Pe.oN)(De,"slide-down"),(0,Ke.Fm)(De,"move-up"),(0,Ke.Fm)(De,"move-down"),(0,Me._y)(De,"zoom-big")]]};var We=(0,we.Z)("Dropdown",(De,Te)=>{let{rootPrefixCls:ae}=Te;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=De,oe=(E-b*x)/2,{dropdownArrowOffset:ge}=(0,ce.fS)({contentRadius:te}),ie=(0,le.TS)(De,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ge,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ie(ie),ze(ie)]},De=>({zIndexPopup:De.zIndexPopupBase+50}))},71322:function(Ne,st,re){"use strict";re.d(st,{D:function(){return x},Z:function(){return te}});var ne=re(87462),Pe=re(67294),Ke={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Me=Ke,ce=re(74643),we=function(ge,ie){return Pe.createElement(ce.Z,(0,ne.Z)({},ge,{ref:ie,icon:Me}))},le=Pe.forwardRef(we),Ye=re(22751),ze=re(91034),Ie=re(94184),We=re.n(Ie),De=re(10366),ae=oe=>!isNaN(parseFloat(oe))&&isFinite(oe),a=re(53124),y=re(84321),E=function(oe,ge){var ie={};for(var me in oe)Object.prototype.hasOwnProperty.call(oe,me)&&ge.indexOf(me)<0&&(ie[me]=oe[me]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,me=Object.getOwnPropertySymbols(oe);se<me.length;se++)ge.indexOf(me[se])<0&&Object.prototype.propertyIsEnumerable.call(oe,me[se])&&(ie[me[se]]=oe[me[se]]);return ie};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=Pe.createContext({}),z=(()=>{let oe=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return oe+=1,`${ge}${oe}`}})();var te=Pe.forwardRef((oe,ge)=>{const{prefixCls:ie,className:me,trigger:se,children:Ge,defaultCollapsed:xe=!1,theme:rt="dark",style:St={},collapsible:Wt=!1,reverseArrow:Ee=!1,width:tt=200,collapsedWidth:Ue=80,zeroWidthTriggerStyle:Qe,breakpoint:ot,onCollapse:vt,onBreakpoint:kt}=oe,nn=E(oe,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Jt}=(0,Pe.useContext)(y.Gs),[Le,Ae]=(0,Pe.useState)("collapsed"in oe?oe.collapsed:xe),[Je,$t]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in oe&&Ae(oe.collapsed)},[oe.collapsed]);const nt=(Pt,ke)=>{"collapsed"in oe||Ae(Pt),vt==null||vt(Pt,ke)},ft=(0,Pe.useRef)();ft.current=Pt=>{$t(Pt.matches),kt==null||kt(Pt.matches),Le!==Pt.matches&&nt(Pt.matches,"responsive")},(0,Pe.useEffect)(()=>{function Pt(be){return ft.current(be)}let ke;if(typeof window!="undefined"){const{matchMedia:be}=window;if(be&&ot&&ot in b){ke=be(`(max-width: ${b[ot]})`);try{ke.addEventListener("change",Pt)}catch(pe){ke.addListener(Pt)}Pt(ke)}}return()=>{try{ke==null||ke.removeEventListener("change",Pt)}catch(be){ke==null||ke.removeListener(Pt)}}},[ot]),(0,Pe.useEffect)(()=>{const Pt=z("ant-sider-");return Jt.addSider(Pt),()=>Jt.removeSider(Pt)},[]);const de=()=>{nt(!Le,"clickTrigger")},{getPrefixCls:dt}=(0,Pe.useContext)(a.E_),wt=()=>{const Pt=dt("layout-sider",ie),ke=(0,De.Z)(nn,["collapsed"]),be=Le?Ue:tt,pe=ae(be)?`${be}px`:String(be),ve=parseFloat(String(Ue||0))===0?Pe.createElement("span",{onClick:de,className:We()(`${Pt}-zero-width-trigger`,`${Pt}-zero-width-trigger-${Ee?"right":"left"}`),style:Qe},se||Pe.createElement(le,null)):null,gt={expanded:Ee?Pe.createElement(ze.Z,null):Pe.createElement(Ye.Z,null),collapsed:Ee?Pe.createElement(Ye.Z,null):Pe.createElement(ze.Z,null)}[Le?"collapsed":"expanded"],ct=se!==null?ve||Pe.createElement("div",{className:`${Pt}-trigger`,onClick:de,style:{width:pe}},se||gt):null,yt=Object.assign(Object.assign({},St),{flex:`0 0 ${pe}`,maxWidth:pe,minWidth:pe,width:pe}),Ot=We()(Pt,`${Pt}-${rt}`,{[`${Pt}-collapsed`]:!!Le,[`${Pt}-has-trigger`]:Wt&&se!==null&&!ve,[`${Pt}-below`]:!!Je,[`${Pt}-zero-width`]:parseFloat(pe)===0},me);return Pe.createElement("aside",Object.assign({className:Ot},ke,{style:yt,ref:ge}),Pe.createElement("div",{className:`${Pt}-children`},Ge),Wt||Je&&ve?ct:null)},jt=Pe.useMemo(()=>({siderCollapsed:Le}),[Le]);return Pe.createElement(x.Provider,{value:jt},wt())})},84321:function(Ne,st,re){"use strict";re.d(st,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Te},ZP:function(){return ee}});var ne=re(74902),Pe=re(94184),Ke=re.n(Pe),Me=re(10366),ce=re(67294),we=re(53124),le=re(67968),ze=te=>{const{componentCls:oe,bodyBg:ge,lightSiderBg:ie,lightTriggerBg:me,lightTriggerColor:se}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:se,background:me},[`${oe}-sider-zero-width-trigger`]:{color:se,background:me,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Ie=te=>{const{antCls:oe,componentCls:ge,colorText:ie,triggerColor:me,footerBg:se,triggerBg:Ge,headerHeight:xe,headerPadding:rt,headerColor:St,footerPadding:Wt,triggerHeight:Ee,zeroTriggerHeight:tt,zeroTriggerWidth:Ue,motionDurationMid:Qe,motionDurationSlow:ot,fontSize:vt,borderRadius:kt,bodyBg:nn,headerBg:Jt,siderBg:Le}=te;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:nn,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:Le,transition:`all ${Qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Ee},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Ee,color:me,lineHeight:`${Ee}px`,textAlign:"center",background:Ge,cursor:"pointer",transition:`all ${Qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:xe,insetInlineEnd:-Ue,zIndex:1,width:Ue,height:tt,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Le,borderStartStartRadius:0,borderStartEndRadius:kt,borderEndEndRadius:kt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ot} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ot}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ue,borderStartStartRadius:kt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:kt}}}}},ze(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:xe,padding:rt,color:St,lineHeight:`${xe}px`,background:Jt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:Wt,color:ie,fontSize:vt,background:se},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var We=(0,le.Z)("Layout",te=>[Ie(te)],te=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:ie,colorText:me,controlHeightSM:se,marginXXS:Ge,colorTextLightSolid:xe,colorBgContainer:rt}=te,St=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${St}px`,headerColor:me,footerPadding:`${se}px ${St}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Ge*2,triggerBg:"#002140",triggerColor:xe,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:rt,lightTriggerBg:rt,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),De=function(te,oe){var ge={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(ge[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ie=Object.getOwnPropertySymbols(te);me<ie.length;me++)oe.indexOf(ie[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[me])&&(ge[ie[me]]=te[ie[me]]);return ge};const Te=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:oe,tagName:ge,displayName:ie}=te;return me=>ce.forwardRef((Ge,xe)=>ce.createElement(me,Object.assign({ref:xe,suffixCls:oe,tagName:ge},Ge)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:ge,suffixCls:ie,className:me,tagName:se}=te,Ge=De(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:xe}=ce.useContext(we.E_),rt=xe("layout",ge),[St,Wt]=We(rt),Ee=ie?`${rt}-${ie}`:rt;return St(ce.createElement(se,Object.assign({className:Ke()(ge||Ee,me,Wt),ref:oe},Ge)))}),y=ce.forwardRef((te,oe)=>{const{direction:ge}=ce.useContext(we.E_),[ie,me]=ce.useState([]),{prefixCls:se,className:Ge,rootClassName:xe,children:rt,hasSider:St,tagName:Wt,style:Ee}=te,tt=De(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ue=(0,Me.Z)(tt,["suffixCls"]),{getPrefixCls:Qe,layout:ot}=ce.useContext(we.E_),vt=Qe("layout",se),[kt,nn]=We(vt),Jt=Ke()(vt,{[`${vt}-has-sider`]:typeof St=="boolean"?St:ie.length>0,[`${vt}-rtl`]:ge==="rtl"},ot==null?void 0:ot.className,Ge,xe,nn),Le=ce.useMemo(()=>({siderHook:{addSider:Ae=>{me(Je=>[].concat((0,ne.Z)(Je),[Ae]))},removeSider:Ae=>{me(Je=>Je.filter($t=>$t!==Ae))}}}),[]);return kt(ce.createElement(Te.Provider,{value:Le},ce.createElement(Wt,Object.assign({ref:oe,className:Jt,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),Ee)},Ue),rt)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Ne,st,re){"use strict";re.d(st,{J:function(){return we}});var ne=re(67294),Pe=re(4173),Ke=re(60276),Me=function(le,Ye){var ze={};for(var Ie in le)Object.prototype.hasOwnProperty.call(le,Ie)&&Ye.indexOf(Ie)<0&&(ze[Ie]=le[Ie]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,Ie=Object.getOwnPropertySymbols(le);We<Ie.length;We++)Ye.indexOf(Ie[We])<0&&Object.prototype.propertyIsEnumerable.call(le,Ie[We])&&(ze[Ie[We]]=le[Ie[We]]);return ze};const ce=ne.createContext(null),we=ne.forwardRef((le,Ye)=>{const{children:ze}=le,Ie=Me(le,["children"]),We=ne.useContext(ce),De=ne.useMemo(()=>Object.assign(Object.assign({},We),Ie),[We,Ie.prefixCls,Ie.mode,Ie.selectable]);return ne.createElement(ce.Provider,{value:De},ne.createElement(Pe.BR,null,(0,Ke.supportNodeRef)(ze)?ne.cloneElement(ze,{ref:Ye}):ze))});st.Z=ce},68508:function(Ne,st,re){"use strict";re.d(st,{default:function(){return Pt}});var ne=re(78595),Pe=re(67294),Ke=re(71322),Me=re(94184),ce=re.n(Me),we=re(53124),le=function(ke,be){var pe={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&be.indexOf(ve)<0&&(pe[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ve=Object.getOwnPropertySymbols(ke);Fe<ve.length;Fe++)be.indexOf(ve[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Fe])&&(pe[ve[Fe]]=ke[ve[Fe]]);return pe},ze=ke=>{const{prefixCls:be,className:pe,dashed:ve}=ke,Fe=le(ke,["prefixCls","className","dashed"]),{getPrefixCls:Ze}=Pe.useContext(we.E_),gt=Ze("menu",be),ct=ce()({[`${gt}-item-divider-dashed`]:!!ve},pe);return Pe.createElement(ne.iz,Object.assign({className:ct},Fe))},Ie=re(37419),We=re(10366),De=re(83062),Te=re(96159),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=ke=>{var be;const{className:pe,children:ve,icon:Fe,title:Ze,danger:gt}=ke,{prefixCls:ct,firstLevel:yt,direction:Ot,disableMenuItemTitleTooltip:At,inlineCollapsed:Dt}=Pe.useContext(a),sn=Be=>{const je=Pe.createElement("span",{className:`${ct}-title-content`},ve);return(!Fe||(0,Te.l$)(ve)&&ve.type==="span")&&ve&&Be&&yt&&typeof ve=="string"?Pe.createElement("div",{className:`${ct}-inline-collapsed-noicon`},ve.charAt(0)):je},{siderCollapsed:en}=Pe.useContext(Ke.D);let _t=Ze;typeof Ze=="undefined"?_t=yt?ve:"":Ze===!1&&(_t="");const Xt={title:_t};!en&&!Dt&&(Xt.title=null,Xt.open=!1);const cn=(0,Ie.Z)(ve).length;let he=Pe.createElement(ne.ck,Object.assign({},(0,We.Z)(ke,["title","icon","danger"]),{className:ce()({[`${ct}-item-danger`]:gt,[`${ct}-item-only-child`]:(Fe?cn+1:cn)===1},pe),title:typeof Ze=="string"?Ze:void 0}),(0,Te.Tm)(Fe,{className:ce()((0,Te.l$)(Fe)?(be=Fe.props)===null||be===void 0?void 0:be.className:"",`${ct}-item-icon`)}),sn(Dt));return At||(he=Pe.createElement(De.Z,Object.assign({},Xt,{placement:Ot==="rtl"?"left":"right",overlayClassName:`${ct}-inline-collapsed-tooltip`}),he)),he},x=ke=>{var be;const{popupClassName:pe,icon:ve,title:Fe,theme:Ze}=ke,gt=Pe.useContext(a),{prefixCls:ct,inlineCollapsed:yt,theme:Ot}=gt,At=(0,ne.Xl)();let Dt;if(!ve)Dt=yt&&!At.length&&Fe&&typeof Fe=="string"?Pe.createElement("div",{className:`${ct}-inline-collapsed-noicon`},Fe.charAt(0)):Pe.createElement("span",{className:`${ct}-title-content`},Fe);else{const en=(0,Te.l$)(Fe)&&Fe.type==="span";Dt=Pe.createElement(Pe.Fragment,null,(0,Te.Tm)(ve,{className:ce()((0,Te.l$)(ve)?(be=ve.props)===null||be===void 0?void 0:be.className:"",`${ct}-item-icon`)}),en?Fe:Pe.createElement("span",{className:`${ct}-title-content`},Fe))}const sn=Pe.useMemo(()=>Object.assign(Object.assign({},gt),{firstLevel:!1}),[gt]);return Pe.createElement(a.Provider,{value:sn},Pe.createElement(ne.Wd,Object.assign({},(0,We.Z)(ke,["icon"]),{title:Dt,popupClassName:ce()(ct,pe,`${ct}-${Ze||Ot}`)})))},z=re(25877),ee=re(60276),te=re(33603),oe=re(76529),ge=function(ke,be){var pe={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&be.indexOf(ve)<0&&(pe[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ve=Object.getOwnPropertySymbols(ke);Fe<ve.length;Fe++)be.indexOf(ve[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Fe])&&(pe[ve[Fe]]=ke[ve[Fe]]);return pe};function ie(ke){return(ke||[]).map((be,pe)=>{if(be&&typeof be=="object"){const ve=be,{label:Fe,children:Ze,key:gt,type:ct}=ve,yt=ge(ve,["label","children","key","type"]),Ot=gt!=null?gt:`tmp-${pe}`;return Ze||ct==="group"?ct==="group"?Pe.createElement(ne.BW,Object.assign({key:Ot},yt,{title:Fe}),ie(Ze)):Pe.createElement(x,Object.assign({key:Ot},yt,{title:Fe}),ie(Ze)):ct==="divider"?Pe.createElement(ze,Object.assign({key:Ot},yt)):Pe.createElement(E,Object.assign({key:Ot},yt),Fe)}return null}).filter(be=>be)}function me(ke){return Pe.useMemo(()=>ke&&ie(ke),[ke])}var se=re(84780),Ge=re(14747),xe=re(33507),rt=re(67771),St=re(50438),Wt=re(67968),Ee=re(45503),Ue=ke=>{const{componentCls:be,motionDurationSlow:pe,horizontalLineHeight:ve,colorSplit:Fe,lineWidth:Ze,lineType:gt,itemPaddingInline:ct}=ke;return{[`${be}-horizontal`]:{lineHeight:ve,border:0,borderBottom:`${Ze}px ${gt} ${Fe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${be}-item, ${be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ct},[`> ${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"}}}},ot=ke=>{let{componentCls:be,menuArrowOffset:pe}=ke;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 vt=ke=>Object.assign({},(0,Ge.oN)(ke));var nn=(ke,be)=>{const{componentCls:pe,itemColor:ve,itemSelectedColor:Fe,groupTitleColor:Ze,itemBg:gt,subMenuItemBg:ct,itemSelectedBg:yt,activeBarHeight:Ot,activeBarWidth:At,activeBarBorderWidth:Dt,motionDurationSlow:sn,motionEaseInOut:en,motionEaseOut:_t,itemPaddingInline:Xt,motionDurationMid:cn,itemHoverColor:he,lineType:Be,colorSplit:je,itemDisabledColor:it,dangerItemColor:mt,dangerItemHoverColor:Nt,dangerItemSelectedColor:Gt,dangerItemActiveBg:bt,dangerItemSelectedBg:xt,itemHoverBg:Ut,itemActiveBg:Zt,menuSubMenuBg:on,horizontalItemSelectedColor:an,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:bn,horizontalItemHoverBg:tn,popupBg:Qt}=ke;return{[`${pe}-${be}, ${pe}-${be} > ${pe}`]:{color:ve,background:gt,[`&${pe}-root:focus-visible`]:Object.assign({},vt(ke)),[`${pe}-item-group-title`]:{color:Ze},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:Fe}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${it} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:he}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:Ut},"&:active":{backgroundColor:Zt}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Ut},"&:active":{backgroundColor:Zt}}},[`${pe}-item-danger`]:{color:mt,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Nt}},[`&${pe}-item:active`]:{background:bt}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:Fe,[`&${pe}-item-danger`]:{color:Gt},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:yt,[`&${pe}-item-danger`]:{backgroundColor:xt}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},vt(ke))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:on},[`&${pe}-popup > ${pe}`]:{backgroundColor:Qt},[`&${pe}-horizontal`]:Object.assign(Object.assign({},be==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:Dt,marginTop:-Dt,marginBottom:0,borderRadius:bn,"&::after":{position:"absolute",insetInline:Xt,bottom:0,borderBottom:`${Ot}px solid transparent`,transition:`border-color ${sn} ${en}`,content:'""'},"&:hover, &-active, &-open":{background:tn,"&::after":{borderBottomWidth:Ot,borderBottomColor:an}},"&-selected":{color:an,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:Ot,borderBottomColor:an}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${Dt}px ${Be} ${je}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:ct},[`${pe}-item, ${pe}-submenu-title`]:Dt&&At?{width:`calc(100% + ${Dt}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${At}px solid ${Fe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${cn} ${_t}`,`opacity ${cn} ${_t}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:Gt}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${cn} ${en}`,`opacity ${cn} ${en}`].join(",")}}}}}};const Jt=ke=>{const{componentCls:be,itemHeight:pe,itemMarginInline:ve,padding:Fe,menuArrowSize:Ze,marginXS:gt,itemMarginBlock:ct}=ke,yt=Fe+Ze+gt;return{[`${be}-item`]:{position:"relative",overflow:"hidden"},[`${be}-item, ${be}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:Fe,overflow:"hidden",textOverflow:"ellipsis",marginInline:ve,marginBlock:ct,width:`calc(100% - ${ve*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:yt}}};var Ae=ke=>{const{componentCls:be,iconCls:pe,itemHeight:ve,colorTextLightSolid:Fe,dropdownWidth:Ze,controlHeightLG:gt,motionDurationMid:ct,motionEaseOut:yt,paddingXL:Ot,itemMarginInline:At,fontSizeLG:Dt,motionDurationSlow:sn,paddingXS:en,boxShadowSecondary:_t,collapsedWidth:Xt,collapsedIconSize:cn}=ke,he={height:ve,lineHeight:`${ve}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[be]:{"&-inline, &-vertical":Object.assign({[`&${be}-root`]:{boxShadow:"none"}},Jt(ke))},[`${be}-submenu-popup`]:{[`${be}-vertical`]:Object.assign(Object.assign({},Jt(ke)),{boxShadow:_t})}},{[`${be}-submenu-popup ${be}-vertical${be}-sub`]:{minWidth:Ze,maxHeight:`calc(100vh - ${gt*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 ${ct} ${yt}`].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`]:he,[`& ${be}-item-group-title`]:{paddingInlineStart:Ot}},[`${be}-item`]:he}},{[`${be}-inline-collapsed`]:{width:Xt,[`&${be}-root`]:{[`${be}-item, ${be}-submenu ${be}-submenu-title`]:{[`> ${be}-inline-collapsed-noicon`]:{fontSize:Dt,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% - ${Dt/2}px - ${At}px)`,textOverflow:"clip",[`
|
|
${be}-submenu-arrow,
|
|
${be}-submenu-expand-icon
|
|
`]:{opacity:0},[`${be}-item-icon, ${pe}`]:{margin:0,fontSize:cn,lineHeight:`${ve}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:Fe}},[`${be}-item-group-title`]:Object.assign(Object.assign({},Ge.vS),{paddingInline:en})}}]};const Je=ke=>{const{componentCls:be,motionDurationSlow:pe,motionDurationMid:ve,motionEaseInOut:Fe,motionEaseOut:Ze,iconCls:gt,iconSize:ct,iconMarginInlineEnd:yt}=ke;return{[`${be}-item, ${be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${Fe}`].join(","),[`${be}-item-icon, ${gt}`]:{minWidth:ct,fontSize:ct,transition:[`font-size ${ve} ${Ze}`,`margin ${pe} ${Fe}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:yt,opacity:1,transition:[`opacity ${pe} ${Fe}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${be}-item-icon`]:Object.assign({},(0,Ge.Ro)()),[`&${be}-item-only-child`]:{[`> ${gt}, > ${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"}}}},$t=ke=>{const{componentCls:be,motionDurationSlow:pe,motionEaseInOut:ve,borderRadius:Fe,menuArrowSize:Ze,menuArrowOffset:gt}=ke;return{[`${be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ke.margin,width:Ze,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${ve}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Ze*.6,height:Ze*.15,backgroundColor:"currentcolor",borderRadius:Fe,transition:[`background ${pe} ${ve}`,`transform ${pe} ${ve}`,`top ${pe} ${ve}`,`color ${pe} ${ve}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${gt})`},"&::after":{transform:`rotate(-45deg) translateY(${gt})`}}}}},nt=ke=>{const{antCls:be,componentCls:pe,fontSize:ve,motionDurationSlow:Fe,motionDurationMid:Ze,motionEaseInOut:gt,paddingXS:ct,padding:yt,colorSplit:Ot,lineWidth:At,zIndexPopup:Dt,borderRadiusLG:sn,subMenuItemBorderRadius:en,menuArrowSize:_t,menuArrowOffset:Xt,lineType:cn,menuPanelMaskInset:he,groupTitleLineHeight:Be,groupTitleFontSize:je}=ke;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Ge.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,Ge.Wf)(ke)),(0,Ge.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ve,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Fe} 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:ke.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${ct}px ${yt}px`,fontSize:je,lineHeight:Be,transition:`all ${Fe}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${Fe} ${gt}`,`background ${Fe} ${gt}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${Fe} ${gt}`,`background ${Fe} ${gt}`,`padding ${Ze} ${gt}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${Fe} ${gt}`,`padding ${Fe} ${gt}`].join(",")},[`${pe}-title-content`]:{transition:`color ${Fe}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ot,borderStyle:cn,borderWidth:0,borderTopWidth:At,marginBlock:At,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(ke)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${ve*2}px ${yt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Dt,borderRadius:sn,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${he}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:he},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ke.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ke.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ke.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ke.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:sn},Je(ke)),$t(ke)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:en},[`${pe}-submenu-title::after`]:{transition:`transform ${Fe} ${gt}`}})}}),$t(ke)),{[`&-inline-collapsed ${pe}-submenu-arrow,
|
|
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Xt})`},"&::after":{transform:`rotate(45deg) translateX(-${Xt})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${_t*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Xt})`},"&::before":{transform:`rotate(45deg) translateX(${Xt})`}}})},{[`${be}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var ft=(ke,be)=>(0,Wt.Z)("Menu",ve=>{if(be===!1)return[];const{colorBgElevated:Fe,colorPrimary:Ze,colorTextLightSolid:gt,controlHeightLG:ct,fontSize:yt,darkItemColor:Ot,darkDangerItemColor:At,darkItemBg:Dt,darkSubMenuItemBg:sn,darkItemSelectedColor:en,darkItemSelectedBg:_t,darkDangerItemSelectedBg:Xt,darkItemHoverBg:cn,darkGroupTitleColor:he,darkItemHoverColor:Be,darkItemDisabledColor:je,darkDangerItemHoverColor:it,darkDangerItemSelectedColor:mt,darkDangerItemActiveBg:Nt}=ve,Gt=yt/7*5,bt=(0,Ee.TS)(ve,{menuArrowSize:Gt,menuHorizontalHeight:ct*1.15,menuArrowOffset:`${Gt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Fe}),xt=(0,Ee.TS)(bt,{itemColor:Ot,itemHoverColor:Be,groupTitleColor:he,itemSelectedColor:en,itemBg:Dt,popupBg:Dt,subMenuItemBg:sn,itemActiveBg:"transparent",itemSelectedBg:_t,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:cn,itemDisabledColor:je,dangerItemColor:At,dangerItemHoverColor:it,dangerItemSelectedColor:mt,dangerItemActiveBg:Nt,dangerItemSelectedBg:Xt,menuSubMenuBg:sn,horizontalItemSelectedColor:gt,horizontalItemSelectedBg:Ze});return[nt(bt),Ue(bt),Ae(bt),nn(bt,"light"),nn(xt,"dark"),ot(bt),(0,xe.Z)(bt),(0,rt.oN)(bt,"slide-up"),(0,rt.oN)(bt,"slide-down"),(0,St._y)(bt,"zoom-big")]},ve=>{const{colorPrimary:Fe,colorError:Ze,colorTextDisabled:gt,colorErrorBg:ct,colorText:yt,colorTextDescription:Ot,colorBgContainer:At,colorFillAlter:Dt,colorFillContent:sn,lineWidth:en,lineWidthBold:_t,controlItemBgActive:Xt,colorBgTextHover:cn,controlHeightLG:he,lineHeight:Be,colorBgElevated:je,marginXXS:it,padding:mt,fontSize:Nt,controlHeightSM:Gt,fontSizeLG:bt,colorTextLightSolid:xt,colorErrorHover:Ut}=ve,Zt=new se.C(xt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ve.zIndexPopupBase+50,radiusItem:ve.borderRadiusLG,itemBorderRadius:ve.borderRadiusLG,radiusSubMenuItem:ve.borderRadiusSM,subMenuItemBorderRadius:ve.borderRadiusSM,colorItemText:yt,itemColor:yt,colorItemTextHover:yt,itemHoverColor:yt,colorItemTextHoverHorizontal:Fe,horizontalItemHoverColor:Fe,colorGroupTitle:Ot,groupTitleColor:Ot,colorItemTextSelected:Fe,itemSelectedColor:Fe,colorItemTextSelectedHorizontal:Fe,horizontalItemSelectedColor:Fe,colorItemBg:At,itemBg:At,colorItemBgHover:cn,itemHoverBg:cn,colorItemBgActive:sn,itemActiveBg:Xt,colorSubItemBg:Dt,subMenuItemBg:Dt,colorItemBgSelected:Xt,itemSelectedBg:Xt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:_t,activeBarHeight:_t,colorActiveBarBorderSize:en,activeBarBorderWidth:en,colorItemTextDisabled:gt,itemDisabledColor:gt,colorDangerItemText:Ze,dangerItemColor:Ze,colorDangerItemTextHover:Ze,dangerItemHoverColor:Ze,colorDangerItemTextSelected:Ze,dangerItemSelectedColor:Ze,colorDangerItemBgActive:ct,dangerItemActiveBg:ct,colorDangerItemBgSelected:ct,dangerItemSelectedBg:ct,itemMarginInline:ve.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:he,groupTitleLineHeight:Be,collapsedWidth:he*2,popupBg:je,itemMarginBlock:it,itemPaddingInline:mt,horizontalLineHeight:`${he*1.15}px`,iconSize:Nt,iconMarginInlineEnd:Gt-Nt,collapsedIconSize:bt,groupTitleFontSize:Nt,darkItemDisabledColor:new se.C(xt).setAlpha(.25).toRgbString(),darkItemColor:Zt,darkDangerItemColor:Ze,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:xt,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:Ze,darkItemHoverBg:"transparent",darkGroupTitleColor:Zt,darkItemHoverColor:xt,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:xt,darkDangerItemActiveBg:Ze}},{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"]]})(ke),de=function(ke,be){var pe={};for(var ve in ke)Object.prototype.hasOwnProperty.call(ke,ve)&&be.indexOf(ve)<0&&(pe[ve]=ke[ve]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ve=Object.getOwnPropertySymbols(ke);Fe<ve.length;Fe++)be.indexOf(ve[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ke,ve[Fe])&&(pe[ve[Fe]]=ke[ve[Fe]]);return pe},wt=(0,Pe.forwardRef)((ke,be)=>{var pe,ve;const Fe=Pe.useContext(oe.Z),Ze=Fe||{},{getPrefixCls:gt,getPopupContainer:ct,direction:yt,menu:Ot}=Pe.useContext(we.E_),At=gt(),{prefixCls:Dt,className:sn,style:en,theme:_t="light",expandIcon:Xt,_internalDisableMenuItemTitleTooltip:cn,inlineCollapsed:he,siderCollapsed:Be,items:je,children:it,rootClassName:mt,mode:Nt,selectable:Gt,onClick:bt,overflowedIndicatorPopupClassName:xt}=ke,Ut=de(ke,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Zt=(0,We.Z)(Ut,["collapsedWidth"]),on=me(je)||it;(pe=Ze.validator)===null||pe===void 0||pe.call(Ze,{mode:Nt});const an=(0,ee.useEvent)(function(){var Cn;bt==null||bt.apply(void 0,arguments),(Cn=Ze.onClick)===null||Cn===void 0||Cn.call(Ze)}),hn=Ze.mode||Nt,bn=Gt!=null?Gt:Ze.selectable,tn=Pe.useMemo(()=>Be!==void 0?Be:he,[he,Be]),Qt={horizontal:{motionName:`${At}-slide-up`},inline:(0,te.Z)(At),other:{motionName:`${At}-zoom-big`}},mn=gt("menu",Dt||Ze.prefixCls),[pn,wn]=ft(mn,!Fe),ln=ce()(`${mn}-${_t}`,Ot==null?void 0:Ot.className,sn);let xn;if(typeof Xt=="function")xn=Xt;else if(Xt===null||Xt===!1)xn=null;else if(Ze.expandIcon===null||Ze.expandIcon===!1)xn=null;else{const Cn=Xt!=null?Xt:Ze.expandIcon;xn=(0,Te.Tm)(Cn,{className:ce()(`${mn}-submenu-expand-icon`,(0,Te.l$)(Cn)?(ve=Cn.props)===null||ve===void 0?void 0:ve.className:"")})}const Rn=Pe.useMemo(()=>({prefixCls:mn,inlineCollapsed:tn||!1,direction:yt,firstLevel:!0,theme:_t,mode:hn,disableMenuItemTitleTooltip:cn}),[mn,tn,yt,cn,_t]);return pn(Pe.createElement(oe.Z.Provider,{value:null},Pe.createElement(a.Provider,{value:Rn},Pe.createElement(ne.ZP,Object.assign({getPopupContainer:ct,overflowedIndicator:Pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(mn,`${mn}-${_t}`,xt),mode:hn,selectable:bn,onClick:an},Zt,{inlineCollapsed:tn,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),en),className:ln,prefixCls:mn,direction:yt,defaultMotions:Qt,expandIcon:xn,ref:be,rootClassName:ce()(mt,wn)}),on))))});const jt=(0,Pe.forwardRef)((ke,be)=>{const pe=(0,Pe.useRef)(null),ve=Pe.useContext(Ke.D);return(0,Pe.useImperativeHandle)(be,()=>({menu:pe.current,focus:Fe=>{var Ze;(Ze=pe.current)===null||Ze===void 0||Ze.focus(Fe)}})),Pe.createElement(wt,Object.assign({ref:pe},ke,ve))});jt.Item=E,jt.SubMenu=x,jt.Divider=ze,jt.ItemGroup=ne.BW;var Pt=jt},38703:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return cn}});var ne=re(67294),Pe=re(87725),Ke=re(18299),Me=re(16646),ce=re(73475),we=re(94184),le=re.n(we),Ye=re(10366),ze=re(53124),Ie=re(87462),We=re(1413),De=re(45987),Te={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Be=(0,ne.useRef)([]),je=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var it=Date.now(),mt=!1;Be.current.forEach(function(Nt){if(Nt){mt=!0;var Gt=Nt.style;Gt.transitionDuration=".3s, .3s, .3s, .06s",je.current&&it-je.current<100&&(Gt.transitionDuration="0s, 0s")}}),mt&&(je.current=Date.now())}),Be.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Be){var je=(0,We.Z)((0,We.Z)({},Te),Be),it=je.className,mt=je.percent,Nt=je.prefixCls,Gt=je.strokeColor,bt=je.strokeLinecap,xt=je.strokeWidth,Ut=je.style,Zt=je.trailColor,on=je.trailWidth,an=je.transition,hn=(0,De.Z)(je,a);delete hn.gapPosition;var bn=Array.isArray(mt)?mt:[mt],tn=Array.isArray(Gt)?Gt:[Gt],Qt=ae(),mn=xt/2,pn=100-xt/2,wn="M ".concat(bt==="round"?mn:0,",").concat(mn,`
|
|
L `).concat(bt==="round"?pn:100,",").concat(mn),ln="0 0 100 ".concat(xt),xn=0;return ne.createElement("svg",(0,Ie.Z)({className:le()("".concat(Nt,"-line"),it),viewBox:ln,preserveAspectRatio:"none",style:Ut},hn),ne.createElement("path",{className:"".concat(Nt,"-line-trail"),d:wn,strokeLinecap:bt,stroke:Zt,strokeWidth:on||xt,fillOpacity:"0"}),bn.map(function(Rn,Cn){var In=1;switch(bt){case"round":In=1-xt/100;break;case"square":In=1-xt/2/100;break;default:In=1;break}var Un={strokeDasharray:"".concat(Rn*In,"px, 100px"),strokeDashoffset:"-".concat(xn,"px"),transition:an||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},jn=tn[Cn]||tn[tn.length-1];return xn+=Rn,ne.createElement("path",{key:Cn,className:"".concat(Nt,"-line-path"),d:wn,strokeLinecap:bt,stroke:jn,strokeWidth:xt,fillOpacity:"0",ref:function(ye){Qt[Cn]=ye},style:Un})}))},E=y,b=re(71002),x=re(97685),z=re(98924),ee=0,te=(0,z.Z)();function oe(){var he;return te?(he=ee,ee+=1):he="TEST_OR_SSR",he}var ge=function(he){var Be=ne.useState(),je=(0,x.Z)(Be,2),it=je[0],mt=je[1];return ne.useEffect(function(){mt("rc_progress_".concat(oe()))},[]),he||it},ie=function(Be){var je=Be.bg,it=Be.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:je}},it)};function me(he,Be){return Object.keys(he).map(function(je){var it=parseFloat(je),mt="".concat(Math.floor(it*Be),"%");return"".concat(he[je]," ").concat(mt)})}var se=ne.forwardRef(function(he,Be){var je=he.prefixCls,it=he.color,mt=he.gradientId,Nt=he.radius,Gt=he.style,bt=he.ptg,xt=he.strokeLinecap,Ut=he.strokeWidth,Zt=he.size,on=he.gapDegree,an=it&&(0,b.Z)(it)==="object",hn=an?"#FFF":void 0,bn=Zt/2,tn=ne.createElement("circle",{className:"".concat(je,"-circle-path"),r:Nt,cx:bn,cy:bn,stroke:hn,strokeLinecap:xt,strokeWidth:Ut,opacity:bt===0?0:1,style:Gt,ref:Be});if(!an)return tn;var Qt="".concat(mt,"-conic"),mn=on?"".concat(180+on/2,"deg"):"0deg",pn=me(it,(360-on)/360),wn=me(it,1),ln="conic-gradient(from ".concat(mn,", ").concat(pn.join(", "),")"),xn="linear-gradient(to ".concat(on?"bottom":"top",", ").concat(wn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:Qt},tn),ne.createElement("foreignObject",{x:0,y:0,width:Zt,height:Zt,mask:"url(#".concat(Qt,")")},ne.createElement(ie,{bg:xn},ne.createElement(ie,{bg:ln}))))}),Ge=se,xe=100,rt=function(Be,je,it,mt,Nt,Gt,bt,xt,Ut,Zt){var on=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,an=it/100*360*((360-Gt)/360),hn=Gt===0?0:{bottom:0,top:180,left:90,right:-90}[bt],bn=(100-mt)/100*je;Ut==="round"&&mt!==100&&(bn+=Zt/2,bn>=je&&(bn=je-.01));var tn=xe/2;return{stroke:typeof xt=="string"?xt:void 0,strokeDasharray:"".concat(je,"px ").concat(Be),strokeDashoffset:bn+on,transform:"rotate(".concat(Nt+an+hn,"deg)"),transformOrigin:"".concat(tn,"px ").concat(tn,"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}},St=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Wt(he){var Be=he!=null?he:[];return Array.isArray(Be)?Be:[Be]}var Ee=function(Be){var je=(0,We.Z)((0,We.Z)({},Te),Be),it=je.id,mt=je.prefixCls,Nt=je.steps,Gt=je.strokeWidth,bt=je.trailWidth,xt=je.gapDegree,Ut=xt===void 0?0:xt,Zt=je.gapPosition,on=je.trailColor,an=je.strokeLinecap,hn=je.style,bn=je.className,tn=je.strokeColor,Qt=je.percent,mn=(0,De.Z)(je,St),pn=xe/2,wn=ge(it),ln="".concat(wn,"-gradient"),xn=pn-Gt/2,Rn=Math.PI*2*xn,Cn=Ut>0?90+Ut/2:-90,In=Rn*((360-Ut)/360),Un=(0,b.Z)(Nt)==="object"?Nt:{count:Nt,space:2},jn=Un.count,Se=Un.space,ye=Wt(Qt),fe=Wt(tn),qe=fe.find(function(Hn){return Hn&&(0,b.Z)(Hn)==="object"}),Lt=qe&&(0,b.Z)(qe)==="object",Ct=Lt?"butt":an,Sn=rt(Rn,In,0,100,Cn,Ut,Zt,on,Ct,Gt),Yt=ae(),gn=function(){var et=0;return ye.map(function(rn,ue){var $e=fe[ue]||fe[fe.length-1],Ce=rt(Rn,In,et,rn,Cn,Ut,Zt,$e,Ct,Gt);return et+=rn,ne.createElement(Ge,{key:ue,color:$e,ptg:rn,radius:xn,prefixCls:mt,gradientId:ln,style:Ce,strokeLinecap:Ct,strokeWidth:Gt,gapDegree:Ut,ref:function(at){Yt[ue]=at},size:xe})}).reverse()},Bn=function(){var et=Math.round(jn*(ye[0]/100)),rn=100/jn,ue=0;return new Array(jn).fill(null).map(function($e,Ce){var Oe=Ce<=et-1?fe[0]:on,at=Oe&&(0,b.Z)(Oe)==="object"?"url(#".concat(ln,")"):void 0,He=rt(Rn,In,ue,rn,Cn,Ut,Zt,Oe,"butt",Gt,Se);return ue+=(In-He.strokeDashoffset+Se)*100/In,ne.createElement("circle",{key:Ce,className:"".concat(mt,"-circle-path"),r:xn,cx:pn,cy:pn,stroke:at,strokeWidth:Gt,opacity:1,style:He,ref:function(Re){Yt[Ce]=Re}})})};return ne.createElement("svg",(0,Ie.Z)({className:le()("".concat(mt,"-circle"),bn),viewBox:"0 0 ".concat(xe," ").concat(xe),style:hn,id:it,role:"presentation"},mn),!jn&&ne.createElement("circle",{className:"".concat(mt,"-circle-trail"),r:xn,cx:pn,cy:pn,stroke:on,strokeLinecap:Ct,strokeWidth:bt||Gt,style:Sn}),jn?Bn():gn())},tt=Ee,Ue={Line:E,Circle:tt},Qe=re(83062),ot=re(47448);function vt(he){return!he||he<0?0:he>100?100:he}function kt(he){let{success:Be,successPercent:je}=he,it=je;return Be&&"progress"in Be&&(it=Be.progress),Be&&"percent"in Be&&(it=Be.percent),it}const nn=he=>{let{percent:Be,success:je,successPercent:it}=he;const mt=vt(kt({success:je,successPercent:it}));return[mt,vt(vt(Be)-mt)]},Jt=he=>{let{success:Be={},strokeColor:je}=he;const{strokeColor:it}=Be;return[it||ot.presetPrimaryColors.green,je||null]},Le=(he,Be,je)=>{var it,mt,Nt,Gt;let bt=-1,xt=-1;if(Be==="step"){const Ut=je.steps,Zt=je.strokeWidth;typeof he=="string"||typeof he=="undefined"?(bt=he==="small"?2:14,xt=Zt!=null?Zt:8):typeof he=="number"?[bt,xt]=[he,he]:[bt=14,xt=8]=he,bt*=Ut}else if(Be==="line"){const Ut=je==null?void 0:je.strokeWidth;typeof he=="string"||typeof he=="undefined"?xt=Ut||(he==="small"?6:8):typeof he=="number"?[bt,xt]=[he,he]:[bt=-1,xt=8]=he}else(Be==="circle"||Be==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[bt,xt]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[bt,xt]=[he,he]:(bt=(mt=(it=he[0])!==null&&it!==void 0?it:he[1])!==null&&mt!==void 0?mt:120,xt=(Gt=(Nt=he[0])!==null&&Nt!==void 0?Nt:he[1])!==null&&Gt!==void 0?Gt:120));return[bt,xt]},Ae=3,Je=he=>Ae/he*100;var nt=he=>{const{prefixCls:Be,trailColor:je=null,strokeLinecap:it="round",gapPosition:mt,gapDegree:Nt,width:Gt=120,type:bt,children:xt,success:Ut,size:Zt=Gt}=he,[on,an]=Le(Zt,"circle");let{strokeWidth:hn}=he;hn===void 0&&(hn=Math.max(Je(on),6));const bn={width:on,height:an,fontSize:on*.15+6},tn=ne.useMemo(()=>{if(Nt||Nt===0)return Nt;if(bt==="dashboard")return 75},[Nt,bt]),Qt=mt||bt==="dashboard"&&"bottom"||void 0,mn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",pn=Jt({success:Ut,strokeColor:he.strokeColor}),wn=le()(`${Be}-inner`,{[`${Be}-circle-gradient`]:mn}),ln=ne.createElement(tt,{percent:nn(he),strokeWidth:hn,trailWidth:hn,strokeColor:pn,strokeLinecap:it,trailColor:je,prefixCls:Be,gapDegree:tn,gapPosition:Qt});return ne.createElement("div",{className:wn,style:bn},on<=20?ne.createElement(Qe.Z,{title:xt},ne.createElement("span",null,ln)):ne.createElement(ne.Fragment,null,ln,xt))},ft=function(he,Be){var je={};for(var it in he)Object.prototype.hasOwnProperty.call(he,it)&&Be.indexOf(it)<0&&(je[it]=he[it]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,it=Object.getOwnPropertySymbols(he);mt<it.length;mt++)Be.indexOf(it[mt])<0&&Object.prototype.propertyIsEnumerable.call(he,it[mt])&&(je[it[mt]]=he[it[mt]]);return je};const de=he=>{let Be=[];return Object.keys(he).forEach(je=>{const it=parseFloat(je.replace(/%/g,""));isNaN(it)||Be.push({key:it,value:he[je]})}),Be=Be.sort((je,it)=>je.key-it.key),Be.map(je=>{let{key:it,value:mt}=je;return`${mt} ${it}%`}).join(", ")},dt=(he,Be)=>{const{from:je=ot.presetPrimaryColors.blue,to:it=ot.presetPrimaryColors.blue,direction:mt=Be==="rtl"?"to left":"to right"}=he,Nt=ft(he,["from","to","direction"]);if(Object.keys(Nt).length!==0){const Gt=de(Nt);return{backgroundImage:`linear-gradient(${mt}, ${Gt})`}}return{backgroundImage:`linear-gradient(${mt}, ${je}, ${it})`}};var jt=he=>{const{prefixCls:Be,direction:je,percent:it,size:mt,strokeWidth:Nt,strokeColor:Gt,strokeLinecap:bt="round",children:xt,trailColor:Ut=null,success:Zt}=he,on=Gt&&typeof Gt!="string"?dt(Gt,je):{backgroundColor:Gt},an=bt==="square"||bt==="butt"?0:void 0,hn={backgroundColor:Ut||void 0,borderRadius:an},bn=mt!=null?mt:[-1,Nt||(mt==="small"?6:8)],[tn,Qt]=Le(bn,"line",{strokeWidth:Nt}),mn=Object.assign({width:`${vt(it)}%`,height:Qt,borderRadius:an},on),pn=kt(he),wn={width:`${vt(pn)}%`,height:Qt,borderRadius:an,backgroundColor:Zt==null?void 0:Zt.strokeColor},ln={width:tn<0?"100%":tn,height:Qt};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Be}-outer`,style:ln},ne.createElement("div",{className:`${Be}-inner`,style:hn},ne.createElement("div",{className:`${Be}-bg`,style:mn}),pn!==void 0?ne.createElement("div",{className:`${Be}-success-bg`,style:wn}):null)),xt)},ke=he=>{const{size:Be,steps:je,percent:it=0,strokeWidth:mt=8,strokeColor:Nt,trailColor:Gt=null,prefixCls:bt,children:xt}=he,Ut=Math.round(je*(it/100)),Zt=Be==="small"?2:14,on=Be!=null?Be:[Zt,mt],[an,hn]=Le(on,"step",{steps:je,strokeWidth:mt}),bn=an/je,tn=new Array(je);for(let Qt=0;Qt<je;Qt++){const mn=Array.isArray(Nt)?Nt[Qt]:Nt;tn[Qt]=ne.createElement("div",{key:Qt,className:le()(`${bt}-steps-item`,{[`${bt}-steps-item-active`]:Qt<=Ut-1}),style:{backgroundColor:Qt<=Ut-1?mn:Gt,width:bn,height:hn}})}return ne.createElement("div",{className:`${bt}-steps-outer`},tn,xt)},be=re(45930),pe=re(14747),ve=re(67968),Fe=re(45503);const Ze=he=>{const Be=he?"100%":"-100%";return new be.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Be}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},gt=he=>{const{componentCls:Be,iconCls:je}=he;return{[Be]:Object.assign(Object.assign({},(0,pe.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${Be}-outer`]:{display:"inline-block",width:"100%"},[`&${Be}-show-info`]:{[`${Be}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${Be}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:he.defaultColor}},[`${Be}-success-bg, ${Be}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${Be}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${Be}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[je]:{fontSize:he.fontSize}},[`&${Be}-status-active`]:{[`${Be}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:Ze(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Be}-rtl${Be}-status-active`]:{[`${Be}-bg::before`]:{animationName:Ze(!0)}},[`&${Be}-status-exception`]:{[`${Be}-bg`]:{backgroundColor:he.colorError},[`${Be}-text`]:{color:he.colorError}},[`&${Be}-status-exception ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:he.colorError}},[`&${Be}-status-success`]:{[`${Be}-bg`]:{backgroundColor:he.colorSuccess},[`${Be}-text`]:{color:he.colorSuccess}},[`&${Be}-status-success ${Be}-inner:not(${Be}-circle-gradient)`]:{[`${Be}-circle-path`]:{stroke:he.colorSuccess}}})}},ct=he=>{const{componentCls:Be,iconCls:je}=he;return{[Be]:{[`${Be}-circle-trail`]:{stroke:he.remainingColor},[`&${Be}-circle ${Be}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Be}-circle ${Be}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[je]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${Be}-circle&-status-exception`]:{[`${Be}-text`]:{color:he.colorError}},[`${Be}-circle&-status-success`]:{[`${Be}-text`]:{color:he.colorSuccess}}},[`${Be}-inline-circle`]:{lineHeight:1,[`${Be}-inner`]:{verticalAlign:"bottom"}}}},yt=he=>{const{componentCls:Be}=he;return{[Be]:{[`${Be}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},Ot=he=>{const{componentCls:Be,iconCls:je}=he;return{[Be]:{[`${Be}-small&-line, ${Be}-small&-line ${Be}-text ${je}`]:{fontSize:he.fontSizeSM}}}};var At=(0,ve.Z)("Progress",he=>{const Be=he.marginXXS/2,je=(0,Fe.TS)(he,{progressStepMarginInlineEnd:Be,progressStepMinWidth:Be,progressActiveMotionDuration:"2.4s"});return[gt(je),ct(je),yt(je),Ot(je)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Dt=function(he,Be){var je={};for(var it in he)Object.prototype.hasOwnProperty.call(he,it)&&Be.indexOf(it)<0&&(je[it]=he[it]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,it=Object.getOwnPropertySymbols(he);mt<it.length;mt++)Be.indexOf(it[mt])<0&&Object.prototype.propertyIsEnumerable.call(he,it[mt])&&(je[it[mt]]=he[it[mt]]);return je};const sn=null,en=["normal","exception","active","success"];var Xt=ne.forwardRef((he,Be)=>{const{prefixCls:je,className:it,rootClassName:mt,steps:Nt,strokeColor:Gt,percent:bt=0,size:xt="default",showInfo:Ut=!0,type:Zt="line",status:on,format:an,style:hn}=he,bn=Dt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),tn=ne.useMemo(()=>{var ye,fe;const qe=kt(he);return parseInt(qe!==void 0?(ye=qe!=null?qe:0)===null||ye===void 0?void 0:ye.toString():(fe=bt!=null?bt:0)===null||fe===void 0?void 0:fe.toString(),10)},[bt,he.success,he.successPercent]),Qt=ne.useMemo(()=>!en.includes(on)&&tn>=100?"success":on||"normal",[on,tn]),{getPrefixCls:mn,direction:pn,progress:wn}=ne.useContext(ze.E_),ln=mn("progress",je),[xn,Rn]=At(ln),Cn=ne.useMemo(()=>{if(!Ut)return null;const ye=kt(he);let fe;const qe=an||(Ct=>`${Ct}%`),Lt=Zt==="line";return an||Qt!=="exception"&&Qt!=="success"?fe=qe(vt(bt),vt(ye)):Qt==="exception"?fe=Lt?ne.createElement(Me.Z,null):ne.createElement(ce.Z,null):Qt==="success"&&(fe=Lt?ne.createElement(Pe.Z,null):ne.createElement(Ke.Z,null)),ne.createElement("span",{className:`${ln}-text`,title:typeof fe=="string"?fe:void 0},fe)},[Ut,bt,tn,Qt,Zt,ln,an]),In=Array.isArray(Gt)?Gt[0]:Gt,Un=typeof Gt=="string"||Array.isArray(Gt)?Gt:void 0;let jn;Zt==="line"?jn=Nt?ne.createElement(ke,Object.assign({},he,{strokeColor:Un,prefixCls:ln,steps:Nt}),Cn):ne.createElement(jt,Object.assign({},he,{strokeColor:In,prefixCls:ln,direction:pn}),Cn):(Zt==="circle"||Zt==="dashboard")&&(jn=ne.createElement(nt,Object.assign({},he,{strokeColor:In,prefixCls:ln,progressStatus:Qt}),Cn));const Se=le()(ln,`${ln}-status-${Qt}`,`${ln}-${Zt==="dashboard"&&"circle"||Nt&&"steps"||Zt}`,{[`${ln}-inline-circle`]:Zt==="circle"&&Le(xt,"circle")[0]<=20,[`${ln}-show-info`]:Ut,[`${ln}-${xt}`]:typeof xt=="string",[`${ln}-rtl`]:pn==="rtl"},wn==null?void 0:wn.className,it,mt,Rn);return xn(ne.createElement("div",Object.assign({ref:Be,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),hn),className:Se,role:"progressbar","aria-valuenow":tn},(0,Ye.Z)(bn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),jn))}),cn=Xt},59810:function(Ne,st,re){"use strict";re.d(st,{default:function(){return rn}});var ne=re(67294),Pe=re(74902),Ke=re(94184),Me=re.n(Ke),ce=re(87462),we=re(15671),le=re(43144),Ye=re(60136),ze=re(51630),Ie=re(4942),We=re(45987),De=re(74165),Te=re(71002),ae=re(15861),a=re(64217);function y(ue,$e){var Ce="cannot ".concat(ue.method," ").concat(ue.action," ").concat($e.status,"'"),Oe=new Error(Ce);return Oe.status=$e.status,Oe.method=ue.method,Oe.url=ue.action,Oe}function E(ue){var $e=ue.responseText||ue.response;if(!$e)return $e;try{return JSON.parse($e)}catch(Ce){return $e}}function b(ue){var $e=new XMLHttpRequest;ue.onProgress&&$e.upload&&($e.upload.onprogress=function(He){He.total>0&&(He.percent=He.loaded/He.total*100),ue.onProgress(He)});var Ce=new FormData;ue.data&&Object.keys(ue.data).forEach(function(at){var He=ue.data[at];if(Array.isArray(He)){He.forEach(function(_e){Ce.append("".concat(at,"[]"),_e)});return}Ce.append(at,He)}),ue.file instanceof Blob?Ce.append(ue.filename,ue.file,ue.file.name):Ce.append(ue.filename,ue.file),$e.onerror=function(He){ue.onError(He)},$e.onload=function(){return $e.status<200||$e.status>=300?ue.onError(y(ue,$e),E($e)):ue.onSuccess(E($e),$e)},$e.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in $e&&($e.withCredentials=!0);var Oe=ue.headers||{};return Oe["X-Requested-With"]!==null&&$e.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Oe).forEach(function(at){Oe[at]!==null&&$e.setRequestHeader(at,Oe[at])}),$e.send(Ce),{abort:function(){$e.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=re(80334),oe=function(ue,$e){if(ue&&$e){var Ce=Array.isArray($e)?$e:$e.split(","),Oe=ue.name||"",at=ue.type||"",He=at.replace(/\/.*$/,"");return Ce.some(function(_e){var Re=_e.trim();if(/^\*(\/\*)?$/.test(_e))return!0;if(Re.charAt(0)==="."){var Mt=Oe.toLowerCase(),Ft=Re.toLowerCase(),Ht=[Ft];return(Ft===".jpg"||Ft===".jpeg")&&(Ht=[".jpg",".jpeg"]),Ht.some(function(qt){return Mt.endsWith(qt)})}return/\/\*$/.test(Re)?He===Re.replace(/\/.*$/,""):at===Re?!0:/^\w+$/.test(Re)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Re,"'.Skip for check.")),!0):!1})}return!0};function ge(ue,$e){var Ce=ue.createReader(),Oe=[];function at(){Ce.readEntries(function(He){var _e=Array.prototype.slice.apply(He);Oe=Oe.concat(_e);var Re=!_e.length;Re?$e(Oe):at()})}at()}var ie=function($e,Ce,Oe){var at=function He(_e,Re){_e&&(_e.path=Re||"",_e.isFile?_e.file(function(Mt){Oe(Mt)&&(_e.fullPath&&!Mt.webkitRelativePath&&(Object.defineProperties(Mt,{webkitRelativePath:{writable:!0}}),Mt.webkitRelativePath=_e.fullPath.replace(/^\//,""),Object.defineProperties(Mt,{webkitRelativePath:{writable:!1}})),Ce([Mt]))}):_e.isDirectory&&ge(_e,function(Mt){Mt.forEach(function(Ft){He(Ft,"".concat(Re).concat(_e.name,"/"))})}))};$e.forEach(function(He){at(He.webkitGetAsEntry())})},me=ie,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ge=function(ue){(0,Ye.Z)(Ce,ue);var $e=(0,ze.Z)(Ce);function Ce(){var Oe;(0,we.Z)(this,Ce);for(var at=arguments.length,He=new Array(at),_e=0;_e<at;_e++)He[_e]=arguments[_e];return Oe=$e.call.apply($e,[this].concat(He)),Oe.state={uid:ee()},Oe.reqs={},Oe.fileInput=void 0,Oe._isMounted=void 0,Oe.onChange=function(Re){var Mt=Oe.props,Ft=Mt.accept,Ht=Mt.directory,qt=Re.target.files,dn=(0,Pe.Z)(qt).filter(function(fn){return!Ht||oe(fn,Ft)});Oe.uploadFiles(dn),Oe.reset()},Oe.onClick=function(Re){var Mt=Oe.fileInput;if(Mt){var Ft=Oe.props,Ht=Ft.children,qt=Ft.onClick;if(Ht&&Ht.type==="button"){var dn=Mt.parentNode;dn.focus(),dn.querySelector("button").blur()}Mt.click(),qt&&qt(Re)}},Oe.onKeyDown=function(Re){Re.key==="Enter"&&Oe.onClick(Re)},Oe.onFileDrop=function(Re){var Mt=Oe.props.multiple;if(Re.preventDefault(),Re.type!=="dragover")if(Oe.props.directory)me(Array.prototype.slice.call(Re.dataTransfer.items),Oe.uploadFiles,function(Ht){return oe(Ht,Oe.props.accept)});else{var Ft=(0,Pe.Z)(Re.dataTransfer.files).filter(function(Ht){return oe(Ht,Oe.props.accept)});Mt===!1&&(Ft=Ft.slice(0,1)),Oe.uploadFiles(Ft)}},Oe.uploadFiles=function(Re){var Mt=(0,Pe.Z)(Re),Ft=Mt.map(function(Ht){return Ht.uid=ee(),Oe.processFile(Ht,Mt)});Promise.all(Ft).then(function(Ht){var qt=Oe.props.onBatchStart;qt==null||qt(Ht.map(function(dn){var fn=dn.origin,An=dn.parsedFile;return{file:fn,parsedFile:An}})),Ht.filter(function(dn){return dn.parsedFile!==null}).forEach(function(dn){Oe.post(dn)})})},Oe.processFile=function(){var Re=(0,ae.Z)((0,De.Z)().mark(function Mt(Ft,Ht){var qt,dn,fn,An,Xe,Xn,On,Ve,ht;return(0,De.Z)().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:if(qt=Oe.props.beforeUpload,dn=Ft,!qt){lt.next=14;break}return lt.prev=3,lt.next=6,qt(Ft,Ht);case 6:dn=lt.sent,lt.next=12;break;case 9:lt.prev=9,lt.t0=lt.catch(3),dn=!1;case 12:if(dn!==!1){lt.next=14;break}return lt.abrupt("return",{origin:Ft,parsedFile:null,action:null,data:null});case 14:if(fn=Oe.props.action,typeof fn!="function"){lt.next=21;break}return lt.next=18,fn(Ft);case 18:An=lt.sent,lt.next=22;break;case 21:An=fn;case 22:if(Xe=Oe.props.data,typeof Xe!="function"){lt.next=29;break}return lt.next=26,Xe(Ft);case 26:Xn=lt.sent,lt.next=30;break;case 29:Xn=Xe;case 30:return On=((0,Te.Z)(dn)==="object"||typeof dn=="string")&&dn?dn:Ft,On instanceof File?Ve=On:Ve=new File([On],Ft.name,{type:Ft.type}),ht=Ve,ht.uid=Ft.uid,lt.abrupt("return",{origin:Ft,data:Xn,parsedFile:ht,action:An});case 35:case"end":return lt.stop()}},Mt,null,[[3,9]])}));return function(Mt,Ft){return Re.apply(this,arguments)}}(),Oe.saveFileInput=function(Re){Oe.fileInput=Re},Oe}return(0,le.Z)(Ce,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(at){var He=this,_e=at.data,Re=at.origin,Mt=at.action,Ft=at.parsedFile;if(this._isMounted){var Ht=this.props,qt=Ht.onStart,dn=Ht.customRequest,fn=Ht.name,An=Ht.headers,Xe=Ht.withCredentials,Xn=Ht.method,On=Re.uid,Ve=dn||b,ht={action:Mt,filename:fn,data:_e,file:Ft,headers:An,withCredentials:Xe,method:Xn||"post",onProgress:function(lt){var un=He.props.onProgress;un==null||un(lt,Ft)},onSuccess:function(lt,un){var Rt=He.props.onSuccess;Rt==null||Rt(lt,Ft,un),delete He.reqs[On]},onError:function(lt,un){var Rt=He.props.onError;Rt==null||Rt(lt,un,Ft),delete He.reqs[On]}};qt(Re),this.reqs[On]=Ve(ht)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(at){var He=this.reqs;if(at){var _e=at.uid?at.uid:at;He[_e]&&He[_e].abort&&He[_e].abort(),delete He[_e]}else Object.keys(He).forEach(function(Re){He[Re]&&He[Re].abort&&He[Re].abort(),delete He[Re]})}},{key:"render",value:function(){var at,He=this.props,_e=He.component,Re=He.prefixCls,Mt=He.className,Ft=He.disabled,Ht=He.id,qt=He.style,dn=He.multiple,fn=He.accept,An=He.capture,Xe=He.children,Xn=He.directory,On=He.openFileDialogOnClick,Ve=He.onMouseEnter,ht=He.onMouseLeave,zt=(0,We.Z)(He,se),lt=Me()((at={},(0,Ie.Z)(at,Re,!0),(0,Ie.Z)(at,"".concat(Re,"-disabled"),Ft),(0,Ie.Z)(at,Mt,Mt),at)),un=Xn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Rt=Ft?{}:{onClick:On?this.onClick:function(){},onKeyDown:On?this.onKeyDown:function(){},onMouseEnter:Ve,onMouseLeave:ht,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(_e,(0,ce.Z)({},Rt,{className:lt,role:"button",style:qt}),ne.createElement("input",(0,ce.Z)({},(0,a.Z)(zt,{aria:!0,data:!0}),{id:Ht,disabled:Ft,type:"file",ref:this.saveFileInput,onClick:function($n){return $n.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:fn},un,{multiple:dn,onChange:this.onChange},An!=null?{capture:An}:{})),Xe)}}]),Ce}(ne.Component),xe=Ge;function rt(){}var St=function(ue){(0,Ye.Z)(Ce,ue);var $e=(0,ze.Z)(Ce);function Ce(){var Oe;(0,we.Z)(this,Ce);for(var at=arguments.length,He=new Array(at),_e=0;_e<at;_e++)He[_e]=arguments[_e];return Oe=$e.call.apply($e,[this].concat(He)),Oe.uploader=void 0,Oe.saveUploader=function(Re){Oe.uploader=Re},Oe}return(0,le.Z)(Ce,[{key:"abort",value:function(at){this.uploader.abort(at)}},{key:"render",value:function(){return ne.createElement(xe,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Ce}(ne.Component);St.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:rt,onError:rt,onSuccess:rt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Wt=St,Ee=Wt,tt=re(5663),Ue=re(73935),Qe=re(53124),ot=re(98866),vt=re(10110),kt=re(24457),nn={icon:function($e,Ce){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ce}},{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:$e}}]}},name:"file",theme:"twotone"},Jt=nn,Le=re(74643),Ae=function($e,Ce){return ne.createElement(Le.Z,(0,ce.Z)({},$e,{ref:Ce,icon:Jt}))},Je=ne.forwardRef(Ae),$t=re(3407),nt={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"},ft=nt,de=function($e,Ce){return ne.createElement(Le.Z,(0,ce.Z)({},$e,{ref:Ce,icon:ft}))},dt=ne.forwardRef(de),wt={icon:function($e,Ce){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:$e}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ce}},{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:Ce}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ce}},{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:$e}}]}},name:"picture",theme:"twotone"},jt=wt,Pt=function($e,Ce){return ne.createElement(Le.Z,(0,ce.Z)({},$e,{ref:Ce,icon:jt}))},ke=ne.forwardRef(Pt),be=re(38379),pe=re(57838),ve=re(33603),Fe=re(96159),Ze=re(71577);function gt(ue){return Object.assign(Object.assign({},ue),{lastModified:ue.lastModified,lastModifiedDate:ue.lastModifiedDate,name:ue.name,size:ue.size,type:ue.type,uid:ue.uid,percent:0,originFileObj:ue})}function ct(ue,$e){const Ce=(0,Pe.Z)($e),Oe=Ce.findIndex(at=>{let{uid:He}=at;return He===ue.uid});return Oe===-1?Ce.push(ue):Ce[Oe]=ue,Ce}function yt(ue,$e){const Ce=ue.uid!==void 0?"uid":"name";return $e.filter(Oe=>Oe[Ce]===ue[Ce])[0]}function Ot(ue,$e){const Ce=ue.uid!==void 0?"uid":"name",Oe=$e.filter(at=>at[Ce]!==ue[Ce]);return Oe.length===$e.length?null:Oe}const At=function(){const $e=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Oe=$e[$e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Oe)||[""])[0]},Dt=ue=>ue.indexOf("image/")===0,sn=ue=>{if(ue.type&&!ue.thumbUrl)return Dt(ue.type);const $e=ue.thumbUrl||ue.url||"",Ce=At($e);return/^data:image\//.test($e)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ce)?!0:!(/^data:/.test($e)||Ce)},en=200;function _t(ue){return new Promise($e=>{if(!ue.type||!Dt(ue.type)){$e("");return}const Ce=document.createElement("canvas");Ce.width=en,Ce.height=en,Ce.style.cssText=`position: fixed; left: 0; top: 0; width: ${en}px; height: ${en}px; z-index: 9999; display: none;`,document.body.appendChild(Ce);const Oe=Ce.getContext("2d"),at=new Image;if(at.onload=()=>{const{width:He,height:_e}=at;let Re=en,Mt=en,Ft=0,Ht=0;He>_e?(Mt=_e*(en/He),Ht=-(Mt-Re)/2):(Re=He*(en/_e),Ft=-(Re-Mt)/2),Oe.drawImage(at,Ft,Ht,Re,Mt);const qt=Ce.toDataURL();document.body.removeChild(Ce),window.URL.revokeObjectURL(at.src),$e(qt)},at.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const He=new FileReader;He.onload=()=>{He.result&&(at.src=He.result)},He.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const He=new FileReader;He.onload=()=>{He.result&&$e(He.result)},He.readAsDataURL(ue)}else at.src=window.URL.createObjectURL(ue)})}var Xt=re(84249),cn=re(90674),he=re(99569),Be=re(38703),je=re(83062),mt=ne.forwardRef((ue,$e)=>{let{prefixCls:Ce,className:Oe,style:at,locale:He,listType:_e,file:Re,items:Mt,progress:Ft,iconRender:Ht,actionIconRender:qt,itemRender:dn,isImgUrl:fn,showPreviewIcon:An,showRemoveIcon:Xe,showDownloadIcon:Xn,previewIcon:On,removeIcon:Ve,downloadIcon:ht,onPreview:zt,onDownload:lt,onClose:un}=ue;var Rt,vn;const{status:$n}=Re,[Nn,ea]=ne.useState($n);ne.useEffect(()=>{$n!=="removed"&&ea($n)},[$n]);const[ta,ua]=ne.useState(!1);ne.useEffect(()=>{const zn=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout(zn)}},[]);const na=Ht(Re);let Vn=ne.createElement("div",{className:`${Ce}-icon`},na);if(_e==="picture"||_e==="picture-card"||_e==="picture-circle")if(Nn==="uploading"||!Re.thumbUrl&&!Re.url){const zn=Me()(`${Ce}-list-item-thumbnail`,{[`${Ce}-list-item-file`]:Nn!=="uploading"});Vn=ne.createElement("div",{className:zn},na)}else{const zn=fn!=null&&fn(Re)?ne.createElement("img",{src:Re.thumbUrl||Re.url,alt:Re.name,className:`${Ce}-list-item-image`,crossOrigin:Re.crossOrigin}):na,yn=Me()(`${Ce}-list-item-thumbnail`,{[`${Ce}-list-item-file`]:fn&&!fn(Re)});Vn=ne.createElement("a",{className:yn,onClick:ra=>zt(Re,ra),href:Re.url||Re.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zn)}const Mn=Me()(`${Ce}-list-item`,`${Ce}-list-item-${Nn}`),da=typeof Re.linkProps=="string"?JSON.parse(Re.linkProps):Re.linkProps,la=Xe?qt((typeof Ve=="function"?Ve(Re):Ve)||ne.createElement(Xt.Z,null),()=>un(Re),Ce,He.removeFile):null,sa=Xn&&Nn==="done"?qt((typeof ht=="function"?ht(Re):ht)||ne.createElement(cn.Z,null),()=>lt(Re),Ce,He.downloadFile):null,aa=_e!=="picture-card"&&_e!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Me()(`${Ce}-list-item-actions`,{picture:_e==="picture"})},sa,la),Kn=Me()(`${Ce}-list-item-name`),_n=Re.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Kn,title:Re.name},da,{href:Re.url,onClick:zn=>zt(Re,zn)}),Re.name),aa]:[ne.createElement("span",{key:"view",className:Kn,onClick:zn=>zt(Re,zn),title:Re.name},Re.name),aa],Kt={pointerEvents:"none",opacity:.5},Gn=An?ne.createElement("a",{href:Re.url||Re.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Re.url||Re.thumbUrl?void 0:Kt,onClick:zn=>zt(Re,zn),title:He.previewFile},typeof On=="function"?On(Re):On||ne.createElement(he.Z,null)):null,Wn=(_e==="picture-card"||_e==="picture-circle")&&Nn!=="uploading"&&ne.createElement("span",{className:`${Ce}-list-item-actions`},Gn,Nn==="done"&&sa,la),{getPrefixCls:Zn}=ne.useContext(Qe.E_),oa=Zn(),Qn=ne.createElement("div",{className:Mn},Vn,_n,Wn,ta&&ne.createElement(be.default,{motionName:`${oa}-fade`,visible:Nn==="uploading",motionDeadline:2e3},zn=>{let{className:yn}=zn;const ra="percent"in Re?ne.createElement(Be.Z,Object.assign({},Ft,{type:"line",percent:Re.percent,"aria-label":Re["aria-label"],"aria-labelledby":Re["aria-labelledby"]})):null;return ne.createElement("div",{className:Me()(`${Ce}-list-item-progress`,yn)},ra)})),ca=Re.response&&typeof Re.response=="string"?Re.response:((Rt=Re.error)===null||Rt===void 0?void 0:Rt.statusText)||((vn=Re.error)===null||vn===void 0?void 0:vn.message)||He.uploadError,Yn=Nn==="error"?ne.createElement(je.Z,{title:ca,getPopupContainer:zn=>zn.parentNode},Qn):Qn;return ne.createElement("div",{className:Me()(`${Ce}-list-item-container`,Oe),style:at,ref:$e},dn?dn(Yn,Re,Mt,{download:lt.bind(null,Re),preview:zt.bind(null,Re),remove:un.bind(null,Re)}):Yn)});const Nt=(ue,$e)=>{const{listType:Ce="text",previewFile:Oe=_t,onPreview:at,onDownload:He,onRemove:_e,locale:Re,iconRender:Mt,isImageUrl:Ft=sn,prefixCls:Ht,items:qt=[],showPreviewIcon:dn=!0,showRemoveIcon:fn=!0,showDownloadIcon:An=!1,removeIcon:Xe,previewIcon:Xn,downloadIcon:On,progress:Ve={size:[-1,2],showInfo:!1},appendAction:ht,appendActionVisible:zt=!0,itemRender:lt,disabled:un}=ue,Rt=(0,pe.Z)(),[vn,$n]=ne.useState(!1);ne.useEffect(()=>{Ce!=="picture"&&Ce!=="picture-card"&&Ce!=="picture-circle"||(qt||[]).forEach(Kt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Kt.originFileObj instanceof File||Kt.originFileObj instanceof Blob)||Kt.thumbUrl!==void 0||(Kt.thumbUrl="",Oe&&Oe(Kt.originFileObj).then(Gn=>{Kt.thumbUrl=Gn||"",Rt()}))})},[Ce,qt,Oe]),ne.useEffect(()=>{$n(!0)},[]);const Nn=(Kt,Gn)=>{if(at)return Gn==null||Gn.preventDefault(),at(Kt)},ea=Kt=>{typeof He=="function"?He(Kt):Kt.url&&window.open(Kt.url)},ta=Kt=>{_e==null||_e(Kt)},ua=Kt=>{if(Mt)return Mt(Kt,Ce);const Gn=Kt.status==="uploading",Wn=Ft&&Ft(Kt)?ne.createElement(ke,null):ne.createElement(Je,null);let Zn=Gn?ne.createElement($t.Z,null):ne.createElement(dt,null);return Ce==="picture"?Zn=Gn?ne.createElement($t.Z,null):Wn:(Ce==="picture-card"||Ce==="picture-circle")&&(Zn=Gn?Re.uploading:Wn),Zn},na=(Kt,Gn,Wn,Zn)=>{const oa={type:"text",size:"small",title:Zn,onClick:Qn=>{Gn(),(0,Fe.l$)(Kt)&&Kt.props.onClick&&Kt.props.onClick(Qn)},className:`${Wn}-list-item-action`,disabled:un};if((0,Fe.l$)(Kt)){const Qn=(0,Fe.Tm)(Kt,Object.assign(Object.assign({},Kt.props),{onClick:()=>{}}));return ne.createElement(Ze.ZP,Object.assign({},oa,{icon:Qn}))}return ne.createElement(Ze.ZP,Object.assign({},oa),ne.createElement("span",null,Kt))};ne.useImperativeHandle($e,()=>({handlePreview:Nn,handleDownload:ea}));const{getPrefixCls:Vn}=ne.useContext(Qe.E_),Mn=Vn("upload",Ht),da=Vn(),la=Me()(`${Mn}-list`,`${Mn}-list-${Ce}`),sa=(0,Pe.Z)(qt.map(Kt=>({key:Kt.uid,file:Kt})));let Kn={motionDeadline:2e3,motionName:`${Mn}-${Ce==="picture-card"||Ce==="picture-circle"?"animate-inline":"animate"}`,keys:sa,motionAppear:vn};const _n=ne.useMemo(()=>{const Kt=Object.assign({},(0,ve.Z)(da));return delete Kt.onAppearEnd,delete Kt.onEnterEnd,delete Kt.onLeaveEnd,Kt},[da]);return Ce!=="picture-card"&&Ce!=="picture-circle"&&(Kn=Object.assign(Object.assign({},_n),Kn)),ne.createElement("div",{className:la},ne.createElement(be.CSSMotionList,Object.assign({},Kn,{component:!1}),Kt=>{let{key:Gn,file:Wn,className:Zn,style:oa}=Kt;return ne.createElement(mt,{key:Gn,locale:Re,prefixCls:Mn,className:Zn,style:oa,file:Wn,items:qt,progress:Ve,listType:Ce,isImgUrl:Ft,showPreviewIcon:dn,showRemoveIcon:fn,showDownloadIcon:An,removeIcon:Xe,previewIcon:Xn,downloadIcon:On,iconRender:ua,actionIconRender:na,itemRender:lt,onPreview:Nn,onDownload:ea,onClose:ta})}),ht&&ne.createElement(be.default,Object.assign({},Kn,{visible:zt,forceRender:!0}),Kt=>{let{className:Gn,style:Wn}=Kt;return(0,Fe.Tm)(ht,Zn=>({className:Me()(Zn.className,Gn),style:Object.assign(Object.assign(Object.assign({},Wn),{pointerEvents:Gn?"none":void 0}),Zn.style)}))}))};var bt=ne.forwardRef(Nt),xt=re(14747),Ut=re(33507),Zt=re(67968),on=re(45503),hn=ue=>{const{componentCls:$e,iconCls:Ce}=ue;return{[`${$e}-wrapper`]:{[`${$e}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[$e]:{padding:`${ue.padding}px 0`},[`${$e}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${$e}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${$e}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${$e}-drag-icon`]:{marginBottom:ue.margin,[Ce]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${$e}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${$e}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${$e}-disabled`]:{cursor:"not-allowed",[`p${$e}-drag-icon ${Ce},
|
|
p${$e}-text,
|
|
p${$e}-hint
|
|
`]:{color:ue.colorTextDisabled}}}}}},tn=ue=>{const{componentCls:$e,antCls:Ce,iconCls:Oe,fontSize:at,lineHeight:He}=ue,_e=`${$e}-list-item`,Re=`${_e}-actions`,Mt=`${_e}-action`,Ft=Math.round(at*He);return{[`${$e}-wrapper`]:{[`${$e}-list`]:Object.assign(Object.assign({},(0,xt.dF)()),{lineHeight:ue.lineHeight,[_e]:{position:"relative",height:ue.lineHeight*at,marginTop:ue.marginXS,fontSize:at,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${_e}-name`]:Object.assign(Object.assign({},xt.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:He,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[Re]:{[Mt]:{opacity:0},[`${Mt}${Ce}-btn-sm`]:{height:Ft,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Mt}:focus-visible,
|
|
&.picture ${Mt}
|
|
`]:{opacity:1},[Oe]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${Oe}`]:{color:ue.colorText}},[`${$e}-icon ${Oe}`]:{color:ue.colorTextDescription,fontSize:at},[`${_e}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:at+ue.paddingXS,fontSize:at,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${_e}:hover ${Mt}`]:{opacity:1,color:ue.colorText},[`${_e}-error`]:{color:ue.colorError,[`${_e}-name, ${$e}-icon ${Oe}`]:{color:ue.colorError},[Re]:{[`${Oe}, ${Oe}:hover`]:{color:ue.colorError},[Mt]:{opacity:1}}},[`${$e}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Qt=re(45930),mn=re(16932);const pn=new Qt.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),wn=new Qt.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var xn=ue=>{const{componentCls:$e}=ue,Ce=`${$e}-animate-inline`;return[{[`${$e}-wrapper`]:{[`${Ce}-appear, ${Ce}-enter, ${Ce}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ce}-appear, ${Ce}-enter`]:{animationName:pn},[`${Ce}-leave`]:{animationName:wn}}},{[`${$e}-wrapper`]:(0,mn.J$)(ue)},pn,wn]},Rn=re(47448),Cn=re(84780);const In=ue=>{const{componentCls:$e,iconCls:Ce,uploadThumbnailSize:Oe,uploadProgressOffset:at}=ue,He=`${$e}-list`,_e=`${He}-item`;return{[`${$e}-wrapper`]:{[`
|
|
${He}${He}-picture,
|
|
${He}${He}-picture-card,
|
|
${He}${He}-picture-circle
|
|
`]:{[_e]:{position:"relative",height:Oe+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${_e}-thumbnail`]:Object.assign(Object.assign({},xt.vS),{width:Oe,height:Oe,lineHeight:`${Oe+ue.paddingSM}px`,textAlign:"center",flex:"none",[Ce]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${_e}-progress`]:{bottom:at,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Oe+ue.paddingXS}},[`${_e}-error`]:{borderColor:ue.colorError,[`${_e}-thumbnail ${Ce}`]:{[`svg path[fill='${Rn.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${Rn.blue.primary}']`]:{fill:ue.colorError}}},[`${_e}-uploading`]:{borderStyle:"dashed",[`${_e}-name`]:{marginBottom:at}}},[`${He}${He}-picture-circle ${_e}`]:{[`&, &::before, ${_e}-thumbnail`]:{borderRadius:"50%"}}}}},Un=ue=>{const{componentCls:$e,iconCls:Ce,fontSizeLG:Oe,colorTextLightSolid:at}=ue,He=`${$e}-list`,_e=`${He}-item`,Re=ue.uploadPicCardSize;return{[`
|
|
${$e}-wrapper${$e}-picture-card-wrapper,
|
|
${$e}-wrapper${$e}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,xt.dF)()),{display:"inline-block",width:"100%",[`${$e}${$e}-select`]:{width:Re,height:Re,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${$e}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${$e}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${He}${He}-picture-card, ${He}${He}-picture-circle`]:{[`${He}-item-container`]:{display:"inline-block",width:Re,height:Re,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[_e]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${_e}:hover`]:{[`&::before, ${_e}-actions`]:{opacity:1}},[`${_e}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${Ce}-eye, ${Ce}-download, ${Ce}-delete`]:{zIndex:10,width:Oe,margin:`0 ${ue.marginXXS}px`,fontSize:Oe,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${_e}-actions, ${_e}-actions:hover`]:{[`${Ce}-eye, ${Ce}-download, ${Ce}-delete`]:{color:new Cn.C(at).setAlpha(.65).toRgbString(),"&:hover":{color:at}}},[`${_e}-thumbnail, ${_e}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${_e}-name`]:{display:"none",textAlign:"center"},[`${_e}-file + ${_e}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${_e}-uploading`]:{[`&${_e}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${Ce}-eye, ${Ce}-download, ${Ce}-delete`]:{display:"none"}},[`${_e}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${$e}-wrapper${$e}-picture-circle-wrapper`]:{[`${$e}${$e}-select`]:{borderRadius:"50%"}}}};var Se=ue=>{const{componentCls:$e}=ue;return{[`${$e}-rtl`]:{direction:"rtl"}}};const ye=ue=>{const{componentCls:$e,colorTextDisabled:Ce}=ue;return{[`${$e}-wrapper`]:Object.assign(Object.assign({},(0,xt.Wf)(ue)),{[$e]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${$e}-select`]:{display:"inline-block"},[`${$e}-disabled`]:{color:Ce,cursor:"not-allowed"}})}};var fe=(0,Zt.Z)("Upload",ue=>{const{fontSizeHeading3:$e,fontSize:Ce,lineHeight:Oe,lineWidth:at,controlHeightLG:He}=ue,_e=Math.round(Ce*Oe),Re=(0,on.TS)(ue,{uploadThumbnailSize:$e*2,uploadProgressOffset:_e/2+at,uploadPicCardSize:He*2.55});return[ye(Re),hn(Re),In(Re),Un(Re),tn(Re),xn(Re),Se(Re),(0,Ut.Z)(Re)]},ue=>({actionsColor:ue.colorTextDescription})),qe=function(ue,$e,Ce,Oe){function at(He){return He instanceof Ce?He:new Ce(function(_e){_e(He)})}return new(Ce||(Ce=Promise))(function(He,_e){function Re(Ht){try{Ft(Oe.next(Ht))}catch(qt){_e(qt)}}function Mt(Ht){try{Ft(Oe.throw(Ht))}catch(qt){_e(qt)}}function Ft(Ht){Ht.done?He(Ht.value):at(Ht.value).then(Re,Mt)}Ft((Oe=Oe.apply(ue,$e||[])).next())})};const Lt=`__LIST_IGNORE_${Date.now()}__`,Ct=(ue,$e)=>{const{fileList:Ce,defaultFileList:Oe,onRemove:at,showUploadList:He=!0,listType:_e="text",onPreview:Re,onDownload:Mt,onChange:Ft,onDrop:Ht,previewFile:qt,disabled:dn,locale:fn,iconRender:An,isImageUrl:Xe,progress:Xn,prefixCls:On,className:Ve,type:ht="select",children:zt,style:lt,itemRender:un,maxCount:Rt,data:vn={},multiple:$n=!1,action:Nn="",accept:ea="",supportServerRender:ta=!0,rootClassName:ua}=ue,na=ne.useContext(ot.Z),Vn=dn!=null?dn:na,[Mn,da]=(0,tt.Z)(Oe||[],{value:Ce,postState:Tt=>Tt!=null?Tt:[]}),[la,sa]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const Tt=Date.now();(Ce||[]).forEach((Vt,Ln)=>{!Vt.uid&&!Object.isFrozen(Vt)&&(Vt.uid=`__AUTO__${Tt}_${Ln}__`)})},[Ce]);const Kn=(Tt,Vt,Ln)=>{let It=(0,Pe.Z)(Vt),En=!1;Rt===1?It=It.slice(-1):Rt&&(En=It.length>Rt,It=It.slice(0,Rt)),(0,Ue.flushSync)(()=>{da(It)});const Fn={file:Tt,fileList:It};Ln&&(Fn.event=Ln),(!En||It.some(Jn=>Jn.uid===Tt.uid))&&(0,Ue.flushSync)(()=>{Ft==null||Ft(Fn)})},_n=(Tt,Vt)=>qe(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:It}=ue;let En=Tt;if(Ln){const Fn=yield Ln(Tt,Vt);if(Fn===!1)return!1;if(delete Tt[Lt],Fn===Lt)return Object.defineProperty(Tt,Lt,{value:!0,configurable:!0}),!1;typeof Fn=="object"&&Fn&&(En=Fn)}return It&&(En=yield It(En)),En}),Kt=Tt=>{const Vt=Tt.filter(En=>!En.file[Lt]);if(!Vt.length)return;const Ln=Vt.map(En=>gt(En.file));let It=(0,Pe.Z)(Mn);Ln.forEach(En=>{It=ct(En,It)}),Ln.forEach((En,Fn)=>{let Jn=En;if(Vt[Fn].parsedFile)En.status="uploading";else{const{originFileObj:ga}=En;let qn;try{qn=new File([ga],ga.name,{type:ga.type})}catch(ma){qn=new Blob([ga],{type:ga.type}),qn.name=ga.name,qn.lastModifiedDate=new Date,qn.lastModified=new Date().getTime()}qn.uid=En.uid,Jn=qn}Kn(Jn,It)})},Gn=(Tt,Vt,Ln)=>{try{typeof Tt=="string"&&(Tt=JSON.parse(Tt))}catch(Fn){}if(!yt(Vt,Mn))return;const It=gt(Vt);It.status="done",It.percent=100,It.response=Tt,It.xhr=Ln;const En=ct(It,Mn);Kn(It,En)},Wn=(Tt,Vt)=>{if(!yt(Vt,Mn))return;const Ln=gt(Vt);Ln.status="uploading",Ln.percent=Tt.percent;const It=ct(Ln,Mn);Kn(Ln,It,Tt)},Zn=(Tt,Vt,Ln)=>{if(!yt(Ln,Mn))return;const It=gt(Ln);It.error=Tt,It.response=Vt,It.status="error";const En=ct(It,Mn);Kn(It,En)},oa=Tt=>{let Vt;Promise.resolve(typeof at=="function"?at(Tt):at).then(Ln=>{var It;if(Ln===!1)return;const En=Ot(Tt,Mn);En&&(Vt=Object.assign(Object.assign({},Tt),{status:"removed"}),Mn==null||Mn.forEach(Fn=>{const Jn=Vt.uid!==void 0?"uid":"name";Fn[Jn]===Vt[Jn]&&!Object.isFrozen(Fn)&&(Fn.status="removed")}),(It=aa.current)===null||It===void 0||It.abort(Vt),Kn(Vt,En))})},Qn=Tt=>{sa(Tt.type),Tt.type==="drop"&&(Ht==null||Ht(Tt))};ne.useImperativeHandle($e,()=>({onBatchStart:Kt,onSuccess:Gn,onProgress:Wn,onError:Zn,fileList:Mn,upload:aa.current}));const{getPrefixCls:ca,direction:Yn,upload:zn}=ne.useContext(Qe.E_),yn=ca("upload",On),ra=Object.assign(Object.assign({onBatchStart:Kt,onError:Zn,onProgress:Wn,onSuccess:Gn},ue),{data:vn,multiple:$n,action:Nn,accept:ea,supportServerRender:ta,prefixCls:yn,disabled:Vn,beforeUpload:_n,onChange:void 0});delete ra.className,delete ra.style,(!zt||Vn)&&delete ra.id;const[Sa,fa]=fe(yn),[ya]=(0,vt.Z)("Upload",kt.Z.Upload),{showRemoveIcon:Pa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:Bt}=typeof He=="boolean"?{}:He,ut=(Tt,Vt)=>He?ne.createElement(bt,{prefixCls:yn,listType:_e,items:Mn,previewFile:qt,onPreview:Re,onDownload:Mt,onRemove:oa,showRemoveIcon:!Vn&&Pa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:Bt,iconRender:An,locale:Object.assign(Object.assign({},ya),fn),isImageUrl:Xe,progress:Xn,appendAction:Tt,appendActionVisible:Vt,itemRender:un,disabled:Vn}):Tt,pt=Me()(`${yn}-wrapper`,Ve,ua,fa,zn==null?void 0:zn.className,{[`${yn}-rtl`]:Yn==="rtl",[`${yn}-picture-card-wrapper`]:_e==="picture-card",[`${yn}-picture-circle-wrapper`]:_e==="picture-circle"}),Et=Object.assign(Object.assign({},zn==null?void 0:zn.style),lt);if(ht==="drag"){const Tt=Me()(fa,yn,`${yn}-drag`,{[`${yn}-drag-uploading`]:Mn.some(Vt=>Vt.status==="uploading"),[`${yn}-drag-hover`]:la==="dragover",[`${yn}-disabled`]:Vn,[`${yn}-rtl`]:Yn==="rtl"});return Sa(ne.createElement("span",{className:pt},ne.createElement("div",{className:Tt,style:Et,onDrop:Qn,onDragOver:Qn,onDragLeave:Qn},ne.createElement(Ee,Object.assign({},ra,{ref:aa,className:`${yn}-btn`}),ne.createElement("div",{className:`${yn}-drag-container`},zt))),ut()))}const Pn=Me()(yn,`${yn}-select`,{[`${yn}-disabled`]:Vn}),Tn=(Tt=>ne.createElement("div",{className:Pn,style:Tt},ne.createElement(Ee,Object.assign({},ra,{ref:aa}))))(zt?void 0:{display:"none"});return Sa(_e==="picture-card"||_e==="picture-circle"?ne.createElement("span",{className:pt},ut(Tn,!!zt)):ne.createElement("span",{className:pt},Tn,ut()))};var Yt=ne.forwardRef(Ct),gn=function(ue,$e){var Ce={};for(var Oe in ue)Object.prototype.hasOwnProperty.call(ue,Oe)&&$e.indexOf(Oe)<0&&(Ce[Oe]=ue[Oe]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Oe=Object.getOwnPropertySymbols(ue);at<Oe.length;at++)$e.indexOf(Oe[at])<0&&Object.prototype.propertyIsEnumerable.call(ue,Oe[at])&&(Ce[Oe[at]]=ue[Oe[at]]);return Ce},Hn=ne.forwardRef((ue,$e)=>{var{style:Ce,height:Oe}=ue,at=gn(ue,["style","height"]);return ne.createElement(Yt,Object.assign({ref:$e},at,{type:"drag",style:Object.assign(Object.assign({},Ce),{height:Oe})}))});const et=Yt;et.Dragger=Hn,et.LIST_IGNORE=Lt;var rn=et},72665:function(Ne,st){"use strict";var re;var ne=typeof Symbol=="function"&&Symbol.for,Pe=ne?Symbol.for("react.element"):60103,Ke=ne?Symbol.for("react.portal"):60106,Me=ne?Symbol.for("react.fragment"):60107,ce=ne?Symbol.for("react.strict_mode"):60108,we=ne?Symbol.for("react.profiler"):60114,le=ne?Symbol.for("react.provider"):60109,Ye=ne?Symbol.for("react.context"):60110,ze=ne?Symbol.for("react.async_mode"):60111,Ie=ne?Symbol.for("react.concurrent_mode"):60111,We=ne?Symbol.for("react.forward_ref"):60112,De=ne?Symbol.for("react.suspense"):60113,Te=ne?Symbol.for("react.suspense_list"):60120,ae=ne?Symbol.for("react.memo"):60115,a=ne?Symbol.for("react.lazy"):60116,y=ne?Symbol.for("react.block"):60121,E=ne?Symbol.for("react.fundamental"):60117,b=ne?Symbol.for("react.responder"):60118,x=ne?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var oe=te.$$typeof;switch(oe){case Pe:switch(te=te.type,te){case ze:case Ie:case Me:case we:case ce:case De:return te;default:switch(te=te&&te.$$typeof,te){case Ye:case We:case a:case ae:case le:return te;default:return oe}}case Ke:return oe}}}function ee(te){return z(te)===Ie}re=ze,re=Ie,re=Ye,re=le,re=Pe,re=We,re=Me,re=a,re=ae,re=Ke,re=we,re=ce,re=De,re=function(te){return ee(te)||z(te)===ze},re=ee,re=function(te){return z(te)===Ye},re=function(te){return z(te)===le},re=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===Pe},re=function(te){return z(te)===We},re=function(te){return z(te)===Me},re=function(te){return z(te)===a},st.isMemo=function(te){return z(te)===ae},re=function(te){return z(te)===Ke},re=function(te){return z(te)===we},re=function(te){return z(te)===ce},re=function(te){return z(te)===De},re=function(te){return typeof te=="string"||typeof te=="function"||te===Me||te===Ie||te===we||te===ce||te===De||te===Te||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ae||te.$$typeof===le||te.$$typeof===Ye||te.$$typeof===We||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},re=z},12060:function(Ne,st,re){"use strict";Ne.exports=re(72665)},64217:function(Ne,st,re){"use strict";re.d(st,{Z:function(){return Ye}});var ne=re(1413),Pe=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,Ke=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,Me="".concat(Pe," ").concat(Ke).split(/[\s\n]+/),ce="aria-",we="data-";function le(ze,Ie){return ze.indexOf(Ie)===0}function Ye(ze){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,We;Ie===!1?We={aria:!0,data:!0,attr:!0}:Ie===!0?We={aria:!0}:We=(0,ne.Z)({},Ie);var De={};return Object.keys(ze).forEach(function(Te){(We.aria&&(Te==="role"||le(Te,ce))||We.data&&le(Te,we)||We.attr&&Me.includes(Te))&&(De[Te]=ze[Te])}),De}}}]);
|