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.
144 lines
386 KiB
144 lines
386 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[6820],{26227:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return nt}});var ae=ge(32855),he=ge(59301),Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Xe=Je,ce=ge(7657),We=function(Ae,je){return he.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Xe}))},ue=he.forwardRef(We),nt=ue},41464:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return nt}});var ae=ge(32855),he=ge(59301),Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Xe=Je,ce=ge(7657),We=function(Ae,je){return he.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Xe}))},ue=he.forwardRef(We),nt=ue},33853:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return nt}});var ae=ge(32855),he=ge(59301),Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Xe=Je,ce=ge(7657),We=function(Ae,je){return he.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Xe}))},ue=he.forwardRef(We),nt=ue},38819:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return nt}});var ae=ge(32855),he=ge(59301),Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Xe=Je,ce=ge(7657),We=function(Ae,je){return he.createElement(ce.Z,(0,ae.Z)({},Ae,{ref:je,icon:Xe}))},ue=he.forwardRef(We),nt=ue},21697:function(Ce,it){"use strict";it.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},20397:function(){"use strict";function Ce(ne,a,y,x){y===void 0&&(y=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=x}Object.defineProperty(Ce.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(Ce.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(Ce.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(Ce.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof Ce))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[a]=y};var it=[];function ge(ne,a){var y=it.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=it.pop();return ne===void 0?new go.Point:ne}function he(ne){it.push(ne)}function Je(ne,a,y,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-y,re=b-z,ie=NaN,me=NaN;if(oe===0)if(re===0)ne===y&&(ie=ne,me=a);else{var le=(E-ee)/re,Ee=E-le*b;ie=ne,me=le*ie+Ee}else if(re===0){var Te=(a-x)/oe,mt=a-Te*ne;ie=b,me=Te*ie+mt}else{var Te=(a-x)/oe,le=(E-ee)/re,mt=a-Te*ne,Ee=E-le*b;ie=(Ee-mt)/(Te-le),me=Te*ie+mt}return te.x=ie,te.y=me,te}function Xe(ne,a,y,x,b,E,z,ee,te,oe,re,ie,me,le){var Ee=1-te,Te=te,mt=ne*Ee+y*Te,Nt=a*Ee+x*Te,Et=y*Ee+b*Te,Le=x*Ee+E*Te,Ve=b*Ee+z*Te,ot=E*Ee+ee*Te,Qe=mt*Ee+Et*Te,rt=Nt*Ee+Le*Te,It=Et*Ee+Ve*Te,kt=Le*Ee+ot*Te,jt=Qe*Ee+It*Te,ln=rt*Ee+kt*Te;oe.x=mt,oe.y=Nt,re.x=Qe,re.y=rt,ie.x=jt,ie.y=ln,me.x=It,me.y=kt,le.x=Ve,le.y=ot}var ce=new go.Spot(.156,.156),We=new go.Spot(.844,.844),ue=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ce("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ue,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-x)).add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,x,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,x)).add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()));return b>1&&(E.spot1=new go.Spot(0,0,b,b),E.spot2=new go.Spot(1,1,-b,-b)),E}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=y/2,x.endX=a,x.endY=y/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a/2,x.startY=0,x.endX=a/2,x.endY=y,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*a,(1-x)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,a,y){var x=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=ce,b.spot2=We,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}),go.Shape.defineFigureGenerator("Line2",function(ne,a,y){var x=new go.Geometry(go.Geometry.Line);return x.startX=a,x.startY=0,x.endX=0,x.endY=y,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,ue*a,0,a,(1-ue)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,ue*y,(1-ue)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,ue*y,ue*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-ue)*a,0,0,(1-ue)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ce("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Ce("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a:x>a&&(x=a);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ce("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*a;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Ce("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new Ce("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-a?x=-a/2:x>a&&(x=a/2);var b=Math.abs(x);if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&E.setSpots(b/a,0,(a-b)/a,1),E}});var nt=[];function Me(){var ne=nt.pop();return ne===void 0?[]:ne}function Ae(ne){ne.length=0,nt.push(ne)}function je(ne){for(var a=Me(),y=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,a[z]=new go.Point(x+y*Math.cos(E),x+y*Math.sin(E));return a.push(a[0]),a}function ze(ne){var a=Ie(ne),y=Me();y[0]=a[0];for(var x=1,b=1;x<a.length;x+=2,b+=3)y[b]=a[x],y[b+1]=a[x],y[b+2]=a[x+1];return Ae(a),y}function Ie(ne){for(var a=je(ne),y=Me(),x=Math.floor(a.length/2),b=a.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(x+z-1)%b],re=a[(x+z+E)%b];y[z*2]=ee,y[z*2+1]=Je(ee.x,ee.y,oe.x,oe.y,te.x,te.y,re.x,re.y,new go.Point)}return y[y.length]=y[0],Ae(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ne,a,y){var x=je(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,a,y){var x=je(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,a,y){var x=je(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,a,y){var x=je(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,a,y){var x=je(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,a,y){var x=je(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,a,y){var x=je(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,a,y){var x=Ie(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,a,y){var x=Ie(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,a,y){var x=Ie(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,a,y){var x=Ie(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,a,y){var x=Ie(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,a,y){var x=Ie(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*a,x[z].y*y));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*a,x[0].y*y).close()),Ae(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,a,y){var x=ze(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,a,y){var x=ze(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,a,y){var x=ze(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,a,y){var x=ze(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,a,y){var x=ze(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,a,y){var x=ze(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*a,x[0].y*y,!0);b.add(E);for(var z=1;z<x.length;z+=3)E.add(new go.PathSegment(go.PathSegment.Bezier,x[z+2].x*a,x[z+2].y*y,x[z].x*a,x[z].y*y,x[z+1].x*a,x[z+1].y*y));return E.segments.last().close(),Ae(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Ce("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ce("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=8),isNaN(b)&&(b=8);var E=new go.Geometry,z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,b).close())),E.setSpots(0,0,1,1,x,b,-x,-b),E}),go.Shape.setFigureParameter("Ring",0,new Ce("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=a/2,E=new go.Geometry,z=new go.PathFigure(a,a/2,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-x,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=ce,E.spot2=We,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,x*y).close())).setSpots(x/2,x/2,1-x/2,1-x/2)}),go.Shape.setFigureParameter("Pie",0,new Ce("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ce("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var x=ne?ne.parameter1:NaN,b=ne?ne.parameter2:NaN;isNaN(x)&&(x=0),isNaN(b)&&(b=315);var E=x%360;E<0&&(E+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,E,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ne,a,y){var x=ue/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,E*y,a,(1-x)*y,(b+x)*a,(E+x)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ce("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Ce("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,a)/2,E=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(E-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,E+b,0)).add(new go.PathSegment(go.PathSegment.Line,E+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,y)).add(new go.PathSegment(go.PathSegment.Line,E-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,E-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Ce("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var E=a/2,z=y/2,ee=Math.atan2(y,a),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,re=new go.PathFigure(te,0,!0);return b.add(re),re.add(new go.PathSegment(go.PathSegment.Line,E,.2*y)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,oe)),re.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),re.add(new go.PathSegment(go.PathSegment.Line,E,.8*y)),re.add(new go.PathSegment(go.PathSegment.Line,te,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y-oe)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ce("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ce("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,(1-x)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*a,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ce("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.5);var b=new go.Geometry,E=new go.PathFigure(0,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-x)*a,.25*y,Math.abs(1-x)*a,.75*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,ue*a,0,a,(.5-ue/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+ue/2)*y,ue*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var E=.2,z=.3,ee=0,te=E*ue;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z+.05)*a,(.5-te+ee-.02)*y)),E=.2,z=0,ee=-.3,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),E=.2,z=-.3,ee=0,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-E+ee)*y,(1-.5+E+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-E+ee)*y,(.5-E+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+E+ee)*y,(.5-E+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+E+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+E+ee)*y,(.5+E+z)*a,(.5+te+ee)*y).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,E*a,E*a).close()),b=new go.PathFigure(a*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+E)*a,ee*y,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,E*a,E*a).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,a,y){var x=.8535533905932737,b=.5*a,E=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,E,b,E)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,x*y)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-E)*y);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),E=.4,b=ue*.4;var oe=ae(),re=ae(),ie=ae(),me=ae();Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,re,ie,me,me);var le=ae(),Ee=ae(),Te=ae();Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,me,me,Te,le,Ee);var mt=ae(),Nt=ae(),Et=ae();Xe(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,mt,Nt,Et,me,me);var Le=ae(),Ve=ae(),ot=ae();return Xe(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,me,me,ot,Le,Ve),te.add(new go.PathSegment(go.PathSegment.Move,ot.x*a,ot.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,Le.x*a,Le.y*y,Ve.x*a,Ve.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*a,ie.y*y,oe.x*a,oe.y*y,re.x*a,re.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,ot.x*a,ot.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Et.x*a,Et.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Te.x*a,Te.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,le.x*a,le.y*y,Ee.x*a,Ee.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,Et.x*a,Et.y*y,mt.x*a,mt.y*y,Nt.x*a,Nt.y*y).close()),he(oe),he(re),he(ie),he(me),he(le),he(Ee),he(Te),he(mt),he(Nt),he(Et),he(Le),he(Ve),he(ot),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ce("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>a&&(x=a);var b=(a-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae(),me=new go.PathFigure((z-E)*a,ee*y,!1);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,re,ie,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y));var le=ge(oe.x,oe.y);Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,re,ie);var Ee=ge(oe.x,oe.y);me.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ee.x*.1+.9)*a,(Ee.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Ee.x*a,Ee.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),E=.35,b=ue*.35;var Te=new go.PathFigure(z*a,(ee-E)*y,!1);x.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y));var mt=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(mt),he(te),he(oe),he(re),he(ie),he(le),he(Ee),x.spot1=new go.Spot(.202,.257),x.spot2=new go.Spot(.792,.739),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("GenderFemale",function(ne,a,y){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*ue,te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y,(.5+ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,E=0,z=-.125,ee=b*ue;var te=new go.PathFigure((1-.5+b+E)*a,(.5+z)*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5+b+z)*y,(.5+b+E)*a,(.5+ee+z)*y,(.5+ee+E)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5+b+z)*y,(.5-b+E)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y,(.5-ee+E)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*a,(.5+z)*y,(.5+ee+E)*a,(.5-b+z)*y,(1-.5+b+E)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+E)*a,(.5+b+z)*y,!1);return x.add(te),x.spot1=new go.Spot(.232,.136),x.spot2=new go.Spot(.682,.611),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicImplies",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,a,y){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,x*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,x*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var x=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,a,y){var x=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,x*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*a,x*y,x*a,x*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Ce("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ce("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Je(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),he(re),te}),go.Shape.setFigureParameter("Arrow2",0,new Ce("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ce("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>a&&(x=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var E=a-x,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E,z)),oe.add(new go.PathSegment(go.PathSegment.Line,E,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,y)),oe.add(new go.PathSegment(go.PathSegment.Line,E,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var re=Je(0,ee/y,1,ee/y,E/a,1,1,.5,ae());return te.spot2=new go.Spot(re.x,re.y),he(re),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ce("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=Je(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Je(.7,1,1,.5,0,E/y,1,E/y,te),z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ce("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ce("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.3*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ie=Je(0,.5,.3,ee/y,0,E/y,1,E/y,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=Je(.7,te/y,1,.5,0,z/y,1,z/y,ie),oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Ce("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=Je(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ce("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ce("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(y-x)/2,z=E+x,ee=(y-b)/2,te=ee+b;(x>y||b>y)&&(b>x?(x=x*y/b,E=(y-x)/2,z=E+x,ee=0,te=y):(E=0,z=y,ee=0,te=y));var oe=new go.Geometry,re=new go.PathFigure(a,.5*y,!0);oe.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,te)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),re.add(new go.PathSegment(go.PathSegment.Line,.2*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),re.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),oe.spot1=new go.Spot(0,E/y);var ie=Je(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ie.x,ie.y),he(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Ce("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=Je(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ce("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*a,.75*y,x*a,.25*y).close()),b.spot1=new go.Spot(x,.35);var z=Je(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),he(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ce("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*y,E=(.5+x/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=Je(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ce("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(y-x)/2,E=b+x;x>y&&(b=0,E=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=Je(.7,1,1,.5,0,E/y,1,E/y,ae());return z.spot2=new go.Spot(te.x,te.y),he(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ce("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(a,.5*y,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(0,.9*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var E=new go.PathFigure(0,.9*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var E=new go.PathFigure(0,.3*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,x,(.5+E)*a,0,1*a,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-ue*x,(.5+E)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,1*y,0,y-ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(a,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*x,1*a,2*x-ue*x,(.5+E)*a,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*a,2*x,0,2*x-ue*x)),b.spot1=new go.Spot(0,0,0,2*x),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,y/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(0,y-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,ue*x,(.5-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x,(.5+E)*a,0,a,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-ue*x,(.5+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-x,(.5-E)*a,y,0,y-ue*x));var ee=new go.PathFigure(0,y-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*x,0,y-x-ue*x,(.5-E)*a,y-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-x,(.5+E)*a,y-2*x,a,y-x-ue*x)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*x),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*x,0));var ee=new go.PathFigure(x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*x,.5*y,x+ue*x,0,2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,y,2*x,(.5+E)*y,x+ue*x,y)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=5),x=Math.min(x,a/3);var b=new go.Geometry,E=ue*.5,z=new go.PathFigure(a-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-ue*x,0,a,(.5-E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a,(.5+E)*y,a-ue*x,y)),z.add(new go.PathSegment(go.PathSegment.Line,x,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,ue*x,y,0,(.5+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*y,ue*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-x,0));var ee=new go.PathFigure(a-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*x,.5*y,a-x-ue*x,0,a-2*x,(.5-E)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,y,a-2*x,(.5+E)*y,a-x-ue*x,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.25*a,.25*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var E=new go.PathFigure(.5*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),E.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,a,y){var x=new go.Geometry,b=.2,E=.1,z=ue*b,ee=ue*E,te=.5,oe=.1,re=new go.PathFigure(te*a,(oe+E)*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+E)*y,(te-b)*a,(oe+ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-E)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-E)*y,(te+b)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+E)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+E)*y));var ie=.05,me=ue*ie;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*a,oe*y,(te+me)*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ie=.025,me=ue*ie,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y,(te+me)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-me)*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ie=.05,me=ue*ie,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y,(te+me)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-me)*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ie=.025,me=ue*ie,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te+ie)*a,(oe-me)*y,(te+me)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*a,oe*y,(te-me)*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ie=.05,me=ue*ie,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ie)*y,(te-ie)*a,(oe-me)*y,(te-me)*a,(oe-ie)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),x.spot1=new go.Spot(.2,.2),x.spot2=new go.Spot(.8,.65),x}),go.Shape.setFigureParameter("Card",0,new Ce("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(a,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*y)),E.add(new go.PathSegment(go.PathSegment.Line,x*a,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var E=new go.PathFigure(.5*a,.5*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("Database",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+E)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+E)*y)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(a,.1*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+E)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-E)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-E)*y));var ee=new go.PathFigure(a,.1*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+E)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+E)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+E)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+E)*y)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var E=ue*.2,z=new go.PathFigure(0,.2*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-E)*y,(.2-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+E)*a,0,a,(.2-E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+E)*y,(.8+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-E)*a,y,0,(.8+E)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),x}),go.Shape.defineFigureGenerator("Document",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(.1*a,.4*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(.75*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var E=new go.PathFigure(a,.5*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.1);var z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,a,y){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=ue*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((E+b)*a,(E+b)*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)),oe.add(new go.PathSegment(go.PathSegment.Move,E*a,(E+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*a,E*y)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var E=new go.PathFigure(.1*a,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(.5*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*a,.9*y,a,(E+b)*y,(E+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.7);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var E=new go.PathFigure(.1*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var E=new go.PathFigure(.2*a,.1*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),E.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=1-b,z=new go.PathFigure(0,0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,a,y){var x=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN,E=ne?ne.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(E)&&(E=.3);var z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x}),go.Shape.defineFigureGenerator("Process",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var E=new go.PathFigure(0,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*a,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,a,y){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.1);var E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=new go.PathFigure(0,0,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(a,E*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,y,a,(E+b)*y,(E+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*y,(E-b)*a,y,0,(E+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*a,0,0,(E-b)*y,(E-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E*y,(E+b)*a,0,a,(E-b)*y));var ee=new go.PathFigure(a,E*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,E*y));var te=new go.PathFigure(.8*a,.75*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,a,y){var x=new go.Geometry,b=ue*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+E)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=ue*.4,z=ue*.1,ee=.1,te=.9,oe=.5,re=new go.PathFigure(.8*a,.5*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+E)*y,(.4+b)*a,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,y)),re.add(new go.PathSegment(go.PathSegment.Line,0,0)),re.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-E)*y));var ie=new go.PathFigure((te+ee)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=ue*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E+E)*a,(ee-b)*y,.8*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+E)*y,(z+E+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+E)*a,(ee-b)*y,.7*a,(ee-E)*y)),b=.1,E=ue*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+E)*a,(ee-b)*y,.9*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,a,y){var x=new go.Geometry,b=ue*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+E)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,0,(z-b)*a,y,(z-E)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+E)*a,0,(z+b)*a,y)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,a,y){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*a,ee*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-E)*y,(z-E)*a,(ee-b)*y,(z-b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee-E)*y,(z+E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*a,ee*y,z*a,(ee-E)*y,z*a,(ee+E)*y)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,a,y){var x=new go.Geometry,b=a,E=y;a=a*.38,y=y*.6;var z=ue*.8,ee=.8,te=0,oe=.5,re=(b-a)/2,ie=(E-y)/2,me=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=ue*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+re,(oe+ee)*y+ie,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+re,oe*y+ie,te*a+re,(oe-ee)*y+ie,(te-ee+z*.5)*a+re,(oe-z)*y+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te-ee+z*.5)*a+re,(oe+z)*y+ie,te*a+re,(oe+ee)*y+ie).close()),z=ue*.2,ee=.2,te=.5,oe=.5;var Ee=new go.PathFigure((te-ee)*a+re,oe*y+ie,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te-ee)*a+re,(oe-z)*y+ie,(te-z)*a+re,(oe-ee)*y+ie)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+re,oe*y+ie,(te-z)*a+re,(oe+ee)*y+ie,(te-ee)*a+re,(oe+z)*y+ie)),z=ue*.4,ee=.4,te=.8,oe=.5;var Te=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);x.add(Te),Te.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),Te.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),z=ue*.8,ee=.8,te=1,oe=.5;var mt=new go.PathFigure(te*a+re,(oe-ee)*y+ie,!0);return x.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+re,oe*y+ie,(te+z)*a+re,(oe-ee)*y+ie,(te+ee)*a+re,(oe-z)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe+ee)*y+ie,(te+ee)*a+re,(oe+z)*y+ie,(te+z)*a+re,(oe+ee)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+re,oe*y+ie,te*a+re,(oe+ee)*y+ie,(te+ee-z*.5)*a+re,(oe+z)*y+ie)),mt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+re,(oe-ee)*y+ie,(te+ee-z*.5)*a+re,(oe-z)*y+ie,te*a+re,(oe-ee)*y+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Move,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var E=new go.PathFigure(.1*a,y,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),x}),go.Shape.defineFigureGenerator("Power",function(ne,a,y){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),re=ae(),ie=ae();Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie);var me=ge(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z+E)*a,(ee+b)*y,(z+b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,(z-b)*a,(ee+E)*y,(z-E)*a,(ee+b)*y)),Xe(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),b=ue*.3,E=.3,Xe(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,re,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*a,ee*y,ie.x*a,ie.y*y,re.x*a,re.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+E)*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*a,ee*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),Xe(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,re,ie),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,re.x*a,re.y*y).close());var le=new go.PathFigure(.45*a,0,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),he(te),he(oe),he(re),he(ie),he(me),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,a,y){var x=new go.Geometry,b=.5,E=0,z=0,ee=b*ue,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,re=1,ie=.5,me=.5,le=0,Ee=new go.PathFigure(te*a,(1-oe)*y,!1);return x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,re*a,ie*y,re*a,.7*y,re*a,ie*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+E)*a,(le+E)*y,(.5+b+E)*a,(.5-ee+E)*y,(.5+ee+E)*a,(.5-b+E)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*a,(.5+z)*y,(.5-ee+E)*a,(.5-b+z)*y,(.5-b+E)*a,(.5-ee+z)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*a,.9*y,(.5-b+E)*a,(.5+ee+z)*y,(.5-ee+E)*a,.9*y)),Ee.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*a,.8*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*a,.9*y)),Ee.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*a,.95*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var E=new go.PathFigure(.45*a,.73*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),E.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),E.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*a,(1-.555)*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),E.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,re=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=re*.5,me=z,le=z,Ee=re*me,Te=re*le;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Ee+me)/2)*a,(te+(le+Te)/2)*y,(ee-me)*a,(te+Te)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-me)*a,(te-Te)*y,(ee-Ee)*a,(te-le)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Ee)*a,(te-le)*y,(ee+me)*a,(te-Te)*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Te)*y,(ee+(Ee+me)/2)*a,(te+(le+Te)/2)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),E.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var mt=new go.PathFigure(.2*a,y,!1);x.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Nt=new go.PathFigure(.8*a,y,!1);return x.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var E=new go.PathFigure(.2*a,.2*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(a,y,!1);x.add(E);var z=new go.PathFigure(.1*a,y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,E*a,E*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var E=new go.PathFigure(.475*a,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),E.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),E.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=new go.PathFigure(a,b*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+E)*y,(b+E)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-E)*a,y,0,(b+E)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-E)*y,(b-E)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+E)*a,0,a,(b-E)*y));var ee=new go.PathFigure(b*a,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),x}),go.Shape.defineFigureGenerator("Package",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var E=new go.PathFigure(0,.15*y,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var E=new go.PathFigure(0,.2*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),E.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var E=new go.PathFigure(.15*a,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(a,.8*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=ue*.1,te=.2,oe=.9,re=new go.PathFigure((te-z)*a,oe*y,!0);x.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=ue*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*a,oe*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=ue*.1,re=.1,ie=.9,me=new go.PathFigure((re-te)*a,ie*y,!0);x.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),te=.1,oe=ue*.1,re=.4,ie=.9;var le=new go.PathFigure((re-te)*a,ie*y,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-te)*y,(re-te)*a,(ie-oe)*y,(re-oe)*a,(ie-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re+te)*a,ie*y,(re+oe)*a,(ie-te)*y,(re+te)*a,(ie-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+te)*y,(re+te)*a,(ie+oe)*y,(re+oe)*a,(ie+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(re-te)*a,ie*y,(re-oe)*a,(ie+te)*y,(re-te)*a,(ie+oe)*y)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var E=new go.PathFigure(.45*a,.7*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var re=.05,ie=ue*.05,me=.175,le=.95,ee=new go.PathFigure((me-re)*a,le*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-re)*y,(me-re)*a,(le-ie)*y,(me-ie)*a,(le-re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+re)*a,le*y,(me+ie)*a,(le-re)*y,(me+re)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+re)*y,(me+re)*a,(le+ie)*y,(me+ie)*a,(le+re)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-re)*a,le*y,(me-ie)*a,(le+re)*y,(me-re)*a,(le+ie)*y));var re=.05,ie=ue*.05,me=.375,le=.95,te=new go.PathFigure((me-re)*a,le*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-re)*y,(me-re)*a,(le-ie)*y,(me-ie)*a,(le-re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+re)*a,le*y,(me+ie)*a,(le-re)*y,(me+re)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+re)*y,(me+re)*a,(le+ie)*y,(me+ie)*a,(le+re)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-re)*a,le*y,(me-ie)*a,(le+re)*y,(me-re)*a,(le+ie)*y));var re=.05,ie=ue*.05,me=.625,le=.95,oe=new go.PathFigure((me-re)*a,le*y,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-re)*y,(me-re)*a,(le-ie)*y,(me-ie)*a,(le-re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me+re)*a,le*y,(me+ie)*a,(le-re)*y,(me+re)*a,(le-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+re)*y,(me+re)*a,(le+ie)*y,(me+ie)*a,(le+re)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me-re)*a,le*y,(me-ie)*a,(le+re)*y,(me-re)*a,(le+ie)*y));var re=.05,ie=ue*.05,me=.825,le=.95,Ee=new go.PathFigure((me-re)*a,le*y,!0);x.add(Ee),Ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-re)*y,(me-re)*a,(le-ie)*y,(me-ie)*a,(le-re)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+re)*a,le*y,(me+ie)*a,(le-re)*y,(me+re)*a,(le-ie)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+re)*y,(me+re)*a,(le+ie)*y,(me+ie)*a,(le+re)*y)),Ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-re)*a,le*y,(me-ie)*a,(le+re)*y,(me-re)*a,(le+ie)*y).close());var Te=new go.PathFigure(0,y,!1);return x.add(Te),Te.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=ue*.05,oe=.35,re=.775,ie=new go.PathFigure((oe-ee)*a,re*y,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re-ee)*y,(oe-ee)*a,(re-te)*y,(oe-te)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,re*y,(oe+te)*a,(re-ee)*y,(oe+ee)*a,(re-te)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(re+ee)*y,(oe+ee)*a,(re+te)*y,(oe+te)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,re*y,(oe-te)*a,(re+ee)*y,(oe-ee)*a,(re+te)*y).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,a,y){var x=new go.Geometry,b=.3,E=ue*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(0,.7*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var E=new go.PathFigure(0,.6*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),E.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,a,y){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),b=.05,E=ue*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-E)*y,(z-E)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+E)*a,(ee-b)*y,(z+b)*a,(ee-E)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+E)*y,(z+E)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-E)*a,(ee+b)*y,(z-b)*a,(ee+E)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),x}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var E=new go.PathFigure(.2*a,.5*y,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),E.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var E=new go.PathFigure(0,y*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),E.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var E=new go.PathFigure(.126*a,.85*y,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),E.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,y*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var E=new go.PathFigure(a*.204,y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var E=new go.PathFigure(a*.055,.07*y,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),E.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),E.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,a,y){var x=new go.Geometry,b=8,E=b*ue,z=new go.PathFigure(b,0,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,E,E,0).close());var ee=new go.PathFigure(a*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,a/3),x=Math.min(x,y/3);var b=x*ue,E=y*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,x,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-x,E,a,E-b,a-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,E)),ee.add(new go.PathSegment(go.PathSegment.Line,x,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E-x,b,E,0,E-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var E=new go.PathFigure(a*1,y*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),E.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),E.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),E.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var E=new go.PathFigure(a*.1,y*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),E.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),E.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,a,y){var x=new go.Geometry,b=15,E=b*ue,z=new go.PathFigure(a*.62,y*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-E,a-E,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,E,y,0,y-E)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),E>1?(x.spot1=new go.Spot(0,0,E,E),x.spot2=new go.Spot(1,1,-E,-E)):(x.spot1=go.Spot.TopLeft,x.spot2=go.Spot.BottomRight),x}),go.Shape.defineFigureGenerator("Download",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.4,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-E)).close());var z=new go.PathFigure(a*.5,y*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var E=new go.PathFigure(a*.235,y*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),E.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),E.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,a,y){var x=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),x}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},11081: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 Ce={},it="5.0",ge={},ae=null,he=!1,Je=!1,Xe=null,ce=!1,We=null,ue=null,nt=0;nt<arguments.length;nt++){var Me=arguments[nt];if(Me!==null)switch(typeof Me){case"number":it=Me.toFixed(1);break;case"string":Me.match(new RegExp("^[0-9]\\.[0-9]+$"))?it=Me:Xe=Me;break;case"object":typeof Me.is3D!="undefined"?ae=Me:ge=Me;break;case"boolean":he=Me,Je=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ge.material_id!==void 0&&!Je&&(he=!0)),Xe!==null&&ge.id===void 0&&(ge.id=Xe);var Ae="",je="",ze=!1,Ie=null,ne=null,a=null,y=!1,x=null,b=null,E=null,z=null,ee=null;ge.height!==void 0&&(ge.height=Math.round(ge.height)),ge.width!==void 0&&(ge.width=Math.round(ge.width));var te=function(be){return parseFloat(be)>4?parseFloat(be):5};Ce.setHTML5Codebase=function(be,$e){ue=be,kt(be,$e)},Ce.setJavaCodebase=Ce.setJavaCodebaseVersion=Ce.isCompiledInstalled=Ce.setPreCompiledScriptPath=Ce.setPreCompiledResourcePath=function(){},Ce.setHTML5CodebaseVersion=function(be,$e){var Ke=parseFloat(be);if(Ke!==NaN&&Ke<5){console.log("The GeoGebra HTML5 codebase version "+Ke+" is deprecated. Using version latest instead.");return}We=be,It(be,$e)},Ce.getHTML5CodebaseVersion=function(){return ne},Ce.getParameters=function(){return ge},Ce.setFontsCSSURL=function(be){z=be},Ce.setGiacJSURL=function(be){},Ce.setJNLPFile=function(be){Ae=be},Ce.setJNLPBaseDir=function(be){},Ce.inject=function(){function be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $e="auto",Ke=ge.id,wt,et=!1,ut=0;ut<arguments.length;ut++){var de=arguments[ut];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?$e=de:Ke=arguments[ut]):typeof de=="boolean"?et=de:de instanceof HTMLElement&&(wt=de)}at();function at(){if(!ce){setTimeout(at,200);return}$e=Qe($e);var $t=wt||document.getElementById(Ke);if(!$t){console.log("possibly bug on ajax loading? ");return}if(Ce.removeExistingApplet($t,!1),ge.width===void 0&&$t.clientWidth&&(ge.width=$t.clientWidth),ge.height===void 0&&$t.clientHeight&&(ge.height=$t.clientHeight),!(ge.width&&ge.height)&&$e==="html5"&&(delete ge.width,delete ge.height),Ie=$e,$e==="screenshot")Nt($t,ge);else{var Kt=!1;ge.hasOwnProperty("playButton")&&ge.playButton||ge.hasOwnProperty("clickToLoad")&&ge.clickToLoad?Kt=!0:ge.hasOwnProperty("playButtonAutoDecide")&&ge.playButtonAutoDecide&&(Kt=(!oe()||be())&&re()),Kt?(Ie="screenshot",Le($t,ge,et,$e)):mt($t,ge,et)}}};function oe(){try{return window.self!==window.top}catch(be){return!0}}function re(){return ge.hasOwnProperty("screenshotGenerator")&&ge.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ce.getViews=function(){return ae},Ce.isJavaInstalled=function(){return!1};var ie=function(be){var $e=function(ut){var de=JSON.parse(ut),at=function(Mt){return Mt.type=="G"||Mt.type=="E"},$t=de.elements?de.elements.filter(at)[0]:de;if(!$t||!$t.url){Ke();return}ge.fileName=$t.url,me($t.settings||{}),ae.is3D=!0;var Kt="https://www.geogebra.org/images/";Ce.setPreviewImage(x||$t.previewUrl,Kt+"GeoGebra_loading.png",Kt+"applet_play.png"),be()},Ke=function(){ge.onError&&ge.onError(),jt("Error: Fetching material (id "+ge.material_id+") failed.",ge)},wt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",et="/materials/"+ge.material_id+"?scope=basic";le("https://"+wt+"/api/proxy.php?path="+encodeURIComponent(et),$e,Ke)};function me(be){var $e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ke){be[Ke]=!!be[Ke]}),$e.forEach(function(Ke){ge[Ke]===void 0&&be[Ke]!==void 0&&(ge[Ke]=be[Ke])}),ge.showToolBarHelp===void 0&&(ge.showToolBarHelp=ge.showToolBar)}function le(be,$e,Ke){var wt=new XMLHttpRequest;wt.open("GET",be),wt.onload=function(){$e(wt.responseText)},wt.onerror=Ke,wt.send()}Ce.isHTML5Installed=function(){return!0},Ce.getLoadedAppletType=function(){return Ie},Ce.setPreviewImage=function(be,$e,Ke){x=be,b=$e,E=Ke},Ce.removeExistingApplet=function(be,$e){var Ke;typeof be=="string"&&(be=document.getElementById(be)),Ie=null;var wt=null;for(Ke=0;Ke<be.childNodes.length;Ke++){var et=be.childNodes[Ke],ut=et.className;ut==="applet_screenshot"?$e?(et.style.display="block",Ie="screenshot"):et.style.display="none":ut!=="applet_scaler prerender"&&(be.removeChild(et),wt=ut&&ut.indexOf("appletParameters")!=-1?et.id:null,Ke--)}var de=ge.id!==void 0?ge.id:wt,at=window[de];at&&typeof at.getBase64=="function"&&(at.remove(),window[de]=null)},Ce.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var be=Ce.getAppletObject();return be&&typeof be.recalculateEnvironments=="function"?(be.recalculateEnvironments(),!0):!1},Ce.startAnimation=function(){var be=Ce.getAppletObject();return be&&typeof be.startAnimation=="function"?(be.startAnimation(),!0):!1},Ce.stopAnimation=function(){var be=Ce.getAppletObject();return be&&typeof be.stopAnimation=="function"?(be.stopAnimation(),!0):!1},Ce.getAppletObject=function(){var be=ge.id!==void 0?ge.id:"ggbApplet";return window[be]},Ce.resize=function(){};var Ee=function(be,$e,Ke){var wt=document.createElement("param");wt.setAttribute("name",$e),wt.setAttribute("value",Ke),be.appendChild(wt)},Te=function(be){return be&&be!=="false"},mt=function(be,$e,Ke){te(ne)<=4.2&&(Ke=!0);var wt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(wt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var et=document.createElement("div");et.classList.add("appletParameters","notranslate");var ut=$e.width,de=$e.height;if($e.disableAutoScale=$e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$e.disableAutoScale,$e.width!==void 0)if(te(ne)<=4.4)Te($e.showToolBar)&&($e.height-=7),Te($e.showAlgebraInput)&&($e.height-=37),$e.width<605&&Te($e.showToolBar)&&($e.width=605,ut=605);else{var at=100;(Te($e.showToolBar)||Te($e.showMenuBar))&&($e.hasOwnProperty("customToolBar")&&($e.customToolbar=$e.customToolBar),at=Te($e.showMenuBar)?245:155),ut<at&&($e.width=at,ut=at)}et.style.border="none",et.style.display="inline-block";for(var $t in $e)$e.hasOwnProperty($t)&&$t!=="appletOnLoad"&&et.setAttribute("data-param-"+$t,$e[$t]);z&&et.setAttribute("data-param-fontscssurl",z),Ce.resize=function(){GGBAppletUtils.responsiveResize(be,$e)},window.addEventListener("resize",function(ht){Ce.resize()});var Kt=typeof $e.appletOnLoad=="function"?$e.appletOnLoad:function(){};if(!Ke&&$e.width!==void 0){$e.hasOwnProperty("showSplash")||et.setAttribute("data-param-showSplash","false");var Mt=be.querySelector(".applet_scaler.prerender"),Ge=Mt!==null;if(Ge)var we=Mt.querySelector(".ggb_preview");else{var we=ot(ut,de,$e.borderColor,!1);Mt=document.createElement("div"),Mt.className="applet_scaler",Mt.style.position="relative",Mt.style.display="block",Mt.style.width=ut+"px",Mt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Mt,"66%"),te(ne)>=5?($e.appletOnLoad=function(ht){var At=be.querySelector(".ggb_preview");At&&At.parentNode.removeChild(At),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Mt),window.GGBT_wsf_view&&$(window).trigger("resize"),Kt(ht)},Ge||Mt.appendChild(we)):et.appendChild(we),Mt.appendChild(et),Ge||be.appendChild(Mt),setTimeout(function(){Ce.resize()},1)}else{var pe=document.createElement("div");pe.className="applet_scaler",pe.style.position="relative",pe.style.display="block",pe.appendChild(et),be.appendChild(pe),$e.appletOnLoad=function(ht){Ce.resize(),Kt(ht)}}function Re(ht,At){At&&typeof At.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ht,At.appletOnLoad):renderGGBElement(ht),jt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",At)}function _e(ht,At){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ht,params:At}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Pn){Re(Pn.article,Pn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(ht.className+=" geogebraweb")):Re(ht,At)}if(wt){scriptLoadStarted=!0;for(var dt=0;dt<et.childNodes.length;dt++){var yt=et.childNodes[dt].tagName;yt==="TABLE"&&(et.removeChild(et.childNodes[dt]),dt--)}if(ggbHTML5LoadedScript!==null){var bt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');bt!=null&&bt.parentNode.removeChild(bt)}var Tt=document.createElement("script"),Dt=function(){_e(et,$e)};Tt.src=je+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Tt.src,jt("GeoGebra HTML5 codebase loaded: '"+je+"'.",$e),!ue&&(!We||We=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Dt()):je.requirejs?__webpack_require__.e(981).then(function(){var ht=[__webpack_require__(60981)];Dt.apply(null,ht)}.bind(this)).catch(__webpack_require__.oe):(Tt.onload=Dt,be.appendChild(Tt))}else _e(et,$e);$e.height=de,$e.width=ut},Nt=function(be,$e,Ke){var wt=ot($e.width,$e.height,$e.borderColor,Ke),et=document.createElement("div");et.style.position="relative",et.style.display="block",et.style.width=$e.width+"px",et.style.height=$e.height+"px",et.className="applet_screenshot applet_scaler"+(Ke?" applet_screenshot_play":""),et.appendChild(wt);var ut=GGBAppletUtils.getScale($e,be,Ke);Ke?(be.appendChild(Ve()),window.GGBT_wsf_view||(be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(et,"66%"),be.appendChild(et),ut!==1&&!isNaN(ut)&&(GGBAppletUtils.scaleElement(et,ut),et.style.width=$e.width+"px",et.style.height=$e.height+"px",et.parentNode.style.width=$e.width*ut+"px",et.parentNode.style.height=$e.height*ut+"px"),Ce.resize=function(){Et(be,wt,et,Ke)},window.addEventListener("resize",function(de){Ce.resize()}),Ce.resize()};function Et(be,$e,Ke,wt){if(be.contains($e)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(be)}var et=GGBAppletUtils.getScale(ge,be,wt);Ke.parentNode!==null&&(!isNaN(et)&&et!==1?(GGBAppletUtils.scaleElement(Ke,et),Ke.parentNode.style.width=ge.width*et+"px",Ke.parentNode.style.height=ge.height*et+"px"):(GGBAppletUtils.scaleElement(Ke,1),Ke.parentNode.style.width=ge.width+"px",Ke.parentNode.style.height=ge.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(be),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ce.onExitFullscreen=function(be,$e){$e.appendChild(be)};var Le=function(be,$e,Ke,wt){Nt(be,$e,!0);for(var et=function(){var at=[];for(de=0;de<be.childNodes.length;de++)at.push(be.childNodes[de]);if(window.GGBT_wsf_view){var $t=window.GGBT_wsf_view.renderFullScreen(be,$e.id),Kt=document.getElementById("fullscreencontainer"),Mt=jQuery(be).find(".fullscreencontent");Mt.length>0?($t.remove(),Mt.attr("id","fullscreencontent").show(),jQuery(Kt).append(Mt),window.dispatchEvent(new Event("resize"))):mt($t,$e,!1),window.GGBT_wsf_view.launchFullScreen(Kt)}else Ie=wt,mt(be,$e,!1);if(!window.GGBT_wsf_view)for(de=0;de<at.length;de++)be.removeChild(at[de])},ut=be.getElementsByClassName("ggb_preview_play"),de=0;de<ut.length;de++)ut[de].addEventListener("click",et,!1),ut[de].addEventListener("ontouchstart",et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(be),re()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ve=function(){var be=document.createElement("div");if(be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var $e='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ke=document.createElement("style");Ke.styleSheet?Ke.styleSheet.cssText=$e:Ke.appendChild(document.createTextNode($e)),document.getElementsByTagName("head")[0].appendChild(Ke)}return be},ot=function(be,$e,Ke,wt){var et=document.createElement("div");et.className="ggb_preview",et.style.position="absolute",et.style.zIndex="90",et.style.width=be-2+"px",et.style.height=$e-2+"px",et.style.top="0px",et.style.left="0px",et.style.overflow="hidden",et.style.backgroundColor="white";var ut="lightgrey";Ke!==void 0&&(Ke==="none"?ut="transparent":ut=Ke),et.style.border="1px solid "+ut;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",x!==null&&de.setAttribute("src",x),de.style.opacity=.7,b!==null){var at,$t,Kt;if(!wt){at=document.createElement("img"),at.style.position="absolute",at.style.zIndex="1001",at.style.opacity=1,de.style.opacity=.3,$t=360,$t>be/4*3&&($t=be/4*3),Kt=$t/5.8,at.setAttribute("src",b),at.setAttribute("width",$t),at.setAttribute("height",Kt);var Mt=(be-$t)/2,Ge=($e-Kt)/2;at.style.left=Mt+"px",at.style.top=Ge+"px",et.appendChild(at)}}return et.appendChild(de),et},Qe=function(be){return be=be.toLowerCase(),be==="html5"||be==="screenshot"?be:"html5"},rt=["web","webSimple","web3d","tablet","tablet3d","phone"],It=function(be,$e){if(ne=be,$e){kt(ne,!0);return}var Ke=!he;if(Ke){var wt=te(ne);!isNaN(wt)&&wt<4.4&&(Ke=!1)}var et,ut;window.location.protocol.substr(0,4)==="http"?et=window.location.protocol:et="http:";var de=ne.indexOf("//");de>0?ut=ne:de===0?ut=et+ne:ut="https://www.geogebra.org/apps/5.2.814.0/";for(var at in rt)if(ne.slice(rt[at].length*-1)===rt[at]||ne.slice((rt[at].length+1)*-1)===rt[at]+"/"){kt(ut,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ke&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Te(ge.showToolBar)&&!Te(ge.showMenuBar)&&!Te(ge.showAlgebraInput)&&!Te(ge.enableRightClick)&&(!ge.appName||ge.appName=="classic")?ut+="webSimple/":ut+="web3d/",kt(ut,!1)},kt=function(be,$e){if(be.requirejs){je=be;return}be.slice(-1)!=="/"&&(be+="/"),je=be,$e===null&&($e=be.indexOf("http")===-1),ze=$e,a="web.nocache.js",y=!1;var Ke=je.split("/");Ke.length>1&&(!$e&&Ke[Ke.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):rt.indexOf(Ke[Ke.length-2])>=0&&(a=Ke[Ke.length-2]+".nocache.js")),Ke=be.split("/"),ne=Ke[Ke.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var wt=parseFloat(ne);wt!==NaN&&wt<5&&be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+wt+" is deprecated. Using version latest instead."),It("5.0",$e))},jt=function(be,$e){window.console&&window.console.log&&(!$e||typeof $e.showLogging=="undefined"||$e.showLogging&&$e.showLogging!=="false")&&console.log(be)};ge.material_id!==void 0?ie(ln):ln();function ln(){var be=it;We!==null?be=We:parseFloat(be)<5&&(be="5.0"),It(be,!1),ue!==null&&kt(ue,ze),ce=!0}return Ce},GGBAppletUtils=function(){"use strict";function Ce(){return window.GGBT_wsf_edit!==void 0}function it(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 ge(ce,We,ue,nt,Me,Ae){var je=null;if(Ae!=null&&Ae!="")for(var ze=ce.parentNode;ze!=null;)if((" "+ze.className+" ").indexOf(" "+Ae+" ")>-1){je=ze;break}else ze=ze.parentNode;var Ie=0,ne=0,a=0,y=0,x=0,b=0,E=0;if(je)Ie=je.offsetWidth,ne=Math.max(nt?je.offsetWidth:0,je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ie=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Ie):(Ie=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Ie&&(Me===void 0||!Me)&&(document.dir==="rtl"?(x=Ie-z.width-z.left,b=a<=480?10:30):(b=z.left,x=a<=480?10:30),y=b+x)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,E=40)}}return ce&&((ue===void 0||!ue)&&We>0&&We+y<Ie?Ie=We:Ie-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ne-=E)),{width:Ie,height:ne}}function ae(ce,We,ue,nt,Me){if(ce.isScreenshoGenerator)return 1;var Ae=nt!==void 0&&nt,je=ce.noScaleMargin!=null&&ce.noScaleMargin,ze=function(ee){return ee&&ee!=="false"},Ie=ze(ce.autoHeight),ne=ge(We,ce.width,ue,Ie,Ae&&window.GGBT_wsf_view||je,Me),a=parseInt(ne.width),y=ce.width,x=ce.height;if(y===void 0){var b=We.querySelector(".appletParameters");b&&(y=b.offsetWidth,x=b.offsetHeight)}var E=a/y,z=Ae?1:ne.height/x;return ue!==void 0&&!ue&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function he(ce,We,ue){var nt=1,Me,Ae=!1;if(ce.hasOwnProperty("allowUpscale")&&(Ae=ce.allowUpscale),ce.hasOwnProperty("scale")&&(nt=parseFloat(ce.scale),(isNaN(nt)||nt===null||nt===0)&&(nt=1),nt>1&&(Ae=!0)),We&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ae=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Me=ae(ce,We,Ae,ue,ce.scaleContainerClass);else return nt;return Ae&&(!ce.hasOwnProperty("scale")||nt===1)?Me:Math.min(nt,Me)}function Je(ce){var We=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=ce.getBoundingClientRect(),Me=(We-nt.width)/2,Ae=(ue-nt.height)/2;Ae<0&&(Ae=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Me<40?ce.style.left="40px":ce.style.left=Me+"px",ce.style.top=Ae+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ae<40?ce.style.top="40px":ce.style.top=Ae+"px",ce.style.left=Me+"px")}function Xe(ce,We){var ue=ce.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(We.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var nt=he(We,ce);Ce()&&ue.setAttribute("data-param-scale",nt);for(var Me=null,Ae=0;Ae<ce.childNodes.length;Ae++)if(ce.childNodes[Ae].className!==void 0&&ce.childNodes[Ae].className.match(/^applet_scaler/)){Me=ce.childNodes[Ae];break}if(Me!==null&&Me.querySelector(".noscale")!==null)return;var je=We.id!==void 0?We.id:"ggbApplet",ze=window[je];(ze==null||!ze.recalculateEnvironments)&&Me!==null&&!Me.className.match(/fullscreen/)&&(Me.parentNode.style.transform="",!isNaN(nt)&&nt!==1?(Me.parentNode.style.width=We.width*nt+"px",Me.parentNode.style.height=We.height*nt+"px",it(Me,nt)):(it(Me,1),Me.parentNode.style.width=We.width+"px",Me.parentNode.style.height=We.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Je(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:Xe,isFlexibleWorksheetEditor:Ce,positionCenter:Je,getScale:he,scaleElement:it}}();__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 Ce=n.location.search;return Ce.indexOf(J)!=-1||Ce.indexOf(K)!=-1}function q(Ce,it){}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(Ce){var it=s[L].bindings;s[L].bindings=function(){for(var ge=it?it():{},ae=Ce[webModule.__softPermutationId],he=O;he<ae.length;he++){var Je=ae[he];ge[Je[O]]=Je[P]}return ge}};var t;function u(){return v(),t}function v(){if(!t){var Ce=o.createElement(Q);if(Ce.id=L,Ce.style.cssText=R+S,Ce.tabIndex=-1,o.body.appendChild(Ce),t=Ce.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var it=document.compatMode==U?V:W;t.write(it+X),t.close()}}}function w(Ce){function it(ae){function he(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Je=he();if(Je){ae();return}function Xe(){if(!Je){if(!he())return;Je=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Xe,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Xe,!1);var ce=setInterval(function(){Xe()},$)}function ge(ae){var he=u(),Je=he.body,Xe=he.createElement(_);Xe.language=ab,Xe.crossOrigin=W,Xe.src=ae,webModule.__errFn&&(Xe.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Je.appendChild(Xe)}it(function(){ge(Ce)})}webModule.__startLoadingFragment=function(Ce){return C(Ce)},webModule.__installRunAsyncCode=function(Ce){var it=u(),ge=it.body,ae=it.createElement(_);ae.language=ab,ae.text=Ce,ge.appendChild(ae),ge.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ce){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ce){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ce){var it=c[Ce];return it==null?null:it},r=d,webModule.__errFn=e}function B(){function Ce(ce){var We=ce.lastIndexOf(rb);We==-1&&(We=ce.length);var ue=ce.indexOf(sb);ue==-1&&(ue=ce.length);var nt=ce.lastIndexOf(tb,Math.min(ue,We));return nt>=O?ce.substring(O,nt+P):W}function it(ce){if(!ce.match(/^\w+:\/\//)){var We=o.createElement(ub);We.src=ce+vb,ce=Ce(We.src)}return ce}function ge(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ae(){for(var ce=o.getElementsByTagName(_),We=O;We<ce.length;++We)if(ce[We].src.indexOf(xb)!=-1)return Ce(ce[We].src);return W}function he(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Je(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Xe=ge();return Xe==W&&(Xe=ae()),Xe==W&&(Xe=he()),Xe==W&&Je()&&(Xe=Ce(o.location.href)),Xe=it(Xe),Xe}function C(Ce){return Ce.match(/^\//)||Ce.match(/^[a-zA-Z]+:\/\//)?Ce:webModule.__moduleBase+Ce}function D(){var Ce=[],it=O,ge=[],ae=[];function he(ce){var We=ae[ce](),ue=ge[ce];if(We in ue)return We;var nt=[];for(var Me in ue)nt[ue[Me]]=Me;throw r&&r(ce,nt,We),null}if(__gwt_isKnownPropertyValue=function(ce,We){return We in ge[ce]},webModule.__getPropMap=function(){var ce={};for(var We in ge)ge.hasOwnProperty(We)&&(ce[We]=he(We));return ce},webModule.__computePropValue=he,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Je;try{Je=Cb;var Xe=Je.indexOf(Db);Xe!=-1&&(it=parseInt(Je.substring(Xe+P),$),Je=Je.substring(O,Xe))}catch(ce){}return webModule.__softPermutationId=it,C(Je+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},67303:function(Ce,it,ge){"use strict";ge.d(it,{Ax:function(){return Xe},Ds:function(){return ce},KI:function(){return ue},SI:function(){return Je},f1:function(){return he}});var ae=ge(90524);function he(nt){let Me=!0;if(nt.length>0){for(let Ae=0;Ae<nt.length;Ae++)if(nt[Ae].compile_success==0||!nt[Ae].compile_success){Me=!1;break}}else Me=!1;return Me}function Je(nt,Me=""){let Ae=[];for(let je=0;je<nt.length;je++){let ze=nt[je],Ie=Me?`${Me}/${ze.name}`:`${ze.name}`;Ae.push({title:ze.name,type:ze.type,isLeaf:ze.type!=="tree",key:Ie})}return Ae}function Xe(nt,Me,Ae){for(let je=0;je<nt.length;je++){let ze=nt[je];if(ze.key===Me){ze.children=Ae;break}ze.children&&Xe(ze.children,Me,Ae)}return nt}function ce(nt,Me,Ae){let je;return function(){let ze=this,Ie=arguments,ne=function(){je=null,Ae||nt.apply(ze,Ie)},a=Ae&&!je;clearTimeout(je),je=setTimeout(ne,Me),a&&nt.apply(ze,Ie)}}const We=!0,ue=ae.Z.API_SERVER},6077:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return je}});var ae=ge(59301),he={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Je=ge(92310),Xe=ge.n(Je),ce=ge(71418),We=ge(2859),ue=ge(82093),nt=ge(49661),Me=(ze,Ie,ne)=>new Promise((a,y)=>{var x=z=>{try{E(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){y(ee)}},E=z=>z.done?a(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(ze,Ie)).next())}),je=({data:ze,className:Ie,fullWidth:ne,style:a={},onClose:y,onOk:x,showFullTools:b,noAssociationId:E})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[re,ie]=(0,ae.useState)(!1),[me,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),ze!=null&&ze.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",ze!=null&&ze.src&&Ee()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ze==null?void 0:ze.visible]);const Ee=()=>Me(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,nt.ZJ)(ze==null?void 0:ze.src);z.current.src="",z.current.src=Le,z.current.onload=function(){Et()},ie(!1),le("")}),Te=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},mt=Le=>Me(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ve=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ze.title,file:Le.dataUrl}});Ve!=null&&Ve.id&&!E?(yield(0,ue.ZP)(`/api/attachments/${ze.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ve==null?void 0:Ve.id,settings:JSON.stringify(Le.state)}})).status===0&&x():Ve!=null&&Ve.id&&x(Ve),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),le("")}),Nt=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(ot=>{const Qe=document.querySelector(ot.name);Qe&&Qe.setAttribute("title",ot.title)})},Et=()=>{ee.current=new We.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",mt),ee.current.addEventListener("beforeclose",Te),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),ze!=null&&ze.snapshotData&&ee.current.restoreState(ze.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Nt()},300)};return ae.createElement(ae.Fragment,null,(ze==null?void 0:ze.visible)&&ae.createElement(ce.Z,{spinning:re,tip:me,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Xe()(he.imageDimensions,Ie,ne?he.fullWidth:""),style:a},ae.createElement("img",{className:he.img,ref:z}))))}},88615:function(Ce,it,ge){"use strict";var ae=ge(59301),he=ge(95237),Je=ge(43604),Xe=ge(99313),ce=ge(3113),We=ge(7664),ue=ge(21697),nt=ge(48136),Me=ge(59301);const Ae=(0,ae.forwardRef)(({callback:je,showSaveButton:ze,value:Ie=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],x=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Me.createElement(he.Z,{className:ue.Z.lists,gutter:[10,10]},y.map((ee,te)=>Me.createElement(Je.Z,{flex:"110px",className:ue.Z.item},Me.createElement("div",null,Me.createElement(We.Z,{value:`$$${ee.value}$$`}),ee.name),Me.createElement("div",{className:ue.Z.children},ee.children.map((oe,re)=>Me.createElement("div",{key:re},Me.createElement("h1",null,oe.name),Me.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,me)=>Me.createElement(Je.Z,{key:me,onClick:()=>b(ie),className:ue.Z.diamond},Me.createElement(We.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Me.createElement(he.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((ee,te)=>Me.createElement(Je.Z,{flex:"110px",className:ue.Z.item},Me.createElement("div",null,Me.createElement(We.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Me.createElement("div",{className:ue.Z.children},ee.children.map((oe,re)=>Me.createElement("div",{key:re},oe.name&&Me.createElement("h1",null,oe.name),Me.createElement(he.Z,{gutter:[10,10]},oe.data.map((ie,me)=>Me.createElement(Je.Z,{key:me,onClick:()=>b(ie),className:ue.Z.diamond},Me.createElement(We.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return je&&je(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Me.createElement("div",{className:ue.Z.mathWrap},Me.createElement(Xe.default,{defaultActiveKey:"1",items:E}),Me.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Ie||""),ze&&Me.createElement("div",{className:ue.Z.button},Me.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});it.Z=Ae},44905:function(Ce,it,ge){"use strict";ge.d(it,{h:function(){return ee}});var ae=ge(59301),he=ge(57809),Je=ge(78241),Xe=ge(3113),ce=ge(89780),We=ge.n(ce),ue=ge(66543),nt=ge(59598),Me=Object.defineProperty,Ae=Object.defineProperties,je=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,re)=>oe in te?Me(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:re}):te[oe]=re,y=(te,oe)=>{for(var re in oe||(oe={}))Ie.call(oe,re)&&a(te,re,oe[re]);if(ze)for(var re of ze(oe))ne.call(oe,re)&&a(te,re,oe[re]);return te},x=(te,oe)=>Ae(te,je(oe));const b=he.default.Option,E={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};it.Z=({callback:te,onCancel:oe})=>{const[re,ie]=(0,ae.useState)("python");function me(Ee){ie(z[Ee][1])}function le(Ee){te(Ee)}return ae.createElement(Je.default,x(y({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(Je.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(he.default,{getPopupContainer:Ee=>Ee.parentNode,onChange:me},Object.keys(z).map(Ee=>ae.createElement(b,{key:Ee,value:Ee},z[Ee][0])))),ae.createElement(Je.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:re})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Xe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Xe.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:re,options:ie={}}){const me=(0,ae.useRef)(),[le,Ee]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Te=function(mt){const Nt=mt.getValue();oe&&oe(Nt)};return le.on("change",Te),()=>{le.off("change",Te)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",re)},[le,re]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(me.current&&!le){const Te=We().fromTextArea(me.current,y({mode:re,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Ee(Te)}},[me.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:me}))}},89389:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return Jn}});var ae=ge(59301),he=ge(89780),Je=ge.n(he),Xe=ge(76374),ce=ge(66543),We=ge(6313),ue=ge(25717),nt=ge(99498),Me=ge(25419),Ae=ge(67549),je=ge(7664),ze=({value:fe="",className:ve,showTextOnly:Se,showLines:qe,style:Lt={}})=>{const Pt=(0,ae.useMemo)(()=>"",[fe]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Pt}}))},Ie=ge(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(fe,ve,Se)=>ve in fe?ne(fe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):fe[ve]=Se,ee=(fe,ve)=>{for(var Se in ve||(ve={}))b.call(ve,Se)&&z(fe,Se,ve[Se]);if(x)for(var Se of x(ve))E.call(ve,Se)&&z(fe,Se,ve[Se]);return fe},te=(fe,ve)=>a(fe,y(ve));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function re({onActionCallback:fe,title:ve,icon:Se,actionName:qe,className:Lt="",children:Pt}){function rn(){fe(qe)}return Ie.createElement("a",{title:ve,className:Lt,onClick:rn},Ie.createElement("i",{className:`${Se}`}),Pt)}var ie=({watch:fe,showNullButton:ve,showNullProgramButton:Se,onActionCallback:qe,fullScreen:Lt,insertTemp:Pt,hidetoolBar:rn,extraUse:Rt})=>{const Vt=[...oe,{title:`${fe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${fe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ie.createElement("ul",{className:"markdown-toolbar-container"},!rn&&Vt.map((vn,kn)=>Ie.createElement("li",{key:kn},vn.actionName?Ie.createElement(re,te(ee({},vn),{onActionCallback:qe})):Ie.createElement("span",{className:"v-line"}))),ve?Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:qe},Ie.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Se?Ie.createElement(Ie.Fragment,null,Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:qe},Ie.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:qe},Ie.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Pt&&Ie.createElement("li",null,Ie.createElement(re,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Pt}`,onActionCallback:qe},Ie.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Rt&&Ie.createElement("li",null,Rt),Ie.createElement("li",{className:"btn-full-screen"},Ie.createElement(re,{icon:`${Lt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Lt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:qe})))},me=ge(75790),le=ge(78241),Ee=ge(92832),Te=ge(3113),mt=Object.defineProperty,Nt=Object.defineProperties,Et=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,Qe=(fe,ve,Se)=>ve in fe?mt(fe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Se}):fe[ve]=Se,rt=(fe,ve)=>{for(var Se in ve||(ve={}))Ve.call(ve,Se)&&Qe(fe,Se,ve[Se]);if(Le)for(var Se of Le(ve))ot.call(ve,Se)&&Qe(fe,Se,ve[Se]);return fe},It=(fe,ve)=>Nt(fe,Et(ve));const kt={labelCol:{span:4},wrapperCol:{span:20}};var jt=({callback:fe,onCancel:ve})=>{function Se(qe){fe(qe)}return ae.createElement(le.default,It(rt({},kt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Se,style:{width:500}}),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(Ee.default,null)),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(Ee.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Te.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},ln=ge(44905),be=ge(45596),$e=ge(43418),Ke=ge(95237),wt=ge(6077),et=ge(59301),ut=({callback:fe,onCancel:ve})=>{const Se=document.createElement("canvas"),qe=Se.getContext("2d");Se.width=1e3,Se.height=800,qe.fillStyle="#ffffff",qe.fillRect(0,0,Se.width,Se.height);const Lt=Se.toDataURL("image/png");return et.createElement($e.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},et.createElement(Ke.Z,{style:{height:"100vh"}},et.createElement(wt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Lt,visible:!0,title:String(Date.now())},onOk:Pt=>{fe({src:Pt.url})},onClose:ve})))},de=ge(12378);function at(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(at,go.CommandHandler),at.prototype.canAlignSelection=function(){var fe=this.diagram;return!(fe===null||fe.isReadOnly||fe.isModelReadOnly||fe.selection.count<2)},at.prototype.alignLeft=function(){var fe=this.diagram;fe.startTransaction("aligning left");var ve=1/0;fe.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.x,ve))}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve,Se.position.y))}),fe.commitTransaction("aligning left")},at.prototype.alignRight=function(){var fe=this.diagram;fe.startTransaction("aligning right");var ve=-1/0;fe.selection.each(function(Se){if(!(Se instanceof go.Link)){var qe=Se.actualBounds.x+Se.actualBounds.width;ve=Math.max(qe,ve)}}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(ve-Se.actualBounds.width,Se.position.y))}),fe.commitTransaction("aligning right")},at.prototype.alignTop=function(){var fe=this.diagram;fe.startTransaction("alignTop");var ve=1/0;fe.selection.each(function(Se){Se instanceof go.Link||(ve=Math.min(Se.position.y,ve))}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.position.x,ve))}),fe.commitTransaction("alignTop")},at.prototype.alignBottom=function(){var fe=this.diagram;fe.startTransaction("aligning bottom");var ve=-1/0;fe.selection.each(function(Se){if(!(Se instanceof go.Link)){var qe=Se.actualBounds.y+Se.actualBounds.height;ve=Math.max(qe,ve)}}),fe.selection.each(function(Se){Se instanceof go.Link||Se.move(new go.Point(Se.actualBounds.x,ve-Se.actualBounds.height))}),fe.commitTransaction("aligning bottom")},at.prototype.alignCenterX=function(){var fe=this.diagram,ve=fe.selection.first();if(ve){fe.startTransaction("aligning Center X");var Se=ve.actualBounds.x+ve.actualBounds.width/2;fe.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(Se-qe.actualBounds.width/2,qe.actualBounds.y))}),fe.commitTransaction("aligning Center X")}},at.prototype.alignCenterY=function(){var fe=this.diagram,ve=fe.selection.first();if(ve){fe.startTransaction("aligning Center Y");var Se=ve.actualBounds.y+ve.actualBounds.height/2;fe.selection.each(function(qe){qe instanceof go.Link||qe.move(new go.Point(qe.actualBounds.x,Se-qe.actualBounds.height/2))}),fe.commitTransaction("aligning Center Y")}},at.prototype.alignColumn=function(fe){var ve=this.diagram;ve.startTransaction("align Column"),fe===void 0&&(fe=0),fe=parseFloat(fe);var Se=new Array;ve.selection.each(function(Rt){Rt instanceof go.Link||Se.push(Rt)});for(var qe=0;qe<Se.length-1;qe++){var Lt=Se[qe],Pt=Lt.actualBounds.y+Lt.actualBounds.height+fe,rn=Se[qe+1];rn.move(new go.Point(Lt.actualBounds.x,Pt))}ve.commitTransaction("align Column")},at.prototype.alignRow=function(fe){fe===void 0&&(fe=0),fe=parseFloat(fe);var ve=this.diagram;ve.startTransaction("align Row");var Se=new Array;ve.selection.each(function(Rt){Rt instanceof go.Link||Se.push(Rt)});for(var qe=0;qe<Se.length-1;qe++){var Lt=Se[qe],Pt=Lt.actualBounds.x+Lt.actualBounds.width+fe,rn=Se[qe+1];rn.move(new go.Point(Pt,Lt.actualBounds.y))}ve.commitTransaction("align Row")},at.prototype.canRotate=function(fe){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},at.prototype.rotate=function(fe){fe===void 0&&(fe=90);var ve=this.diagram;ve.startTransaction("rotate "+fe.toString());var ve=this.diagram;ve.selection.each(function(Se){Se instanceof go.Link||Se instanceof go.Group||(Se.angle+=fe)}),ve.commitTransaction("rotate "+fe.toString())},at.prototype.pullToFront=function(){var fe=this.diagram;fe.startTransaction("pullToFront");var ve=new go.Map;fe.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var qe=0;Se.parts.each(function(Lt){if(!Lt.isSelected){var Pt=Lt.zOrder;isNaN(Pt)?Lt.zOrder=0:qe=Math.max(qe,Pt)}}),ve.set(Se,qe)}),fe.selection.each(function(Se){at._assignZOrder(Se,ve.get(Se.layer)+1)}),fe.commitTransaction("pullToFront")},at.prototype.pushToBack=function(){var fe=this.diagram;fe.startTransaction("pushToBack");var ve=new go.Map;fe.selection.each(function(Se){ve.set(Se.layer,0)}),ve.iteratorKeys.each(function(Se){var qe=0;Se.parts.each(function(Lt){if(!Lt.isSelected){var Pt=Lt.zOrder;isNaN(Pt)?Lt.zOrder=0:qe=Math.min(qe,Pt)}}),ve.set(Se,qe)}),fe.selection.each(function(Se){at._assignZOrder(Se,ve.get(Se.layer)-1-at._findGroupDepth(Se))}),fe.commitTransaction("pushToBack")},at._assignZOrder=function(fe,ve,Se){Se===void 0&&(Se=fe),fe.layer===Se.layer&&(fe.zOrder=ve),fe instanceof go.Group&&fe.memberParts.each(function(qe){at._assignZOrder(qe,ve+1,Se)})},at._findGroupDepth=function(fe){if(fe instanceof go.Group){var ve=0;return fe.memberParts.each(function(Se){ve=Math.max(ve,at._findGroupDepth(Se))}),ve+1}else return 0},at.prototype.doKeyDown=function(){var fe=this.diagram;if(fe!==null){var ve=fe.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var Se=this.arrowKeyBehavior;if(Se==="none")return;if(Se==="select"){this._arrowKeySelect();return}else if(Se==="move"){this._arrowKeyMove();return}else if(Se==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},at.prototype._getAllParts=function(){var fe=new Array;return this.diagram.nodes.each(function(ve){fe.push(ve)}),this.diagram.parts.each(function(ve){fe.push(ve)}),fe},at.prototype._arrowKeyMove=function(){var fe=this.diagram,ve=fe.lastInput,Se=0,qe=0;if(ve.control||ve.meta)Se=1,qe=1;else if(fe.grid!==null){var Lt=fe.grid.gridCellSize;qe=Lt.width,Se=Lt.height}fe.startTransaction("arrowKeyMove"),fe.selection.each(function(Pt){ve.key==="Up"?Pt.move(new go.Point(Pt.actualBounds.x,Pt.actualBounds.y-Se)):ve.key==="Down"?Pt.move(new go.Point(Pt.actualBounds.x,Pt.actualBounds.y+Se)):ve.key==="Left"?Pt.move(new go.Point(Pt.actualBounds.x-qe,Pt.actualBounds.y)):ve.key==="Right"&&Pt.move(new go.Point(Pt.actualBounds.x+qe,Pt.actualBounds.y))}),fe.commitTransaction("arrowKeyMove")},at.prototype._arrowKeySelect=function(){var fe=this.diagram,ve=fe.lastInput,Se=null;ve.key==="Up"?Se=this._findNearestPartTowards(270):ve.key==="Down"?Se=this._findNearestPartTowards(90):ve.key==="Left"?Se=this._findNearestPartTowards(180):ve.key==="Right"&&(Se=this._findNearestPartTowards(0)),Se!==null&&(ve.shift?Se.isSelected=!0:ve.control||ve.meta?Se.isSelected=!Se.isSelected:fe.select(Se))},at.prototype._findNearestPartTowards=function(fe){var ve=this.diagram.selection.first();if(ve===null)return null;for(var Se=ve.actualBounds.center,qe=this._getAllParts(),Lt=1/0,Pt=ve,rn=0;rn<qe.length;rn++){var Rt=qe[rn];if(Rt!==ve&&Rt.canSelect()){var Vt=Rt.actualBounds.center,vn=Se.directionPoint(Vt),kn=this._angleCloseness(vn,fe);if(kn<=45){var Ye=Se.distanceSquaredPoint(Vt);Ye*=1+Math.sin(kn*Math.PI/180),Ye<Lt&&(Lt=Ye,Pt=Rt)}}}return Pt},at.prototype._angleCloseness=function(fe,ve){return Math.min(Math.abs(ve-fe),Math.min(Math.abs(ve+360-fe),Math.abs(ve-360-fe)))},at.prototype._arrowKeyTree=function(){var fe=this.diagram,ve=fe.selection.first();if(ve instanceof go.Node){var Se=fe.lastInput;if(Se.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)fe.commandHandler.canExpandTree(ve)&&fe.commandHandler.expandTree(ve);else{var qe=this._sortTreeChildrenByY(ve).first();qe!==null&&fe.select(qe)}}else if(Se.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)fe.commandHandler.canCollapseTree(ve)&&fe.commandHandler.collapseTree(ve);else{var Lt=ve.findTreeParentNode();Lt!==null&&fe.select(Lt)}else if(Se.key==="Up"){var Lt=ve.findTreeParentNode();if(Lt!==null){var Pt=this._sortTreeChildrenByY(Lt),rn=Pt.indexOf(ve);if(rn>0){for(var Rt=Pt.elt(rn-1);Rt!==null&&Rt.isTreeExpanded&&!Rt.isTreeLeaf;){var Vt=this._sortTreeChildrenByY(Rt);Rt=Vt.last()}Rt!==null&&fe.select(Rt)}else fe.select(Lt)}}else if(Se.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var qe=this._sortTreeChildrenByY(ve).first();qe!==null&&fe.select(qe)}else for(;ve!==null;){var Lt=ve.findTreeParentNode();if(Lt===null)break;var Pt=this._sortTreeChildrenByY(Lt),rn=Pt.indexOf(ve);if(rn<Pt.length-1){fe.select(Pt.elt(rn+1));break}else ve=Lt}var vn=fe.selection.first();vn!==null&&fe.scrollToRect(vn.actualBounds)}},at.prototype._sortTreeChildrenByY=function(fe){var ve=new go.List().addAll(fe.findTreeChildrenNodes());return ve.sort(function(Se,qe){var Lt=Se.location,Pt=qe.location;return Lt.y<Pt.y?-1:Lt.y>Pt.y?1:Lt.x<Pt.x?-1:Lt.x>Pt.x?1:0}),ve},at.prototype.copyToClipboard=function(fe){go.CommandHandler.prototype.copyToClipboard.call(this,fe),this._lastPasteOffset.set(this.pasteOffset)},at.prototype.pasteFromClipboard=function(){var fe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(fe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),fe},Object.defineProperty(at.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(fe){if(fe!=="move"&&fe!=="select"&&fe!=="scroll"&&fe!=="tree"&&fe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+fe);this._arrowKeyBehavior=fe}}),Object.defineProperty(at.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(fe){if(!(fe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+fe);this._pasteOffset.set(fe)}});var $t=at,Kt=ge(20397),Mt=ge(43604),Ge=ge(82093),we={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},pe=ge(59301),Re=(fe,ve,Se)=>new Promise((qe,Lt)=>{var Pt=Vt=>{try{Rt(Se.next(Vt))}catch(vn){Lt(vn)}},rn=Vt=>{try{Rt(Se.throw(Vt))}catch(vn){Lt(vn)}},Rt=Vt=>Vt.done?qe(Vt.value):Promise.resolve(Vt.value).then(Pt,rn);Rt((Se=Se.apply(fe,ve)).next())});function _e({onCancel:fe,callback:ve}){let Se=(0,ae.useRef)(),qe=(0,ae.useRef)(),Lt=(0,ae.useRef)(),Pt=(0,ae.useRef)(!1);const rn=(0,ae.useRef)(!1),[Rt,Vt]=(0,ae.useState)(0);function vn(){const Ye=de.bx.make,Yt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Se.current=new de.S0(qe.current,{padding:20,grid:Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ze=>{var ct=Ze.diagram.commandHandler.addTopLevelParts(Ze.diagram.selection,!0);ct||Ze.diagram.currentTool.doCancel()},commandHandler:Ye($t),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ze=>{var ct=Ze.subject;ct.location=ct.location.copy().snapToGridPoint(Ze.diagram.grid.gridOrigin,Ze.diagram.grid.gridCellSize),setTimeout(()=>{Ze.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ze=>{var ct=Ze.subject;setTimeout(()=>{Ze.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ze=>{var ct=Ze.parameter.part;ct.invalidateConnectedLinks();var Ft=Ze.subject;Ze.diagram.toolManager.linkingTool.isForwards?Ft.toNode.invalidateConnectedLinks():Ft.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Se.current.nodeTemplate=Ye(de.NB,"Auto",{locationSpot:de.z6.Center,locationObjectName:"SHAPE",desiredSize:new de.$u(120,60),minSize:new de.$u(40,40),resizable:!0,resizeCellSize:new de.$u(10,10),rotatable:!0},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),new de.KX("desiredSize","size",de.$u.parse).makeTwoWay(de.$u.stringify),Ye(de.bn,{name:"SHAPE",fill:Yt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ye(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.nodeTemplate.toolTip=Ye("ToolTip",Ye(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},Ye(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),Ye(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function An(Ze,ct){var Ft=(st,Zt)=>{st.handled=!0,st.diagram.model.commit(Xt=>{var zt=Zt.part.adornedPart,un=new de.E9().setRectSpot(zt.actualBounds,Ze);un.subtract(zt.location),un.scale(2,2),un.x+=Math.sign(un.x)*130,un.y+=Math.sign(un.y)*130,un.add(zt.location),un.snapToGridPoint(st.diagram.grid.gridOrigin,st.diagram.grid.gridCellSize);var cn=Xt.copyNodeData(zt.data);Xt.setGroupKeyForNodeData(cn,Xt.getGroupKeyForNodeData(zt.data)),Xt.addNodeData(cn);var oa={from:zt.key,to:Xt.getKeyForNodeData(cn)};Xt.addLinkData(oa);var Qn=st.diagram.findNodeForData(cn);Qn.location=un,st.diagram.select(Qn),setTimeout(()=>{st.diagram.commandHandler.editTextBlock()},20)})};return Ye(de.bn,{figure:ct,alignment:Ze,alignmentFocus:Ze.opposite(),width:Ze.equals(de.z6.Top)||Ze.equals(de.z6.Bottom)?25:18,height:Ze.equals(de.z6.Top)||Ze.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Yt.white,strokeWidth:4,mouseEnter:(st,Zt)=>Zt.fill="dodgerblue",mouseLeave:(st,Zt)=>Zt.fill="orange",isActionable:!0,click:Ft,contextClick:Ft})}function Zn(Ze){return Ye(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(ct,Ft)=>Ft.fill="dodgerblue",mouseLeave:(ct,Ft)=>Ft.fill="orange",click:(ct,Ft)=>{ct.diagram.commandHandler.showContextMenu(Ft.part.adornedPart)}},Ze||{})}Se.current.nodeTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.Vm,{padding:10}),An(de.z6.Top,"TriangleUp"),An(de.z6.Left,"TriangleLeft"),An(de.z6.Right,"TriangleRight"),An(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Bn(Ze,ct){return(Ft,st)=>{Ft.handled=!0,Ft.diagram.model.commit(Zt=>{Zt.set(st.part.adornedPart.data,Ze,ct)})}}function se(Ze,ct){return ct||(ct="color"),Ye(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ze,margin:1,background:"transparent",mouseEnter:(Ft,st)=>st.stroke="dodgerblue",mouseLeave:(Ft,st)=>st.stroke="lightgray",click:Bn(ct,Ze),contextClick:Bn(ct,Ze)})}function xe(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",se(Yt.white,"fill"),se(Yt.beige,"fill"),se(Yt.extralightblue,"fill"),se(Yt.extralightred,"fill"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",se(Yt.lightgray,"fill"),se(Yt.lightgreen,"fill"),se(Yt.lightblue,"fill"),se(Yt.lightred,"fill")))]}function Be(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",se(Yt.black),se(Yt.green),se(Yt.blue),se(Yt.red))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",se(Yt.white),se(Yt.magenta),se(Yt.purple),se(Yt.orange)))]}function Oe(Ze,ct){return ct||(ct="thickness"),Ye(de.bn,"LineH",{width:16,height:16,strokeWidth:Ze,margin:1,background:"transparent",mouseEnter:(Ft,st)=>st.background="dodgerblue",mouseLeave:(Ft,st)=>st.background="transparent",click:Bn(ct,Ze),contextClick:Bn(ct,Ze)})}function He(Ze,ct){return ct||(ct="dash"),Ye(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ze,margin:1,background:"transparent",mouseEnter:(Ft,st)=>st.background="dodgerblue",mouseLeave:(Ft,st)=>st.background="transparent",click:Bn(ct,Ze),contextClick:Bn(ct,Ze)})}function Ue(){return[Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Oe(1),Oe(2),Oe(3),Oe(4))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",He(null),He([2,4]),He([4,4])))]}function ke(Ze,ct){return ct||(ct="figure"),Ye(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ze,margin:1,background:"transparent",mouseEnter:(Ft,st)=>st.fill="dodgerblue",mouseLeave:(Ft,st)=>st.fill="lightgray",click:Bn(ct,Ze),contextClick:Bn(ct,Ze)})}Se.current.nodeTemplate.contextMenu=Ye("ContextMenu",Ye("ContextMenuButton",Ye(de.s_,"Horizontal",ke("Rectangle"),ke("RoundedRectangle"),ke("Ellipse"),ke("Diamond"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",ke("Parallelogram2"),ke("ManualOperation"),ke("Procedure"),ke("Cylinder1"))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",ke("Terminator"),ke("CreateRequest"),ke("Document"),ke("TriangleDown"))),xe(),Be(),Ue()),Se.current.groupTemplate=Ye(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ze,ct)=>{var Ft=ct.addMembers(ct.diagram.selection,!0);Ft||ct.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(de.s_,"Auto",{name:"BODY"},Ye(de.bn,{parameter1:10,fill:Yt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.Vm,{background:"transparent",margin:20})),Ye(de.al,{alignment:de.z6.Top,alignmentFocus:de.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new de.KX("text"),new de.KX("stroke","color"))),Se.current.groupTemplate.selectionAdornmentTemplate=Ye(de.uz,"Spot",Ye(de.s_,"Auto",Ye(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ye(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Se.current.groupTemplate.contextMenu=Ye("ContextMenu",xe(),Be(),Ue()),Se.current.linkTemplate=Ye(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ze=>Ze>=1?10:0),new de.KX("toShortLength","dir",Ze=>Ze>=1?10:0),new de.KX("points").makeTwoWay(),Ye(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),Ye(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ze=>Ze===1)),Ye(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ze=>Ze>=1),new de.KX("width","thickness",Ze=>7+3*Ze),new de.KX("height","thickness",Ze=>7+3*Ze),new de.KX("segmentOffset","thickness",Ze=>new de.E9(-15,4+1.5*Ze))),Ye(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ze=>Ze===2),new de.KX("width","thickness",Ze=>7+3*Ze),new de.KX("height","thickness",Ze=>7+3*Ze),new de.KX("segmentOffset","thickness",Ze=>new de.E9(-15,4+1.5*Ze))),Ye(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Se.current.linkTemplate.selectionAdornmentTemplate=Ye(de.uz,Ye(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ne(2)},new de.KX("pathPattern","thickness",Ne)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ne(Ze){return Ye(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ze+4).toString()+" H3"})}function Bt(Ze){var ct="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ze===0?ct="M0 0 M16 16 M0 8 L16 8":Ze===2&&(ct="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ye(de.bn,{geometryString:ct,margin:2,background:"transparent",mouseEnter:(Ft,st)=>st.background="dodgerblue",mouseLeave:(Ft,st)=>st.background="transparent",click:Bn("dir",Ze),contextClick:Bn("dir",Ze)})}function xt(Ze){var ct=(Ft,st)=>{Ft.handled=!0,Ft.diagram.model.commit(Zt=>{var Xt=st.part.adornedPart;Zt.set(Xt.data,Ze?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ze?Xt.toNode:Xt.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Ft,st)=>st.background="dodgerblue",mouseLeave:(Ft,st)=>st.background="transparent",click:ct,contextClick:ct})}function ye(Ze,ct){var Ft=0,st=de.z6.RightSide;Ze.equals(de.z6.Top)?(Ft=270,st=de.z6.TopSide):Ze.equals(de.z6.Left)?(Ft=180,st=de.z6.LeftSide):Ze.equals(de.z6.Bottom)&&(Ft=90,st=de.z6.BottomSide),ct||(Ft-=180);var Zt=(Xt,zt)=>{Xt.handled=!0,Xt.diagram.model.commit(un=>{var cn=zt.part.adornedPart;un.set(cn.data,ct?"toSpot":"fromSpot",de.z6.stringify(st)),(ct?cn.toNode:cn.fromNode).invalidateConnectedLinks()})};return Ye(de.bn,{alignment:Ze,alignmentFocus:Ze.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Ft,background:"transparent",mouseEnter:(Xt,zt)=>zt.background="dodgerblue",mouseLeave:(Xt,zt)=>zt.background="transparent",click:Zt,contextClick:Zt})}Se.current.linkTemplate.contextMenu=Ye("ContextMenu",Be(),Ue(),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Bt(0),Bt(1),Bt(2))),Ye("ContextMenuButton",Ye(de.s_,"Horizontal",Ye(de.s_,"Spot",xt(!1),ye(de.z6.Top,!1),ye(de.z6.Left,!1),ye(de.z6.Right,!1),ye(de.z6.Bottom,!1)),Ye(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},xt(!0),ye(de.z6.Top,!0),ye(de.z6.Left,!0),ye(de.z6.Right,!0),ye(de.z6.Bottom,!0)))));const tn=`{ "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 Qt=["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 fn(Ze){return console.log("shapeName:",Ze),Qt.indexOf(Ze)>=0}var xn=new de.YI(Lt.current,{maxSelectionCount:1,linkTemplate:Ye(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:Ye(de.uz,"Link",{locationSpot:de.z6.Center},Ye(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ye(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),Ye(de.bn,{isPanelMain:!0,strokeWidth:2}),Ye(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ze=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ze.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Se.current.addDiagramListener("TextEdited",function(Ze){var ct;const Ft=Ze.subject.part;var st=(ct=document.activeElement)==null?void 0:ct.value;typeof st=="string"&&st.trim()===""&&Se.current.model.commit(function(Zt){Zt.set(Ft.data,"text","\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}),xn.nodeTemplate=Ye(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),Ye(de.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new de.KX("stroke").makeTwoWay(),new de.KX("fill").makeTwoWay(),new de.KX("figure")),Ye(de.al,{margin:new de.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new de.$u(16,16),maxSize:new de.$u(10,NaN),textAlign:"center",editable:!0},new de.KX("key").makeTwoWay())),setTimeout(()=>{Se.current.grid=Ye(de.s_,"Grid",Ye(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ye(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Se.current.grid.visible=!0,Se.current.grid.gridCellStroke="darkgray",Se.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Se.current,Se.current}const kn=()=>Re(this,null,function*(){var Ye=Se.current.makeImage();const Yt=yield(0,Ge.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:Ye.src}});ve({src:Yt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{vn()},500),Vt(Rt+1),()=>{Se.current=null}),[]),pe.createElement("div",{ref:rn,className:Pt.current?`${we.maxH60} body-overflow-initial`:"body-overflow-initial"},pe.createElement($e.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Rt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:pe.createElement(Ke.Z,null,pe.createElement(Mt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),pe.createElement(Mt.Z,{onClick:()=>{var Ye,Yt,An=Se.current.selection.first();if(Pt.current=!Pt.current,document.activeElement&&An){let Zn=(Yt=(Ye=document.activeElement)==null?void 0:Ye.value)==null?void 0:Yt.trim();typeof Zn=="string"&&Se.current.model.commit(function(Bn){Bn.set(An.data,"text",Zn||"\u672A\u547D\u540D"),Se.current.commandHandler.stopCommand()},"increment")}Vt(Rt+1)}},pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:fe},pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:we.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:we.myPaletteDiv,ref:Lt})),pe.createElement("div",{style:{flex:1,position:"relative"}},pe.createElement("div",{ref:qe,style:{height:"80vh"}}))),pe.createElement("div",{className:"tr"},pe.createElement(Te.ZP,{size:"large",onClick:kn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var dt=_e,yt=ge(5112),bt=ge(5871);const Tt=yt.ZP.Group,Dt={margin:"0 8px"};var ht=({callback:fe,onCancel:ve})=>{function Se(qe){fe(qe)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Se},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Dt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Dt},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(bt.Z,null)),ae.createElement("span",{style:Dt},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(bt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Dt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Tt,null,ae.createElement(yt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(yt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(yt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(yt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Te.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},At=ge(49770),Pn=ge(11081),wn=ge.n(Pn),an=(0,ae.forwardRef)(({use3d:fe,width:ve,height:Se,callback:qe,showSaveButton:Lt},Pt)=>{const rn=(0,ae.useRef)(),Rt=(0,ae.useRef)(),[Vt,vn]=(0,ae.useState)(!1),kn=(0,ae.useRef)({id:rn,appName:"graphing",width:ve||1e3,height:Se||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{Rt.current=new(wn())(kn.current,!0),window.onload=function(){Rt.current.inject("applet_container")}},[]);const Ye=()=>{var Yt=window.ggbApplet.getPNGBase64(1,!0,72);return qe&&qe(Yt),Yt};return(0,ae.useEffect)(()=>{kn.current.appName=Vt?"3D":"graphing",Rt.current.inject("applet_container")},[Vt]),(0,ae.useEffect)(()=>{vn(fe)},[fe]),(0,ae.useImperativeHandle)(Pt,()=>({getImgData:Ye})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:rn}),ae.createElement(Ke.Z,{align:"middle"},ae.createElement(Mt.Z,{flex:1},ae.createElement(At.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Vt,onChange:Yt=>vn(Yt)})),ae.createElement(Mt.Z,null,ae.createElement(Te.ZP,{size:"large",onClick:Ye,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),qt=ge(88615),Pe=ge(1012),Fe=ge(8591);const De="link",tt="upload-image",lt="add-flowchart",Ct="draw-image",Ot="add-flowchart",pt="code-block",Gt="add-table",Ut="------------",Wt={default:Ut,left:`:${Ut}`,center:`:${Ut}:`,right:`${Ut}:`};var Jt=ge(17904),Sn=(fe,ve,Se)=>new Promise((qe,Lt)=>{var Pt=Vt=>{try{Rt(Se.next(Vt))}catch(vn){Lt(vn)}},rn=Vt=>{try{Rt(Se.throw(Vt))}catch(vn){Lt(vn)}},Rt=Vt=>Vt.done?qe(Vt.value):Promise.resolve(Vt.value).then(Pt,rn);Rt((Se=Se.apply(fe,ve)).next())});function hn(){}let Fn=0;const on=1e4,en="\u2581",pn="@\u2581\u2581@",Cn="@\u2581@",En=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,sn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Nn(fe){return/^\d+$/.test(fe)?`${fe}px`:fe}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[In+"-B"]:"bold",[In+"-I"]:"italic"},na={[De]:"\u6DFB\u52A0\u94FE\u63A5",[pt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[tt]:"\u6DFB\u52A0\u56FE\u7247",[Ct]:"\u6DFB\u52A0\u753B\u56FE",[lt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Gt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:fe="",onChange:ve,width:Se="100%",height:qe=400,miniToolbar:Lt=!1,isFocus:Pt=!1,watch:rn,insertTemp:Rt,mode:Vt="markdown",id:vn="markdown-editor-id",showResizeBar:kn=!1,noStorage:Ye=!1,showNullButton:Yt=!1,showNullProgramButton:An=!1,hidetoolBar:Zn=!1,fullScreen:Bn=!1,onBlur:se,onCMBeforeChange:xe,onFullScreen:Be,className:Oe="",disablePaste:He=!1,disabled:Ue=!1,disabledFill:ke=!1,placeholder:Ne="",values:Bt="",extraUse:xt})=>{const[ye,tn]=(0,ae.useState)(null),[Qt,fn]=(0,ae.useState)(fe),[xn,Ze]=(0,ae.useState)(rn),[ct,Ft]=(0,ae.useState)(Bn),[st,Zt]=(0,ae.useState)(""),[Xt,zt]=(0,ae.useState)(0),[un,cn]=(0,ae.useState)(qe),[oa,Qn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,Pe.Z)()),ca=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[Pa,da]=(0,ae.useState)(0),[Vn,$n]=(0,ae.useState)(0),ta=(0,ae.useRef)(),ga=(0,ae.useRef)(),ia=(0,ae.useRef)(),aa=(0,ae.useRef)(),ea=()=>Sn(void 0,null,function*(){var vt;const gt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(vt=gt==null?void 0:gt.attachments)!=null&&vt.length&&(console.log("cm:",ye,ta),gt.attachments.map(St=>{St.content_type.indexOf("image")>-1?ye.replaceSelection(``):St.content_type.indexOf("video")>-1?ye.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):St.content_type.indexOf("pdf")>-1?ye.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${St.id}?type=${St.content_type}&disposition=inline" target="_blank">${St.name}</a>`):ye.replaceSelection(`[${St.name}](${ENV.API_SERVER}/api/attachments/${St.id}?type=${St.content_type})`)}))});(0,ae.useEffect)(()=>{const vt=window.scrollY||window.pageYOffset;fn(Bt),ye==null||ye.setValue(Bt),window.scrollTo(0,vt)},[Bt]),(0,ae.useEffect)(()=>{Be==null||Be(ct)},[ct]),(0,ae.useEffect)(()=>{if(ta.current){let vt=function(St,ft){var dn;if(He){ft.preventDefault();return}const zn=ft.clipboardData;if(zn){const Rn=zn.types.toString(),Dn=zn.items;if(Rn==="Files"||zn.types.indexOf("Files")>-1){if(ft.preventDefault(),Vt=="stex")return;try{let jn=Dn[1];((dn=Dn[0])==null?void 0:dn.kind)==="file"&&(jn=Dn[0]);const _n=jn.getAsFile(),sa=_n.name.split(".").pop();(0,be.I)(_n,Kn=>{var Ht,gn,yn;Kn.id?((Ht=_n==null?void 0:_n.type)==null?void 0:Ht.indexOf("image"))>-1?gt.replaceSelection(`<img width="100%" src="/api/attachments/${Kn.id}?type=${Kn.content_type})" alt="" />`):((gn=_n==null?void 0:_n.type)==null?void 0:gn.indexOf("video"))>-1?gt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Kn.id}"></video>`):((yn=_n==null?void 0:_n.type)==null?void 0:yn.indexOf("pdf"))>-1?gt.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=${_n.type}&disposition=inline" target="_blank">${_n.name}</a>`):sn.includes(sa)?gt.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=office&disposition=inline" target="_blank">${_n.name}</a>`):gt.replaceSelection(`[${_n.name}](/api/attachments/${Kn.id}?type=${Kn.content_type})`):(Kn==null?void 0:Kn.status)===401&&(Fe.ZP.warning((Kn==null?void 0:Kn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Fe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const gt=Je().fromTextArea(ta.current,{mode:Vt,lineNumbers:!Lt,lineWrapping:!0,value:fe,autoCloseTags:!An,autoCloseBrackets:!0});return gt.on("keyup",function(St,ft){ft.keyCode===8&&(St.getValue()==""?gt.setOption("placeholder",Ne):gt.setOption("placeholder",null))}),gt.on("keydown",function(St,ft){if(ft.keyCode===8){var dn=_t(St);dn&&ft.preventDefault()}}),Pt&>.focus(),gt.on("paste",vt),gt.on("dragleave",function(St,ft){ga.current.classList.remove("mouse-hover-md")}),Ue&>.on("beforeChange",function(St,ft){(ft.origin==="paste"||ft.origin==="+input")&&ft.cancel()}),tn(gt),()=>{gt.off("paste",vt)}}},[]);const fa=(0,ae.useCallback)(()=>{if(ga.current)try{}catch(vt){console.log(vt,"---- to set md editor body height")}},[un,ga,ct]);(0,ae.useEffect)(()=>{function vt(){let gt=new Xe.Z(St=>{for(let ft of St)(ft.target.offsetHeight>0||ft.target.offsetWidth>0)&&(fa(),ye.setSize("100%","100%"),ye.refresh())});return gt.observe(ta.current.parentElement),gt}if(ye){const gt=vt();return()=>{var St,ft;(St=ta.current)!=null&&St.parentElement&>.unobserve((ft=ta.current)==null?void 0:ft.parentElement)}}},[ye,fa]),(0,ae.useEffect)(()=>{if(ye){let vt=[];for(const[gt,St]of Object.entries(Wn)){let ft={[gt]:()=>{Gn(St)}};vt.push(ft),ye.addKeyMap(ft)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let gt of vt)ye.removeKeyMap(gt)}}},[ye]),(0,ae.useEffect)(()=>{Bn!==ct&&Ft(Bn)},[Bn]),(0,Jt.Z)(()=>{if(!Ye&&Xt>0){let vt=new Date().getTime(),gt=window.sessionStorage.getItem(vn);vt>=Xt+on&&(!gt||gt!==Qt)&&(window.sessionStorage.setItem(vn,Qt),Qn(!0))}},on),(0,ae.useEffect)(()=>{Ze(rn)},[ye,rn]),(0,ae.useEffect)(()=>{ye&&Pt&&ye.focus()},[ye,Pt]),(0,ae.useEffect)(()=>{if(xn&&ye){let vt=function(St){let ft=St.target;if(aa.current){let dn=ft.scrollTop/ft.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*dn}};const gt=ye.getScrollerElement();return gt.addEventListener("scroll",vt),()=>{gt.removeEventListener("scroll",vt)}}},[ye,xn]),(0,ae.useEffect)(()=>{if(ye&&xe){let vt=function(gt,St){xe(gt,St)};return ye.on("beforeChange",vt),()=>{ye.off("beforeChange",vt)}}},[ye,xe]),(0,ae.useEffect)(()=>{if(ye&&se){let vt=function(){se(ye.getValue())};return ye.on("blur",vt),()=>{ye.off("blur",vt)}}},[ye,se]);function _t(vt,gt){var St=vt.getDoc(),ft=St.getCursor(),dn=St.getLine(ft.line),zn=dn.charAt(ft.ch-1),Rn=dn.lastIndexOf("@\u2581@",ft.ch),Dn=dn.lastIndexOf("@\u2581\u2581@",ft.ch),jn=Rn>Dn?Rn:Dn,_n=Rn>Dn?3:4;if(pn.indexOf(zn)===-1)return null;if(console.log("change1:",gt,vt,dn,ft,jn,Rn,Dn,zn),jn>=0&&ft.ch-jn<5){var sa=jn+_n;return St.replaceRange("",{line:ft.line,ch:jn},{line:ft.line,ch:sa}),{line:ft.line,ch:sa}}return null}(0,ae.useEffect)(()=>{if(ye){let vt=function(gt,St){const ft=gt.getValue();fn(ft),zt(new Date().getTime()),gt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(An?ve(ft,On(ft)):ve(ft))};return ye.on("change",vt),()=>{ye.off("change",vt)}}},[ye,ve]),(0,ae.useEffect)(()=>{if(ye)if(fe==null)ye.setValue(""),fn("");else{const vt=window.scrollY||window.pageYOffset;fe!==ye.getValue()&&(ye.setValue(fe),fn(fe),ye.setCursor(Ue?1:ye.lineCount(),0),window.scrollTo(0,vt))}},[ye,fe]);const Gn=(0,ae.useCallback)(vt=>{const gt=ye.getCursor(),St=ye.getSelection();let ft=St.split(`
|
|
`);switch(vt){case"bold":return ye.replaceSelection("**"+St+"**"),St===""&&ye.setCursor(gt.line,gt.ch+2),ye.focus();case"italic":return ye.replaceSelection("*"+St+"*"),St===""&&ye.setCursor(gt.line,gt.ch+1),ye.focus();case"code":return ye.replaceSelection("`"+St+"`"),St===""&&ye.setCursor(gt.line,gt.ch+1),ye.focus();case"inline-latex":return Zt("inline-latex"),ye.focus();case"latex":return ye.replaceSelection("```latex\n"+St+"\n```"),ye.setCursor(gt.line+1,St.length+1),ye.focus();case"line-break":return ye.replaceSelection(`<br/>
|
|
`),ye.focus();case"list-ul":return St===""?ye.replaceSelection("- "+St):ye.replaceSelection(ft.map(dn=>dn===""?"":`- ${dn}`).join(`
|
|
`)),ye.focus();case"list-ol":return St===""?ye.replaceSelection("1. "+St):ye.replaceSelection(ft.map((dn,zn)=>dn===""?"":`${zn+1}. ${dn}`).join(`
|
|
`)),ye.focus();case"add-null-ch":return St===""&&ye.setCursor(gt.line,gt.ch),ye.replaceSelection(en),ye.focus();case"add-signal":return St===""&&ye.setCursor(gt.line,gt.ch),ye.replaceSelection(Cn),ye.focus();case"add-multiple":return St===""&&ye.setCursor(gt.line,gt.ch),ye.replaceSelection(pn),ye.focus();case"inster-template-1":return St===""&&ye.setCursor(gt.line,gt.ch),ye.replaceSelection(En),ye.focus();case"eraser":return ye.setValue(""),ye.focus();case"trigger-watch":return Ze(!xn),ye.focus();case"trigger-full-screen":return Ft(!ct),ye.focus();case De:Zt(De);return;case pt:Zt(pt);return;case tt:Zt(tt);return;case Ct:Zt(Ct);return;case"maths-latex":Zt("maths-latex");return;case lt:Zt(lt);return;case Gt:Zt(Gt);return;default:throw new Error}},[ye,xn,ct]),Tn=(0,ae.useCallback)((vt,gt)=>{var St,ft,dn,zn,Rn,Dn;switch(Zt(""),st){case De:const{title:Ht,link:gn}=vt;return ye.replaceSelection(`[${Ht}](${gn})`),ye.focus();case pt:const{language:yn,content:nn}=vt;return ye.replaceSelection(["```"+yn,nn,"```"].join(`
|
|
`)),ye.focus();case"maths-latex":for(var jn=atob(vt),_n=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)_n[sa]=jn.charCodeAt(sa);var Kn=new Blob([_n],{type:"image/png"});(0,be.I)(Kn,ma=>{ma.id?ye.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ye.replaceSelection("`$$"+vt+"$$`");break;case tt:case Ct:case Ot:const{src:mn,alt:Hn}=vt,bn=gt,ha=(dn=(ft=(St=bn==null?void 0:bn.name)==null?void 0:St.split("."))==null?void 0:ft.pop)==null?void 0:dn.call(ft);return((zn=bn==null?void 0:bn.type)==null?void 0:zn.indexOf("image"))>-1||!(bn!=null&&bn.type)?bn.align||bn.width?ye.replaceSelection(`<p style="text-align:${bn.align||"initial"}"><img width="${bn.width?bn.width+"%":"initial"}" src="${mn}" alt="${Hn||""}" /></p>`):ye.replaceSelection(`<img width="100%" src="${mn}" alt="${Hn||""}" />`):((Rn=bn==null?void 0:bn.type)==null?void 0:Rn.indexOf("video"))>-1?ye.replaceSelection(`<video width="100%" controls src="${mn}"></video>`):((Dn=bn==null?void 0:bn.type)==null?void 0:Dn.indexOf("pdf"))>-1?ye.replaceSelection(`<a href="${mn}?type=${bn.type}&disposition=inline" target="_blank">${bn.name}</a>`):sn.includes(ha)?ye.replaceSelection(`<a href="${mn}?type=office&disposition=inline" target="_blank">${bn.name}</a>`):ye.replaceSelection(`[${bn.name}](${mn})`),ye.focus();case Gt:const{row:ua,col:wa,align:Ea}=vt;let Fa=`
|
|
`;for(let ma=0;ma<ua;ma++){let Ba=[],xa=[];for(let Ca=0;Ca<wa;Ca++)ma===1&&xa.push(Wt[Ea]),Ba.push(" ");ma===1&&(Fa+=`| ${xa.join(" | ")} |
|
|
`),Fa+=`| ${Ba.join(wa===1?"":" | ")} |
|
|
`}return ye.replaceSelection(Fa+`
|
|
`),ye.focus();default:throw new Error}},[ye,st]),Un=(0,ae.useMemo)(()=>{switch(st){case De:return ae.createElement(jt,{callback:Tn,onCancel:Xn});case pt:return ae.createElement(ln.Z,{callback:Tn,onCancel:Xn});case tt:return ae.createElement(be.Z,{callback:Tn,onCancel:Xn});case lt:return ae.createElement(dt,{callback:Tn,onCancel:Xn});case Gt:return ae.createElement(ht,{callback:Tn,onCancel:Xn});case"maths-latex":return ae.createElement(an,{showSaveButton:!0,callback:Tn});case"inline-latex":return ae.createElement(qt.Z,{showSaveButton:!0,callback:Tn});default:return null}},[st]);function Xn(){Zt("")}(0,ae.useEffect)(()=>{if(ia.current){let vt=function(Rn){dn=!0,zn=Rn.pageY},gt=function(){dn=!1},St=function(Rn){if(dn){let Dn=Rn.pageY-zn;Dn<0&&(Dn=0),Dn>300&&(Dn=300);let jn=qe+Dn+"px";cn(jn)}},ft=ia.current,dn=!1,zn=0;return ft.addEventListener("mousedown",vt),document.addEventListener("mousemove",St),document.addEventListener("mouseup",gt),()=>{ft.removeEventListener("mousedown",vt),document.removeEventListener("mousemove",St),document.removeEventListener("mouseup",gt)}}},[ye,ia]),(0,ae.useEffect)(()=>{cn(qe)},[qe]);const ra=Nn(Se),va=Nn(un),pa={width:ra,height:va},Mn=(0,ae.useMemo)(()=>{if(Xt){let vt=new Date(Xt),gt=vt.getHours(),St=vt.getMinutes(),ft=vt.getSeconds();return gt=gt<10?"0"+gt:gt,St=St<10?"0"+St:St,ft=ft<10?"0"+ft:ft,`${gt}:${St}:${ft}`}return 0},[Xt]),On=vt=>{const gt=[];if(An){let St=-1;vt=vt.replace(/(@▁▁@|@▁@)/g,function(ft,dn,zn){gt.push({multiLine:ft!==Cn})})}return gt};function la(){window.sessionStorage.removeItem(vn),Qn(!1),zt(0)}function La(){Qn(!1),zt(0),ye.setValue(window.sessionStorage.getItem(vn))}(0,ae.useEffect)(()=>{na[st]&&st!==Ct&&st!==lt&&setTimeout(()=>{const vt=document.getElementsByClassName("markdown-popup-form")[0],gt=window.innerWidth/2-vt.offsetWidth/2,St=window.innerHeight/2-vt.offsetHeight/2;da(gt),$n(St)},0)},[st]);const ya=vt=>{vt.preventDefault();const gt=vt.clientX-Pa,St=vt.clientY-Vn;document.body.onmousemove=ft=>{let dn=ft.clientX-gt,zn=ft.clientY-St;const Rn=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;dn=Math.max(0,Math.min(dn,Dn)),zn=Math.max(0,Math.min(zn,jn)),ba(ft.clientX,ft.clientY,gt,St)&&(da(dn),$n(zn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(vt,gt,St,ft)=>{const dn=document.body.clientHeight,zn=document.body.clientWidth;return vt<20&&St>vt||vt>zn-20&&St<vt||gt<20&&ft>gt||gt>dn-20&&ft<gt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ga},ae.createElement("div",{className:`markdown-editor-container ${Oe} ${xn?"on-preview":""} ${Lt?"mini":""} ${ct?"full-screen":""}`,style:pa},ae.createElement(ie,{insertTemp:Rt,watch:xn,fullScreen:ct,showNullButton:Yt,showNullProgramButton:An,onActionCallback:Gn,hidetoolBar:Zn,extraUse:xt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ta,placeholder:Ne})),xn?ae.createElement("div",{ref:aa,className:"preview-container"},Vt==="stex"&&ae.createElement(ze,{value:Qt}),Vt!=="stex"&&ae.createElement(je.Z,{disabledFill:ke,showProgramFill:An,value:Qt})):null))),kn?ae.createElement("a",{ref:ia,className:"editor-resize"}):null,st===Ct&&ae.createElement(ut,{callback:Tn,onCancel:Xn}),st===lt&&ae.createElement(dt,{callback:Tn,onCancel:Xn}),ae.createElement(me.Z,null,na[st]&&st!==Ct&&st!==lt?ae.createElement($e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Vn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:ya},na[st]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:st===lt?"1200px":null,height:st===lt?"80vh":null,className:"markdown-popup-form"},Un):null))}},45596:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return re},I:function(){return me}});var ae=ge(78241),he=ge(8591),Je=ge(92832),Xe=ge(81327),ce=ge(5871),We=ge(5112),ue=ge(3113),nt=ge(67303),Me=ge(59301),Ae=ge(34055),je=ge(59301),ze=Object.defineProperty,Ie=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(le,Ee,Te)=>Ee in le?ze(le,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Te}):le[Ee]=Te,E=(le,Ee)=>{for(var Te in Ee||(Ee={}))y.call(Ee,Te)&&b(le,Te,Ee[Te]);if(a)for(var Te of a(Ee))x.call(Ee,Te)&&b(le,Te,Ee[Te]);return le},z=(le,Ee)=>Ie(le,ne(Ee));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var re=({callback:le,onCancel:Ee})=>{const[Te]=ee();let mt=(0,Me.useRef)();function Nt(Ve){mt.current.width=Te.getFieldValue("width"),mt.current.align=Te.getFieldValue("align"),le(Ve,mt.current)}function Et(Ve,ot){if(Ve.status===-1){he.ZP.error(Ve.message);return}Te.setFieldsValue({src:`/api/attachments/${Ve.id}`,type:ot.type})}function Le(Ve){let ot=Ve.target.files[0];mt.current=ot,me(ot,Et)}return je.createElement(ae.default,z(E({form:Te},oe),{className:"upload-image-panel",onFinish:Nt,style:{width:470,overflow:"hidden"}}),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},je.createElement("div",{className:"flex-container"},je.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},je.createElement(Je.default,{style:te})),je.createElement(ie,{onFileChange:Le}))),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},je.createElement(Je.default,{style:{width:264}})),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},je.createElement(Xe.Z,null,je.createElement(ae.default.Item,{name:"width",style:{margin:0}},je.createElement(ce.Z,{style:{width:264}})),je.createElement("span",{className:"ml8"},"%"))),je.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},je.createElement(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"}]})),je.createElement("aside",null,je.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},je.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),je.createElement(ue.ZP,{type:"default",onClick:Ee},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return je.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",je.createElement("input",{type:"file",onChange:le}))}function me(le,Ee){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Ae.bg)())throw he.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Te=new FormData;Te.append("editormd-image-file",le),Te.append("file_param_name","editormd-image-file"),Te.append("byxhr","true");var mt=new window.XMLHttpRequest;mt.withCredentials=!0,mt.addEventListener("load",function(Nt){Ee(JSON.parse(Nt.target.responseText),le)},!1),mt.addEventListener("error",function(Nt){console.error(Nt)},!1),mt.open("POST",`${nt.KI}/api/attachments.json`),mt.send(Te)}},75790:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return Je}});var ae=ge(59301),he=ge(4676);class Je extends ae.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,he.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},17904:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return he}});var ae=ge(59301);function he(Je,Xe){const ce=(0,ae.useRef)();(0,ae.useEffect)(()=>{ce.current=Je}),(0,ae.useEffect)(()=>{function We(){ce.current()}if(Xe!==null){let ue=setInterval(We,Xe);return()=>clearInterval(ue)}},[Xe])}},8450:function(Ce,it,ge){"use strict";ge.r(it),ge.d(it,{default:function(){return re}});var ae=ge(59301),he=ge(76560),Je=ge(78241),Xe=ge(8591),ce=ge(66104),We=ge(92832),ue=ge(54580),nt=ge(3113),Me=ge(89389),Ae=ge(45278),je=ge(90524),ze={bg:"bg___VqFqM",flexRow:"flexRow___BMnDG",flexJustifyCenter:"flexJustifyCenter___oeWhy",flexAlignEnd:"flexAlignEnd___AM_yy",flexAlignCenter:"flexAlignCenter___oCn1N",flexColumn:"flexColumn___PQMFg",formWrap:"formWrap___iwUem",titleWrap:"titleWrap___SA96h",fieldWrap:"fieldWrap___tSPUZ",mdWrap:"mdWrap___C7Agk",backgroundFa:"backgroundFa___FaNz_",button:"button___fqiOn"},Ie=Object.defineProperty,ne=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,x=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,E=(ie,me,le)=>me in ie?Ie(ie,me,{enumerable:!0,configurable:!0,writable:!0,value:le}):ie[me]=le,z=(ie,me)=>{for(var le in me||(me={}))x.call(me,le)&&E(ie,le,me[le]);if(y)for(var le of y(me))b.call(me,le)&&E(ie,le,me[le]);return ie},ee=(ie,me)=>ne(ie,a(me)),te=(ie,me,le)=>new Promise((Ee,Te)=>{var mt=Le=>{try{Et(le.next(Le))}catch(Ve){Te(Ve)}},Nt=Le=>{try{Et(le.throw(Le))}catch(Ve){Te(Ve)}},Et=Le=>Le.done?Ee(Le.value):Promise.resolve(Le.value).then(mt,Nt);Et((le=le.apply(ie,me)).next())});const oe=({shixunHomeworks:ie,newCourse:me,globalSetting:le,loading:Ee,dispatch:Te,match:mt})=>{var Nt;const Et=(0,he.useParams)(),[Le]=Je.default.useForm(),[Ve,ot]=(0,ae.useState)({}),[Qe,rt]=(0,ae.useState)(!1),[It,kt]=(0,ae.useState)([]),[jt,ln]=(0,ae.useState)([]),{commonHomeWorkEditDefaultData:be}=ie,$e={name:"file",multiple:!0,action:je.Z.API_SERVER+"/api/attachments.json",defaultFileList:It,onChange(ut){const{status:de}=ut.file;de==="done"?Xe.ZP.success(`${ut.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`):de==="error"&&Xe.ZP.error(`${ut.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)}};(0,ae.useEffect)(()=>{wt()},[Et.topicId]);const Ke=ut=>ut==null?void 0:ut.map(de=>({uid:de.id,response:{id:de.id},name:de.title,status:"done",url:de.url})),wt=()=>te(void 0,null,function*(){const ut=yield Te({type:"shixunHomeworks/editCommonHomeWorkDefaultBankData",payload:{id:Et.topicId}});ut&&(Le.setFieldsValue({name:ut.name}),Le.setFieldsValue({description:ut.description}),Le.setFieldsValue({reference_answer:ut.reference_answer}),kt([...Ke(ut.attachments)]),ln([...Ke(ut.reference_attachments)]),rt(!0))}),et=ut=>te(void 0,null,function*(){var de,at;const $t=z({},Ve);$t.attachment_ids&&($t.attachment_ids=(de=$t==null?void 0:$t.attachment_ids.fileList)==null?void 0:de.map(Mt=>{var Ge;return(Ge=Mt.response)==null?void 0:Ge.id})),$t.reference_attachment_ids&&($t.reference_attachment_ids=(at=$t==null?void 0:$t.reference_attachment_ids.fileList)==null?void 0:at.map(Mt=>{var Ge;return(Ge=Mt.response)==null?void 0:Ge.id})),(yield(0,Ae.yT)(ee(z({id:Et.topicId},$t),{base_on_project:null,type:1})))&&he.history.push(`/users/${Et.username}/topics/${Et.topicId}/${Et.topictype}/normal/detail`)});return ae.createElement("section",{className:ze.bg},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},ae.createElement(ce.Z,{separator:">"},ae.createElement(ce.Z.Item,null,ae.createElement(he.Link,{to:`/users/${Et.username}/${Et.topictype==="personal"?"topics":"topicbank"}/${Et.topictype}`},Et.topictype==="personal"?"\u6211\u7684\u8BFE\u5802\u8D44\u6E90":"\u516C\u5171\u9898\u5E93")),ae.createElement(ce.Z.Item,null,ae.createElement(he.Link,{to:`/users/${Et.username}/topics/${Et.topicId}/${Et.topictype}/normal/detail`},"\u8BE6\u60C5")),ae.createElement(ce.Z.Item,null,"\u7F16\u8F91")))),ae.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91"),ae.createElement(Je.default,{form:Le,className:ze.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{ot(z({},Le.getFieldsValue()))},onFinish:et},ae.createElement("div",{className:ze.fieldWrap},ae.createElement(Je.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(We.default,{maxLength:60,suffix:`${((Nt=Ve.name)==null?void 0:Nt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ae.createElement("div",{className:ze.mdWrap},ae.createElement(Je.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ae.createElement(Me.Z,{id:"topic-normal-description",watch:!0,defaultValue:be.description})),ae.createElement("div",null,ae.createElement(Je.default.Item,{name:"attachment_ids"},Qe&&ae.createElement(ue.default,z({defaultFileList:It},$e),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:ze.mdWrap},ae.createElement(Je.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ae.createElement(Me.Z,{id:"topic-normal-reference_answer",defaultValue:be.reference_answer,watch:!0})),ae.createElement("div",null,ae.createElement(Je.default.Item,{name:"reference_attachment_ids"},Qe&&ae.createElement(ue.default,ee(z({},$e),{defaultFileList:jt}),ae.createElement("span",{className:"c-blue"},"\u4E0A\u4F20\u9644\u4EF6")," \uFF08\u5355\u4E2A\u6587\u4EF6150MB\u4EE5\u5185\uFF09")))),ae.createElement("div",{className:ze.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(Je.default.Item,null,ae.createElement(nt.ZP,{size:"middle",type:"primary",className:`${ze.button} mr20`,htmlType:"submit"},"\u63D0\u4EA4"),ae.createElement(nt.ZP,{size:"middle",type:"primary",ghost:!0,className:ze.button,onClick:()=>he.history.push(`/users/${Et.username}/topics/${Et.topicId}/${Et.topictype}/normal/detail`)},"\u53D6\u6D88"))))))};var re=(0,he.connect)(({shixunHomeworks:ie,newCourse:me,loading:le,globalSetting:Ee})=>({shixunHomeworks:ie,newCourse:me,globalSetting:Ee,loading:le.effects}))(oe)},56762:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return he}});var ae=ge(59301);function he(){const[,Je]=ae.useReducer(Xe=>Xe+1,0);return Je}},66104:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return Et}});var ae=ge(92310),he=ge.n(ae),Je=ge(11592),Xe=ge(26112),ce=ge(59301),We=ge(92343),ue=ge(36355),nt=ge(84105),Me=ge(91857);const Ae=Le=>{let{children:Ve}=Le;const{getPrefixCls:ot}=ce.useContext(ue.E_),Qe=ot("breadcrumb");return ce.createElement("li",{className:`${Qe}-separator`,"aria-hidden":"true"},Ve===""?Ve:Ve||"/")};Ae.__ANT_BREADCRUMB_SEPARATOR=!0;var je=Ae,ze=function(Le,Ve){var ot={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ve.indexOf(Qe)<0&&(ot[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Qe=Object.getOwnPropertySymbols(Le);rt<Qe.length;rt++)Ve.indexOf(Qe[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[rt])&&(ot[Qe[rt]]=Le[Qe[rt]]);return ot};function Ie(Le,Ve){if(Le.title===void 0||Le.title===null)return null;const ot=Object.keys(Ve).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${ot})`,"g"),(Qe,rt)=>Ve[rt]||Qe)}function ne(Le,Ve,ot,Qe){if(ot==null)return null;const{className:rt,onClick:It}=Ve,kt=ze(Ve,["className","onClick"]),jt=Object.assign(Object.assign({},(0,Xe.Z)(kt,{data:!0,aria:!0})),{onClick:It});return Qe!==void 0?ce.createElement("a",Object.assign({},jt,{className:he()(`${Le}-link`,rt),href:Qe}),ot):ce.createElement("span",Object.assign({},jt,{className:he()(`${Le}-link`,rt)}),ot)}function a(Le,Ve){return(Qe,rt,It,kt,jt)=>{if(Ve)return Ve(Qe,rt,It,kt);const ln=Ie(Qe,rt);return ne(Le,Qe,ln,jt)}}var y=function(Le,Ve){var ot={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ve.indexOf(Qe)<0&&(ot[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Qe=Object.getOwnPropertySymbols(Le);rt<Qe.length;rt++)Ve.indexOf(Qe[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[rt])&&(ot[Qe[rt]]=Le[Qe[rt]]);return ot};const x=Le=>{const{prefixCls:Ve,separator:ot="/",children:Qe,menu:rt,overlay:It,dropdownProps:kt,href:jt}=Le,be=($e=>{if(rt||It){const Ke=Object.assign({},kt);if(rt){const wt=rt||{},{items:et}=wt,ut=y(wt,["items"]);Ke.menu=Object.assign(Object.assign({},ut),{items:et==null?void 0:et.map((de,at)=>{var{key:$t,title:Kt,label:Mt,path:Ge}=de,we=y(de,["key","title","label","path"]);let pe=Mt!=null?Mt:Kt;return Ge&&(pe=ce.createElement("a",{href:`${jt}${Ge}`},pe)),Object.assign(Object.assign({},we),{key:$t!=null?$t:at,label:pe})})})}else It&&(Ke.overlay=It);return ce.createElement(Me.Z,Object.assign({placement:"bottom"},Ke),ce.createElement("span",{className:`${Ve}-overlay-link`},$e,ce.createElement(nt.Z,null)))}return $e})(Qe);return be!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,be),ot&&ce.createElement(je,null,ot)):null},b=Le=>{const{prefixCls:Ve,children:ot,href:Qe}=Le,rt=y(Le,["prefixCls","children","href"]),{getPrefixCls:It}=ce.useContext(ue.E_),kt=It("breadcrumb",Ve);return ce.createElement(x,Object.assign({},rt,{prefixCls:kt}),ne(kt,rt,ot,Qe))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=ge(17313),ee=ge(83116),te=ge(37613);const oe=Le=>{const{componentCls:Ve,iconCls:ot}=Le;return{[Ve]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[ot]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ve}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ve}-link`]:{[`
|
|
> ${ot} + span,
|
|
> ${ot} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${Ve}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${ot}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var re=(0,ee.Z)("Breadcrumb",Le=>{const Ve=(0,te.TS)(Le,{});return[oe(Ve)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ie=function(Le,Ve){var ot={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ve.indexOf(Qe)<0&&(ot[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Qe=Object.getOwnPropertySymbols(Le);rt<Qe.length;rt++)Ve.indexOf(Qe[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[rt])&&(ot[Qe[rt]]=Le[Qe[rt]]);return ot};function me(Le){const{breadcrumbName:Ve,children:ot}=Le,Qe=ie(Le,["breadcrumbName","children"]),rt=Object.assign({title:Ve},Qe);return ot&&(rt.menu={items:ot.map(It=>{var{breadcrumbName:kt}=It,jt=ie(It,["breadcrumbName"]);return Object.assign(Object.assign({},jt),{title:kt})})}),rt}function le(Le,Ve){return(0,ce.useMemo)(()=>Le||(Ve?Ve.map(me):null),[Le,Ve])}var Ee=function(Le,Ve){var ot={};for(var Qe in Le)Object.prototype.hasOwnProperty.call(Le,Qe)&&Ve.indexOf(Qe)<0&&(ot[Qe]=Le[Qe]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Qe=Object.getOwnPropertySymbols(Le);rt<Qe.length;rt++)Ve.indexOf(Qe[rt])<0&&Object.prototype.propertyIsEnumerable.call(Le,Qe[rt])&&(ot[Qe[rt]]=Le[Qe[rt]]);return ot};const Te=(Le,Ve)=>{if(Ve===void 0)return Ve;let ot=(Ve||"").replace(/^\//,"");return Object.keys(Le).forEach(Qe=>{ot=ot.replace(`:${Qe}`,Le[Qe])}),ot},mt=Le=>{const{prefixCls:Ve,separator:ot="/",style:Qe,className:rt,rootClassName:It,routes:kt,items:jt,children:ln,itemRender:be,params:$e={}}=Le,Ke=Ee(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:wt,direction:et,breadcrumb:ut}=ce.useContext(ue.E_);let de;const at=wt("breadcrumb",Ve),[$t,Kt]=re(at),Mt=le(jt,kt),Ge=a(at,be);if(Mt&&Mt.length>0){const Re=[],_e=jt||kt;de=Mt.map((dt,yt)=>{const{path:bt,key:Tt,type:Dt,menu:ht,overlay:At,onClick:Pn,className:wn,separator:Ln,dropdownProps:an}=dt,qt=Te($e,bt);qt!==void 0&&Re.push(qt);const Pe=Tt!=null?Tt:yt;if(Dt==="separator")return ce.createElement(je,{key:Pe},Ln);const Fe={},De=yt===Mt.length-1;ht?Fe.menu=ht:At&&(Fe.overlay=At);let{href:tt}=dt;return Re.length&&qt!==void 0&&(tt=`#/${Re.join("/")}`),ce.createElement(x,Object.assign({key:Pe},Fe,(0,Xe.Z)(dt,{data:!0,aria:!0}),{className:wn,dropdownProps:an,href:tt,separator:De?"":ot,onClick:Pn,prefixCls:at}),Ge(dt,$e,_e,Re,tt))})}else if(ln){const Re=(0,Je.Z)(ln).length;de=(0,Je.Z)(ln).map((_e,dt)=>{if(!_e)return _e;const yt=dt===Re-1;return(0,We.Tm)(_e,{separator:yt?"":ot,key:dt})})}const we=he()(at,ut==null?void 0:ut.className,{[`${at}-rtl`]:et==="rtl"},rt,It,Kt),pe=Object.assign(Object.assign({},ut==null?void 0:ut.style),Qe);return $t(ce.createElement("nav",Object.assign({className:we,style:pe},Ke),ce.createElement("ol",null,de)))};mt.Item=E,mt.Separator=je;var Nt=mt,Et=Nt},91857:function(Ce,it,ge){"use strict";var ae=ge(59301),he=ge(38819),Je=ge(92310),Xe=ge.n(Je),ce=ge(31561),We=ge(70425),ue=ge(18929),nt=ge(2738),Me=ge(79676),Ae=ge(53487),je=ge(92343),ze=ge(36355),Ie=ge(20834),ne=ge(40875),a=ge(88088),y=ge(47211);const x=null,b=te=>{const{menu:oe,arrow:re,prefixCls:ie,children:me,trigger:le,disabled:Ee,dropdownRender:Te,getPopupContainer:mt,overlayClassName:Nt,rootClassName:Et,open:Le,onOpenChange:Ve,visible:ot,onVisibleChange:Qe,mouseEnterDelay:rt=.15,mouseLeaveDelay:It=.1,autoAdjustOverflow:kt=!0,placement:jt="",overlay:ln,transitionName:be}=te,{getPopupContainer:$e,getPrefixCls:Ke,direction:wt}=ae.useContext(ze.E_),et=ae.useMemo(()=>{const ht=Ke();return be!==void 0?be:jt.includes("top")?`${ht}-slide-down`:`${ht}-slide-up`},[Ke,jt,be]),ut=ae.useMemo(()=>jt?jt.includes("Center")?jt.slice(0,jt.indexOf("Center")):jt:wt==="rtl"?"bottomRight":"bottomLeft",[jt,wt]),de=Ke("dropdown",ie),[at,$t]=(0,y.Z)(de),[,Kt]=(0,a.Z)(),Mt=ae.Children.only(me),Ge=(0,je.Tm)(Mt,{className:Xe()(`${de}-trigger`,{[`${de}-rtl`]:wt==="rtl"},Mt.props.className),disabled:Ee}),we=Ee?[]:le;let pe;we&&we.includes("contextMenu")&&(pe=!0);const[Re,_e]=(0,ue.Z)(!1,{value:Le!=null?Le:ot}),dt=(0,We.useEvent)(ht=>{Ve==null||Ve(ht),Qe==null||Qe(ht),_e(ht)}),yt=Xe()(Nt,Et,$t,{[`${de}-rtl`]:wt==="rtl"}),bt=(0,Me.Z)({arrowPointAtCenter:typeof re=="object"&&re.pointAtCenter,autoAdjustOverflow:kt,offset:Kt.marginXXS,arrowWidth:re?Kt.sizePopupArrow:0,borderRadius:Kt.borderRadius}),Tt=ae.useCallback(()=>{_e(!1)},[]),Dt=()=>{let ht;return oe!=null&&oe.items?ht=ae.createElement(Ie.default,Object.assign({},oe)):typeof ln=="function"?ht=ln():ht=ln,Te&&(ht=Te(ht)),ht=ae.Children.only(typeof ht=="string"?ae.createElement("span",null,ht):ht),ae.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ae.createElement("span",{className:`${de}-menu-submenu-arrow`},ae.createElement(he.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Tt,validator:At=>{let{mode:Pn}=At}},ht)};return at(ae.createElement(ce.Z,Object.assign({alignPoint:pe},(0,nt.Z)(te,["rootClassName"]),{mouseEnterDelay:rt,mouseLeaveDelay:It,visible:Re,builtinPlacements:bt,arrow:!!re,overlayClassName:yt,prefixCls:de,getPopupContainer:mt||$e,transitionName:et,trigger:we,overlay:Dt,placement:ut,onVisibleChange:dt}),Ge))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Ae.Z)(b,"dropdown",te=>te,E),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,it.Z=b},47211:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return je}});var ae=ge(17313),he=ge(13826),Je=ge(92899),Xe=ge(29878),ce=ge(19447),We=ge(83116),ue=ge(37613),Me=ze=>{const{componentCls:Ie,menuCls:ne,colorError:a,colorTextLightSolid:y}=ze,x=`${ne}-item`;return{[`${Ie}, ${Ie}-menu-submenu`]:{[`${ne} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Ae=ze=>{const{componentCls:Ie,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:re,fontSizeIcon:ie,controlPaddingHorizontal:me,colorBgElevated:le}=ze;return[{[Ie]:Object.assign(Object.assign({},(0,ae.Wf)(ze)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ie}},[`${Ie}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Ie}-wrap-open`]:{[`${E}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Ie}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Ie}-placement-bottomRight`]:{animationName:he.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Ie}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Ie}-placement-topRight`]:{animationName:he.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Ie}-placement-bottomRight`]:{animationName:he.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Ie}-placement-topRight`]:{animationName:he.ly}})},(0,ce.ZP)(ze,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Ie} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ie}, ${Ie}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:ze.borderRadiusLG,outline:"none",boxShadow:ze.boxShadowSecondary},(0,ae.Qy)(ze)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${me}px`,color:ze.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:ze.marginXS,fontSize:ze.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:ze.colorText,fontWeight:"normal",fontSize:te,lineHeight:ze.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ze.borderRadiusSM,"&:hover, &-active":{backgroundColor:ze.controlItemBgHover}},(0,ae.Qy)(ze)),{"&-selected":{color:ze.colorPrimary,backgroundColor:ze.controlItemBgActive,"&:hover, &-active":{backgroundColor:ze.controlItemBgActiveHover}},"&-disabled":{color:re,cursor:"not-allowed","&:hover":{color:re,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ze.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ze.colorSplit},[`${Ie}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ze.paddingXS,[`${Ie}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ze.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${ze.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:me+ze.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Ie}-menu-submenu-title`]:{[`&, ${Ie}-menu-submenu-arrow-icon`]:{color:re,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Ie}-menu-submenu-title`]:{color:ze.colorPrimary}})}},[(0,he.oN)(ze,"slide-up"),(0,he.oN)(ze,"slide-down"),(0,Je.Fm)(ze,"move-up"),(0,Je.Fm)(ze,"move-down"),(0,Xe._y)(ze,"zoom-big")]]};var je=(0,We.Z)("Dropdown",(ze,Ie)=>{let{rootPrefixCls:ne}=Ie;const{marginXXS:a,sizePopupArrow:y,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=ze,oe=(x-b*E)/2,{dropdownArrowOffset:re}=(0,ce.fS)({contentRadius:te}),ie=(0,ue.TS)(ze,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:re,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Ae(ie),Me(ie)]},ze=>({zIndexPopup:ze.zIndexPopupBase+50}))},45818:function(Ce,it,ge){"use strict";ge.d(it,{D:function(){return z},Z:function(){return oe}});var ae=ge(32855),he=ge(59301),Je={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Xe=Je,ce=ge(7657),We=function(ie,me){return he.createElement(ce.Z,(0,ae.Z)({},ie,{ref:me,icon:Xe}))},ue=he.forwardRef(We),nt=ue,Me=ge(33853),Ae=ge(38819),je=ge(92310),ze=ge.n(je),Ie=ge(2738),a=re=>!isNaN(parseFloat(re))&&isFinite(re),y=ge(36355),x=ge(84966),b=function(re,ie){var me={};for(var le in re)Object.prototype.hasOwnProperty.call(re,le)&&ie.indexOf(le)<0&&(me[le]=re[le]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ee=0,le=Object.getOwnPropertySymbols(re);Ee<le.length;Ee++)ie.indexOf(le[Ee])<0&&Object.prototype.propertyIsEnumerable.call(re,le[Ee])&&(me[le[Ee]]=re[le[Ee]]);return me};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=he.createContext({}),ee=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var oe=he.forwardRef((re,ie)=>{const{prefixCls:me,className:le,trigger:Ee,children:Te,defaultCollapsed:mt=!1,theme:Nt="dark",style:Et={},collapsible:Le=!1,reverseArrow:Ve=!1,width:ot=200,collapsedWidth:Qe=80,zeroWidthTriggerStyle:rt,breakpoint:It,onCollapse:kt,onBreakpoint:jt}=re,ln=b(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:be}=(0,he.useContext)(x.Gs),[$e,Ke]=(0,he.useState)("collapsed"in re?re.collapsed:mt),[wt,et]=(0,he.useState)(!1);(0,he.useEffect)(()=>{"collapsed"in re&&Ke(re.collapsed)},[re.collapsed]);const ut=(Ge,we)=>{"collapsed"in re||Ke(Ge),kt==null||kt(Ge,we)},de=(0,he.useRef)();de.current=Ge=>{et(Ge.matches),jt==null||jt(Ge.matches),$e!==Ge.matches&&ut(Ge.matches,"responsive")},(0,he.useEffect)(()=>{function Ge(pe){return de.current(pe)}let we;if(typeof window!="undefined"){const{matchMedia:pe}=window;if(pe&&It&&It in E){we=pe(`(max-width: ${E[It]})`);try{we.addEventListener("change",Ge)}catch(Re){we.addListener(Ge)}Ge(we)}}return()=>{try{we==null||we.removeEventListener("change",Ge)}catch(pe){we==null||we.removeListener(Ge)}}},[It]),(0,he.useEffect)(()=>{const Ge=ee("ant-sider-");return be.addSider(Ge),()=>be.removeSider(Ge)},[]);const at=()=>{ut(!$e,"clickTrigger")},{getPrefixCls:$t}=(0,he.useContext)(y.E_),Kt=()=>{const Ge=$t("layout-sider",me),we=(0,Ie.Z)(ln,["collapsed"]),pe=$e?Qe:ot,Re=a(pe)?`${pe}px`:String(pe),_e=parseFloat(String(Qe||0))===0?he.createElement("span",{onClick:at,className:ze()(`${Ge}-zero-width-trigger`,`${Ge}-zero-width-trigger-${Ve?"right":"left"}`),style:rt},Ee||he.createElement(nt,null)):null,bt={expanded:Ve?he.createElement(Ae.Z,null):he.createElement(Me.Z,null),collapsed:Ve?he.createElement(Me.Z,null):he.createElement(Ae.Z,null)}[$e?"collapsed":"expanded"],Tt=Ee!==null?_e||he.createElement("div",{className:`${Ge}-trigger`,onClick:at,style:{width:Re}},Ee||bt):null,Dt=Object.assign(Object.assign({},Et),{flex:`0 0 ${Re}`,maxWidth:Re,minWidth:Re,width:Re}),ht=ze()(Ge,`${Ge}-${Nt}`,{[`${Ge}-collapsed`]:!!$e,[`${Ge}-has-trigger`]:Le&&Ee!==null&&!_e,[`${Ge}-below`]:!!wt,[`${Ge}-zero-width`]:parseFloat(Re)===0},le);return he.createElement("aside",Object.assign({className:ht},we,{style:Dt,ref:ie}),he.createElement("div",{className:`${Ge}-children`},Te),Le||wt&&_e?Tt:null)},Mt=he.useMemo(()=>({siderCollapsed:$e}),[$e]);return he.createElement(z.Provider,{value:Mt},Kt())})},84966:function(Ce,it,ge){"use strict";ge.d(it,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Ie},ZP:function(){return ee}});var ae=ge(3300),he=ge(92310),Je=ge.n(he),Xe=ge(2738),ce=ge(59301),We=ge(36355),ue=ge(83116),Me=te=>{const{componentCls:oe,bodyBg:re,lightSiderBg:ie,lightTriggerBg:me,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:le,background:me},[`${oe}-sider-zero-width-trigger`]:{color:le,background:me,border:`1px solid ${re}`,borderInlineStart:0}}}};const Ae=te=>{const{antCls:oe,componentCls:re,colorText:ie,triggerColor:me,footerBg:le,triggerBg:Ee,headerHeight:Te,headerPadding:mt,headerColor:Nt,footerPadding:Et,triggerHeight:Le,zeroTriggerHeight:Ve,zeroTriggerWidth:ot,motionDurationMid:Qe,motionDurationSlow:rt,fontSize:It,borderRadius:kt,bodyBg:jt,headerBg:ln,siderBg:be}=te;return{[re]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:jt,"&, *":{boxSizing:"border-box"},[`&${re}-has-sider`]:{flexDirection:"row",[`> ${re}, > ${re}-content`]:{width:0}},[`${re}-header, &${re}-footer`]:{flex:"0 0 auto"},[`${re}-sider`]:{position:"relative",minWidth:0,background:be,transition:`all ${Qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:me,lineHeight:`${Le}px`,textAlign:"center",background:Ee,cursor:"pointer",transition:`all ${Qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Te,insetInlineEnd:-ot,zIndex:1,width:ot,height:Ve,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:be,borderStartStartRadius:0,borderStartEndRadius:kt,borderEndEndRadius:kt,borderEndStartRadius:0,cursor:"pointer",transition:`background ${rt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${rt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-ot,borderStartStartRadius:kt,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:kt}}}}},Me(te)),{"&-rtl":{direction:"rtl"}}),[`${re}-header`]:{height:Te,padding:mt,color:Nt,lineHeight:`${Te}px`,background:ln,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${re}-footer`]:{padding:Et,color:ie,fontSize:It,background:le},[`${re}-content`]:{flex:"auto",minHeight:0}}};var je=(0,ue.Z)("Layout",te=>[Ae(te)],te=>{const{colorBgLayout:oe,controlHeight:re,controlHeightLG:ie,colorText:me,controlHeightSM:le,marginXXS:Ee,colorTextLightSolid:Te,colorBgContainer:mt}=te,Nt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:re*2,headerPadding:`0 ${Nt}px`,headerColor:me,footerPadding:`${le}px ${Nt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Ee*2,triggerBg:"#002140",triggerColor:Te,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:mt,lightTriggerBg:mt,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ze=function(te,oe){var re={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(re[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ie=Object.getOwnPropertySymbols(te);me<ie.length;me++)oe.indexOf(ie[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[me])&&(re[ie[me]]=te[ie[me]]);return re};const Ie=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:re,displayName:ie}=te;return me=>ce.forwardRef((Ee,Te)=>ce.createElement(me,Object.assign({ref:Te,suffixCls:oe,tagName:re},Ee)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:re,suffixCls:ie,className:me,tagName:le}=te,Ee=ze(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Te}=ce.useContext(We.E_),mt=Te("layout",re),[Nt,Et]=je(mt),Le=ie?`${mt}-${ie}`:mt;return Nt(ce.createElement(le,Object.assign({className:Je()(re||Le,me,Et),ref:oe},Ee)))}),y=ce.forwardRef((te,oe)=>{const{direction:re}=ce.useContext(We.E_),[ie,me]=ce.useState([]),{prefixCls:le,className:Ee,rootClassName:Te,children:mt,hasSider:Nt,tagName:Et,style:Le}=te,Ve=ze(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),ot=(0,Xe.Z)(Ve,["suffixCls"]),{getPrefixCls:Qe,layout:rt}=ce.useContext(We.E_),It=Qe("layout",le),[kt,jt]=je(It),ln=Je()(It,{[`${It}-has-sider`]:typeof Nt=="boolean"?Nt:ie.length>0,[`${It}-rtl`]:re==="rtl"},rt==null?void 0:rt.className,Ee,Te,jt),be=ce.useMemo(()=>({siderHook:{addSider:$e=>{me(Ke=>[].concat((0,ae.Z)(Ke),[$e]))},removeSider:$e=>{me(Ke=>Ke.filter(wt=>wt!==$e))}}}),[]);return kt(ce.createElement(Ie.Provider,{value:be},ce.createElement(Et,Object.assign({ref:oe,className:ln,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),Le)},ot),mt)))}),x=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=x},40875:function(Ce,it,ge){"use strict";ge.d(it,{J:function(){return We}});var ae=ge(59301),he=ge(33234),Je=ge(70425),Xe=function(ue,nt){var Me={};for(var Ae in ue)Object.prototype.hasOwnProperty.call(ue,Ae)&&nt.indexOf(Ae)<0&&(Me[Ae]=ue[Ae]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Ae=Object.getOwnPropertySymbols(ue);je<Ae.length;je++)nt.indexOf(Ae[je])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ae[je])&&(Me[Ae[je]]=ue[Ae[je]]);return Me};const ce=ae.createContext(null),We=ae.forwardRef((ue,nt)=>{const{children:Me}=ue,Ae=Xe(ue,["children"]),je=ae.useContext(ce),ze=ae.useMemo(()=>Object.assign(Object.assign({},je),Ae),[je,Ae.prefixCls,Ae.mode,Ae.selectable]);return ae.createElement(ce.Provider,{value:ze},ae.createElement(he.BR,null,(0,Je.supportNodeRef)(Me)?ae.cloneElement(Me,{ref:nt}):Me))});it.Z=ce},20834:function(Ce,it,ge){"use strict";ge.d(it,{default:function(){return Mt}});var ae=ge(15285),he=ge(59301),Je=ge(45818),Xe=ge(92310),ce=ge.n(Xe),We=ge(36355),ue=function(Ge,we){var pe={};for(var Re in Ge)Object.prototype.hasOwnProperty.call(Ge,Re)&&we.indexOf(Re)<0&&(pe[Re]=Ge[Re]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Re=Object.getOwnPropertySymbols(Ge);_e<Re.length;_e++)we.indexOf(Re[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Re[_e])&&(pe[Re[_e]]=Ge[Re[_e]]);return pe},Me=Ge=>{const{prefixCls:we,className:pe,dashed:Re}=Ge,_e=ue(Ge,["prefixCls","className","dashed"]),{getPrefixCls:dt}=he.useContext(We.E_),yt=dt("menu",we),bt=ce()({[`${yt}-item-divider-dashed`]:!!Re},pe);return he.createElement(ae.iz,Object.assign({className:bt},_e))},Ae=ge(11592),je=ge(2738),ze=ge(6848),Ie=ge(92343),a=(0,he.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=Ge=>{var we;const{className:pe,children:Re,icon:_e,title:dt,danger:yt}=Ge,{prefixCls:bt,firstLevel:Tt,direction:Dt,disableMenuItemTitleTooltip:ht,inlineCollapsed:At}=he.useContext(a),Pn=Fe=>{const De=he.createElement("span",{className:`${bt}-title-content`},Re);return(!_e||(0,Ie.l$)(Re)&&Re.type==="span")&&Re&&Fe&&Tt&&typeof Re=="string"?he.createElement("div",{className:`${bt}-inline-collapsed-noicon`},Re.charAt(0)):De},{siderCollapsed:wn}=he.useContext(Je.D);let Ln=dt;typeof dt=="undefined"?Ln=Tt?Re:"":dt===!1&&(Ln="");const an={title:Ln};!wn&&!At&&(an.title=null,an.open=!1);const qt=(0,Ae.Z)(Re).length;let Pe=he.createElement(ae.ck,Object.assign({},(0,je.Z)(Ge,["title","icon","danger"]),{className:ce()({[`${bt}-item-danger`]:yt,[`${bt}-item-only-child`]:(_e?qt+1:qt)===1},pe),title:typeof dt=="string"?dt:void 0}),(0,Ie.Tm)(_e,{className:ce()((0,Ie.l$)(_e)?(we=_e.props)===null||we===void 0?void 0:we.className:"",`${bt}-item-icon`)}),Pn(At));return ht||(Pe=he.createElement(ze.Z,Object.assign({},an,{placement:Dt==="rtl"?"left":"right",overlayClassName:`${bt}-inline-collapsed-tooltip`}),Pe)),Pe},E=Ge=>{var we;const{popupClassName:pe,icon:Re,title:_e,theme:dt}=Ge,yt=he.useContext(a),{prefixCls:bt,inlineCollapsed:Tt,theme:Dt}=yt,ht=(0,ae.Xl)();let At;if(!Re)At=Tt&&!ht.length&&_e&&typeof _e=="string"?he.createElement("div",{className:`${bt}-inline-collapsed-noicon`},_e.charAt(0)):he.createElement("span",{className:`${bt}-title-content`},_e);else{const wn=(0,Ie.l$)(_e)&&_e.type==="span";At=he.createElement(he.Fragment,null,(0,Ie.Tm)(Re,{className:ce()((0,Ie.l$)(Re)?(we=Re.props)===null||we===void 0?void 0:we.className:"",`${bt}-item-icon`)}),wn?_e:he.createElement("span",{className:`${bt}-title-content`},_e))}const Pn=he.useMemo(()=>Object.assign(Object.assign({},yt),{firstLevel:!1}),[yt]);return he.createElement(a.Provider,{value:Pn},he.createElement(ae.Wd,Object.assign({},(0,je.Z)(Ge,["icon"]),{title:At,popupClassName:ce()(bt,pe,`${bt}-${dt||Dt}`)})))},z=ge(18785),ee=ge(70425),te=ge(62892),oe=ge(40875),re=function(Ge,we){var pe={};for(var Re in Ge)Object.prototype.hasOwnProperty.call(Ge,Re)&&we.indexOf(Re)<0&&(pe[Re]=Ge[Re]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Re=Object.getOwnPropertySymbols(Ge);_e<Re.length;_e++)we.indexOf(Re[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Re[_e])&&(pe[Re[_e]]=Ge[Re[_e]]);return pe};function ie(Ge){return(Ge||[]).map((we,pe)=>{if(we&&typeof we=="object"){const Re=we,{label:_e,children:dt,key:yt,type:bt}=Re,Tt=re(Re,["label","children","key","type"]),Dt=yt!=null?yt:`tmp-${pe}`;return dt||bt==="group"?bt==="group"?he.createElement(ae.BW,Object.assign({key:Dt},Tt,{title:_e}),ie(dt)):he.createElement(E,Object.assign({key:Dt},Tt,{title:_e}),ie(dt)):bt==="divider"?he.createElement(Me,Object.assign({key:Dt},Tt)):he.createElement(x,Object.assign({key:Dt},Tt),_e)}return null}).filter(we=>we)}function me(Ge){return he.useMemo(()=>Ge&&ie(Ge),[Ge])}var le=ge(64993),Ee=ge(17313),Te=ge(8378),mt=ge(13826),Nt=ge(29878),Et=ge(83116),Le=ge(37613),ot=Ge=>{const{componentCls:we,motionDurationSlow:pe,horizontalLineHeight:Re,colorSplit:_e,lineWidth:dt,lineType:yt,itemPaddingInline:bt}=Ge;return{[`${we}-horizontal`]:{lineHeight:Re,border:0,borderBottom:`${dt}px ${yt} ${_e}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${we}-item, ${we}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:bt},[`> ${we}-item:hover,
|
|
> ${we}-item-active,
|
|
> ${we}-submenu ${we}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${we}-item, ${we}-submenu-title`]:{transition:[`border-color ${pe}`,`background ${pe}`].join(",")},[`${we}-submenu-arrow`]:{display:"none"}}}},rt=Ge=>{let{componentCls:we,menuArrowOffset:pe}=Ge;return{[`${we}-rtl`]:{direction:"rtl"},[`${we}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${we}-rtl${we}-vertical,
|
|
${we}-submenu-rtl ${we}-vertical`]:{[`${we}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${pe})`},"&::after":{transform:`rotate(45deg) translateY(${pe})`}}}}};const It=Ge=>Object.assign({},(0,Ee.oN)(Ge));var jt=(Ge,we)=>{const{componentCls:pe,itemColor:Re,itemSelectedColor:_e,groupTitleColor:dt,itemBg:yt,subMenuItemBg:bt,itemSelectedBg:Tt,activeBarHeight:Dt,activeBarWidth:ht,activeBarBorderWidth:At,motionDurationSlow:Pn,motionEaseInOut:wn,motionEaseOut:Ln,itemPaddingInline:an,motionDurationMid:qt,itemHoverColor:Pe,lineType:Fe,colorSplit:De,itemDisabledColor:tt,dangerItemColor:lt,dangerItemHoverColor:Ct,dangerItemSelectedColor:Ot,dangerItemActiveBg:pt,dangerItemSelectedBg:Gt,itemHoverBg:Ut,itemActiveBg:Wt,menuSubMenuBg:Jt,horizontalItemSelectedColor:Sn,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:on,popupBg:en}=Ge;return{[`${pe}-${we}, ${pe}-${we} > ${pe}`]:{color:Re,background:yt,[`&${pe}-root:focus-visible`]:Object.assign({},It(Ge)),[`${pe}-item-group-title`]:{color:dt},[`${pe}-submenu-selected`]:{[`> ${pe}-submenu-title`]:{color:_e}},[`${pe}-item-disabled, ${pe}-submenu-disabled`]:{color:`${tt} !important`},[`${pe}-item:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{[`&:hover, > ${pe}-submenu-title:hover`]:{color:Pe}},[`&:not(${pe}-horizontal)`]:{[`${pe}-item:not(${pe}-item-selected)`]:{"&:hover":{backgroundColor:Ut},"&:active":{backgroundColor:Wt}},[`${pe}-submenu-title`]:{"&:hover":{backgroundColor:Ut},"&:active":{backgroundColor:Wt}}},[`${pe}-item-danger`]:{color:lt,[`&${pe}-item:hover`]:{[`&:not(${pe}-item-selected):not(${pe}-submenu-selected)`]:{color:Ct}},[`&${pe}-item:active`]:{background:pt}},[`${pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${pe}-item-selected`]:{color:_e,[`&${pe}-item-danger`]:{color:Ot},"a, a:hover":{color:"inherit"}},[`& ${pe}-item-selected`]:{backgroundColor:Tt,[`&${pe}-item-danger`]:{backgroundColor:Gt}},[`${pe}-item, ${pe}-submenu-title`]:{[`&:not(${pe}-item-disabled):focus-visible`]:Object.assign({},It(Ge))},[`&${pe}-submenu > ${pe}`]:{backgroundColor:Jt},[`&${pe}-popup > ${pe}`]:{backgroundColor:en},[`&${pe}-horizontal`]:Object.assign(Object.assign({},we==="dark"?{borderBottom:0}:{}),{[`> ${pe}-item, > ${pe}-submenu`]:{top:At,marginTop:-At,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:an,bottom:0,borderBottom:`${Dt}px solid transparent`,transition:`border-color ${Pn} ${wn}`,content:'""'},"&:hover, &-active, &-open":{background:on,"&::after":{borderBottomWidth:Dt,borderBottomColor:Sn}},"&-selected":{color:Sn,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:Dt,borderBottomColor:Sn}}}}),[`&${pe}-root`]:{[`&${pe}-inline, &${pe}-vertical`]:{borderInlineEnd:`${At}px ${Fe} ${De}`}},[`&${pe}-inline`]:{[`${pe}-sub${pe}-inline`]:{background:bt},[`${pe}-item, ${pe}-submenu-title`]:At&&ht?{width:`calc(100% + ${At}px)`}:{},[`${pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ht}px solid ${_e}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${qt} ${Ln}`,`opacity ${qt} ${Ln}`].join(","),content:'""'},[`&${pe}-item-danger`]:{"&::after":{borderInlineEndColor:Ot}}},[`${pe}-selected, ${pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${qt} ${wn}`,`opacity ${qt} ${wn}`].join(",")}}}}}};const ln=Ge=>{const{componentCls:we,itemHeight:pe,itemMarginInline:Re,padding:_e,menuArrowSize:dt,marginXS:yt,itemMarginBlock:bt}=Ge,Tt=_e+dt+yt;return{[`${we}-item`]:{position:"relative",overflow:"hidden"},[`${we}-item, ${we}-submenu-title`]:{height:pe,lineHeight:`${pe}px`,paddingInline:_e,overflow:"hidden",textOverflow:"ellipsis",marginInline:Re,marginBlock:bt,width:`calc(100% - ${Re*2}px)`},[`> ${we}-item,
|
|
> ${we}-submenu > ${we}-submenu-title`]:{height:pe,lineHeight:`${pe}px`},[`${we}-item-group-list ${we}-submenu-title,
|
|
${we}-submenu-title`]:{paddingInlineEnd:Tt}}};var $e=Ge=>{const{componentCls:we,iconCls:pe,itemHeight:Re,colorTextLightSolid:_e,dropdownWidth:dt,controlHeightLG:yt,motionDurationMid:bt,motionEaseOut:Tt,paddingXL:Dt,itemMarginInline:ht,fontSizeLG:At,motionDurationSlow:Pn,paddingXS:wn,boxShadowSecondary:Ln,collapsedWidth:an,collapsedIconSize:qt}=Ge,Pe={height:Re,lineHeight:`${Re}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[we]:{"&-inline, &-vertical":Object.assign({[`&${we}-root`]:{boxShadow:"none"}},ln(Ge))},[`${we}-submenu-popup`]:{[`${we}-vertical`]:Object.assign(Object.assign({},ln(Ge)),{boxShadow:Ln})}},{[`${we}-submenu-popup ${we}-vertical${we}-sub`]:{minWidth:dt,maxHeight:`calc(100vh - ${yt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${we}-inline`]:{width:"100%",[`&${we}-root`]:{[`${we}-item, ${we}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pn}`,`background ${Pn}`,`padding ${bt} ${Tt}`].join(","),[`> ${we}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${we}-sub${we}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${we}-submenu > ${we}-submenu-title`]:Pe,[`& ${we}-item-group-title`]:{paddingInlineStart:Dt}},[`${we}-item`]:Pe}},{[`${we}-inline-collapsed`]:{width:an,[`&${we}-root`]:{[`${we}-item, ${we}-submenu ${we}-submenu-title`]:{[`> ${we}-inline-collapsed-noicon`]:{fontSize:At,textAlign:"center"}}},[`> ${we}-item,
|
|
> ${we}-item-group > ${we}-item-group-list > ${we}-item,
|
|
> ${we}-item-group > ${we}-item-group-list > ${we}-submenu > ${we}-submenu-title,
|
|
> ${we}-submenu > ${we}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${At/2}px - ${ht}px)`,textOverflow:"clip",[`
|
|
${we}-submenu-arrow,
|
|
${we}-submenu-expand-icon
|
|
`]:{opacity:0},[`${we}-item-icon, ${pe}`]:{margin:0,fontSize:qt,lineHeight:`${Re}px`,"+ span":{display:"inline-block",opacity:0}}},[`${we}-item-icon, ${pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${we}-item-icon, ${pe}`]:{display:"none"},"a, a:hover":{color:_e}},[`${we}-item-group-title`]:Object.assign(Object.assign({},Ee.vS),{paddingInline:wn})}}]};const Ke=Ge=>{const{componentCls:we,motionDurationSlow:pe,motionDurationMid:Re,motionEaseInOut:_e,motionEaseOut:dt,iconCls:yt,iconSize:bt,iconMarginInlineEnd:Tt}=Ge;return{[`${we}-item, ${we}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${pe}`,`background ${pe}`,`padding ${pe} ${_e}`].join(","),[`${we}-item-icon, ${yt}`]:{minWidth:bt,fontSize:bt,transition:[`font-size ${Re} ${dt}`,`margin ${pe} ${_e}`,`color ${pe}`].join(","),"+ span":{marginInlineStart:Tt,opacity:1,transition:[`opacity ${pe} ${_e}`,`margin ${pe}`,`color ${pe}`].join(",")}},[`${we}-item-icon`]:Object.assign({},(0,Ee.Ro)()),[`&${we}-item-only-child`]:{[`> ${yt}, > ${we}-item-icon`]:{marginInlineEnd:0}}},[`${we}-item-disabled, ${we}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${we}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},wt=Ge=>{const{componentCls:we,motionDurationSlow:pe,motionEaseInOut:Re,borderRadius:_e,menuArrowSize:dt,menuArrowOffset:yt}=Ge;return{[`${we}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ge.margin,width:dt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${pe} ${Re}, opacity ${pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:dt*.6,height:dt*.15,backgroundColor:"currentcolor",borderRadius:_e,transition:[`background ${pe} ${Re}`,`transform ${pe} ${Re}`,`top ${pe} ${Re}`,`color ${pe} ${Re}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${yt})`},"&::after":{transform:`rotate(-45deg) translateY(${yt})`}}}}},et=Ge=>{const{antCls:we,componentCls:pe,fontSize:Re,motionDurationSlow:_e,motionDurationMid:dt,motionEaseInOut:yt,paddingXS:bt,padding:Tt,colorSplit:Dt,lineWidth:ht,zIndexPopup:At,borderRadiusLG:Pn,subMenuItemBorderRadius:wn,menuArrowSize:Ln,menuArrowOffset:an,lineType:qt,menuPanelMaskInset:Pe,groupTitleLineHeight:Fe,groupTitleFontSize:De}=Ge;return[{"":{[`${pe}`]:Object.assign(Object.assign({},(0,Ee.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,Ee.Wf)(Ge)),(0,Ee.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Re,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${_e} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${pe}-item`]:{flex:"none"}},[`${pe}-item, ${pe}-submenu, ${pe}-submenu-title`]:{borderRadius:Ge.itemBorderRadius},[`${pe}-item-group-title`]:{padding:`${bt}px ${Tt}px`,fontSize:De,lineHeight:Fe,transition:`all ${_e}`},[`&-horizontal ${pe}-submenu`]:{transition:[`border-color ${_e} ${yt}`,`background ${_e} ${yt}`].join(",")},[`${pe}-submenu, ${pe}-submenu-inline`]:{transition:[`border-color ${_e} ${yt}`,`background ${_e} ${yt}`,`padding ${dt} ${yt}`].join(",")},[`${pe}-submenu ${pe}-sub`]:{cursor:"initial",transition:[`background ${_e} ${yt}`,`padding ${_e} ${yt}`].join(",")},[`${pe}-title-content`]:{transition:`color ${_e}`},[`${pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Dt,borderStyle:qt,borderWidth:0,borderTopWidth:ht,marginBlock:ht,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ke(Ge)),{[`${pe}-item-group`]:{[`${pe}-item-group-list`]:{margin:0,padding:0,[`${pe}-item, ${pe}-submenu-title`]:{paddingInline:`${Re*2}px ${Tt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:At,borderRadius:Pn,boxShadow:"none",transformOrigin:"0 0",[`&${pe}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Pe},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Ge.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ge.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ge.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ge.paddingXS},[`> ${pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pn},Ke(Ge)),wt(Ge)),{[`${pe}-item, ${pe}-submenu > ${pe}-submenu-title`]:{borderRadius:wn},[`${pe}-submenu-title::after`]:{transition:`transform ${_e} ${yt}`}})}}),wt(Ge)),{[`&-inline-collapsed ${pe}-submenu-arrow,
|
|
&-inline ${pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${an})`},"&::after":{transform:`rotate(45deg) translateX(-${an})`}},[`${pe}-submenu-open${pe}-submenu-inline > ${pe}-submenu-title > ${pe}-submenu-arrow`]:{transform:`translateY(-${Ln*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${an})`},"&::before":{transform:`rotate(45deg) translateX(${an})`}}})},{[`${we}-layout-header`]:{[pe]:{lineHeight:"inherit"}}}]};var ut=(Ge,we)=>(0,Et.Z)("Menu",Re=>{if(we===!1)return[];const{colorBgElevated:_e,colorPrimary:dt,colorTextLightSolid:yt,controlHeightLG:bt,fontSize:Tt,darkItemColor:Dt,darkDangerItemColor:ht,darkItemBg:At,darkSubMenuItemBg:Pn,darkItemSelectedColor:wn,darkItemSelectedBg:Ln,darkDangerItemSelectedBg:an,darkItemHoverBg:qt,darkGroupTitleColor:Pe,darkItemHoverColor:Fe,darkItemDisabledColor:De,darkDangerItemHoverColor:tt,darkDangerItemSelectedColor:lt,darkDangerItemActiveBg:Ct}=Re,Ot=Tt/7*5,pt=(0,Le.TS)(Re,{menuArrowSize:Ot,menuHorizontalHeight:bt*1.15,menuArrowOffset:`${Ot*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:_e}),Gt=(0,Le.TS)(pt,{itemColor:Dt,itemHoverColor:Fe,groupTitleColor:Pe,itemSelectedColor:wn,itemBg:At,popupBg:At,subMenuItemBg:Pn,itemActiveBg:"transparent",itemSelectedBg:Ln,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:qt,itemDisabledColor:De,dangerItemColor:ht,dangerItemHoverColor:tt,dangerItemSelectedColor:lt,dangerItemActiveBg:Ct,dangerItemSelectedBg:an,menuSubMenuBg:Pn,horizontalItemSelectedColor:yt,horizontalItemSelectedBg:dt});return[et(pt),ot(pt),$e(pt),jt(pt,"light"),jt(Gt,"dark"),rt(pt),(0,Te.Z)(pt),(0,mt.oN)(pt,"slide-up"),(0,mt.oN)(pt,"slide-down"),(0,Nt._y)(pt,"zoom-big")]},Re=>{const{colorPrimary:_e,colorError:dt,colorTextDisabled:yt,colorErrorBg:bt,colorText:Tt,colorTextDescription:Dt,colorBgContainer:ht,colorFillAlter:At,colorFillContent:Pn,lineWidth:wn,lineWidthBold:Ln,controlItemBgActive:an,colorBgTextHover:qt,controlHeightLG:Pe,lineHeight:Fe,colorBgElevated:De,marginXXS:tt,padding:lt,fontSize:Ct,controlHeightSM:Ot,fontSizeLG:pt,colorTextLightSolid:Gt,colorErrorHover:Ut}=Re,Wt=new le.C(Gt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Re.zIndexPopupBase+50,radiusItem:Re.borderRadiusLG,itemBorderRadius:Re.borderRadiusLG,radiusSubMenuItem:Re.borderRadiusSM,subMenuItemBorderRadius:Re.borderRadiusSM,colorItemText:Tt,itemColor:Tt,colorItemTextHover:Tt,itemHoverColor:Tt,colorItemTextHoverHorizontal:_e,horizontalItemHoverColor:_e,colorGroupTitle:Dt,groupTitleColor:Dt,colorItemTextSelected:_e,itemSelectedColor:_e,colorItemTextSelectedHorizontal:_e,horizontalItemSelectedColor:_e,colorItemBg:ht,itemBg:ht,colorItemBgHover:qt,itemHoverBg:qt,colorItemBgActive:Pn,itemActiveBg:an,colorSubItemBg:At,subMenuItemBg:At,colorItemBgSelected:an,itemSelectedBg:an,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ln,activeBarHeight:Ln,colorActiveBarBorderSize:wn,activeBarBorderWidth:wn,colorItemTextDisabled:yt,itemDisabledColor:yt,colorDangerItemText:dt,dangerItemColor:dt,colorDangerItemTextHover:dt,dangerItemHoverColor:dt,colorDangerItemTextSelected:dt,dangerItemSelectedColor:dt,colorDangerItemBgActive:bt,dangerItemActiveBg:bt,colorDangerItemBgSelected:bt,dangerItemSelectedBg:bt,itemMarginInline:Re.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Pe,groupTitleLineHeight:Fe,collapsedWidth:Pe*2,popupBg:De,itemMarginBlock:tt,itemPaddingInline:lt,horizontalLineHeight:`${Pe*1.15}px`,iconSize:Ct,iconMarginInlineEnd:Ot-Ct,collapsedIconSize:pt,groupTitleFontSize:Ct,darkItemDisabledColor:new le.C(Gt).setAlpha(.25).toRgbString(),darkItemColor:Wt,darkDangerItemColor:dt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Gt,darkItemSelectedBg:_e,darkDangerItemSelectedBg:dt,darkItemHoverBg:"transparent",darkGroupTitleColor:Wt,darkItemHoverColor:Gt,darkDangerItemHoverColor:Ut,darkDangerItemSelectedColor:Gt,darkDangerItemActiveBg:dt}},{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"]]})(Ge),de=function(Ge,we){var pe={};for(var Re in Ge)Object.prototype.hasOwnProperty.call(Ge,Re)&&we.indexOf(Re)<0&&(pe[Re]=Ge[Re]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _e=0,Re=Object.getOwnPropertySymbols(Ge);_e<Re.length;_e++)we.indexOf(Re[_e])<0&&Object.prototype.propertyIsEnumerable.call(Ge,Re[_e])&&(pe[Re[_e]]=Ge[Re[_e]]);return pe},$t=(0,he.forwardRef)((Ge,we)=>{var pe,Re;const _e=he.useContext(oe.Z),dt=_e||{},{getPrefixCls:yt,getPopupContainer:bt,direction:Tt,menu:Dt}=he.useContext(We.E_),ht=yt(),{prefixCls:At,className:Pn,style:wn,theme:Ln="light",expandIcon:an,_internalDisableMenuItemTitleTooltip:qt,inlineCollapsed:Pe,siderCollapsed:Fe,items:De,children:tt,rootClassName:lt,mode:Ct,selectable:Ot,onClick:pt,overflowedIndicatorPopupClassName:Gt}=Ge,Ut=de(Ge,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Wt=(0,je.Z)(Ut,["collapsedWidth"]),Jt=me(De)||tt;(pe=dt.validator)===null||pe===void 0||pe.call(dt,{mode:Ct});const Sn=(0,ee.useEvent)(function(){var In;pt==null||pt.apply(void 0,arguments),(In=dt.onClick)===null||In===void 0||In.call(dt)}),hn=dt.mode||Ct,Fn=Ot!=null?Ot:dt.selectable,on=he.useMemo(()=>Fe!==void 0?Fe:Pe,[Pe,Fe]),en={horizontal:{motionName:`${ht}-slide-up`},inline:(0,te.Z)(ht),other:{motionName:`${ht}-zoom-big`}},pn=yt("menu",At||dt.prefixCls),[Cn,En]=ut(pn,!_e),sn=ce()(`${pn}-${Ln}`,Dt==null?void 0:Dt.className,Pn);let Nn;if(typeof an=="function")Nn=an;else if(an===null||an===!1)Nn=null;else if(dt.expandIcon===null||dt.expandIcon===!1)Nn=null;else{const In=an!=null?an:dt.expandIcon;Nn=(0,Ie.Tm)(In,{className:ce()(`${pn}-submenu-expand-icon`,(0,Ie.l$)(In)?(Re=In.props)===null||Re===void 0?void 0:Re.className:"")})}const Yn=he.useMemo(()=>({prefixCls:pn,inlineCollapsed:on||!1,direction:Tt,firstLevel:!0,theme:Ln,mode:hn,disableMenuItemTitleTooltip:qt}),[pn,on,Tt,qt,Ln]);return Cn(he.createElement(oe.Z.Provider,{value:null},he.createElement(a.Provider,{value:Yn},he.createElement(ae.ZP,Object.assign({getPopupContainer:bt,overflowedIndicator:he.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(pn,`${pn}-${Ln}`,Gt),mode:hn,selectable:Fn,onClick:Sn},Wt,{inlineCollapsed:on,style:Object.assign(Object.assign({},Dt==null?void 0:Dt.style),wn),className:sn,prefixCls:pn,direction:Tt,defaultMotions:en,expandIcon:Nn,ref:we,rootClassName:ce()(lt,En)}),Jt))))});const Kt=(0,he.forwardRef)((Ge,we)=>{const pe=(0,he.useRef)(null),Re=he.useContext(Je.D);return(0,he.useImperativeHandle)(we,()=>({menu:pe.current,focus:_e=>{var dt;(dt=pe.current)===null||dt===void 0||dt.focus(_e)}})),he.createElement($t,Object.assign({ref:pe},Ge,Re))});Kt.Item=x,Kt.SubMenu=E,Kt.Divider=Me,Kt.ItemGroup=ae.BW;var Mt=Kt},93948:function(Ce,it,ge){"use strict";ge.d(it,{Z:function(){return qt}});var ae=ge(59301),he=ge(29679),Je=ge(40001),Xe=ge(19248),ce=ge(99267),We=ge(92310),ue=ge.n(We),nt=ge(2738),Me=ge(36355),Ae=ge(32855),je=ge(27247),ze=ge(43079),Ie={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Fe=(0,ae.useRef)([]),De=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var tt=Date.now(),lt=!1;Fe.current.forEach(function(Ct){if(Ct){lt=!0;var Ot=Ct.style;Ot.transitionDuration=".3s, .3s, .3s, .06s",De.current&&tt-De.current<100&&(Ot.transitionDuration="0s, 0s")}}),lt&&(De.current=Date.now())}),Fe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Fe){var De=(0,je.Z)((0,je.Z)({},Ie),Fe),tt=De.className,lt=De.percent,Ct=De.prefixCls,Ot=De.strokeColor,pt=De.strokeLinecap,Gt=De.strokeWidth,Ut=De.style,Wt=De.trailColor,Jt=De.trailWidth,Sn=De.transition,hn=(0,ze.Z)(De,a);delete hn.gapPosition;var Fn=Array.isArray(lt)?lt:[lt],on=Array.isArray(Ot)?Ot:[Ot],en=ne(),pn=Gt/2,Cn=100-Gt/2,En="M ".concat(pt==="round"?pn:0,",").concat(pn,`
|
|
L `).concat(pt==="round"?Cn:100,",").concat(pn),sn="0 0 100 ".concat(Gt),Nn=0;return ae.createElement("svg",(0,Ae.Z)({className:ue()("".concat(Ct,"-line"),tt),viewBox:sn,preserveAspectRatio:"none",style:Ut},hn),ae.createElement("path",{className:"".concat(Ct,"-line-trail"),d:En,strokeLinecap:pt,stroke:Wt,strokeWidth:Jt||Gt,fillOpacity:"0"}),Fn.map(function(Yn,In){var Wn=1;switch(pt){case"round":Wn=1-Gt/100;break;case"square":Wn=1-Gt/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:Sn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=on[In]||on[on.length-1];return Nn+=Yn,ae.createElement("path",{key:In,className:"".concat(Ct,"-line-path"),d:En,strokeLinecap:pt,stroke:Jn,strokeWidth:Gt,fillOpacity:"0",ref:function(ve){en[In]=ve},style:na})}))},x=y,b=ge(34666),E=ge(11913),z=ge(47273),ee=0,te=(0,z.Z)();function oe(){var Pe;return te?(Pe=ee,ee+=1):Pe="TEST_OR_SSR",Pe}var re=function(Pe){var Fe=ae.useState(),De=(0,E.Z)(Fe,2),tt=De[0],lt=De[1];return ae.useEffect(function(){lt("rc_progress_".concat(oe()))},[]),Pe||tt},ie=function(Fe){var De=Fe.bg,tt=Fe.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:De}},tt)};function me(Pe,Fe){return Object.keys(Pe).map(function(De){var tt=parseFloat(De),lt="".concat(Math.floor(tt*Fe),"%");return"".concat(Pe[De]," ").concat(lt)})}var le=ae.forwardRef(function(Pe,Fe){var De=Pe.prefixCls,tt=Pe.color,lt=Pe.gradientId,Ct=Pe.radius,Ot=Pe.style,pt=Pe.ptg,Gt=Pe.strokeLinecap,Ut=Pe.strokeWidth,Wt=Pe.size,Jt=Pe.gapDegree,Sn=tt&&(0,b.Z)(tt)==="object",hn=Sn?"#FFF":void 0,Fn=Wt/2,on=ae.createElement("circle",{className:"".concat(De,"-circle-path"),r:Ct,cx:Fn,cy:Fn,stroke:hn,strokeLinecap:Gt,strokeWidth:Ut,opacity:pt===0?0:1,style:Ot,ref:Fe});if(!Sn)return on;var en="".concat(lt,"-conic"),pn=Jt?"".concat(180+Jt/2,"deg"):"0deg",Cn=me(tt,(360-Jt)/360),En=me(tt,1),sn="conic-gradient(from ".concat(pn,", ").concat(Cn.join(", "),")"),Nn="linear-gradient(to ".concat(Jt?"bottom":"top",", ").concat(En.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:en},on),ae.createElement("foreignObject",{x:0,y:0,width:Wt,height:Wt,mask:"url(#".concat(en,")")},ae.createElement(ie,{bg:Nn},ae.createElement(ie,{bg:sn}))))}),Ee=le,Te=100,mt=function(Fe,De,tt,lt,Ct,Ot,pt,Gt,Ut,Wt){var Jt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Sn=tt/100*360*((360-Ot)/360),hn=Ot===0?0:{bottom:0,top:180,left:90,right:-90}[pt],Fn=(100-lt)/100*De;Ut==="round"&<!==100&&(Fn+=Wt/2,Fn>=De&&(Fn=De-.01));var on=Te/2;return{stroke:typeof Gt=="string"?Gt:void 0,strokeDasharray:"".concat(De,"px ").concat(Fe),strokeDashoffset:Fn+Jt,transform:"rotate(".concat(Ct+Sn+hn,"deg)"),transformOrigin:"".concat(on,"px ").concat(on,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Et(Pe){var Fe=Pe!=null?Pe:[];return Array.isArray(Fe)?Fe:[Fe]}var Le=function(Fe){var De=(0,je.Z)((0,je.Z)({},Ie),Fe),tt=De.id,lt=De.prefixCls,Ct=De.steps,Ot=De.strokeWidth,pt=De.trailWidth,Gt=De.gapDegree,Ut=Gt===void 0?0:Gt,Wt=De.gapPosition,Jt=De.trailColor,Sn=De.strokeLinecap,hn=De.style,Fn=De.className,on=De.strokeColor,en=De.percent,pn=(0,ze.Z)(De,Nt),Cn=Te/2,En=re(tt),sn="".concat(En,"-gradient"),Nn=Cn-Ot/2,Yn=Math.PI*2*Nn,In=Ut>0?90+Ut/2:-90,Wn=Yn*((360-Ut)/360),na=(0,b.Z)(Ct)==="object"?Ct:{count:Ct,space:2},Jn=na.count,fe=na.space,ve=Et(en),Se=Et(on),qe=Se.find(function(kn){return kn&&(0,b.Z)(kn)==="object"}),Lt=qe&&(0,b.Z)(qe)==="object",Pt=Lt?"butt":Sn,rn=mt(Yn,Wn,0,100,In,Ut,Wt,Jt,Pt,Ot),Rt=ne(),Vt=function(){var Ye=0;return ve.map(function(Yt,An){var Zn=Se[An]||Se[Se.length-1],Bn=mt(Yn,Wn,Ye,Yt,In,Ut,Wt,Zn,Pt,Ot);return Ye+=Yt,ae.createElement(Ee,{key:An,color:Zn,ptg:Yt,radius:Nn,prefixCls:lt,gradientId:sn,style:Bn,strokeLinecap:Pt,strokeWidth:Ot,gapDegree:Ut,ref:function(xe){Rt[An]=xe},size:Te})}).reverse()},vn=function(){var Ye=Math.round(Jn*(ve[0]/100)),Yt=100/Jn,An=0;return new Array(Jn).fill(null).map(function(Zn,Bn){var se=Bn<=Ye-1?Se[0]:Jt,xe=se&&(0,b.Z)(se)==="object"?"url(#".concat(sn,")"):void 0,Be=mt(Yn,Wn,An,Yt,In,Ut,Wt,se,"butt",Ot,fe);return An+=(Wn-Be.strokeDashoffset+fe)*100/Wn,ae.createElement("circle",{key:Bn,className:"".concat(lt,"-circle-path"),r:Nn,cx:Cn,cy:Cn,stroke:xe,strokeWidth:Ot,opacity:1,style:Be,ref:function(He){Rt[Bn]=He}})})};return ae.createElement("svg",(0,Ae.Z)({className:ue()("".concat(lt,"-circle"),Fn),viewBox:"0 0 ".concat(Te," ").concat(Te),style:hn,id:tt,role:"presentation"},pn),!Jn&&ae.createElement("circle",{className:"".concat(lt,"-circle-trail"),r:Nn,cx:Cn,cy:Cn,stroke:Jt,strokeLinecap:Pt,strokeWidth:pt||Ot,style:rn}),Jn?vn():Vt())},Ve=Le,ot={Line:x,Circle:Ve},Qe=ge(6848),rt=ge(30071);function It(Pe){return!Pe||Pe<0?0:Pe>100?100:Pe}function kt(Pe){let{success:Fe,successPercent:De}=Pe,tt=De;return Fe&&"progress"in Fe&&(tt=Fe.progress),Fe&&"percent"in Fe&&(tt=Fe.percent),tt}const jt=Pe=>{let{percent:Fe,success:De,successPercent:tt}=Pe;const lt=It(kt({success:De,successPercent:tt}));return[lt,It(It(Fe)-lt)]},ln=Pe=>{let{success:Fe={},strokeColor:De}=Pe;const{strokeColor:tt}=Fe;return[tt||rt.presetPrimaryColors.green,De||null]},be=(Pe,Fe,De)=>{var tt,lt,Ct,Ot;let pt=-1,Gt=-1;if(Fe==="step"){const Ut=De.steps,Wt=De.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?(pt=Pe==="small"?2:14,Gt=Wt!=null?Wt:8):typeof Pe=="number"?[pt,Gt]=[Pe,Pe]:[pt=14,Gt=8]=Pe,pt*=Ut}else if(Fe==="line"){const Ut=De==null?void 0:De.strokeWidth;typeof Pe=="string"||typeof Pe=="undefined"?Gt=Ut||(Pe==="small"?6:8):typeof Pe=="number"?[pt,Gt]=[Pe,Pe]:[pt=-1,Gt=8]=Pe}else(Fe==="circle"||Fe==="dashboard")&&(typeof Pe=="string"||typeof Pe=="undefined"?[pt,Gt]=Pe==="small"?[60,60]:[120,120]:typeof Pe=="number"?[pt,Gt]=[Pe,Pe]:(pt=(lt=(tt=Pe[0])!==null&&tt!==void 0?tt:Pe[1])!==null&<!==void 0?lt:120,Gt=(Ot=(Ct=Pe[0])!==null&&Ct!==void 0?Ct:Pe[1])!==null&&Ot!==void 0?Ot:120));return[pt,Gt]},$e=3,Ke=Pe=>$e/Pe*100;var et=Pe=>{const{prefixCls:Fe,trailColor:De=null,strokeLinecap:tt="round",gapPosition:lt,gapDegree:Ct,width:Ot=120,type:pt,children:Gt,success:Ut,size:Wt=Ot}=Pe,[Jt,Sn]=be(Wt,"circle");let{strokeWidth:hn}=Pe;hn===void 0&&(hn=Math.max(Ke(Jt),6));const Fn={width:Jt,height:Sn,fontSize:Jt*.15+6},on=ae.useMemo(()=>{if(Ct||Ct===0)return Ct;if(pt==="dashboard")return 75},[Ct,pt]),en=lt||pt==="dashboard"&&"bottom"||void 0,pn=Object.prototype.toString.call(Pe.strokeColor)==="[object Object]",Cn=ln({success:Ut,strokeColor:Pe.strokeColor}),En=ue()(`${Fe}-inner`,{[`${Fe}-circle-gradient`]:pn}),sn=ae.createElement(Ve,{percent:jt(Pe),strokeWidth:hn,trailWidth:hn,strokeColor:Cn,strokeLinecap:tt,trailColor:De,prefixCls:Fe,gapDegree:on,gapPosition:en});return ae.createElement("div",{className:En,style:Fn},Jt<=20?ae.createElement(Qe.Z,{title:Gt},ae.createElement("span",null,sn)):ae.createElement(ae.Fragment,null,sn,Gt))},ut=function(Pe,Fe){var De={};for(var tt in Pe)Object.prototype.hasOwnProperty.call(Pe,tt)&&Fe.indexOf(tt)<0&&(De[tt]=Pe[tt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols(Pe);lt<tt.length;lt++)Fe.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,tt[lt])&&(De[tt[lt]]=Pe[tt[lt]]);return De};const de=Pe=>{let Fe=[];return Object.keys(Pe).forEach(De=>{const tt=parseFloat(De.replace(/%/g,""));isNaN(tt)||Fe.push({key:tt,value:Pe[De]})}),Fe=Fe.sort((De,tt)=>De.key-tt.key),Fe.map(De=>{let{key:tt,value:lt}=De;return`${lt} ${tt}%`}).join(", ")},at=(Pe,Fe)=>{const{from:De=rt.presetPrimaryColors.blue,to:tt=rt.presetPrimaryColors.blue,direction:lt=Fe==="rtl"?"to left":"to right"}=Pe,Ct=ut(Pe,["from","to","direction"]);if(Object.keys(Ct).length!==0){const Ot=de(Ct);return{backgroundImage:`linear-gradient(${lt}, ${Ot})`}}return{backgroundImage:`linear-gradient(${lt}, ${De}, ${tt})`}};var Kt=Pe=>{const{prefixCls:Fe,direction:De,percent:tt,size:lt,strokeWidth:Ct,strokeColor:Ot,strokeLinecap:pt="round",children:Gt,trailColor:Ut=null,success:Wt}=Pe,Jt=Ot&&typeof Ot!="string"?at(Ot,De):{backgroundColor:Ot},Sn=pt==="square"||pt==="butt"?0:void 0,hn={backgroundColor:Ut||void 0,borderRadius:Sn},Fn=lt!=null?lt:[-1,Ct||(lt==="small"?6:8)],[on,en]=be(Fn,"line",{strokeWidth:Ct}),pn=Object.assign({width:`${It(tt)}%`,height:en,borderRadius:Sn},Jt),Cn=kt(Pe),En={width:`${It(Cn)}%`,height:en,borderRadius:Sn,backgroundColor:Wt==null?void 0:Wt.strokeColor},sn={width:on<0?"100%":on,height:en};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Fe}-outer`,style:sn},ae.createElement("div",{className:`${Fe}-inner`,style:hn},ae.createElement("div",{className:`${Fe}-bg`,style:pn}),Cn!==void 0?ae.createElement("div",{className:`${Fe}-success-bg`,style:En}):null)),Gt)},Ge=Pe=>{const{size:Fe,steps:De,percent:tt=0,strokeWidth:lt=8,strokeColor:Ct,trailColor:Ot=null,prefixCls:pt,children:Gt}=Pe,Ut=Math.round(De*(tt/100)),Wt=Fe==="small"?2:14,Jt=Fe!=null?Fe:[Wt,lt],[Sn,hn]=be(Jt,"step",{steps:De,strokeWidth:lt}),Fn=Sn/De,on=new Array(De);for(let en=0;en<De;en++){const pn=Array.isArray(Ct)?Ct[en]:Ct;on[en]=ae.createElement("div",{key:en,className:ue()(`${pt}-steps-item`,{[`${pt}-steps-item-active`]:en<=Ut-1}),style:{backgroundColor:en<=Ut-1?pn:Ot,width:Fn,height:hn}})}return ae.createElement("div",{className:`${pt}-steps-outer`},on,Gt)},we=ge(36237),pe=ge(17313),Re=ge(83116),_e=ge(37613);const dt=Pe=>{const Fe=Pe?"100%":"-100%";return new we.Keyframes(`antProgress${Pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Fe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},yt=Pe=>{const{componentCls:Fe,iconCls:De}=Pe;return{[Fe]:Object.assign(Object.assign({},(0,pe.Wf)(Pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Pe.fontSize,marginInlineEnd:Pe.marginXS,marginBottom:Pe.marginXS},[`${Fe}-outer`]:{display:"inline-block",width:"100%"},[`&${Fe}-show-info`]:{[`${Fe}-outer`]:{marginInlineEnd:`calc(-2em - ${Pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Pe.paddingXS}px)`}},[`${Fe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Pe.remainingColor,borderRadius:Pe.lineBorderRadius},[`${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.defaultColor}},[`${Fe}-success-bg, ${Fe}-bg`]:{position:"relative",backgroundColor:Pe.defaultColor,borderRadius:Pe.lineBorderRadius,transition:`all ${Pe.motionDurationSlow} ${Pe.motionEaseInOutCirc}`},[`${Fe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Pe.colorSuccess},[`${Fe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Pe.marginXS,color:Pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[De]:{fontSize:Pe.fontSize}},[`&${Fe}-status-active`]:{[`${Fe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Pe.colorBgContainer,borderRadius:Pe.lineBorderRadius,opacity:0,animationName:dt(),animationDuration:Pe.progressActiveMotionDuration,animationTimingFunction:Pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Fe}-rtl${Fe}-status-active`]:{[`${Fe}-bg::before`]:{animationName:dt(!0)}},[`&${Fe}-status-exception`]:{[`${Fe}-bg`]:{backgroundColor:Pe.colorError},[`${Fe}-text`]:{color:Pe.colorError}},[`&${Fe}-status-exception ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.colorError}},[`&${Fe}-status-success`]:{[`${Fe}-bg`]:{backgroundColor:Pe.colorSuccess},[`${Fe}-text`]:{color:Pe.colorSuccess}},[`&${Fe}-status-success ${Fe}-inner:not(${Fe}-circle-gradient)`]:{[`${Fe}-circle-path`]:{stroke:Pe.colorSuccess}}})}},bt=Pe=>{const{componentCls:Fe,iconCls:De}=Pe;return{[Fe]:{[`${Fe}-circle-trail`]:{stroke:Pe.remainingColor},[`&${Fe}-circle ${Fe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Fe}-circle ${Fe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Pe.circleTextColor,fontSize:Pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[De]:{fontSize:`${Pe.fontSize/Pe.fontSizeSM}em`}},[`${Fe}-circle&-status-exception`]:{[`${Fe}-text`]:{color:Pe.colorError}},[`${Fe}-circle&-status-success`]:{[`${Fe}-text`]:{color:Pe.colorSuccess}}},[`${Fe}-inline-circle`]:{lineHeight:1,[`${Fe}-inner`]:{verticalAlign:"bottom"}}}},Tt=Pe=>{const{componentCls:Fe}=Pe;return{[Fe]:{[`${Fe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Pe.progressStepMinWidth,marginInlineEnd:Pe.progressStepMarginInlineEnd,backgroundColor:Pe.remainingColor,transition:`all ${Pe.motionDurationSlow}`,"&-active":{backgroundColor:Pe.defaultColor}}}}}},Dt=Pe=>{const{componentCls:Fe,iconCls:De}=Pe;return{[Fe]:{[`${Fe}-small&-line, ${Fe}-small&-line ${Fe}-text ${De}`]:{fontSize:Pe.fontSizeSM}}}};var ht=(0,Re.Z)("Progress",Pe=>{const Fe=Pe.marginXXS/2,De=(0,_e.TS)(Pe,{progressStepMarginInlineEnd:Fe,progressStepMinWidth:Fe,progressActiveMotionDuration:"2.4s"});return[yt(De),bt(De),Tt(De),Dt(De)]},Pe=>({circleTextColor:Pe.colorText,defaultColor:Pe.colorInfo,remainingColor:Pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),At=function(Pe,Fe){var De={};for(var tt in Pe)Object.prototype.hasOwnProperty.call(Pe,tt)&&Fe.indexOf(tt)<0&&(De[tt]=Pe[tt]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var lt=0,tt=Object.getOwnPropertySymbols(Pe);lt<tt.length;lt++)Fe.indexOf(tt[lt])<0&&Object.prototype.propertyIsEnumerable.call(Pe,tt[lt])&&(De[tt[lt]]=Pe[tt[lt]]);return De};const Pn=null,wn=["normal","exception","active","success"];var an=ae.forwardRef((Pe,Fe)=>{const{prefixCls:De,className:tt,rootClassName:lt,steps:Ct,strokeColor:Ot,percent:pt=0,size:Gt="default",showInfo:Ut=!0,type:Wt="line",status:Jt,format:Sn,style:hn}=Pe,Fn=At(Pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),on=ae.useMemo(()=>{var ve,Se;const qe=kt(Pe);return parseInt(qe!==void 0?(ve=qe!=null?qe:0)===null||ve===void 0?void 0:ve.toString():(Se=pt!=null?pt:0)===null||Se===void 0?void 0:Se.toString(),10)},[pt,Pe.success,Pe.successPercent]),en=ae.useMemo(()=>!wn.includes(Jt)&&on>=100?"success":Jt||"normal",[Jt,on]),{getPrefixCls:pn,direction:Cn,progress:En}=ae.useContext(Me.E_),sn=pn("progress",De),[Nn,Yn]=ht(sn),In=ae.useMemo(()=>{if(!Ut)return null;const ve=kt(Pe);let Se;const qe=Sn||(Pt=>`${Pt}%`),Lt=Wt==="line";return Sn||en!=="exception"&&en!=="success"?Se=qe(It(pt),It(ve)):en==="exception"?Se=Lt?ae.createElement(Xe.Z,null):ae.createElement(ce.Z,null):en==="success"&&(Se=Lt?ae.createElement(he.Z,null):ae.createElement(Je.Z,null)),ae.createElement("span",{className:`${sn}-text`,title:typeof Se=="string"?Se:void 0},Se)},[Ut,pt,on,en,Wt,sn,Sn]),Wn=Array.isArray(Ot)?Ot[0]:Ot,na=typeof Ot=="string"||Array.isArray(Ot)?Ot:void 0;let Jn;Wt==="line"?Jn=Ct?ae.createElement(Ge,Object.assign({},Pe,{strokeColor:na,prefixCls:sn,steps:Ct}),In):ae.createElement(Kt,Object.assign({},Pe,{strokeColor:Wn,prefixCls:sn,direction:Cn}),In):(Wt==="circle"||Wt==="dashboard")&&(Jn=ae.createElement(et,Object.assign({},Pe,{strokeColor:Wn,prefixCls:sn,progressStatus:en}),In));const fe=ue()(sn,`${sn}-status-${en}`,`${sn}-${Wt==="dashboard"&&"circle"||Ct&&"steps"||Wt}`,{[`${sn}-inline-circle`]:Wt==="circle"&&be(Gt,"circle")[0]<=20,[`${sn}-show-info`]:Ut,[`${sn}-${Gt}`]:typeof Gt=="string",[`${sn}-rtl`]:Cn==="rtl"},En==null?void 0:En.className,tt,lt,Yn);return Nn(ae.createElement("div",Object.assign({ref:Fe,style:Object.assign(Object.assign({},En==null?void 0:En.style),hn),className:fe,role:"progressbar","aria-valuenow":on},(0,nt.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),qt=an},54580:function(Ce,it,ge){"use strict";ge.d(it,{default:function(){return Bn}});var ae=ge(59301),he=ge(3300),Je=ge(92310),Xe=ge.n(Je),ce=ge(32855),We=ge(33377),ue=ge(93912),nt=ge(18881),Me=ge(85461),Ae=ge(74430),je=ge(43079),ze=ge(13932),Ie=ge(34666),ne=ge(68702),a=ge(26112);function y(se,xe){var Be="cannot ".concat(se.method," ").concat(se.action," ").concat(xe.status,"'"),Oe=new Error(Be);return Oe.status=xe.status,Oe.method=se.method,Oe.url=se.action,Oe}function x(se){var xe=se.responseText||se.response;if(!xe)return xe;try{return JSON.parse(xe)}catch(Be){return xe}}function b(se){var xe=new XMLHttpRequest;se.onProgress&&xe.upload&&(xe.upload.onprogress=function(Ue){Ue.total>0&&(Ue.percent=Ue.loaded/Ue.total*100),se.onProgress(Ue)});var Be=new FormData;se.data&&Object.keys(se.data).forEach(function(He){var Ue=se.data[He];if(Array.isArray(Ue)){Ue.forEach(function(ke){Be.append("".concat(He,"[]"),ke)});return}Be.append(He,Ue)}),se.file instanceof Blob?Be.append(se.filename,se.file,se.file.name):Be.append(se.filename,se.file),xe.onerror=function(Ue){se.onError(Ue)},xe.onload=function(){return xe.status<200||xe.status>=300?se.onError(y(se,xe),x(xe)):se.onSuccess(x(xe),xe)},xe.open(se.method,se.action,!0),se.withCredentials&&"withCredentials"in xe&&(xe.withCredentials=!0);var Oe=se.headers||{};return Oe["X-Requested-With"]!==null&&xe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Oe).forEach(function(He){Oe[He]!==null&&xe.setRequestHeader(He,Oe[He])}),xe.send(Be),{abort:function(){xe.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=ge(48736),oe=function(se,xe){if(se&&xe){var Be=Array.isArray(xe)?xe:xe.split(","),Oe=se.name||"",He=se.type||"",Ue=He.replace(/\/.*$/,"");return Be.some(function(ke){var Ne=ke.trim();if(/^\*(\/\*)?$/.test(ke))return!0;if(Ne.charAt(0)==="."){var Bt=Oe.toLowerCase(),xt=Ne.toLowerCase(),ye=[xt];return(xt===".jpg"||xt===".jpeg")&&(ye=[".jpg",".jpeg"]),ye.some(function(tn){return Bt.endsWith(tn)})}return/\/\*$/.test(Ne)?Ue===Ne.replace(/\/.*$/,""):He===Ne?!0:/^\w+$/.test(Ne)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ne,"'.Skip for check.")),!0):!1})}return!0};function re(se,xe){var Be=se.createReader(),Oe=[];function He(){Be.readEntries(function(Ue){var ke=Array.prototype.slice.apply(Ue);Oe=Oe.concat(ke);var Ne=!ke.length;Ne?xe(Oe):He()})}He()}var ie=function(xe,Be,Oe){var He=function Ue(ke,Ne){ke&&(ke.path=Ne||"",ke.isFile?ke.file(function(Bt){Oe(Bt)&&(ke.fullPath&&!Bt.webkitRelativePath&&(Object.defineProperties(Bt,{webkitRelativePath:{writable:!0}}),Bt.webkitRelativePath=ke.fullPath.replace(/^\//,""),Object.defineProperties(Bt,{webkitRelativePath:{writable:!1}})),Be([Bt]))}):ke.isDirectory&&re(ke,function(Bt){Bt.forEach(function(xt){Ue(xt,"".concat(Ne).concat(ke.name,"/"))})}))};xe.forEach(function(Ue){He(Ue.webkitGetAsEntry())})},me=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ee=function(se){(0,nt.Z)(Be,se);var xe=(0,Me.Z)(Be);function Be(){var Oe;(0,We.Z)(this,Be);for(var He=arguments.length,Ue=new Array(He),ke=0;ke<He;ke++)Ue[ke]=arguments[ke];return Oe=xe.call.apply(xe,[this].concat(Ue)),Oe.state={uid:ee()},Oe.reqs={},Oe.fileInput=void 0,Oe._isMounted=void 0,Oe.onChange=function(Ne){var Bt=Oe.props,xt=Bt.accept,ye=Bt.directory,tn=Ne.target.files,Qt=(0,he.Z)(tn).filter(function(fn){return!ye||oe(fn,xt)});Oe.uploadFiles(Qt),Oe.reset()},Oe.onClick=function(Ne){var Bt=Oe.fileInput;if(Bt){var xt=Ne.target,ye=Oe.props.onClick;if(xt&&xt.tagName==="BUTTON"){var tn=Bt.parentNode;tn.focus(),xt.blur()}Bt.click(),ye&&ye(Ne)}},Oe.onKeyDown=function(Ne){Ne.key==="Enter"&&Oe.onClick(Ne)},Oe.onFileDrop=function(Ne){var Bt=Oe.props.multiple;if(Ne.preventDefault(),Ne.type!=="dragover")if(Oe.props.directory)me(Array.prototype.slice.call(Ne.dataTransfer.items),Oe.uploadFiles,function(ye){return oe(ye,Oe.props.accept)});else{var xt=(0,he.Z)(Ne.dataTransfer.files).filter(function(ye){return oe(ye,Oe.props.accept)});Bt===!1&&(xt=xt.slice(0,1)),Oe.uploadFiles(xt)}},Oe.uploadFiles=function(Ne){var Bt=(0,he.Z)(Ne),xt=Bt.map(function(ye){return ye.uid=ee(),Oe.processFile(ye,Bt)});Promise.all(xt).then(function(ye){var tn=Oe.props.onBatchStart;tn==null||tn(ye.map(function(Qt){var fn=Qt.origin,xn=Qt.parsedFile;return{file:fn,parsedFile:xn}})),ye.filter(function(Qt){return Qt.parsedFile!==null}).forEach(function(Qt){Oe.post(Qt)})})},Oe.processFile=function(){var Ne=(0,ne.Z)((0,ze.Z)().mark(function Bt(xt,ye){var tn,Qt,fn,xn,Ze,ct,Ft,st,Zt;return(0,ze.Z)().wrap(function(zt){for(;;)switch(zt.prev=zt.next){case 0:if(tn=Oe.props.beforeUpload,Qt=xt,!tn){zt.next=14;break}return zt.prev=3,zt.next=6,tn(xt,ye);case 6:Qt=zt.sent,zt.next=12;break;case 9:zt.prev=9,zt.t0=zt.catch(3),Qt=!1;case 12:if(Qt!==!1){zt.next=14;break}return zt.abrupt("return",{origin:xt,parsedFile:null,action:null,data:null});case 14:if(fn=Oe.props.action,typeof fn!="function"){zt.next=21;break}return zt.next=18,fn(xt);case 18:xn=zt.sent,zt.next=22;break;case 21:xn=fn;case 22:if(Ze=Oe.props.data,typeof Ze!="function"){zt.next=29;break}return zt.next=26,Ze(xt);case 26:ct=zt.sent,zt.next=30;break;case 29:ct=Ze;case 30:return Ft=((0,Ie.Z)(Qt)==="object"||typeof Qt=="string")&&Qt?Qt:xt,Ft instanceof File?st=Ft:st=new File([Ft],xt.name,{type:xt.type}),Zt=st,Zt.uid=xt.uid,zt.abrupt("return",{origin:xt,data:ct,parsedFile:Zt,action:xn});case 35:case"end":return zt.stop()}},Bt,null,[[3,9]])}));return function(Bt,xt){return Ne.apply(this,arguments)}}(),Oe.saveFileInput=function(Ne){Oe.fileInput=Ne},Oe}return(0,ue.Z)(Be,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(He){var Ue=this,ke=He.data,Ne=He.origin,Bt=He.action,xt=He.parsedFile;if(this._isMounted){var ye=this.props,tn=ye.onStart,Qt=ye.customRequest,fn=ye.name,xn=ye.headers,Ze=ye.withCredentials,ct=ye.method,Ft=Ne.uid,st=Qt||b,Zt={action:Bt,filename:fn,data:ke,file:xt,headers:xn,withCredentials:Ze,method:ct||"post",onProgress:function(zt){var un=Ue.props.onProgress;un==null||un(zt,xt)},onSuccess:function(zt,un){var cn=Ue.props.onSuccess;cn==null||cn(zt,xt,un),delete Ue.reqs[Ft]},onError:function(zt,un){var cn=Ue.props.onError;cn==null||cn(zt,un,xt),delete Ue.reqs[Ft]}};tn(Ne),this.reqs[Ft]=st(Zt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(He){var Ue=this.reqs;if(He){var ke=He.uid?He.uid:He;Ue[ke]&&Ue[ke].abort&&Ue[ke].abort(),delete Ue[ke]}else Object.keys(Ue).forEach(function(Ne){Ue[Ne]&&Ue[Ne].abort&&Ue[Ne].abort(),delete Ue[Ne]})}},{key:"render",value:function(){var He=this.props,Ue=He.component,ke=He.prefixCls,Ne=He.className,Bt=He.disabled,xt=He.id,ye=He.style,tn=He.multiple,Qt=He.accept,fn=He.capture,xn=He.children,Ze=He.directory,ct=He.openFileDialogOnClick,Ft=He.onMouseEnter,st=He.onMouseLeave,Zt=(0,je.Z)(He,le),Xt=Xe()((0,Ae.Z)((0,Ae.Z)((0,Ae.Z)({},ke,!0),"".concat(ke,"-disabled"),Bt),Ne,Ne)),zt=Ze?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},un=Bt?{}:{onClick:ct?this.onClick:function(){},onKeyDown:ct?this.onKeyDown:function(){},onMouseEnter:Ft,onMouseLeave:st,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ue,(0,ce.Z)({},un,{className:Xt,role:"button",style:ye}),ae.createElement("input",(0,ce.Z)({},(0,a.Z)(Zt,{aria:!0,data:!0}),{id:xt,disabled:Bt,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:Qt},zt,{multiple:tn,onChange:this.onChange},fn!=null?{capture:fn}:{})),xn)}}]),Be}(ae.Component),Te=Ee;function mt(){}var Nt=function(se){(0,nt.Z)(Be,se);var xe=(0,Me.Z)(Be);function Be(){var Oe;(0,We.Z)(this,Be);for(var He=arguments.length,Ue=new Array(He),ke=0;ke<He;ke++)Ue[ke]=arguments[ke];return Oe=xe.call.apply(xe,[this].concat(Ue)),Oe.uploader=void 0,Oe.saveUploader=function(Ne){Oe.uploader=Ne},Oe}return(0,ue.Z)(Be,[{key:"abort",value:function(He){this.uploader.abort(He)}},{key:"render",value:function(){return ae.createElement(Te,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Be}(ae.Component);Nt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:mt,onError:mt,onSuccess:mt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Et=Nt,Le=Et,Ve=ge(18929),ot=ge(4676),Qe=ge(36355),rt=ge(1684),It=ge(9763),kt=ge(31724),jt={icon:function(xe,Be){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Be}},{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:xe}}]}},name:"file",theme:"twotone"},ln=jt,be=ge(7657),$e=function(xe,Be){return ae.createElement(be.Z,(0,ce.Z)({},xe,{ref:Be,icon:ln}))},Ke=ae.forwardRef($e),wt=Ke,et=ge(58617),ut={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=ut,at=function(xe,Be){return ae.createElement(be.Z,(0,ce.Z)({},xe,{ref:Be,icon:de}))},$t=ae.forwardRef(at),Kt=$t,Mt={icon:function(xe,Be){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:xe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Be}},{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:Be}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Be}},{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:xe}}]}},name:"picture",theme:"twotone"},Ge=Mt,we=function(xe,Be){return ae.createElement(be.Z,(0,ce.Z)({},xe,{ref:Be,icon:Ge}))},pe=ae.forwardRef(we),Re=pe,_e=ge(77900),dt=ge(56762),yt=ge(62892),bt=ge(92343),Tt=ge(3113);function Dt(se){return Object.assign(Object.assign({},se),{lastModified:se.lastModified,lastModifiedDate:se.lastModifiedDate,name:se.name,size:se.size,type:se.type,uid:se.uid,percent:0,originFileObj:se})}function ht(se,xe){const Be=(0,he.Z)(xe),Oe=Be.findIndex(He=>{let{uid:Ue}=He;return Ue===se.uid});return Oe===-1?Be.push(se):Be[Oe]=se,Be}function At(se,xe){const Be=se.uid!==void 0?"uid":"name";return xe.filter(Oe=>Oe[Be]===se[Be])[0]}function Pn(se,xe){const Be=se.uid!==void 0?"uid":"name",Oe=xe.filter(He=>He[Be]!==se[Be]);return Oe.length===xe.length?null:Oe}const wn=function(){const xe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Oe=xe[xe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Oe)||[""])[0]},Ln=se=>se.indexOf("image/")===0,an=se=>{if(se.type&&!se.thumbUrl)return Ln(se.type);const xe=se.thumbUrl||se.url||"",Be=wn(xe);return/^data:image\//.test(xe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Be)?!0:!(/^data:/.test(xe)||Be)},qt=200;function Pe(se){return new Promise(xe=>{if(!se.type||!Ln(se.type)){xe("");return}const Be=document.createElement("canvas");Be.width=qt,Be.height=qt,Be.style.cssText=`position: fixed; left: 0; top: 0; width: ${qt}px; height: ${qt}px; z-index: 9999; display: none;`,document.body.appendChild(Be);const Oe=Be.getContext("2d"),He=new Image;if(He.onload=()=>{const{width:Ue,height:ke}=He;let Ne=qt,Bt=qt,xt=0,ye=0;Ue>ke?(Bt=ke*(qt/Ue),ye=-(Bt-Ne)/2):(Ne=Ue*(qt/ke),xt=-(Ne-Bt)/2),Oe.drawImage(He,xt,ye,Ne,Bt);const tn=Be.toDataURL();document.body.removeChild(Be),window.URL.revokeObjectURL(He.src),xe(tn)},He.crossOrigin="anonymous",se.type.startsWith("image/svg+xml")){const Ue=new FileReader;Ue.onload=()=>{Ue.result&&(He.src=Ue.result)},Ue.readAsDataURL(se)}else if(se.type.startsWith("image/gif")){const Ue=new FileReader;Ue.onload=()=>{Ue.result&&xe(Ue.result)},Ue.readAsDataURL(se)}else He.src=window.URL.createObjectURL(se)})}var Fe=ge(26227),De=ge(41464),tt=ge(15277),lt=ge(93948),Ct=ge(6848),pt=ae.forwardRef((se,xe)=>{let{prefixCls:Be,className:Oe,style:He,locale:Ue,listType:ke,file:Ne,items:Bt,progress:xt,iconRender:ye,actionIconRender:tn,itemRender:Qt,isImgUrl:fn,showPreviewIcon:xn,showRemoveIcon:Ze,showDownloadIcon:ct,previewIcon:Ft,removeIcon:st,downloadIcon:Zt,onPreview:Xt,onDownload:zt,onClose:un}=se;var cn,oa;const{status:Qn}=Ne,[qn,ca]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Mn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Mn)}},[]);const da=ye(Ne);let Vn=ae.createElement("div",{className:`${Be}-icon`},da);if(ke==="picture"||ke==="picture-card"||ke==="picture-circle")if(qn==="uploading"||!Ne.thumbUrl&&!Ne.url){const Mn=Xe()(`${Be}-list-item-thumbnail`,{[`${Be}-list-item-file`]:qn!=="uploading"});Vn=ae.createElement("div",{className:Mn},da)}else{const Mn=fn!=null&&fn(Ne)?ae.createElement("img",{src:Ne.thumbUrl||Ne.url,alt:Ne.name,className:`${Be}-list-item-image`,crossOrigin:Ne.crossOrigin}):da,On=Xe()(`${Be}-list-item-thumbnail`,{[`${Be}-list-item-file`]:fn&&!fn(Ne)});Vn=ae.createElement("a",{className:On,onClick:la=>Xt(Ne,la),href:Ne.url||Ne.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Mn)}const $n=Xe()(`${Be}-list-item`,`${Be}-list-item-${qn}`),ta=typeof Ne.linkProps=="string"?JSON.parse(Ne.linkProps):Ne.linkProps,ga=Ze?tn((typeof st=="function"?st(Ne):st)||ae.createElement(Fe.Z,null),()=>un(Ne),Be,Ue.removeFile):null,ia=ct&&qn==="done"?tn((typeof Zt=="function"?Zt(Ne):Zt)||ae.createElement(De.Z,null),()=>zt(Ne),Be,Ue.downloadFile):null,aa=ke!=="picture-card"&&ke!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Xe()(`${Be}-list-item-actions`,{picture:ke==="picture"})},ia,ga),ea=Xe()(`${Be}-list-item-name`),fa=Ne.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Ne.name},ta,{href:Ne.url,onClick:Mn=>Xt(Ne,Mn)}),Ne.name),aa]:[ae.createElement("span",{key:"view",className:ea,onClick:Mn=>Xt(Ne,Mn),title:Ne.name},Ne.name),aa],_t={pointerEvents:"none",opacity:.5},Gn=xn?ae.createElement("a",{href:Ne.url||Ne.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ne.url||Ne.thumbUrl?void 0:_t,onClick:Mn=>Xt(Ne,Mn),title:Ue.previewFile},typeof Ft=="function"?Ft(Ne):Ft||ae.createElement(tt.Z,null)):null,Tn=(ke==="picture-card"||ke==="picture-circle")&&qn!=="uploading"&&ae.createElement("span",{className:`${Be}-list-item-actions`},Gn,qn==="done"&&ia,ga),{getPrefixCls:Un}=ae.useContext(Qe.E_),Xn=Un(),ra=ae.createElement("div",{className:$n},Vn,fa,Tn,Sa&&ae.createElement(_e.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Mn=>{let{className:On}=Mn;const la="percent"in Ne?ae.createElement(lt.Z,Object.assign({},xt,{type:"line",percent:Ne.percent,"aria-label":Ne["aria-label"],"aria-labelledby":Ne["aria-labelledby"]})):null;return ae.createElement("div",{className:Xe()(`${Be}-list-item-progress`,On)},la)})),va=Ne.response&&typeof Ne.response=="string"?Ne.response:((cn=Ne.error)===null||cn===void 0?void 0:cn.statusText)||((oa=Ne.error)===null||oa===void 0?void 0:oa.message)||Ue.uploadError,pa=qn==="error"?ae.createElement(Ct.Z,{title:va,getPopupContainer:Mn=>Mn.parentNode},ra):ra;return ae.createElement("div",{className:Xe()(`${Be}-list-item-container`,Oe),style:He,ref:xe},Qt?Qt(pa,Ne,Bt,{download:zt.bind(null,Ne),preview:Xt.bind(null,Ne),remove:un.bind(null,Ne)}):pa)});const Gt=(se,xe)=>{const{listType:Be="text",previewFile:Oe=Pe,onPreview:He,onDownload:Ue,onRemove:ke,locale:Ne,iconRender:Bt,isImageUrl:xt=an,prefixCls:ye,items:tn=[],showPreviewIcon:Qt=!0,showRemoveIcon:fn=!0,showDownloadIcon:xn=!1,removeIcon:Ze,previewIcon:ct,downloadIcon:Ft,progress:st={size:[-1,2],showInfo:!1},appendAction:Zt,appendActionVisible:Xt=!0,itemRender:zt,disabled:un}=se,cn=(0,dt.Z)(),[oa,Qn]=ae.useState(!1);ae.useEffect(()=>{Be!=="picture"&&Be!=="picture-card"&&Be!=="picture-circle"||(tn||[]).forEach(_t=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(_t.originFileObj instanceof File||_t.originFileObj instanceof Blob)||_t.thumbUrl!==void 0||(_t.thumbUrl="",Oe&&Oe(_t.originFileObj).then(Gn=>{_t.thumbUrl=Gn||"",cn()}))})},[Be,tn,Oe]),ae.useEffect(()=>{Qn(!0)},[]);const qn=(_t,Gn)=>{if(He)return Gn==null||Gn.preventDefault(),He(_t)},ca=_t=>{typeof Ue=="function"?Ue(_t):_t.url&&window.open(_t.url)},Sa=_t=>{ke==null||ke(_t)},Pa=_t=>{if(Bt)return Bt(_t,Be);const Gn=_t.status==="uploading",Tn=xt&&xt(_t)?ae.createElement(Re,null):ae.createElement(wt,null);let Un=Gn?ae.createElement(et.Z,null):ae.createElement(Kt,null);return Be==="picture"?Un=Gn?ae.createElement(et.Z,null):Tn:(Be==="picture-card"||Be==="picture-circle")&&(Un=Gn?Ne.uploading:Tn),Un},da=(_t,Gn,Tn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{Gn(),(0,bt.l$)(_t)&&_t.props.onClick&&_t.props.onClick(ra)},className:`${Tn}-list-item-action`,disabled:un};if((0,bt.l$)(_t)){const ra=(0,bt.Tm)(_t,Object.assign(Object.assign({},_t.props),{onClick:()=>{}}));return ae.createElement(Tt.ZP,Object.assign({},Xn,{icon:ra}))}return ae.createElement(Tt.ZP,Object.assign({},Xn),ae.createElement("span",null,_t))};ae.useImperativeHandle(xe,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(Qe.E_),$n=Vn("upload",ye),ta=Vn(),ga=Xe()(`${$n}-list`,`${$n}-list-${Be}`),ia=(0,he.Z)(tn.map(_t=>({key:_t.uid,file:_t})));let ea={motionDeadline:2e3,motionName:`${$n}-${Be==="picture-card"||Be==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:oa};const fa=ae.useMemo(()=>{const _t=Object.assign({},(0,yt.Z)(ta));return delete _t.onAppearEnd,delete _t.onEnterEnd,delete _t.onLeaveEnd,_t},[ta]);return Be!=="picture-card"&&Be!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ae.createElement("div",{className:ga},ae.createElement(_e.CSSMotionList,Object.assign({},ea,{component:!1}),_t=>{let{key:Gn,file:Tn,className:Un,style:Xn}=_t;return ae.createElement(pt,{key:Gn,locale:Ne,prefixCls:$n,className:Un,style:Xn,file:Tn,items:tn,progress:st,listType:Be,isImgUrl:xt,showPreviewIcon:Qt,showRemoveIcon:fn,showDownloadIcon:xn,removeIcon:Ze,previewIcon:ct,downloadIcon:Ft,iconRender:Pa,actionIconRender:da,itemRender:zt,onPreview:qn,onDownload:ca,onClose:Sa})}),Zt&&ae.createElement(_e.default,Object.assign({},ea,{visible:Xt,forceRender:!0}),_t=>{let{className:Gn,style:Tn}=_t;return(0,bt.Tm)(Zt,Un=>({className:Xe()(Un.className,Gn),style:Object.assign(Object.assign(Object.assign({},Tn),{pointerEvents:Gn?"none":void 0}),Un.style)}))}))};var Wt=ae.forwardRef(Gt),Jt=ge(17313),Sn=ge(8378),hn=ge(83116),Fn=ge(37613),en=se=>{const{componentCls:xe,iconCls:Be}=se;return{[`${xe}-wrapper`]:{[`${xe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[xe]:{padding:`${se.padding}px 0`},[`${xe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${xe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${xe}-disabled):hover`]:{borderColor:se.colorPrimaryHover},[`p${xe}-drag-icon`]:{marginBottom:se.margin,[Be]:{color:se.colorPrimary,fontSize:se.uploadThumbnailSize}},[`p${xe}-text`]:{margin:`0 0 ${se.marginXXS}px`,color:se.colorTextHeading,fontSize:se.fontSizeLG},[`p${xe}-hint`]:{color:se.colorTextDescription,fontSize:se.fontSize},[`&${xe}-disabled`]:{cursor:"not-allowed",[`p${xe}-drag-icon ${Be},
|
|
p${xe}-text,
|
|
p${xe}-hint
|
|
`]:{color:se.colorTextDisabled}}}}}},Cn=se=>{const{componentCls:xe,antCls:Be,iconCls:Oe,fontSize:He,lineHeight:Ue}=se,ke=`${xe}-list-item`,Ne=`${ke}-actions`,Bt=`${ke}-action`,xt=Math.round(He*Ue);return{[`${xe}-wrapper`]:{[`${xe}-list`]:Object.assign(Object.assign({},(0,Jt.dF)()),{lineHeight:se.lineHeight,[ke]:{position:"relative",height:se.lineHeight*He,marginTop:se.marginXS,fontSize:He,display:"flex",alignItems:"center",transition:`background-color ${se.motionDurationSlow}`,"&:hover":{backgroundColor:se.controlItemBgHover},[`${ke}-name`]:Object.assign(Object.assign({},Jt.vS),{padding:`0 ${se.paddingXS}px`,lineHeight:Ue,flex:"auto",transition:`all ${se.motionDurationSlow}`}),[Ne]:{[Bt]:{opacity:0},[`${Bt}${Be}-btn-sm`]:{height:xt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Bt}:focus-visible,
|
|
&.picture ${Bt}
|
|
`]:{opacity:1},[Oe]:{color:se.actionsColor,transition:`all ${se.motionDurationSlow}`},[`&:hover ${Oe}`]:{color:se.colorText}},[`${xe}-icon ${Oe}`]:{color:se.colorTextDescription,fontSize:He},[`${ke}-progress`]:{position:"absolute",bottom:-se.uploadProgressOffset,width:"100%",paddingInlineStart:He+se.paddingXS,fontSize:He,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${ke}:hover ${Bt}`]:{opacity:1,color:se.colorText},[`${ke}-error`]:{color:se.colorError,[`${ke}-name, ${xe}-icon ${Oe}`]:{color:se.colorError},[Ne]:{[`${Oe}, ${Oe}:hover`]:{color:se.colorError},[Bt]:{opacity:1}}},[`${xe}-list-item-container`]:{transition:`opacity ${se.motionDurationSlow}, height ${se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},En=ge(36237),sn=ge(1950);const Nn=new En.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new En.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=se=>{const{componentCls:xe}=se,Be=`${xe}-animate-inline`;return[{[`${xe}-wrapper`]:{[`${Be}-appear, ${Be}-enter, ${Be}-leave`]:{animationDuration:se.motionDurationSlow,animationTimingFunction:se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Be}-appear, ${Be}-enter`]:{animationName:Nn},[`${Be}-leave`]:{animationName:Yn}}},{[`${xe}-wrapper`]:(0,sn.J$)(se)},Nn,Yn]},na=ge(30071),Jn=ge(64993);const fe=se=>{const{componentCls:xe,iconCls:Be,uploadThumbnailSize:Oe,uploadProgressOffset:He}=se,Ue=`${xe}-list`,ke=`${Ue}-item`;return{[`${xe}-wrapper`]:{[`
|
|
${Ue}${Ue}-picture,
|
|
${Ue}${Ue}-picture-card,
|
|
${Ue}${Ue}-picture-circle
|
|
`]:{[ke]:{position:"relative",height:Oe+se.lineWidth*2+se.paddingXS*2,padding:se.paddingXS,border:`${se.lineWidth}px ${se.lineType} ${se.colorBorder}`,borderRadius:se.borderRadiusLG,"&:hover":{background:"transparent"},[`${ke}-thumbnail`]:Object.assign(Object.assign({},Jt.vS),{width:Oe,height:Oe,lineHeight:`${Oe+se.paddingSM}px`,textAlign:"center",flex:"none",[Be]:{fontSize:se.fontSizeHeading2,color:se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${ke}-progress`]:{bottom:He,width:`calc(100% - ${se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Oe+se.paddingXS}},[`${ke}-error`]:{borderColor:se.colorError,[`${ke}-thumbnail ${Be}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:se.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:se.colorError}}},[`${ke}-uploading`]:{borderStyle:"dashed",[`${ke}-name`]:{marginBottom:He}}},[`${Ue}${Ue}-picture-circle ${ke}`]:{[`&, &::before, ${ke}-thumbnail`]:{borderRadius:"50%"}}}}},ve=se=>{const{componentCls:xe,iconCls:Be,fontSizeLG:Oe,colorTextLightSolid:He}=se,Ue=`${xe}-list`,ke=`${Ue}-item`,Ne=se.uploadPicCardSize;return{[`
|
|
${xe}-wrapper${xe}-picture-card-wrapper,
|
|
${xe}-wrapper${xe}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Jt.dF)()),{display:"inline-block",width:"100%",[`${xe}${xe}-select`]:{width:Ne,height:Ne,marginInlineEnd:se.marginXS,marginBottom:se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:se.colorFillAlter,border:`${se.lineWidth}px dashed ${se.colorBorder}`,borderRadius:se.borderRadiusLG,cursor:"pointer",transition:`border-color ${se.motionDurationSlow}`,[`> ${xe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${xe}-disabled):hover`]:{borderColor:se.colorPrimary}},[`${Ue}${Ue}-picture-card, ${Ue}${Ue}-picture-circle`]:{[`${Ue}-item-container`]:{display:"inline-block",width:Ne,height:Ne,marginBlock:`0 ${se.marginXS}px`,marginInline:`0 ${se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[ke]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${se.paddingXS*2}px)`,height:`calc(100% - ${se.paddingXS*2}px)`,backgroundColor:se.colorBgMask,opacity:0,transition:`all ${se.motionDurationSlow}`,content:'" "'}},[`${ke}:hover`]:{[`&::before, ${ke}-actions`]:{opacity:1}},[`${ke}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${se.motionDurationSlow}`,[`${Be}-eye, ${Be}-download, ${Be}-delete`]:{zIndex:10,width:Oe,margin:`0 ${se.marginXXS}px`,fontSize:Oe,cursor:"pointer",transition:`all ${se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${ke}-actions, ${ke}-actions:hover`]:{[`${Be}-eye, ${Be}-download, ${Be}-delete`]:{color:new Jn.C(He).setAlpha(.65).toRgbString(),"&:hover":{color:He}}},[`${ke}-thumbnail, ${ke}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${ke}-name`]:{display:"none",textAlign:"center"},[`${ke}-file + ${ke}-name`]:{position:"absolute",bottom:se.margin,display:"block",width:`calc(100% - ${se.paddingXS*2}px)`},[`${ke}-uploading`]:{[`&${ke}`]:{backgroundColor:se.colorFillAlter},[`&::before, ${Be}-eye, ${Be}-download, ${Be}-delete`]:{display:"none"}},[`${ke}-progress`]:{bottom:se.marginXL,width:`calc(100% - ${se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${xe}-wrapper${xe}-picture-circle-wrapper`]:{[`${xe}${xe}-select`]:{borderRadius:"50%"}}}};var qe=se=>{const{componentCls:xe}=se;return{[`${xe}-rtl`]:{direction:"rtl"}}};const Lt=se=>{const{componentCls:xe,colorTextDisabled:Be}=se;return{[`${xe}-wrapper`]:Object.assign(Object.assign({},(0,Jt.Wf)(se)),{[xe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${xe}-select`]:{display:"inline-block"},[`${xe}-disabled`]:{color:Be,cursor:"not-allowed"}})}};var Pt=(0,hn.Z)("Upload",se=>{const{fontSizeHeading3:xe,fontSize:Be,lineHeight:Oe,lineWidth:He,controlHeightLG:Ue}=se,ke=Math.round(Be*Oe),Ne=(0,Fn.TS)(se,{uploadThumbnailSize:xe*2,uploadProgressOffset:ke/2+He,uploadPicCardSize:Ue*2.55});return[Lt(Ne),en(Ne),fe(Ne),ve(Ne),Cn(Ne),Wn(Ne),qe(Ne),(0,Sn.Z)(Ne)]},se=>({actionsColor:se.colorTextDescription})),rn=function(se,xe,Be,Oe){function He(Ue){return Ue instanceof Be?Ue:new Be(function(ke){ke(Ue)})}return new(Be||(Be=Promise))(function(Ue,ke){function Ne(ye){try{xt(Oe.next(ye))}catch(tn){ke(tn)}}function Bt(ye){try{xt(Oe.throw(ye))}catch(tn){ke(tn)}}function xt(ye){ye.done?Ue(ye.value):He(ye.value).then(Ne,Bt)}xt((Oe=Oe.apply(se,xe||[])).next())})};const Rt=`__LIST_IGNORE_${Date.now()}__`,Vt=(se,xe)=>{const{fileList:Be,defaultFileList:Oe,onRemove:He,showUploadList:Ue=!0,listType:ke="text",onPreview:Ne,onDownload:Bt,onChange:xt,onDrop:ye,previewFile:tn,disabled:Qt,locale:fn,iconRender:xn,isImageUrl:Ze,progress:ct,prefixCls:Ft,className:st,type:Zt="select",children:Xt,style:zt,itemRender:un,maxCount:cn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=se,da=ae.useContext(rt.Z),Vn=Qt!=null?Qt:da,[$n,ta]=(0,Ve.Z)(Oe||[],{value:Be,postState:Ht=>Ht!=null?Ht:[]}),[ga,ia]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const Ht=Date.now();(Be||[]).forEach((gn,yn)=>{!gn.uid&&!Object.isFrozen(gn)&&(gn.uid=`__AUTO__${Ht}_${yn}__`)})},[Be]);const ea=(Ht,gn,yn)=>{let nn=(0,he.Z)(gn),mn=!1;cn===1?nn=nn.slice(-1):cn&&(mn=nn.length>cn,nn=nn.slice(0,cn)),(0,ot.flushSync)(()=>{ta(nn)});const Hn={file:Ht,fileList:nn};yn&&(Hn.event=yn),(!mn||nn.some(bn=>bn.uid===Ht.uid))&&(0,ot.flushSync)(()=>{xt==null||xt(Hn)})},fa=(Ht,gn)=>rn(void 0,void 0,void 0,function*(){const{beforeUpload:yn,transformFile:nn}=se;let mn=Ht;if(yn){const Hn=yield yn(Ht,gn);if(Hn===!1)return!1;if(delete Ht[Rt],Hn===Rt)return Object.defineProperty(Ht,Rt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(mn=Hn)}return nn&&(mn=yield nn(mn)),mn}),_t=Ht=>{const gn=Ht.filter(mn=>!mn.file[Rt]);if(!gn.length)return;const yn=gn.map(mn=>Dt(mn.file));let nn=(0,he.Z)($n);yn.forEach(mn=>{nn=ht(mn,nn)}),yn.forEach((mn,Hn)=>{let bn=mn;if(gn[Hn].parsedFile)mn.status="uploading";else{const{originFileObj:ha}=mn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=mn.uid,bn=ua}ea(bn,nn)})},Gn=(Ht,gn,yn)=>{try{typeof Ht=="string"&&(Ht=JSON.parse(Ht))}catch(Hn){}if(!At(gn,$n))return;const nn=Dt(gn);nn.status="done",nn.percent=100,nn.response=Ht,nn.xhr=yn;const mn=ht(nn,$n);ea(nn,mn)},Tn=(Ht,gn)=>{if(!At(gn,$n))return;const yn=Dt(gn);yn.status="uploading",yn.percent=Ht.percent;const nn=ht(yn,$n);ea(yn,nn,Ht)},Un=(Ht,gn,yn)=>{if(!At(yn,$n))return;const nn=Dt(yn);nn.error=Ht,nn.response=gn,nn.status="error";const mn=ht(nn,$n);ea(nn,mn)},Xn=Ht=>{let gn;Promise.resolve(typeof He=="function"?He(Ht):He).then(yn=>{var nn;if(yn===!1)return;const mn=Pn(Ht,$n);mn&&(gn=Object.assign(Object.assign({},Ht),{status:"removed"}),$n==null||$n.forEach(Hn=>{const bn=gn.uid!==void 0?"uid":"name";Hn[bn]===gn[bn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(nn=aa.current)===null||nn===void 0||nn.abort(gn),ea(gn,mn))})},ra=Ht=>{ia(Ht.type),Ht.type==="drop"&&(ye==null||ye(Ht))};ae.useImperativeHandle(xe,()=>({onBatchStart:_t,onSuccess:Gn,onProgress:Tn,onError:Un,fileList:$n,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Mn}=ae.useContext(Qe.E_),On=va("upload",Ft),la=Object.assign(Object.assign({onBatchStart:_t,onError:Un,onProgress:Tn,onSuccess:Gn},se),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:On,disabled:Vn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Xt||Vn)&&delete la.id;const[La,ya]=Pt(On),[ba]=(0,It.Z)("Upload",kt.Z.Upload),{showRemoveIcon:vt,showPreviewIcon:gt,showDownloadIcon:St,removeIcon:ft,previewIcon:dn,downloadIcon:zn}=typeof Ue=="boolean"?{}:Ue,Rn=(Ht,gn)=>Ue?ae.createElement(Wt,{prefixCls:On,listType:ke,items:$n,previewFile:tn,onPreview:Ne,onDownload:Bt,onRemove:Xn,showRemoveIcon:!Vn&&vt,showPreviewIcon:gt,showDownloadIcon:St,removeIcon:ft,previewIcon:dn,downloadIcon:zn,iconRender:xn,locale:Object.assign(Object.assign({},ba),fn),isImageUrl:Ze,progress:ct,appendAction:Ht,appendActionVisible:gn,itemRender:un,disabled:Vn}):Ht,Dn=Xe()(`${On}-wrapper`,st,Pa,ya,Mn==null?void 0:Mn.className,{[`${On}-rtl`]:pa==="rtl",[`${On}-picture-card-wrapper`]:ke==="picture-card",[`${On}-picture-circle-wrapper`]:ke==="picture-circle"}),jn=Object.assign(Object.assign({},Mn==null?void 0:Mn.style),zt);if(Zt==="drag"){const Ht=Xe()(ya,On,`${On}-drag`,{[`${On}-drag-uploading`]:$n.some(gn=>gn.status==="uploading"),[`${On}-drag-hover`]:ga==="dragover",[`${On}-disabled`]:Vn,[`${On}-rtl`]:pa==="rtl"});return La(ae.createElement("span",{className:Dn},ae.createElement("div",{className:Ht,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ae.createElement(Le,Object.assign({},la,{ref:aa,className:`${On}-btn`}),ae.createElement("div",{className:`${On}-drag-container`},Xt))),Rn()))}const _n=Xe()(On,`${On}-select`,{[`${On}-disabled`]:Vn}),Kn=(Ht=>ae.createElement("div",{className:_n,style:Ht},ae.createElement(Le,Object.assign({},la,{ref:aa}))))(Xt?void 0:{display:"none"});return La(ke==="picture-card"||ke==="picture-circle"?ae.createElement("span",{className:Dn},Rn(Kn,!!Xt)):ae.createElement("span",{className:Dn},Kn,Rn()))};var kn=ae.forwardRef(Vt),Ye=function(se,xe){var Be={};for(var Oe in se)Object.prototype.hasOwnProperty.call(se,Oe)&&xe.indexOf(Oe)<0&&(Be[Oe]=se[Oe]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,Oe=Object.getOwnPropertySymbols(se);He<Oe.length;He++)xe.indexOf(Oe[He])<0&&Object.prototype.propertyIsEnumerable.call(se,Oe[He])&&(Be[Oe[He]]=se[Oe[He]]);return Be},An=ae.forwardRef((se,xe)=>{var{style:Be,height:Oe}=se,He=Ye(se,["style","height"]);return ae.createElement(kn,Object.assign({ref:xe},He,{type:"drag",style:Object.assign(Object.assign({},Be),{height:Oe})}))});const Zn=kn;Zn.Dragger=An,Zn.LIST_IGNORE=Rt;var Bn=Zn}}]);
|