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
397 KiB
144 lines
397 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[4795],{26227:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return Ze}});var ae=re(32855),fe=re(59301),We={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"},_e=We,ce=re(7657),Re=function(Me,Ae){return fe.createElement(ce.Z,(0,ae.Z)({},Me,{ref:Ae,icon:_e}))},ue=fe.forwardRef(Re),Ze=ue},41464:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return Ze}});var ae=re(32855),fe=re(59301),We={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"},_e=We,ce=re(7657),Re=function(Me,Ae){return fe.createElement(ce.Z,(0,ae.Z)({},Me,{ref:Ae,icon:_e}))},ue=fe.forwardRef(Re),Ze=ue},61481:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return Ze}});var ae=re(32855),fe=re(59301),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},_e=We,ce=re(7657),Re=function(Me,Ae){return fe.createElement(ce.Z,(0,ae.Z)({},Me,{ref:Ae,icon:_e}))},ue=fe.forwardRef(Re),Ze=ue},33853:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return Ze}});var ae=re(32855),fe=re(59301),We={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"},_e=We,ce=re(7657),Re=function(Me,Ae){return fe.createElement(ce.Z,(0,ae.Z)({},Me,{ref:Ae,icon:_e}))},ue=fe.forwardRef(Re),Ze=ue},38819:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return Ze}});var ae=re(32855),fe=re(59301),We={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"},_e=We,ce=re(7657),Re=function(Me,Ae){return fe.createElement(ce.Z,(0,ae.Z)({},Me,{ref:Ae,icon:_e}))},ue=fe.forwardRef(Re),Ze=ue},21697:function(Ce,tt){"use strict";tt.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,y,a,x){a===void 0&&(a=0),x===void 0&&(x=1/0),this._name=ne,this._defaultValue=y,this._minimum=a,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,y){var a=go.Shape._FigureParameters[ne];return a?a[y]:null},go.Shape.setFigureParameter=function(ne,y,a){if(!(a instanceof Ce))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+a);if(a.defaultValue<a.minimum||a.defaultValue>a.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+a.defaultValue);var x=go.Shape._FigureParameters[ne];x||(x=[],go.Shape._FigureParameters[ne]=x),x[y]=a};var tt=[];function re(ne,y){var a=tt.pop();return a===void 0?new go.Point(ne,y):(a.x=ne,a.y=y,a)}function ae(){var ne=tt.pop();return ne===void 0?new go.Point:ne}function fe(ne){tt.push(ne)}function We(ne,y,a,x,b,E,z,ee,te){te||(te=new go.Point);var oe=ne-a,ge=b-z,ie=NaN,se=NaN;if(oe===0)if(ge===0)ne===a&&(ie=ne,se=y);else{var le=(E-ee)/ge,Fe=E-le*b;ie=ne,se=le*ie+Fe}else if(ge===0){var $e=(y-x)/oe,it=y-$e*ne;ie=b,se=$e*ie+it}else{var $e=(y-x)/oe,le=(E-ee)/ge,it=y-$e*ne,Fe=E-le*b;ie=(Fe-it)/($e-le),se=$e*ie+it}return te.x=ie,te.y=se,te}function _e(ne,y,a,x,b,E,z,ee,te,oe,ge,ie,se,le){var Fe=1-te,$e=te,it=ne*Fe+a*$e,vt=y*Fe+x*$e,jt=a*Fe+b*$e,ye=x*Fe+E*$e,Ke=b*Fe+z*$e,nt=E*Fe+ee*$e,Je=it*Fe+jt*$e,rt=vt*Fe+ye*$e,zt=jt*Fe+Ke*$e,It=ye*Fe+nt*$e,Tt=Je*Fe+zt*$e,Mt=rt*Fe+It*$e;oe.x=it,oe.y=vt,ge.x=Je,ge.y=rt,ie.x=Tt,ie.y=Mt,se.x=zt,se.y=It,le.x=Ke,le.y=nt}var ce=new go.Spot(.156,.156),Re=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,y,a){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=5),x=Math.min(x,y/3),x=Math.min(x,a/3);var b=x*ue,E=new go.Geometry().add(new go.PathFigure(x,0,!0).add(new go.PathSegment(go.PathSegment.Line,y-x,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,x,y-b,0,y,b)).add(new go.PathSegment(go.PathSegment.Line,y,a-x)).add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y,a-b,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,x,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,b,a,0,a-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,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,a).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=a/2,x.endX=y,x.endY=a/2,x}),go.Shape.defineFigureGenerator("LineV",function(ne,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=y/2,x.startY=0,x.endX=y/2,x.endY=a,x}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a/2,!1).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("XLine",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.25*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,.25*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Line,y,.25*a)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.75*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,a)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,.75*a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,y,.75*a)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,y,a){var x=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(x*y,(1-x)*a,!1).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,x*a)).add(new go.PathSegment(go.PathSegment.Move,x*y,x*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Move,0,a/2)).add(new go.PathSegment(go.PathSegment.Line,y,a/2)).add(new go.PathSegment(go.PathSegment.Move,y/2,0)).add(new go.PathSegment(go.PathSegment.Line,y/2,a)))}),go.Shape.defineFigureGenerator("CircleLine",function(ne,y,a){var x=y/2,b=new go.Geometry().add(new go.PathFigure(y,y/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,x,x,x,x).close()));return b.spot1=ce,b.spot2=Re,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=0,x.startY=0,x.endX=y,x.endY=a,x}),go.Shape.defineFigureGenerator("Line2",function(ne,y,a){var x=new go.Geometry(go.Geometry.Line);return x.startX=y,x.startY=0,x.endX=0,x.endY=a,x}),go.Shape.defineFigureGenerator("Curve1",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,ue*y,0,y,(1-ue)*a)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,y,a,0,ue*a,(1-ue)*y,a)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,ue*a,ue*y,a)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,a,(1-ue)*y,0,0,(1-ue)*a)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(y,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a).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,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.1:x<-1?x=-1:x>1&&(x=1);var b=Math.abs(x)*y;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,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,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-y?x=-y:x>y&&(x=y);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=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}}),go.Shape.setFigureParameter("Trapezoid1",0,new Ce("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)?x=.2:x<.5?x=-.5:x>.5&&(x=.5);var b=Math.abs(x)*y;if(x===0){var E=new go.Geometry(go.Geometry.Rectangle);return E.startX=0,E.startY=0,E.endX=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,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,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)?x=20:x<-y?x=-y/2:x>y&&(x=y/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=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())):E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}}),go.Shape.setFigureParameter("ManualOperation",0,new Ce("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)?x=10:x<-y?x=-y/2:x>y&&(x=y/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=y,E.endY=a,E}else{var E=new go.Geometry;return x>0?E.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y-b,a)).add(new go.PathSegment(go.PathSegment.Line,b,a).close())):E.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,y-b,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close())),b<y/2&&E.setSpots(b/y,0,(y-b)/y,1),E}});var Ze=[];function Ge(){var ne=Ze.pop();return ne===void 0?[]:ne}function Me(ne){ne.length=0,Ze.push(ne)}function Ae(ne){for(var y=Ge(),a=.5,x=.5,b=Math.PI*1.5,E=0,z=0;z<ne;z++)E=2*Math.PI/ne*z+b,y[z]=new go.Point(x+a*Math.cos(E),x+a*Math.sin(E));return y.push(y[0]),y}function Ne(ne){var y=Le(ne),a=Ge();a[0]=y[0];for(var x=1,b=1;x<y.length;x+=2,b+=3)a[b]=y[x],a[b+1]=y[x],a[b+2]=y[x+1];return Me(y),a}function Le(ne){for(var y=Ae(ne),a=Ge(),x=Math.floor(y.length/2),b=y.length-1,E=ne%2===0?2:1,z=0;z<b;z++){var ee=y[z],te=y[z+1],oe=y[(x+z-1)%b],ge=y[(x+z+E)%b];a[z*2]=ee,a[z*2+1]=We(ee.x,ee.y,oe.x,oe.y,te.x,te.y,ge.x,ge.y,new go.Point)}return a[a.length]=a[0],Me(y),a}go.Shape.defineFigureGenerator("Pentagon",function(ne,y,a){var x=Ae(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<5;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ne,y,a){var x=Ae(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<6;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ne,y,a){var x=Ae(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<7;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ne,y,a){var x=Ae(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<8;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ne,y,a){var x=Ae(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<9;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ne,y,a){var x=Ae(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ne,y,a){var x=Ae(12),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ne,y,a){var x=Le(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<10;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ne,y,a){var x=Le(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<12;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ne,y,a){var x=Le(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<14;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ne,y,a){var x=Le(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<16;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ne,y,a){var x=Le(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<18;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ne,y,a){var x=Le(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!0);b.add(E);for(var z=1;z<20;z++)E.add(new go.PathSegment(go.PathSegment.Line,x[z].x*y,x[z].y*a));return E.add(new go.PathSegment(go.PathSegment.Line,x[0].x*y,x[0].y*a).close()),Me(x),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ne,y,a){var x=Ne(5),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),Me(x),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ne,y,a){var x=Ne(6),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),Me(x),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ne,y,a){var x=Ne(7),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),Me(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ne,y,a){var x=Ne(8),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),Me(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ne,y,a){var x=Ne(9),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),Me(x),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ne,y,a){var x=Ne(10),b=new go.Geometry,E=new go.PathFigure(x[0].x*y,x[0].y*a,!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*y,x[z+2].y*a,x[z].x*y,x[z].y*a,x[z+1].x*y,x[z+1].y*a));return E.segments.last().close(),Me(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,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x<y/2&&b<a/2&&(z.add(new go.PathSegment(go.PathSegment.Move,x,b)),z.add(new go.PathSegment(go.PathSegment.Line,x,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-x,a-b)),z.add(new go.PathSegment(go.PathSegment.Line,y-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,y,a){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=8);var b=y/2,E=new go.Geometry,z=new go.PathFigure(y,y/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,y/2+ee,y/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),E.spot1=ce,E.spot2=Re,E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Cloud",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.08034461*y,.1944299*a,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*y,.05349299*a,-.09239631*y,.07836421*a,.1406031*y,-.0542823*a)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*y,.074219*a,.2450511*y,-.00697547*a,.3776197*y,-.01112067*a)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*y,.07004196*a,.4539471*y,0,.6066018*y,-.02526587*a)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*y,.08370865*a,.6914277*y,-.01904177*a,.8921095*y,-.01220843*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*y,.3194596*a,1.036446*y,.04105738*a,1.020377*y,.3022052*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*y,.562044*a,1.04448*y,.360238*a,.992256*y,.5219009*a)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*y,.8217117*a,1.032337*y,.5771781*a,1.018411*y,.8120651*a)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*y,.9156953*a,1.028411*y,.9571472*a,.8556702*y,1.052487*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*y,.9310455*a,.7431877*y,1.009325*a,.5624123*y,1.021761*a)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*y,.9344623*a,.4820677*y,1.031761*a,.3030112*y,1.002796*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.870098*a,.2329994*y,1.01518*a,.03213784*y,1.01518*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*y,.6545475*a,-.02812061*y,.9032597*a,-.01205169*y,.6835638*a)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*y,.4265613*a,-.01812061*y,.6089503*a,-.00606892*y,.4555777*a)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*y,.1944299*a,-.01606892*y,.3892545*a,-.01205169*y,.1944299*a))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,y,a){var x=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(x*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,x*a)).add(new go.PathSegment(go.PathSegment.Line,y,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)).add(new go.PathSegment(go.PathSegment.Line,x*y,a)).add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,x*a).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,y,a){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(y,a)/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,y,a){var x=ue/Math.SQRT2*.5,b=Math.SQRT2/2,E=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*y,E*a,y,(1-x)*a,(b+x)*y,(E+x)*a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Ce("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,y,a){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30);var b=Math.min(x,y)/2,E=y/2,z=a/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,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,a)).add(new go.PathSegment(go.PathSegment.Line,E-b,a)).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,y,a){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=Math.min(x,y)/2,E=y/2,z=a/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,y,z-b)).add(new go.PathSegment(go.PathSegment.Line,y,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,E+b,a)).add(new go.PathSegment(go.PathSegment.Line,E-b,a)).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,y,a){var x=ne?ne.parameter1:NaN;if((isNaN(x)||x<0)&&(x=30),y===0||a===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=y,b.endY=a,b}else{var E=y/2,z=a/2,ee=Math.atan2(a,y),te=x-Math.min(Math.cos(ee)*x/2,E),oe=x-Math.min(Math.sin(ee)*x/2,z),b=new go.Geometry,ge=new go.PathFigure(te,0,!0);return b.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,E,.2*a)),ge.add(new go.PathSegment(go.PathSegment.Line,y-te,0)),ge.add(new go.PathSegment(go.PathSegment.Line,y,oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,y,a-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,y-te,a)),ge.add(new go.PathSegment(go.PathSegment.Line,E,.8*a)),ge.add(new go.PathSegment(go.PathSegment.Line,te,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,a-oe)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ge.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,y,a){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=10);var b=new go.Geometry,E=new go.PathFigure(.1*y,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.1*a).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Ce("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,y,a){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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*y,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5+x/2)*y,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*y,(1-x)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(.5-x/2)*y,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*a).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Ce("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,y,a){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,y,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,y,a,Math.abs(1-x)*y,.25*a,Math.abs(1-x)*y,.75*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*y,.75*a,x*y,.25*a).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,ue*y,0,y,(.5-ue/2)*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,(.5+ue/2)*a,ue*y,a).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,a,y,0,y,a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*y,.75*a,.5*y,.25*a).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,.1*y,.8*a,0,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,0,0,.45*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.55*y,0,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.5*a,.9*y,.8*a).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*y,.01*a)).add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.6*y,.2*a,y,.25*a)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.7*a,y,.8*a,.6*y,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,.5*y,.75*a,.55*y,.95*a)).add(new go.PathSegment(go.PathSegment.Line,.25*y,a)).add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.7*a,.45*y,.95*a,.5*y,.75*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.4*y,.8*a,0,.8*a)).add(new go.PathSegment(go.PathSegment.Bezier,.49*y,.01*a,0,.25*a,.4*y,.2*a).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.4*y,.6*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*y,a,.5*y,.75*a,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.6*a,.55*y,.95*a,.5*y,.75*a));var E=.2,z=.3,ee=0,te=E*ue;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+E+ee)*a,(.5-E+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*y,(.5+ee)*a,(.5+te+z)*y,(.5+E+ee)*a,(.5+E+z)*y,(.5+te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-E+ee)*a,(1-.5+E+z)*y,(.5-te+ee)*a,(.5+te+z)*y,(.5-E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*y,.36771243*a,(.5-te+z)*y,(.5-E+ee)*a,(.5-E+z+.05)*y,(.5-te+ee-.02)*a)),E=.2,z=0,ee=-.3,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+E+z)*y,(.5+ee)*a,(.5+te+z)*y,(.5+E+ee)*a,(.5+E+z)*y,(.5+te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-E+ee)*a,(1-.5+E+z)*y,(.5-te+ee)*a,(.5+te+z)*y,(.5-E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*y,(.5+ee)*a,(.5-te+z)*y,(.5-E+ee)*a,(.5-E+z)*y,(.5-te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*y,(.5+E+ee)*a,(.5-E+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+E+ee)*a)),E=.2,z=-.3,ee=0,te=E*ue,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5-E+ee)*a,(1-.5+E+z-.05)*y,(.5-te+ee-.02)*a,(.5+te+z)*y,(.5-E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-E+z)*y,(.5+ee)*a,(.5-te+z)*y,(.5-E+ee)*a,(.5-E+z)*y,(.5-te+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*y,(.5+E+ee)*a,(.5-E+z)*y,(.5+te+ee)*a,(.5-te+z)*y,(.5+E+ee)*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.6*a,(.5+te+z)*y,(.5+E+ee)*a,(.5+E+z)*y,(.5+te+ee)*a).close()),x.setSpots(.06,.33,.93,.68),x}),go.Shape.defineFigureGenerator("YinYang",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.5,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,y*.5,y*.5,y*.5,y*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,y*.5,y*.75,y*.25,y*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,y*.5,y*.25,y*.25,y*.25));var E=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+E)*y,ee*a)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,y*z,a*ee,E*y,E*y).close()),b=new go.PathFigure(y*.5,0,!1),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*.5,y*.5,y*.5,y*.5)),ee=.75,b=new go.PathFigure((z+E)*y,ee*a,!0),x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,y*z,a*ee,E*y,E*y).close()),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Peace",function(ne,y,a){var x=.8535533905932737,b=.5*y,E=.5*a;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,a)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,x*a)).add(new go.PathSegment(go.PathSegment.Move,b,E)).add(new go.PathSegment(go.PathSegment.Line,x*y,x*a)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ne,y,a){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure(z*y,(ee-E)*a);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),E=.4,b=ue*.4;var oe=ae(),ge=ae(),ie=ae(),se=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.42,oe,ge,ie,se,se);var le=ae(),Fe=ae(),$e=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.58,se,se,$e,le,Fe);var it=ae(),vt=ae(),jt=ae();_e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.42,it,vt,jt,se,se);var ye=ae(),Ke=ae(),nt=ae();return _e(z,ee+E,z-b,ee+E,z-E,ee+b,z-E,ee,.58,se,se,nt,ye,Ke),te.add(new go.PathSegment(go.PathSegment.Move,nt.x*y,nt.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,ye.x*y,ye.y*a,Ke.x*y,Ke.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,ie.x*y,ie.y*a,oe.x*y,oe.y*a,ge.x*y,ge.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,nt.x*y,nt.y*a).close()),te.add(new go.PathSegment(go.PathSegment.Move,jt.x*y,jt.y*a)),te.add(new go.PathSegment(go.PathSegment.Line,$e.x*y,$e.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,le.x*y,le.y*a,Fe.x*y,Fe.y*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,jt.x*y,jt.y*a,it.x*y,it.y*a,vt.x*y,vt.y*a).close()),fe(oe),fe(ge),fe(ie),fe(se),fe(le),fe(Fe),fe($e),fe(it),fe(vt),fe(jt),fe(ye),fe(Ke),fe(nt),x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Fragile",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*y,0)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.29*y,.33*a)).add(new go.PathSegment(go.PathSegment.Line,.35*y,.25*a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.15*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.5*a,y,.25*a,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,a)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.5*a,0,.25*a).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ce("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,y,a){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=30),x>y&&(x=y);var b=(y-x)/2,E=b+x;return new go.Geometry().add(new go.PathFigure(E,.5*a).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)).add(new go.PathSegment(go.PathSegment.Line,b,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,y,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,.55*a).add(new go.PathSegment(go.PathSegment.Line,.6*y,0)).add(new go.PathSegment(go.PathSegment.Line,.3*y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,y,.45*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.55*a).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,y,a){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae(),se=new go.PathFigure((z-E)*y,ee*a,!1);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.44,ge,ie,oe,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*y,oe.y*a,ge.x*y,ge.y*a,ie.x*y,ie.y*a));var le=re(oe.x,oe.y);_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.56,te,te,oe,ge,ie);var Fe=re(oe.x,oe.y);se.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*y,le.y*.1*a)),se.add(new go.PathSegment(go.PathSegment.Line,.85*y,le.y*.1*a)),se.add(new go.PathSegment(go.PathSegment.Line,.85*y,0)),se.add(new go.PathSegment(go.PathSegment.Line,y,0)),se.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),se.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*y,.15*a)),se.add(new go.PathSegment(go.PathSegment.Line,(Fe.x*.1+.9)*y,(Fe.y*.1+.05*.9)*a)),se.add(new go.PathSegment(go.PathSegment.Line,Fe.x*y,Fe.y*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,ge.x*y,ge.y*a,ie.x*y,ie.y*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),E=.35,b=ue*.35;var $e=new go.PathFigure(z*y,(ee-E)*a,!1);x.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),$e.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),$e.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a));var it=new go.PathFigure((z-E)*y,ee*a,!1);return x.add(it),fe(te),fe(oe),fe(ge),fe(ie),fe(le),fe(Fe),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,y,a){var x=new go.Geometry,b=.375,E=0,z=-.125,ee=b*ue,te=new go.PathFigure((.525+E)*y,(.5+b+z)*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*y,(.5+z)*a,(.5+ee+E)*y,(.5+b+z)*a,(.5+b+E)*y,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*y,(.5-b+z)*a,(1-.5+b+E)*y,(.5-ee+z)*a,(.5+ee+E)*y,(.5-b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*y,(.5+z)*a,(.5-ee+E)*y,(.5-b+z)*a,(.5-b+E)*y,(.5-ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+E)*y,(.5+b+z)*a,(.5-b+E)*y,(.5+ee+z)*a,(.5-ee+E)*y,(.5+b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.425*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.475*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*y,.9*a)),te.add(new go.PathSegment(go.PathSegment.Line,.575*y,.85*a)),te.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a).close()),b=.325,E=0,z=-.125,ee=b*ue;var te=new go.PathFigure((1-.5+b+E)*y,(.5+z)*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*y,(.5+b+z)*a,(.5+b+E)*y,(.5+ee+z)*a,(.5+ee+E)*y,(.5+b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*y,(.5+z)*a,(.5-ee+E)*y,(.5+b+z)*a,(.5-b+E)*y,(.5+ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+E)*y,(.5-b+z)*a,(.5-b+E)*y,(.5-ee+z)*a,(.5-ee+E)*y,(.5-b+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+E)*y,(.5+z)*a,(.5+ee+E)*y,(.5-b+z)*a,(1-.5+b+E)*y,(.5-ee+z)*a));var te=new go.PathFigure((.525+E)*y,(.5+b+z)*a,!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,y,a){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ne,y,a){var x=ne?ne.parameter1:NaN;return isNaN(x)&&(x=.2),new go.Geometry().add(new go.PathFigure((1-x)*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,(1-x)*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,x*y,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,x*y,a))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,y,a){var x=new go.Geometry().add(new go.PathFigure(.5*y,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*y,.5*a,.5*y,.5*a)));return x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("LogicTruth",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.5*y,0)).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Move,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,0,.5*a)).add(new go.PathSegment(go.PathSegment.Move,y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*y,a)).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*a)).add(new go.PathSegment(go.PathSegment.Line,y,.5*a)).add(new go.PathSegment(go.PathSegment.Move,0,a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,y,a){var x=.5;return new go.Geometry().add(new go.PathFigure(0,a,!1).add(new go.PathSegment(go.PathSegment.Line,0,x*a)).add(new go.PathSegment(go.PathSegment.Arc,180,180,x*y,x*a,x*y,x*a)).add(new go.PathSegment(go.PathSegment.Line,y,a))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ne,y,a){var x=.5;return new go.Geometry().add(new go.PathFigure(y,0,!1).add(new go.PathSegment(go.PathSegment.Line,y,x*a)).add(new go.PathSegment(go.PathSegment.Arc,0,180,x*y,x*a,x*y,x*a)).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,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var E=(1-x)*y,z=(.5-b/2)*a,ee=(.5+b/2)*a,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,y,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,E,a)),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/a);var ge=We(0,ee/a,1,ee/a,E/y,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),fe(ge),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,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=30),x>y&&(x=y);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,a/2);var E=y-x,z=(a-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,y,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Line,E,a)),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/a);var ge=We(0,ee/a,1,ee/a,E/y,1,1,.5,ae());return te.spot2=new go.Spot(ge.x,ge.y),fe(ge),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),x}),go.Shape.defineFigureGenerator("DoubleArrow",function(ne,y,a){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*y,.214*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.786*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*a).close()),x}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Ce("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*a,E=(.5+x/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close());var te=We(0,.5,.3,0,0,b/a,.1,b/a,ae());return z.spot1=new go.Spot(te.x,te.y),te=We(.7,1,1,.5,0,E/a,1,E/a,te),z.spot2=new go.Spot(te.x,te.y),fe(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,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(a-x)/2,z=E+x,ee=(a-b)/2,te=ee+b;(x>a||b>a)&&(b>x?(x=x*a/b,E=(a-x)/2,z=E+x,ee=0,te=a):(E=0,z=a,ee=0,te=a));var oe=new go.Geometry,ge=new go.PathFigure(y,.5*a,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.3*y,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close());var ie=We(0,.5,.3,ee/a,0,E/a,1,E/a,ae());return oe.spot1=new go.Spot(ie.x,ie.y),ie=We(.7,te/a,1,.5,0,z/a,1,z/a,ie),oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Ce("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=(.5-x/2)*a,E=(.5+x/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(0,b/a);var te=We(.7,1,1,.5,0,E/a,1,E/a,ae());return z.spot2=new go.Spot(te.x,te.y),fe(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,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var E=(a-x)/2,z=E+x,ee=(a-b)/2,te=ee+b;(x>a||b>a)&&(b>x?(x=x*a/b,E=(a-x)/2,z=E+x,ee=0,te=a):(E=0,z=a,ee=0,te=a));var oe=new go.Geometry,ge=new go.PathFigure(y,.5*a,!0);oe.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,z)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,ee)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*y,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*y,ee).close()),oe.spot1=new go.Spot(0,E/a);var ie=We(.7,te/a,1,.5,0,z/a,1,z/a,ae());return oe.spot2=new go.Spot(ie.x,ie.y),fe(ie),oe}),go.Shape.setFigureParameter("Pointer",0,new Ce("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.1);var b=new go.Geometry,E=new go.PathFigure(y,.5*a,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,x*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(x,.35);var z=We(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ce("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.3);var b=new go.Geometry,E=new go.PathFigure(y,.5*a,!0);b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Bezier,0,0,x*y,.75*a,x*y,.25*a).close()),b.spot1=new go.Spot(x,.35);var z=We(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),fe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ce("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.4);var b=(.5-x/2)*a,E=(.5+x/2)*a,z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,.3);var te=We(.7,1,1,.5,0,E/a,1,E/a,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ce("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=50);var b=(a-x)/2,E=b+x;x>a&&(b=0,E=a);var z=new go.Geometry,ee=new go.PathFigure(y,.5*a,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,E)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*y,0).close()),z.spot1=new go.Spot(.2,b/a);var te=We(.7,1,1,.5,0,E/a,1,E/a,ae());return z.spot2=new go.Spot(te.x,te.y),fe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ce("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.7);var b=new go.Geometry,E=new go.PathFigure(y,.5*a,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,x*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,x*y,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(x,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ne,y,a){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(0,.9*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+E)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+E)*a).close()),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.97),x}),go.Shape.defineFigureGenerator("Cone2",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.9*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,a,.85/.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*a).close());var E=new go.PathFigure(0,.9*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Bezier,y,.9*a,(1-.85/.9)*y,.8*a,.85/.9*y,.8*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.82),x}),go.Shape.defineFigureGenerator("Cube1",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var E=new go.PathFigure(.5*y,a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.15*a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.5,.85),x}),go.Shape.defineFigureGenerator("Cube2",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.3*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0).close());var E=new go.PathFigure(0,.3*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Move,.7*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,.7*y,a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(.7,1),x}),go.Shape.defineFigureGenerator("Cylinder1",function(ne,y,a){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(0,x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ue*x,(.5-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*y,x,(.5+E)*y,0,1*y,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,1*a,1*y,a-ue*x,(.5+E)*y,1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-E)*y,1*a,0,a-ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,0,x));var ee=new go.PathFigure(y,x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,2*x,1*y,2*x-ue*x,(.5+E)*y,2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x,(.5-E)*y,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,y,a){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(0,a-x,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,ue*x,(.5-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,x,(.5+E)*y,0,y,ue*x)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-x)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,a-ue*x,(.5+E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-x,(.5-E)*y,a,0,a-ue*x));var ee=new go.PathFigure(0,a-x,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a-2*x,0,a-x-ue*x,(.5-E)*y,a-2*x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,a-x,(.5+E)*y,a-2*x,y,a-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,y,a){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(x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y-x,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ue*x,0,y,(.5-E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y,(.5+E)*a,y-ue*x,a)),z.add(new go.PathSegment(go.PathSegment.Line,x,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ue*x,a,0,(.5+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*a,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*a,x+ue*x,0,2*x,(.5-E)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,x,a,2*x,(.5+E)*a,x+ue*x,a)),b.spot1=new go.Spot(0,0,2*x,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ne,y,a){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(y-x,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,y-ue*x,0,y,(.5-E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y,(.5+E)*a,y-ue*x,a)),z.add(new go.PathSegment(go.PathSegment.Line,x,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,ue*x,a,0,(.5+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,x,0,0,(.5-E)*a,ue*x,0)),z.add(new go.PathSegment(go.PathSegment.Line,y-x,0));var ee=new go.PathFigure(y-x,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-2*x,.5*a,y-x-ue*x,0,y-2*x,(.5-E)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-x,a,y-2*x,(.5+E)*a,y-x-ue*x,a)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*x,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.25*y,.25*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(.25*y,.25*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),x.spot1=new go.Spot(.408,.172),x.spot2=new go.Spot(.833,.662),x}),go.Shape.defineFigureGenerator("Prism2",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.25*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(0,a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),E.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,.25*y,.5*a)),x.spot1=new go.Spot(.25,.5),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("Pyramid1",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a).close());var E=new go.PathFigure(.5*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Pyramid2",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*a).close());var E=new go.PathFigure(.5*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.85*a)),E.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),x.spot1=new go.Spot(.25,.367),x.spot2=new go.Spot(.75,.875),x}),go.Shape.defineFigureGenerator("Actor",function(ne,y,a){var x=new go.Geometry,b=.2,E=.1,z=ue*b,ee=ue*E,te=.5,oe=.1,ge=new go.PathFigure(te*y,(oe+E)*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*y,oe*a,(te-z)*y,(oe+E)*a,(te-b)*y,(oe+ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe-E)*a,(te-b)*y,(oe-ee)*a,(te-z)*y,(oe-E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*y,oe*a,(te+z)*y,(oe-E)*a,(te+b)*y,(oe-ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe+E)*a,(te+b)*y,(oe+ee)*a,(te+z)*y,(oe+E)*a));var ie=.05,se=ue*ie;te=.05,oe=.25;var le=new go.PathFigure(.5*y,.2*a,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*y,.2*a)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ie)*y,oe*a,(te+se)*y,(oe-ie)*a,(te+ie)*y,(oe-se)*a)),le.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),le.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),le.add(new go.PathSegment(go.PathSegment.Line,.85*y,.35*a)),ie=.025,se=ue*ie,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe-ie)*a,(te+ie)*y,(oe-se)*a,(te+se)*y,(oe-ie)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*y,oe*a,(te-se)*y,(oe-ie)*a,(te-ie)*y,(oe-se)*a)),le.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),le.add(new go.PathSegment(go.PathSegment.Line,.55*y,a)),le.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a)),ie=.05,se=ue*ie,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe-ie)*a,(te+ie)*y,(oe-se)*a,(te+se)*y,(oe-ie)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*y,oe*a,(te-se)*y,(oe-ie)*a,(te-ie)*y,(oe-se)*a)),le.add(new go.PathSegment(go.PathSegment.Line,.45*y,a)),le.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),le.add(new go.PathSegment(go.PathSegment.Line,.2*y,.35*a)),ie=.025,se=ue*ie,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe-ie)*a,(te+ie)*y,(oe-se)*a,(te+se)*y,(oe-ie)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ie)*y,oe*a,(te-se)*y,(oe-ie)*a,(te-ie)*y,(oe-se)*a)),le.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),ie=.05,se=ue*ie,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe-ie)*a,(te-ie)*y,(oe-se)*a,(te-se)*y,(oe-ie)*a)),le.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),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,y,a){var x=ne?ne.parameter1:NaN;isNaN(x)&&(x=.2);var b=new go.Geometry,E=new go.PathFigure(y,0,!0);return b.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,x*a)),E.add(new go.PathSegment(go.PathSegment.Line,x*y,0).close()),b.spot1=new go.Spot(0,x),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a));var E=new go.PathFigure(.5*y,.5*a,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,.25),x}),go.Shape.defineFigureGenerator("CreateRequest",function(ne,y,a){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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),x}),go.Shape.defineFigureGenerator("Database",function(ne,y,a){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(y,.1*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+E)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-E)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-E)*a));var ee=new go.PathFigure(y,.1*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+E)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+E)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+E)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+E)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.4*a,y,(.3+E)*a,(.5+b)*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*a,(.5-b)*y,.4*a,0,(.3+E)*a)),x.spot1=new go.Spot(0,.4),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("DataStorage",function(ne,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.9*a,.25*y,.1*a).close()),x.spot1=new go.Spot(.226,0),x.spot2=new go.Spot(.81,1),x}),go.Shape.defineFigureGenerator("DiskStorage",function(ne,y,a){var x=new go.Geometry,b=ue*.5,E=ue*.1,z=new go.PathFigure(y,.1*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.9+E)*a,(.5+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,(.5-b)*y,a,0,(.9+E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,(.1-E)*a,(.5-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,(.5+b)*y,0,y,(.1-E)*a));var ee=new go.PathFigure(y,.1*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,y,(.1+E)*a,(.5+b)*y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*a,(.5-b)*y,.2*a,0,(.1+E)*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,.2*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.3*a,y,(.2+E)*a,(.5+b)*y,.3*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*a,(.5-b)*y,.3*a,0,(.2+E)*a)),x.spot1=new go.Spot(0,.3),x.spot2=new go.Spot(1,.9),x}),go.Shape.defineFigureGenerator("Display",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,a,y,0,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close()),x.spot1=new go.Spot(.25,0),x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("DividedEvent",function(ne,y,a){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*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,0,(.2-E)*a,(.2-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.2*a,(.8+E)*y,0,y,(.2-E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,a,y,(.8+E)*a,(.8+E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*a,(.2-E)*y,a,0,(.8+E)*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*a));var ee=new go.PathFigure(0,b*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),x}),go.Shape.defineFigureGenerator("DividedProcess",function(ne,y,a){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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(0,b*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,b*a)),x}),go.Shape.defineFigureGenerator("Document",function(ne,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ne,y,a){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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*a)),z.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*a)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,y,(1-b)*a)),x}),go.Shape.defineFigureGenerator("ExternalProcess",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var E=new go.PathFigure(.1*y,.4*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Move,.9*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Move,.6*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Move,.4*y,.9*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.9*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("File",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(.75*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.75*y,.25*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Interrupt",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a));var E=new go.PathFigure(y,.5*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,a));var z=new go.PathFigure(y,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,0)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("InternalStorage",function(ne,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var ee=new go.PathFigure(b*y,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,E*a)),ee.add(new go.PathSegment(go.PathSegment.Line,y,E*a)),x}),go.Shape.defineFigureGenerator("Junction",function(ne,y,a){var x=new go.Geometry,b=1/Math.SQRT2,E=(1-1/Math.SQRT2)/2,z=ue*.5,ee=.5,te=new go.PathFigure(y,ee*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,a,y,(ee+z)*a,(ee+z)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*a,(ee-z)*y,a,0,(ee+z)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,0,0,(ee-z)*a,(ee-z)*y,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,y,ee*a,(ee+z)*y,0,y,(ee-z)*a));var oe=new go.PathFigure((E+b)*y,(E+b)*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,E*y,E*a)),oe.add(new go.PathSegment(go.PathSegment.Move,E*y,(E+b)*a)),oe.add(new go.PathSegment(go.PathSegment.Line,(E+b)*y,E*a)),x}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close());var E=new go.PathFigure(.1*y,0,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,.75*a)),x.spot1=new go.Spot(.1,0),x.spot2=new go.Spot(1,.6),x}),go.Shape.defineFigureGenerator("LoopLimit",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MagneticTape",function(ne,y,a){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(.5*y,a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*a,(E-b)*y,a,0,(E+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,0,0,(E-b)*a,(E-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E*a,(E+b)*y,0,y,(E-b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,(E+.1)*y,.9*a,y,(E+b)*a,(E+b)*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),x.spot1=new go.Spot(.15,.15),x.spot2=new go.Spot(.85,.8),x}),go.Shape.defineFigureGenerator("ManualInput",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a).close()),x.spot1=new go.Spot(0,.25),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("MessageFromUser",function(ne,y,a){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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,b*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ne,y,a){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*y,b*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,(1-b)*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("MicroformRecording",function(ne,y,a){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*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("MultiDocument",function(ne,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.44*a,.96*y,.47*a,.93*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.54*a,.86*y,.57*a,.83*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.4*y,.4*a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0).close());var E=new go.PathFigure(.1*y,.2*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.54*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.44*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.8,.77),x}),go.Shape.defineFigureGenerator("MultiProcess",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,.1*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close());var E=new go.PathFigure(.2*y,.1*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.1*a)),E.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Move,.1*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.9*a)),x.spot1=new go.Spot(0,.2),x.spot2=new go.Spot(.8,1),x}),go.Shape.defineFigureGenerator("OfflineStorage",function(ne,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close());var ee=new go.PathFigure(.5*b*y,b*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*y,b*a)),x}),go.Shape.defineFigureGenerator("OffPageConnector",function(ne,y,a){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*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.75,1),x}),go.Shape.defineFigureGenerator("Or",function(ne,y,a){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(y,E*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,a,y,(E+b)*a,(E+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*a,(E-b)*y,a,0,(E+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,0,0,(E-b)*a,(E-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E*a,(E+b)*y,0,y,(E-b)*a));var ee=new go.PathFigure(y,.5*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),x}),go.Shape.defineFigureGenerator("PaperTape",function(ne,y,a){var x=new go.Geometry;a=a/.8;var b=new go.PathFigure(0,.7*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.3*a,.5*y,.6*a,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*a,.5*y,.4*a,.5*y,a).close()),x.spot1=new go.Spot(0,.49),x.spot2=new go.Spot(1,.75),x}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ne,y,a){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,y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ne,y,a){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)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,(1-E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Procedure",function(ne,y,a){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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure((1-b)*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,b*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),x}),go.Shape.defineFigureGenerator("Process",function(ne,y,a){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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var z=new go.PathFigure(b*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),x.spot2=go.Spot.BottomRight,x}),go.Shape.defineFigureGenerator("Sort",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a).close());var E=new go.PathFigure(0,.5*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),x.spot1=new go.Spot(.25,.25),x.spot2=new go.Spot(.75,.5),x}),go.Shape.defineFigureGenerator("Start",function(ne,y,a){var x=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)&&(b=.25);var E=new go.PathFigure(b*y,0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a));var z=new go.PathFigure(b*y,0,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*y,a)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*y,a)),x.spot1=new go.Spot(b,0),x.spot2=new go.Spot(1-b,1),x}),go.Shape.defineFigureGenerator("Terminator",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.25*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*y,.5*a,.25*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*y,.5*a,.25*y,.5*a)),x.spot1=new go.Spot(.23,0),x.spot2=new go.Spot(.77,1),x}),go.Shape.defineFigureGenerator("TransmittalTape",function(ne,y,a){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,y,0)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.75*y,(1-b)*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*a).close()),x.spot1=go.Spot.TopLeft,x}),go.Shape.defineFigureGenerator("AndGate",function(ne,y,a){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*y,0)),E.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(.5+b)*y,0,y,(.5-b)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,(.5+b)*a,(.5+b)*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=go.Spot.TopLeft,x.spot2=new go.Spot(.55,1),x}),go.Shape.defineFigureGenerator("Buffer",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Clock",function(ne,y,a){var x=new go.Geometry,b=ue*.5,E=.5,z=new go.PathFigure(y,E*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,a,y,(E+b)*a,(E+b)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,E*a,(E-b)*y,a,0,(E+b)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,E*y,0,0,(E-b)*a,(E-b)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,E*a,(E+b)*y,0,y,(E-b)*a));var ee=new go.PathFigure(y,E*a,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,E*a));var te=new go.PathFigure(.8*y,.75*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.6*y,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*y,.75*a)),te.add(new go.PathSegment(go.PathSegment.Line,.4*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Line,.2*y,.75*a)),x}),go.Shape.defineFigureGenerator("Ground",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Move,.3*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),x}),go.Shape.defineFigureGenerator("Inverter",function(ne,y,a){var x=new go.Geometry,b=ue*.1,E=.1,z=.9,ee=.5,te=new go.PathFigure(.8*y,.5*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,a)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a));var oe=new go.PathFigure((z+E)*y,ee*a,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee-E)*a,(z+E)*y,(ee-b)*a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.4,.75),x}),go.Shape.defineFigureGenerator("NandGate",function(ne,y,a){var x=new go.Geometry,b=ue*.5,E=ue*.4,z=ue*.1,ee=.1,te=.9,oe=.5,ge=new go.PathFigure(.8*y,.5*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,.8*y,(.5+E)*a,(.4+b)*y,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,a)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(.4+b)*y,0,.8*y,(.5-E)*a));var ie=new go.PathFigure((te+ee)*y,oe*a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe+ee)*a,(te+ee)*y,(oe+z)*a,(te+z)*y,(oe+ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y,oe*a,(te-z)*y,(oe+ee)*a,(te-ee)*y,(oe+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe-ee)*a,(te-ee)*y,(oe-z)*a,(te-z)*y,(oe-ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y,oe*a,(te+z)*y,(oe-ee)*a,(te+ee)*y,(oe-z)*a)),x.spot1=new go.Spot(0,.05),x.spot2=new go.Spot(.55,.95),x}),go.Shape.defineFigureGenerator("NorGate",function(ne,y,a){var x=new go.Geometry,b=.5,E=ue*b,z=0,ee=.5,te=new go.PathFigure(.8*y,.5*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.7*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+E)*y,(ee-b)*a,.7*y,(ee-E)*a)),b=.1,E=ue*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*y,ee*a,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.6,.75),x}),go.Shape.defineFigureGenerator("OrGate",function(ne,y,a){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,y,.5*a,(z+E+E)*y,(ee-b)*a,.8*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.8*y,(ee+E)*a,(z+E+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*y,.75*a,.25*y,.25*a).close()),x.spot1=new go.Spot(.2,.25),x.spot2=new go.Spot(.75,.75),x}),go.Shape.defineFigureGenerator("XnorGate",function(ne,y,a){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*y,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var oe=new go.PathFigure(.8*y,.5*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.7*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.5*a,(z+E)*y,(ee-b)*a,.7*y,(ee-E)*a)),b=.1,E=ue*.1,z=.9,ee=.5;var ge=new go.PathFigure((z-b)*y,ee*a,!0);return x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.65,.75),x}),go.Shape.defineFigureGenerator("XorGate",function(ne,y,a){var x=new go.Geometry,b=.5,E=ue*b,z=.2,ee=.5,te=new go.PathFigure(.1*y,0,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,a,.35*y,.25*a,.35*y,.75*a));var oe=new go.PathFigure(.2*y,0,!0);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,(z+E)*y,(ee-b)*a,.9*y,(ee-E)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,a,.9*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*y,0,.45*y,.75*a,.45*y,.25*a).close()),x.spot1=new go.Spot(.4,.25),x.spot2=new go.Spot(.8,.75),x}),go.Shape.defineFigureGenerator("Capacitor",function(ne,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("Resistor",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),x}),go.Shape.defineFigureGenerator("Inductor",function(ne,y,a){var x=new go.Geometry,b=ue*.1,E=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*y,a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+E)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+E)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,a,(z+E)*y,0,(z+b)*y,a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,0,(z-b)*y,a,(z-E)*y,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*y,a,(z+E)*y,0,(z+b)*y,a)),x}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ne,y,a){var x=new go.Geometry,b=ue*.5,E=.5,z=.5,ee=.5,te=new go.PathFigure((z-E)*y,ee*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-E)*a,(z-E)*y,(ee-b)*a,(z-b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee-E)*a,(z+E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Move,(z-E+.1)*y,ee*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+E-.1)*y,ee*a,z*y,(ee-E)*a,z*y,(ee+E)*a)),x}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("Diode",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x.spot1=new go.Spot(0,.25),x.spot2=new go.Spot(.5,.75),x}),go.Shape.defineFigureGenerator("Wifi",function(ne,y,a){var x=new go.Geometry,b=y,E=a;y=y*.38,a=a*.6;var z=ue*.8,ee=.8,te=0,oe=.5,ge=(b-y)/2,ie=(E-a)/2,se=new go.PathFigure(te*y+ge,(oe+ee)*a+ie,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+ge,oe*a+ie,(te-z)*y+ge,(oe+ee)*a+ie,(te-ee)*y+ge,(oe+z)*a+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ge,(oe-ee)*a+ie,(te-ee)*y+ge,(oe-z)*a+ie,(te-z)*y+ge,(oe-ee)*a+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*y+ge,oe*a+ie,te*y+ge,(oe-ee)*a+ie,(te-ee+z*.5)*y+ge,(oe-z)*a+ie)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ge,(oe+ee)*a+ie,(te-ee+z*.5)*y+ge,(oe+z)*a+ie,te*y+ge,(oe+ee)*a+ie).close()),z=ue*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*y+ge,(oe+ee)*a+ie,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+ge,oe*a+ie,(te-z)*y+ge,(oe+ee)*a+ie,(te-ee)*y+ge,(oe+z)*a+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ge,(oe-ee)*a+ie,(te-ee)*y+ge,(oe-z)*a+ie,(te-z)*y+ge,(oe-ee)*a+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*y+ge,oe*a+ie,te*y+ge,(oe-ee)*a+ie,(te-ee+z*.5)*y+ge,(oe-z)*a+ie)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ge,(oe+ee)*a+ie,(te-ee+z*.5)*y+ge,(oe+z)*a+ie,te*y+ge,(oe+ee)*a+ie).close()),z=ue*.2,ee=.2,te=.5,oe=.5;var Fe=new go.PathFigure((te-ee)*y+ge,oe*a+ie,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ge,(oe-ee)*a+ie,(te-ee)*y+ge,(oe-z)*a+ie,(te-z)*y+ge,(oe-ee)*a+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+ge,oe*a+ie,(te+z)*y+ge,(oe-ee)*a+ie,(te+ee)*y+ge,(oe-z)*a+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ge,(oe+ee)*a+ie,(te+ee)*y+ge,(oe+z)*a+ie,(te+z)*y+ge,(oe+ee)*a+ie)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*y+ge,oe*a+ie,(te-z)*y+ge,(oe+ee)*a+ie,(te-ee)*y+ge,(oe+z)*a+ie)),z=ue*.4,ee=.4,te=.8,oe=.5;var $e=new go.PathFigure(te*y+ge,(oe-ee)*a+ie,!0);x.add($e),$e.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+ge,oe*a+ie,(te+z)*y+ge,(oe-ee)*a+ie,(te+ee)*y+ge,(oe-z)*a+ie)),$e.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ge,(oe+ee)*a+ie,(te+ee)*y+ge,(oe+z)*a+ie,(te+z)*y+ge,(oe+ee)*a+ie)),$e.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*y+ge,oe*a+ie,te*y+ge,(oe+ee)*a+ie,(te+ee-z*.5)*y+ge,(oe+z)*a+ie)),$e.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ge,(oe-ee)*a+ie,(te+ee-z*.5)*y+ge,(oe-z)*a+ie,te*y+ge,(oe-ee)*a+ie).close()),z=ue*.8,ee=.8,te=1,oe=.5;var it=new go.PathFigure(te*y+ge,(oe-ee)*a+ie,!0);return x.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*y+ge,oe*a+ie,(te+z)*y+ge,(oe-ee)*a+ie,(te+ee)*y+ge,(oe-z)*a+ie)),it.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ge,(oe+ee)*a+ie,(te+ee)*y+ge,(oe+z)*a+ie,(te+z)*y+ge,(oe+ee)*a+ie)),it.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*y+ge,oe*a+ie,te*y+ge,(oe+ee)*a+ie,(te+ee-z*.5)*y+ge,(oe+z)*a+ie)),it.add(new go.PathSegment(go.PathSegment.Bezier,te*y+ge,(oe-ee)*a+ie,(te+ee-z*.5)*y+ge,(oe-z)*a+ie,te*y+ge,(oe-ee)*a+ie).close()),x}),go.Shape.defineFigureGenerator("Email",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),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*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,0)),E.add(new go.PathSegment(go.PathSegment.Move,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,.45*y,.54*a)),E.add(new go.PathSegment(go.PathSegment.Move,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.55*y,.54*a)),x}),go.Shape.defineFigureGenerator("Ethernet",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.35*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,0).close());var E=new go.PathFigure(.1*y,a,!0,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var z=new go.PathFigure(.6*y,a,!0,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.6*y,a).close());var ee=new go.PathFigure(0,.5*a,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*y,.4*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*y,.6*a)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*y,.5*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*y,.6*a)),x}),go.Shape.defineFigureGenerator("Power",function(ne,y,a){var x=new go.Geometry,b=ue*.4,E=.4,z=.5,ee=.5,te=ae(),oe=ae(),ge=ae(),ie=ae();_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ge,ie);var se=re(oe.x,oe.y),le=new go.PathFigure(oe.x*y,oe.y*a,!0);x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,ge.x*y,ge.y*a,ie.x*y,ie.y*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z+E)*y,(ee+b)*a,(z+b)*y,(ee+E)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,(z-b)*y,(ee+E)*a,(z-E)*y,(ee+b)*a)),_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*y,oe.y*a,ge.x*y,ge.y*a,ie.x*y,ie.y*a)),b=ue*.3,E=.3,_e(z-E,ee,z-E,ee-b,z-b,ee-E,z,ee-E,.5,ge,ie,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*y,oe.y*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-E)*y,ee*a,ie.x*y,ie.y*a,ge.x*y,ge.y*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+E)*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+E)*y,ee*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),_e(z,ee-E,z+b,ee-E,z+E,ee-b,z+E,ee,.5,te,te,oe,ge,ie),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*y,oe.y*a,ie.x*y,ie.y*a,ge.x*y,ge.y*a).close());var le=new go.PathFigure(.45*y,0,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*y,.5*a)),le.add(new go.PathSegment(go.PathSegment.Line,.55*y,.5*a)),le.add(new go.PathSegment(go.PathSegment.Line,.55*y,0).close()),fe(te),fe(oe),fe(ge),fe(ie),fe(se),x.spot1=new go.Spot(.25,.45),x.spot2=new go.Spot(.75,.8),x}),go.Shape.defineFigureGenerator("Fallout",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a/2,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,y/2,a/2,y/2,a/2));function E(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*y,(.8+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*y,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*y,(.5+te)*a)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*y,(.8+te)*a).close())}return E(b,0,0),E(b,.4,0),E(b,.2,-.3),x}),go.Shape.defineFigureGenerator("IrritationHazard",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.2*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close()),x.spot1=new go.Spot(.3,.3),x.spot2=new go.Spot(.7,.7),x}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.37*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.11*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.04*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.49*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.37*a)),b.add(new go.PathSegment(go.PathSegment.Line,.63*y,.86*a)),b.add(new go.PathSegment(go.PathSegment.Line,.77*y,.91*a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.34*y,.78*a)),b.add(new go.PathSegment(go.PathSegment.Line,.44*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.56*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*a).close()),x}),go.Shape.defineFigureGenerator("FireHazard",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*y,0,-.25*y,.63*a,.45*y,.44*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*y,.42*a,.48*y,.17*a,.54*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*y,.18*a,.59*y,.29*a,.58*y,.28*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*y,.6*a,.8*y,.34*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*y,.31*a,.87*y,.48*a,.88*y,.43*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,1.17*y,.76*a,.82*y,.8*a).close()),x.spot1=new go.Spot(.07,.445),x.spot2=new go.Spot(.884,.958),x}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ne,y,a){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,ge=1,ie=.5,se=.5,le=0,Fe=new go.PathFigure(te*y,(1-oe)*a,!1);return x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,ie*a,ge*y,.7*a,ge*y,ie*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se+E)*y,(le+E)*a,(.5+b+E)*y,(.5-ee+E)*a,(.5+ee+E)*y,(.5-b+E)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+E)*y,(.5+z)*a,(.5-ee+E)*y,(.5-b+z)*a,(.5-b+E)*y,(.5-ee+z)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(.35+E)*y,.9*a,(.5-b+E)*y,(.5+ee+z)*a,(.5-ee+E)*y,.9*a)),Fe.add(new go.PathSegment(go.PathSegment.Move,(.25+E)*y,.8*a)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.35+E)*y,.9*a)),Fe.add(new go.PathSegment(go.PathSegment.Line,(.2+E)*y,.95*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),x}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(y,a,!1);x.add(E);var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.2*y,.35*a,.3*y,.35*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.7*y,.65*a,.8*y,.65*a)),x}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a).close()),x}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a).close());var b=new go.PathFigure(0,.2*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.7*y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,0,.6*y,.5*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,a,.4*y,.5*a,y,.5*a).close());var E=new go.PathFigure(.45*y,.73*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.7*y,.73*a)),E.add(new go.PathSegment(go.PathSegment.Move,.38*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.63*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Move,.31*y,.27*a)),E.add(new go.PathSegment(go.PathSegment.Line,.56*y,.27*a)),x}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(.335*y,(1-.555)*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,y,.68*a,(1-.12)*y,.46*a,(1-.02)*y,.54*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.68*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.335*y,(1-.555)*a,.02*y,.54*a,.12*y,.46*a)),E.add(new go.PathSegment(go.PathSegment.Line,.365*y,(1-.595)*a));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,ge=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ie=ge*.5,se=z,le=z,Fe=ge*se,$e=ge*le;E.add(new go.PathSegment(go.PathSegment.Bezier,(ee-se)*y,te*a,(ee-(Fe+se)/2)*y,(te+(le+$e)/2)*a,(ee-se)*y,(te+$e)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,ee*y,(te-le)*a,(ee-se)*y,(te-$e)*a,(ee-Fe)*y,(te-le)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(ee+se)*y,te*a,(ee+Fe)*y,(te-le)*a,(ee+se)*y,(te-$e)*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*y,(1-.595)*a,(ee+se)*y,(te+$e)*a,(ee+(Fe+se)/2)*y,(te+(le+$e)/2)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*y,(1-.595)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.555)*a)),E.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*y,(1-.405)*a)),E.add(new go.PathSegment(go.PathSegment.Line,.335*y,(1-.405)*a));var it=new go.PathFigure(.2*y,a,!1);x.add(it),it.add(new go.PathSegment(go.PathSegment.Line,.2*y,.8*a));var vt=new go.PathFigure(.8*y,a,!1);return x.add(vt),vt.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,a).close());var E=new go.PathFigure(.2*y,.2*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.8*a)),x}),go.Shape.defineFigureGenerator("BpmnEventError",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.5*a).close()),x}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);x.add(b);var E=new go.PathFigure(y,a,!1);x.add(E);var z=new go.PathFigure(.1*y,a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a).close()),x}),go.Shape.defineFigureGenerator("Caution",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.05*y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.8*a,0,a,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*y,.1*a,.5*y,0,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,a,y,a,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,a));var E=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-E)*y,.875*a)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*y,.875*a,E*y,E*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.325*a,.575*y,.725*a,.625*y,.375*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.75*a,.375*y,.375*a,.425*y,.725*a)),x}),go.Shape.defineFigureGenerator("Recycle",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.45*y,.95*a,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*y,.85*a,.17*y,.95*a,.15*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.235*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,.3*y,.625*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,.275*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.05*y,.575*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*y,.95*a,0,.675*a,0,.7*a)),b.add(new go.PathSegment(go.PathSegment.Move,.45*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.775*a)),b.add(new go.PathSegment(go.PathSegment.Line,.22*y,.775*a));var E=new go.PathFigure(.475*y,.2*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.4*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.225*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Line,.275*y,.175*a)),E.add(new go.PathSegment(go.PathSegment.Line,.325*y,.05*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,.05*a,.35*y,0,.375*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.575*y,.375*a)),E.add(new go.PathSegment(go.PathSegment.Line,.525*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.75*y,.475*a)),E.add(new go.PathSegment(go.PathSegment.Line,.85*y,.315*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.32*a)),E.add(new go.PathSegment(go.PathSegment.Line,.65*y,.05*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,0,.65*y,.05*a,.625*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.38*y,.0105*a));var z=new go.PathFigure(.675*y,.575*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*y,.525*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*y,.95*a,y,.8*a,y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.95*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.85*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.725*a)),z.add(new go.PathSegment(go.PathSegment.Line,.65*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,.7*y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Line,y,.775*a)),z.add(new go.PathSegment(go.PathSegment.Move,.675*y,.575*a)),z.add(new go.PathSegment(go.PathSegment.Line,.775*y,.775*a)),x}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ne,y,a){var x=new go.Geometry,b=.5,E=ue*.5,z=new go.PathFigure(y,b*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,a,y,(b+E)*a,(b+E)*y,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*a,(b-E)*y,a,0,(b+E)*a)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*y,0,0,(b-E)*a,(b-E)*y,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,y,b*a,(b+E)*y,0,y,(b-E)*a));var ee=new go.PathFigure(b*y,0,!1);return x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.15*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,a)),ee.add(new go.PathSegment(go.PathSegment.Line,b*y,.85*a)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*y,.1*a)),ee.add(new go.PathSegment(go.PathSegment.Move,b*y,b*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*y,.54*a)),x}),go.Shape.defineFigureGenerator("Package",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.15*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close());var E=new go.PathFigure(0,.15*a,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,0)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.65*y,.15*a).close()),x.spot1=new go.Spot(0,.1),x.spot2=new go.Spot(1,1),x}),go.Shape.defineFigureGenerator("Class",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(0,.5*a,!1);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,.5*a).close()),x}),go.Shape.defineFigureGenerator("Component",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close());var E=new go.PathFigure(0,.2*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.45*y,.2*a)),E.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.2*a).close());var z=new go.PathFigure(0,.6*a,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.6*a)),z.add(new go.PathSegment(go.PathSegment.Line,.45*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*a).close()),x}),go.Shape.defineFigureGenerator("Boat Shipment",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.15*y,.6*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.6*a));var E=new go.PathFigure(.15*y,.6*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.85*y,.6*a)),x}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.66*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,.33*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),x}),go.Shape.defineFigureGenerator("Workcell",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.65*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.35*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),x}),go.Shape.defineFigureGenerator("Supermarket",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.33*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*a)),b.add(new go.PathSegment(go.PathSegment.Move,y,.66*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),x}),go.Shape.defineFigureGenerator("TruckShipment",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(y,.8*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,.6*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.8*a).close());var z=.1,ee=ue*.1,te=.2,oe=.9,ge=new go.PathFigure((te-z)*y,oe*a,!0);x.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe-z)*a,(te-z)*y,(oe-ee)*a,(te-ee)*y,(oe-z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*y,oe*a,(te+ee)*y,(oe-z)*a,(te+z)*y,(oe-ee)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe+z)*a,(te+z)*y,(oe+ee)*a,(te+ee)*y,(oe+z)*a)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*y,oe*a,(te-ee)*y,(oe+z)*a,(te-z)*y,(oe+ee)*a).close()),z=.1,ee=ue*.1,te=.8,oe=.9;var ie=new go.PathFigure((te-z)*y,oe*a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe-z)*a,(te-z)*y,(oe-ee)*a,(te-ee)*y,(oe-z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*y,oe*a,(te+ee)*y,(oe-z)*a,(te+z)*y,(oe-ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*y,(oe+z)*a,(te+z)*y,(oe+ee)*a,(te+ee)*y,(oe+z)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*y,oe*a,(te-ee)*y,(oe+z)*a,(te-z)*y,(oe+ee)*a).close()),x}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.2*y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,a)),x}),go.Shape.defineFigureGenerator("Forklift",function(ne,y,a){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*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var E=new go.PathFigure(0,.5*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var z=new go.PathFigure(.5*y,.8*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.1*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.8*a)),z.add(new go.PathSegment(go.PathSegment.Line,.5*y,.8*a));var ee=new go.PathFigure(.5*y,.7*a,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y,.7*a));var te=.1,oe=ue*.1,ge=.1,ie=.9,se=new go.PathFigure((ge-te)*y,ie*a,!0);x.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(ie-te)*a,(ge-te)*y,(ie-oe)*a,(ge-oe)*y,(ie-te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*y,ie*a,(ge+oe)*y,(ie-te)*a,(ge+te)*y,(ie-oe)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(ie+te)*a,(ge+te)*y,(ie+oe)*a,(ge+oe)*y,(ie+te)*a)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*y,ie*a,(ge-oe)*y,(ie+te)*a,(ge-te)*y,(ie+oe)*a)),te=.1,oe=ue*.1,ge=.4,ie=.9;var le=new go.PathFigure((ge-te)*y,ie*a,!0);return x.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(ie-te)*a,(ge-te)*y,(ie-oe)*a,(ge-oe)*y,(ie-te)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge+te)*y,ie*a,(ge+oe)*y,(ie-te)*a,(ge+te)*y,(ie-oe)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,ge*y,(ie+te)*a,(ge+te)*y,(ie+oe)*a,(ge+oe)*y,(ie+te)*a)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ge-te)*y,ie*a,(ge-oe)*y,(ie+te)*a,(ge-te)*y,(ie+oe)*a)),x}),go.Shape.defineFigureGenerator("RailShipment",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.1*y,.4*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.45*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.4*a).close());var E=new go.PathFigure(.45*y,.7*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.55*y,.7*a));var z=new go.PathFigure(.55*y,.4*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),z.add(new go.PathSegment(go.PathSegment.Line,.9*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.9*a)),z.add(new go.PathSegment(go.PathSegment.Line,.55*y,.4*a).close());var ge=.05,ie=ue*.05,se=.175,le=.95,ee=new go.PathFigure((se-ge)*y,le*a,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*y,(le-ge)*a,(se-ge)*y,(le-ie)*a,(se-ie)*y,(le-ge)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*y,le*a,(se+ie)*y,(le-ge)*a,(se+ge)*y,(le-ie)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,se*y,(le+ge)*a,(se+ge)*y,(le+ie)*a,(se+ie)*y,(le+ge)*a)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*y,le*a,(se-ie)*y,(le+ge)*a,(se-ge)*y,(le+ie)*a));var ge=.05,ie=ue*.05,se=.375,le=.95,te=new go.PathFigure((se-ge)*y,le*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,se*y,(le-ge)*a,(se-ge)*y,(le-ie)*a,(se-ie)*y,(le-ge)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*y,le*a,(se+ie)*y,(le-ge)*a,(se+ge)*y,(le-ie)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,se*y,(le+ge)*a,(se+ge)*y,(le+ie)*a,(se+ie)*y,(le+ge)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*y,le*a,(se-ie)*y,(le+ge)*a,(se-ge)*y,(le+ie)*a));var ge=.05,ie=ue*.05,se=.625,le=.95,oe=new go.PathFigure((se-ge)*y,le*a,!0);x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*y,(le-ge)*a,(se-ge)*y,(le-ie)*a,(se-ie)*y,(le-ge)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*y,le*a,(se+ie)*y,(le-ge)*a,(se+ge)*y,(le-ie)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,se*y,(le+ge)*a,(se+ge)*y,(le+ie)*a,(se+ie)*y,(le+ge)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*y,le*a,(se-ie)*y,(le+ge)*a,(se-ge)*y,(le+ie)*a));var ge=.05,ie=ue*.05,se=.825,le=.95,Fe=new go.PathFigure((se-ge)*y,le*a,!0);x.add(Fe),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*y,(le-ge)*a,(se-ge)*y,(le-ie)*a,(se-ie)*y,(le-ge)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se+ge)*y,le*a,(se+ie)*y,(le-ge)*a,(se+ge)*y,(le-ie)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,se*y,(le+ge)*a,(se+ge)*y,(le+ie)*a,(se+ie)*y,(le+ge)*a)),Fe.add(new go.PathSegment(go.PathSegment.Bezier,(se-ge)*y,le*a,(se-ie)*y,(le+ge)*a,(se-ge)*y,(le+ie)*a).close());var $e=new go.PathFigure(0,a,!1);return x.add($e),$e.add(new go.PathSegment(go.PathSegment.Line,y,a).close()),x}),go.Shape.defineFigureGenerator("Warehouse",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var E=new go.PathFigure(0,.2*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.2*a).close());var z=new go.PathFigure(.15*y,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,.5*a)),z.add(new go.PathSegment(go.PathSegment.Line,.4*y,a)),z.add(new go.PathSegment(go.PathSegment.Line,.15*y,a).close());var ee=.05,te=ue*.05,oe=.35,ge=.775,ie=new go.PathFigure((oe-ee)*y,ge*a,!0);return x.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*y,(ge-ee)*a,(oe-ee)*y,(ge-te)*a,(oe-te)*y,(ge-ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*y,ge*a,(oe+te)*y,(ge-ee)*a,(oe+ee)*y,(ge-te)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,oe*y,(ge+ee)*a,(oe+ee)*y,(ge+te)*a,(oe+te)*y,(ge+ee)*a)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*y,ge*a,(oe-te)*y,(ge+ee)*a,(oe-ee)*y,(ge+te)*a).close()),x}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a).close()),x}),go.Shape.defineFigureGenerator("Bluetooth",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.75*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x}),go.Shape.defineFigureGenerator("Bookmark",function(ne,y,a){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,a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Move,.2*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,.8*y,.4*a)),x}),go.Shape.defineFigureGenerator("Globe",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.5*a,.75*y,0,y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,y,.75*a,.75*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.25*y,a,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,0,.25*a,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,a,.15*y,.25*a,.15*y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.85*y,.75*a,.85*y,.25*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.15*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.15*a,.35*y,.3*a,.65*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*y,.85*a,.35*y,.7*a,.65*y,.7*a)),x}),go.Shape.defineFigureGenerator("Wave",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.25*a,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.25*a,.1*y,0,.2*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.25*a,.425*y,.5*a,.575*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.25*a,.8*y,0,.9*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.75*a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.75*a,.1*y,.5*a,.2*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*y,.75*a,.425*y,a,.575*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.75*a,.8*y,.5*a,.9*y,.5*a)),x}),go.Shape.defineFigureGenerator("Operator",function(ne,y,a){var x=new go.Geometry,b=.3,E=ue*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*y,ee*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a));var oe=new go.PathFigure(0,.7*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,y,.7*a,0,0,y,0)),x}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.5*y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.65*y,.3*a,.65*y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.35*y,.5*a,.35*y,.3*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,a,.3*y,.6*a,.1*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.2*y,a,.35*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.65*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,a,.7*y,.6*a,.9*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.65*a,.8*y,a,.65*y,.95*a)),x}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y,0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,0,.075*a,0,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*y,a,0,a,.4*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.4*a,.8*y,a,.85*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,0)),x}),go.Shape.defineFigureGenerator("Battery",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,.4*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.1*a));var E=new go.PathFigure(0,.6*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,0,.4*a)),E.add(new go.PathSegment(go.PathSegment.Line,y,.4*a)),x}),go.Shape.defineFigureGenerator("Delete",function(ne,y,a){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*y,ee*a,!0);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a));var oe=new go.PathFigure(.15*y,.5*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*y,.5*a)),x}),go.Shape.defineFigureGenerator("Flag",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.1*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.1*a,.15*y,0,.35*y,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,y,.1*a,.65*y,.2*a,.85*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.5*a,.85*y,.6*a,.65*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*a,.35*y,.4*a,.15*y,.4*a).close()),x}),go.Shape.defineFigureGenerator("Help",function(ne,y,a){var x=new go.Geometry,b=.5,E=ue*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*y,ee*a,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a).close()),b=.05,E=ue*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*y,ee*a,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee-b)*a,(z-b)*y,(ee-E)*a,(z-E)*y,(ee-b)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*y,ee*a,(z+E)*y,(ee-b)*a,(z+b)*y,(ee-E)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*y,(ee+b)*a,(z+b)*y,(ee+E)*a,(z+E)*y,(ee+b)*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*y,ee*a,(z-E)*y,(ee+b)*a,(z-b)*y,(ee+E)*a).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*y,.7*a)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*y,.5*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*y,.2*a,.75*y,.475*a,.75*y,.225*a)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.35*a,.4*y,.2*a,.3*y,.25*a)),x}),go.Shape.defineFigureGenerator("Location",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.5*y,a,!0).add(new go.PathSegment(go.PathSegment.Line,.75*y,.5*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5*y,0,.975*y,.025*a,.5*y,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*y,.5*a,.5*y,0,.025*y,.025*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*y,.3*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var E=new go.PathFigure(.2*y,.5*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.3*a)),x}),go.Shape.defineFigureGenerator("Unlocked",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,.5*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*a));var E=new go.PathFigure(.2*y,.5*a,!1);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Move,.2*y,.5*a)),E.add(new go.PathSegment(go.PathSegment.Line,.2*y,.3*a)),E.add(new go.PathSegment(go.PathSegment.Bezier,.8*y,.3*a,.25*y,0,.75*y,0)),E.add(new go.PathSegment(go.PathSegment.Line,.8*y,.35*a)),x}),go.Shape.defineFigureGenerator("Gear",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(.9375*y,.56246875*a,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.80621875*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.763*y,.3316875*a,.79840625*y,.39915625*a,.7834375*y,.3635*a)).add(new go.PathSegment(go.PathSegment.Line,.8566875*y,.23796875*a)).add(new go.PathSegment(go.PathSegment.Line,.76825*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.67596875*y,.24184375*a)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*y,.19378125*a,.64228125*y,.2188125*a,.603875*y,.2021875*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.0625*a)).add(new go.PathSegment(go.PathSegment.Line,.4375*y,.19378125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*y,.239375*a,.39759375*y,.20190625*a,.36053125*y,.2176875*a)).add(new go.PathSegment(go.PathSegment.Line,.2379375*y,.14959375*a)).add(new go.PathSegment(go.PathSegment.Line,.14953125*y,.2379375*a)).add(new go.PathSegment(go.PathSegment.Line,.23934375*y,.3278125*a)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*y,.4375*a,.21765625*y,.36059375*a,.201875*y,.397625*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.4375*a)).add(new go.PathSegment(go.PathSegment.Line,.0625*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Line,.1938125*y,.5625*a)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*y,.67596875*a,.20221875*y,.603875*a,.21884375*y,.64228125*a)).add(new go.PathSegment(go.PathSegment.Line,.1495625*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.238*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.3316875*y,.76296875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*y,.80621875*a,.36353125*y,.78340625*a,.3991875*y,.79840625*a)).add(new go.PathSegment(go.PathSegment.Line,.43753125*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.9375*a)).add(new go.PathSegment(go.PathSegment.Line,.5625*y,.80621875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*y,.760625*a,.602375*y,.79809375*a,.63946875*y,.78234375*a)).add(new go.PathSegment(go.PathSegment.Line,.76828125*y,.8566875*a)).add(new go.PathSegment(go.PathSegment.Line,.85671875*y,.76825*a)).add(new go.PathSegment(go.PathSegment.Line,.76065625*y,.67221875*a)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*y,.56246875*a,.78234375*y,.63940625*a,.798125*y,.602375*a)).add(new go.PathSegment(go.PathSegment.Line,.9375*y,.56246875*a).close()).add(new go.PathSegment(go.PathSegment.Move,.5*y,.6*a)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*y,.5*a,.1*y,.1*a).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.5*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*y,.3*a,0,.375*a,.05*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*y,.075*a,.3*y,.225*a,.4*y,.175*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*y,.075*a,.46*y,.05*a,.525*y,.05*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*y,.4*a,.525*y,.275*a,.475*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.55*a,y,.4*a,y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.425*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.55*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*y,.7*a,.675*y,.55*a,.675*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.575*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*y,.85*a,.65*y,.7*a,.65*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Line,.525*y,.85*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*y,a,.61*y,.85*a,.61*y,a)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*a,.435*y,a,0,a).close()),x}),go.Shape.defineFigureGenerator("Map",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,.2*a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*y,.8*a)),b.add(new go.PathSegment(go.PathSegment.Move,.5*y,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a)),b.add(new go.PathSegment(go.PathSegment.Move,.75*y,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*y,.8*a)),x}),go.Shape.defineFigureGenerator("Eject",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y,a)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.7).close());var E=new go.PathFigure(0,a*.6,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y,.6*a)),E.add(new go.PathSegment(go.PathSegment.Line,.5*y,0).close()),x}),go.Shape.defineFigureGenerator("Pencil",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.2*a).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y*1,a*1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.3)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*y,a*.85)),b.add(new go.PathSegment(go.PathSegment.Line,y,a*.85).close());var E=new go.PathFigure(.126*y,.85*a,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,.126*y,.45*a)),E.add(new go.PathSegment(go.PathSegment.Line,.322*y,.45*a)),E.add(new go.PathSegment(go.PathSegment.Line,.322*y,.85*a).close());var z=new go.PathFigure(.402*y,.85*a,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.45*a)),z.add(new go.PathSegment(go.PathSegment.Line,.598*y,.85*a).close());var ee=new go.PathFigure(.678*y,.85*a,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.45*a)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*y,.85*a).close());var te=new go.PathFigure(.5*y,.1*a,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*y,.3*a)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*y,.3*a).close()),x}),go.Shape.defineFigureGenerator("Staircase",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a*1,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.8)),b.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.6)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.4)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.2)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.15)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*.95).close()),x}),go.Shape.defineFigureGenerator("5Bars",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,a*1,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.184,a*(1-.184)).close());var E=new go.PathFigure(y*.204,a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.204,a*(1-.184))),E.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*(1-.184*2))),E.add(new go.PathSegment(go.PathSegment.Line,y*.388,a*1).close());var z=new go.PathFigure(y*.408,a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.408,a*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,y*.592,a*1).close());var ee=new go.PathFigure(y*.612,a,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.612,a*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,y*.796,a*1).close());var te=new go.PathFigure(y*.816,a,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.816,a*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1).close()),x}),go.Shape.defineFigureGenerator("PC",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(0,0,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,0).close());var E=new go.PathFigure(y*.055,.07*a,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.07)),E.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.1).close());var z=new go.PathFigure(y*.055,.13*a,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.13)),z.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.16)),z.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.16).close());var ee=new go.PathFigure(y*.055,.18*a,!0);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.245,a*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.055,a*.21).close());var te=new go.PathFigure(y*1,0,!0);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.65)),te.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.65).close()),x}),go.Shape.defineFigureGenerator("Plane",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(.55*y,a,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.7*a)),b.add(new go.PathSegment(go.PathSegment.Line,.1*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*y,.525*a,0,.4*a,.225*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.4*y,.475*a)),b.add(new go.PathSegment(go.PathSegment.Line,.15*y,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,.2*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.325*a)),b.add(new go.PathSegment(go.PathSegment.Line,.85*y,.1*a)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*y,.2*a,.975*y,0,y,.08*a)),b.add(new go.PathSegment(go.PathSegment.Line,.7*y,.45*a)),b.add(new go.PathSegment(go.PathSegment.Line,.6*y,.95*a)),b.add(new go.PathSegment(go.PathSegment.Line,.55*y,a).close()),x}),go.Shape.defineFigureGenerator("Key",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y*1,a*.5,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.4*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.2*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*a)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.15,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,.8*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.65*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,.55*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,.6*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,.575*a)),b.add(new go.PathSegment(go.PathSegment.Line,y*.9,.6*a).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*y,.425*a)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*y,.5*a,.075*y,.075*a).close()),x}),go.Shape.defineFigureGenerator("FilmTape",function(ne,y,a){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,y*0,y*.3,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.08,a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*1),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*2),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*3),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*4),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*5),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*6),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*7),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*8),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*9),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*10),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*11),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*12),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*13),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*14),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*.95)),b.add(new go.PathSegment(go.PathSegment.Line,y*(.08+.056*15),a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var E=new go.PathFigure(0,0,!1);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*1,a*0)),E.add(new go.PathSegment(go.PathSegment.Arc,270,-180,y*1,y*.3,y*.055)),E.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1));var z=new go.PathFigure(y*.11,a*.1,!1);x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.1)),z.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*0),a*.8)),z.add(new go.PathSegment(go.PathSegment.Line,y*.11,a*.8).close());var ee=new go.PathFigure(y*(.11+.24133333*1+.028*1),a*.1,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*1),a*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*1+.028*1),a*.8).close());var te=new go.PathFigure(y*(.11+.24133333*2+.028*2),a*.1,!1);return x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.1)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*3+.028*2),a*.8)),te.add(new go.PathSegment(go.PathSegment.Line,y*(.11+.24133333*2+.028*2),a*.8).close()),x}),go.Shape.defineFigureGenerator("FloppyDisk",function(ne,y,a){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,y*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.14)),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-E,y-E,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,E,a,0,a-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(y*.83,0,!1);x.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*0).close());var te=new go.PathFigure(y*.83,a*1,!1);x.add(te),te.add(new go.PathSegment(go.PathSegment.Line,y*.83,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*.5)),te.add(new go.PathSegment(go.PathSegment.Line,y*.17,a*1).close());var oe=new go.PathFigure(y*.78,a*.05,!1);return x.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,y*.78,a*.25).close()),x}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,y,a){var x=ne?ne.parameter1:NaN;(isNaN(x)||x<0)&&(x=15),x=Math.min(x,y/3),x=Math.min(x,a/3);var b=x*ue,E=a*.8,z=new go.Geometry,ee=new go.PathFigure(x,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,y-x,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y,x,y-b,0,y,b)),ee.add(new go.PathSegment(go.PathSegment.Line,y,E-x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,y-x,E,y,E-b,y-b,E)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,E)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.7,a)),ee.add(new go.PathSegment(go.PathSegment.Line,y*.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,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*.45,!0);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.2,a*.45).close());var E=new go.PathFigure(y*1,a*.55,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.55)),E.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*.1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.1)),E.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),E.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*.55).close()),x}),go.Shape.defineFigureGenerator("Windows",function(ne,y,a){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,y,0)).add(new go.PathSegment(go.PathSegment.Line,y,a)).add(new go.PathSegment(go.PathSegment.Line,0,a).close()).add(new go.PathSegment(go.PathSegment.Move,.4*y,.4*a)).add(new go.PathSegment(go.PathSegment.Line,.4*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.8*a)).add(new go.PathSegment(go.PathSegment.Line,.9*y,.4*a).close()).add(new go.PathSegment(go.PathSegment.Move,.2*y,.1*a)).add(new go.PathSegment(go.PathSegment.Line,.2*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.7*y,.1*a).close()).add(new go.PathSegment(go.PathSegment.Move,.1*y,.6*a)).add(new go.PathSegment(go.PathSegment.Line,.1*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.9*a)).add(new go.PathSegment(go.PathSegment.Line,.5*y,.6*a).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*.1,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.9)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.9).close());var E=new go.PathFigure(y*.1,a*.2,!0);x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.25)),E.add(new go.PathSegment(go.PathSegment.Line,y*.22,a*.285)),E.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.32)),E.add(new go.PathSegment(go.PathSegment.Line,y*.1,a*.37)),E.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.32)),E.add(new go.PathSegment(go.PathSegment.Line,y*.275,a*.25).close());var z=new go.PathFigure(y*.28,a*.37,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.37)),z.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.41)),z.add(new go.PathSegment(go.PathSegment.Line,y*.28,a*.41).close()),x}),go.Shape.defineFigureGenerator("Beaker",function(ne,y,a){var x=new go.Geometry,b=15,E=b*ue,z=new go.PathFigure(y*.62,a*.475,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y,a-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,y-b,a,y,a-E,y-E,a)),z.add(new go.PathSegment(go.PathSegment.Line,b,a)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,a-b,E,a,0,a-E)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.475)),z.add(new go.PathSegment(go.PathSegment.Line,y*.38,a*.03)),z.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*0)),z.add(new go.PathSegment(go.PathSegment.Line,y*.62,a*.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,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-E)).close());var z=new go.PathFigure(y*.4,a*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.66)),z.add(new go.PathSegment(go.PathSegment.Line,y*(1-.26),a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.44)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*0).close()),x}),go.Shape.defineFigureGenerator("Bin",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);x.add(b);var E=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-E)).close()),x}),go.Shape.defineFigureGenerator("Upload",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y*0,a*1,!0);x.add(b);var E=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.8,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.66,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.755,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*.93,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.64,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.61,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.39,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.36,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*.07,a*(1-E))),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.755),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.66),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*(1-.8),a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*(1-E)).close());var z=new go.PathFigure(y*.5,a*0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,y*.26,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.4,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.63)),z.add(new go.PathSegment(go.PathSegment.Line,y*.6,a*.25)),z.add(new go.PathSegment(go.PathSegment.Line,y*.74,a*.25).close()),x}),go.Shape.defineFigureGenerator("EmptyDrink",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close()),x}),go.Shape.defineFigureGenerator("Drink",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.15,a*0,!1);x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.85,a*0)),b.add(new go.PathSegment(go.PathSegment.Line,y*.7,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.3,a*1).close());var E=new go.PathFigure(y*.235,a*.28,!0);return x.add(E),E.add(new go.PathSegment(go.PathSegment.Line,y*.765,a*.28)),E.add(new go.PathSegment(go.PathSegment.Line,y*.655,a*.97)),E.add(new go.PathSegment(go.PathSegment.Line,y*.345,a*.97).close()),x}),go.Shape.defineFigureGenerator("4Arrows",function(ne,y,a){var x=new go.Geometry,b=new go.PathFigure(y*.5,a*0,!0);return x.add(b),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*1,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*.75,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.55,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.65,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.5,a*1)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.75)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.55)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.65)),b.add(new go.PathSegment(go.PathSegment.Line,y*0,a*.5)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.35)),b.add(new go.PathSegment(go.PathSegment.Line,y*.25,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.45)),b.add(new go.PathSegment(go.PathSegment.Line,y*.45,a*.25)),b.add(new go.PathSegment(go.PathSegment.Line,y*.35,a*.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={},tt="5.0",re={},ae=null,fe=!1,We=!1,_e=null,ce=!1,Re=null,ue=null,Ze=0;Ze<arguments.length;Ze++){var Ge=arguments[Ze];if(Ge!==null)switch(typeof Ge){case"number":tt=Ge.toFixed(1);break;case"string":Ge.match(new RegExp("^[0-9]\\.[0-9]+$"))?tt=Ge:_e=Ge;break;case"object":typeof Ge.is3D!="undefined"?ae=Ge:re=Ge;break;case"boolean":fe=Ge,We=!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},re.material_id!==void 0&&!We&&(fe=!0)),_e!==null&&re.id===void 0&&(re.id=_e);var Me="",Ae="",Ne=!1,Le=null,ne=null,y=null,a=!1,x=null,b=null,E=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var te=function(Be){return parseFloat(Be)>4?parseFloat(Be):5};Ce.setHTML5Codebase=function(Be,Ie){ue=Be,It(Be,Ie)},Ce.setJavaCodebase=Ce.setJavaCodebaseVersion=Ce.isCompiledInstalled=Ce.setPreCompiledScriptPath=Ce.setPreCompiledResourcePath=function(){},Ce.setHTML5CodebaseVersion=function(Be,Ie){var Qe=parseFloat(Be);if(Qe!==NaN&&Qe<5){console.log("The GeoGebra HTML5 codebase version "+Qe+" is deprecated. Using version latest instead.");return}Re=Be,zt(Be,Ie)},Ce.getHTML5CodebaseVersion=function(){return ne},Ce.getParameters=function(){return re},Ce.setFontsCSSURL=function(Be){z=Be},Ce.setGiacJSURL=function(Be){},Ce.setJNLPFile=function(Be){Me=Be},Ce.setJNLPBaseDir=function(Be){},Ce.inject=function(){function Be(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ie="auto",Qe=re.id,Bt,at=!1,Lt=0;Lt<arguments.length;Lt++){var de=arguments[Lt];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ie=de:Qe=arguments[Lt]):typeof de=="boolean"?at=de:de instanceof HTMLElement&&(Bt=de)}gt();function gt(){if(!ce){setTimeout(gt,200);return}Ie=Je(Ie);var St=Bt||document.getElementById(Qe);if(!St){console.log("possibly bug on ajax loading? ");return}if(Ce.removeExistingApplet(St,!1),re.width===void 0&&St.clientWidth&&(re.width=St.clientWidth),re.height===void 0&&St.clientHeight&&(re.height=St.clientHeight),!(re.width&&re.height)&&Ie==="html5"&&(delete re.width,delete re.height),Le=Ie,Ie==="screenshot")vt(St,re);else{var Ht=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?Ht=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(Ht=(!oe()||Be())&&ge()),Ht?(Le="screenshot",ye(St,re,at,Ie)):it(St,re,at)}}};function oe(){try{return window.self!==window.top}catch(Be){return!0}}function ge(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ce.getViews=function(){return ae},Ce.isJavaInstalled=function(){return!1};var ie=function(Be){var Ie=function(Lt){var de=JSON.parse(Lt),gt=function(Nt){return Nt.type=="G"||Nt.type=="E"},St=de.elements?de.elements.filter(gt)[0]:de;if(!St||!St.url){Qe();return}re.fileName=St.url,se(St.settings||{}),ae.is3D=!0;var Ht="https://www.geogebra.org/images/";Ce.setPreviewImage(x||St.previewUrl,Ht+"GeoGebra_loading.png",Ht+"applet_play.png"),Be()},Qe=function(){re.onError&&re.onError(),Tt("Error: Fetching material (id "+re.material_id+") failed.",re)},Bt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",at="/materials/"+re.material_id+"?scope=basic";le("https://"+Bt+"/api/proxy.php?path="+encodeURIComponent(at),Ie,Qe)};function se(Be){var Ie=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Qe){Be[Qe]=!!Be[Qe]}),Ie.forEach(function(Qe){re[Qe]===void 0&&Be[Qe]!==void 0&&(re[Qe]=Be[Qe])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(Be,Ie,Qe){var Bt=new XMLHttpRequest;Bt.open("GET",Be),Bt.onload=function(){Ie(Bt.responseText)},Bt.onerror=Qe,Bt.send()}Ce.isHTML5Installed=function(){return!0},Ce.getLoadedAppletType=function(){return Le},Ce.setPreviewImage=function(Be,Ie,Qe){x=Be,b=Ie,E=Qe},Ce.removeExistingApplet=function(Be,Ie){var Qe;typeof Be=="string"&&(Be=document.getElementById(Be)),Le=null;var Bt=null;for(Qe=0;Qe<Be.childNodes.length;Qe++){var at=Be.childNodes[Qe],Lt=at.className;Lt==="applet_screenshot"?Ie?(at.style.display="block",Le="screenshot"):at.style.display="none":Lt!=="applet_scaler prerender"&&(Be.removeChild(at),Bt=Lt&&Lt.indexOf("appletParameters")!=-1?at.id:null,Qe--)}var de=re.id!==void 0?re.id:Bt,gt=window[de];gt&&typeof gt.getBase64=="function"&&(gt.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=re.id!==void 0?re.id:"ggbApplet";return window[Be]},Ce.resize=function(){};var Fe=function(Be,Ie,Qe){var Bt=document.createElement("param");Bt.setAttribute("name",Ie),Bt.setAttribute("value",Qe),Be.appendChild(Bt)},$e=function(Be){return Be&&Be!=="false"},it=function(Be,Ie,Qe){te(ne)<=4.2&&(Qe=!0);var Bt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!a)&&(Bt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var at=document.createElement("div");at.classList.add("appletParameters","notranslate");var Lt=Ie.width,de=Ie.height;if(Ie.disableAutoScale=Ie.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ie.disableAutoScale,Ie.width!==void 0)if(te(ne)<=4.4)$e(Ie.showToolBar)&&(Ie.height-=7),$e(Ie.showAlgebraInput)&&(Ie.height-=37),Ie.width<605&&$e(Ie.showToolBar)&&(Ie.width=605,Lt=605);else{var gt=100;($e(Ie.showToolBar)||$e(Ie.showMenuBar))&&(Ie.hasOwnProperty("customToolBar")&&(Ie.customToolbar=Ie.customToolBar),gt=$e(Ie.showMenuBar)?245:155),Lt<gt&&(Ie.width=gt,Lt=gt)}at.style.border="none",at.style.display="inline-block";for(var St in Ie)Ie.hasOwnProperty(St)&&St!=="appletOnLoad"&&at.setAttribute("data-param-"+St,Ie[St]);z&&at.setAttribute("data-param-fontscssurl",z),Ce.resize=function(){GGBAppletUtils.responsiveResize(Be,Ie)},window.addEventListener("resize",function(ht){Ce.resize()});var Ht=typeof Ie.appletOnLoad=="function"?Ie.appletOnLoad:function(){};if(!Qe&&Ie.width!==void 0){Ie.hasOwnProperty("showSplash")||at.setAttribute("data-param-showSplash","false");var Nt=Be.querySelector(".applet_scaler.prerender"),ze=Nt!==null;if(ze)var be=Nt.querySelector(".ggb_preview");else{var be=nt(Lt,de,Ie.borderColor,!1);Nt=document.createElement("div"),Nt.className="applet_scaler",Nt.style.position="relative",Nt.style.display="block",Nt.style.width=Lt+"px",Nt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Nt,"66%"),te(ne)>=5?(Ie.appletOnLoad=function(ht){var kt=Be.querySelector(".ggb_preview");kt&&kt.parentNode.removeChild(kt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Nt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ht(ht)},ze||Nt.appendChild(be)):at.appendChild(be),Nt.appendChild(at),ze||Be.appendChild(Nt),setTimeout(function(){Ce.resize()},1)}else{var Se=document.createElement("div");Se.className="applet_scaler",Se.style.position="relative",Se.style.display="block",Se.appendChild(at),Be.appendChild(Se),Ie.appletOnLoad=function(ht){Ce.resize(),Ht(ht)}}function ke(ht,kt){kt&&typeof kt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(ht,kt.appletOnLoad):renderGGBElement(ht),Tt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",kt)}function Ue(ht,kt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:ht,params:kt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Pn){ke(Pn.article,Pn.params)}),html5AppletsToProcess=null)},te(ne)<5&&(ht.className+=" geogebraweb")):ke(ht,kt)}if(Bt){scriptLoadStarted=!0;for(var lt=0;lt<at.childNodes.length;lt++){var wt=at.childNodes[lt].tagName;wt==="TABLE"&&(at.removeChild(at.childNodes[lt]),lt--)}if(ggbHTML5LoadedScript!==null){var Ft=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ft!=null&&Ft.parentNode.removeChild(Ft)}var At=document.createElement("script"),Rt=function(){Ue(at,Ie)};At.src=Ae+y,ggbHTML5LoadedCodebaseIsWebSimple=a,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=At.src,Tt("GeoGebra HTML5 codebase loaded: '"+Ae+"'.",Ie),!ue&&(!Re||Re=="5.0")?(a?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Rt()):Ae.requirejs?__webpack_require__.e(981).then(function(){var ht=[__webpack_require__(60981)];Rt.apply(null,ht)}.bind(this)).catch(__webpack_require__.oe):(At.onload=Rt,Be.appendChild(At))}else Ue(at,Ie);Ie.height=de,Ie.width=Lt},vt=function(Be,Ie,Qe){var Bt=nt(Ie.width,Ie.height,Ie.borderColor,Qe),at=document.createElement("div");at.style.position="relative",at.style.display="block",at.style.width=Ie.width+"px",at.style.height=Ie.height+"px",at.className="applet_screenshot applet_scaler"+(Qe?" applet_screenshot_play":""),at.appendChild(Bt);var Lt=GGBAppletUtils.getScale(Ie,Be,Qe);Qe?(Be.appendChild(Ke()),window.GGBT_wsf_view||(Be.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(at,"66%"),Be.appendChild(at),Lt!==1&&!isNaN(Lt)&&(GGBAppletUtils.scaleElement(at,Lt),at.style.width=Ie.width+"px",at.style.height=Ie.height+"px",at.parentNode.style.width=Ie.width*Lt+"px",at.parentNode.style.height=Ie.height*Lt+"px"),Ce.resize=function(){jt(Be,Bt,at,Qe)},window.addEventListener("resize",function(de){Ce.resize()}),Ce.resize()};function jt(Be,Ie,Qe,Bt){if(Be.contains(Ie)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Be.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Be)}var at=GGBAppletUtils.getScale(re,Be,Bt);Qe.parentNode!==null&&(!isNaN(at)&&at!==1?(GGBAppletUtils.scaleElement(Qe,at),Qe.parentNode.style.width=re.width*at+"px",Qe.parentNode.style.height=re.height*at+"px"):(GGBAppletUtils.scaleElement(Qe,1),Qe.parentNode.style.width=re.width+"px",Qe.parentNode.style.height=re.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,Ie){Ie.appendChild(Be)};var ye=function(Be,Ie,Qe,Bt){vt(Be,Ie,!0);for(var at=function(){var gt=[];for(de=0;de<Be.childNodes.length;de++)gt.push(Be.childNodes[de]);if(window.GGBT_wsf_view){var St=window.GGBT_wsf_view.renderFullScreen(Be,Ie.id),Ht=document.getElementById("fullscreencontainer"),Nt=jQuery(Be).find(".fullscreencontent");Nt.length>0?(St.remove(),Nt.attr("id","fullscreencontent").show(),jQuery(Ht).append(Nt),window.dispatchEvent(new Event("resize"))):it(St,Ie,!1),window.GGBT_wsf_view.launchFullScreen(Ht)}else Le=Bt,it(Be,Ie,!1);if(!window.GGBT_wsf_view)for(de=0;de<gt.length;de++)Be.removeChild(gt[de])},Lt=Be.getElementsByClassName("ggb_preview_play"),de=0;de<Lt.length;de++)Lt[de].addEventListener("click",at,!1),Lt[de].addEventListener("ontouchstart",at,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Be),ge()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ke=function(){var Be=document.createElement("div");if(Be.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ie='.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");}',Qe=document.createElement("style");Qe.styleSheet?Qe.styleSheet.cssText=Ie:Qe.appendChild(document.createTextNode(Ie)),document.getElementsByTagName("head")[0].appendChild(Qe)}return Be},nt=function(Be,Ie,Qe,Bt){var at=document.createElement("div");at.className="ggb_preview",at.style.position="absolute",at.style.zIndex="90",at.style.width=Be-2+"px",at.style.height=Ie-2+"px",at.style.top="0px",at.style.left="0px",at.style.overflow="hidden",at.style.backgroundColor="white";var Lt="lightgrey";Qe!==void 0&&(Qe==="none"?Lt="transparent":Lt=Qe),at.style.border="1px solid "+Lt;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 gt,St,Ht;if(!Bt){gt=document.createElement("img"),gt.style.position="absolute",gt.style.zIndex="1001",gt.style.opacity=1,de.style.opacity=.3,St=360,St>Be/4*3&&(St=Be/4*3),Ht=St/5.8,gt.setAttribute("src",b),gt.setAttribute("width",St),gt.setAttribute("height",Ht);var Nt=(Be-St)/2,ze=(Ie-Ht)/2;gt.style.left=Nt+"px",gt.style.top=ze+"px",at.appendChild(gt)}}return at.appendChild(de),at},Je=function(Be){return Be=Be.toLowerCase(),Be==="html5"||Be==="screenshot"?Be:"html5"},rt=["web","webSimple","web3d","tablet","tablet3d","phone"],zt=function(Be,Ie){if(ne=Be,Ie){It(ne,!0);return}var Qe=!fe;if(Qe){var Bt=te(ne);!isNaN(Bt)&&Bt<4.4&&(Qe=!1)}var at,Lt;window.location.protocol.substr(0,4)==="http"?at=window.location.protocol:at="http:";var de=ne.indexOf("//");de>0?Lt=ne:de===0?Lt=at+ne:Lt="https://www.geogebra.org/apps/5.2.814.0/";for(var gt in rt)if(ne.slice(rt[gt].length*-1)===rt[gt]||ne.slice((rt[gt].length+1)*-1)===rt[gt]+"/"){It(Lt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Qe&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!$e(re.showToolBar)&&!$e(re.showMenuBar)&&!$e(re.showAlgebraInput)&&!$e(re.enableRightClick)&&(!re.appName||re.appName=="classic")?Lt+="webSimple/":Lt+="web3d/",It(Lt,!1)},It=function(Be,Ie){if(Be.requirejs){Ae=Be;return}Be.slice(-1)!=="/"&&(Be+="/"),Ae=Be,Ie===null&&(Ie=Be.indexOf("http")===-1),Ne=Ie,y="web.nocache.js",a=!1;var Qe=Ae.split("/");Qe.length>1&&(!Ie&&Qe[Qe.length-2]==="webSimple"?(y="webSimple.nocache.js",a=!0):rt.indexOf(Qe[Qe.length-2])>=0&&(y=Qe[Qe.length-2]+".nocache.js")),Qe=Be.split("/"),ne=Qe[Qe.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 Bt=parseFloat(ne);Bt!==NaN&&Bt<5&&Be.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Bt+" is deprecated. Using version latest instead."),zt("5.0",Ie))},Tt=function(Be,Ie){window.console&&window.console.log&&(!Ie||typeof Ie.showLogging=="undefined"||Ie.showLogging&&Ie.showLogging!=="false")&&console.log(Be)};re.material_id!==void 0?ie(Mt):Mt();function Mt(){var Be=tt;Re!==null?Be=Re:parseFloat(Be)<5&&(Be="5.0"),zt(Be,!1),ue!==null&&It(ue,Ne),ce=!0}return Ce},GGBAppletUtils=function(){"use strict";function Ce(){return window.GGBT_wsf_edit!==void 0}function tt(ce,Re){Re!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+Re+","+Re+")",ce.style.webkitTransform="scale("+Re+","+Re+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function re(ce,Re,ue,Ze,Ge,Me){var Ae=null;if(Me!=null&&Me!="")for(var Ne=ce.parentNode;Ne!=null;)if((" "+Ne.className+" ").indexOf(" "+Me+" ")>-1){Ae=Ne;break}else Ne=Ne.parentNode;var Le=0,ne=0,y=0,a=0,x=0,b=0,E=0;if(Ae)Le=Ae.offsetWidth,ne=Math.max(Ze?Ae.offsetWidth:0,Ae.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Le=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),y=Le):(Le=window.innerWidth,ne=window.innerHeight,y=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Le&&(Ge===void 0||!Ge)&&(document.dir==="rtl"?(x=Le-z.width-z.left,b=y<=480?10:30):(b=z.left,x=y<=480?10:30),a=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"?(a=40,E=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(a=0,E=40)}}return ce&&((ue===void 0||!ue)&&Re>0&&Re+a<Le?Le=Re:Le-=a,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ue===void 0||!ue)&&(ne-=E)),{width:Le,height:ne}}function ae(ce,Re,ue,Ze,Ge){if(ce.isScreenshoGenerator)return 1;var Me=Ze!==void 0&&Ze,Ae=ce.noScaleMargin!=null&&ce.noScaleMargin,Ne=function(ee){return ee&&ee!=="false"},Le=Ne(ce.autoHeight),ne=re(Re,ce.width,ue,Le,Me&&window.GGBT_wsf_view||Ae,Ge),y=parseInt(ne.width),a=ce.width,x=ce.height;if(a===void 0){var b=Re.querySelector(".appletParameters");b&&(a=b.offsetWidth,x=b.offsetHeight)}var E=y/a,z=Me?1:ne.height/x;return ue!==void 0&&!ue&&(E=Math.min(1,E),z=Math.min(1,z)),Math.min(E,z)}function fe(ce,Re,ue){var Ze=1,Ge,Me=!1;if(ce.hasOwnProperty("allowUpscale")&&(Me=ce.allowUpscale),ce.hasOwnProperty("scale")&&(Ze=parseFloat(ce.scale),(isNaN(Ze)||Ze===null||Ze===0)&&(Ze=1),Ze>1&&(Me=!0)),Re&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Me=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))Ge=ae(ce,Re,Me,ue,ce.scaleContainerClass);else return Ze;return Me&&(!ce.hasOwnProperty("scale")||Ze===1)?Ge:Math.min(Ze,Ge)}function We(ce){var Re=Math.min(window.innerWidth,document.documentElement.clientWidth),ue=Math.min(window.innerHeight,document.documentElement.clientHeight),Ze=ce.getBoundingClientRect(),Ge=(Re-Ze.width)/2,Me=(ue-Ze.height)/2;Me<0&&(Me=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ge<40?ce.style.left="40px":ce.style.left=Ge+"px",ce.style.top=Me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me<40?ce.style.top="40px":ce.style.top=Me+"px",ce.style.left=Ge+"px")}function _e(ce,Re){var ue=ce.querySelector(".appletParameters");if(ue){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Re.id!==ue.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(ue.parentElement&&/fullscreen/.test(ue.parentElement.className))return;var Ze=fe(Re,ce);Ce()&&ue.setAttribute("data-param-scale",Ze);for(var Ge=null,Me=0;Me<ce.childNodes.length;Me++)if(ce.childNodes[Me].className!==void 0&&ce.childNodes[Me].className.match(/^applet_scaler/)){Ge=ce.childNodes[Me];break}if(Ge!==null&&Ge.querySelector(".noscale")!==null)return;var Ae=Re.id!==void 0?Re.id:"ggbApplet",Ne=window[Ae];(Ne==null||!Ne.recalculateEnvironments)&&Ge!==null&&!Ge.className.match(/fullscreen/)&&(Ge.parentNode.style.transform="",!isNaN(Ze)&&Ze!==1?(Ge.parentNode.style.width=Re.width*Ze+"px",Ge.parentNode.style.height=Re.height*Ze+"px",tt(Ge,Ze)):(tt(Ge,1),Ge.parentNode.style.width=Re.width+"px",Ge.parentNode.style.height=Re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ue).parents(".content-added-content"))}}return{responsiveResize:_e,isFlexibleWorksheetEditor:Ce,positionCenter:We,getScale:fe,scaleElement:tt}}();__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,tt){}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 tt=s[L].bindings;s[L].bindings=function(){for(var re=tt?tt():{},ae=Ce[webModule.__softPermutationId],fe=O;fe<ae.length;fe++){var We=ae[fe];re[We[O]]=We[P]}return re}};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 tt=document.compatMode==U?V:W;t.write(tt+X),t.close()}}}function w(Ce){function tt(ae){function fe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=fe();if(We){ae();return}function _e(){if(!We){if(!fe())return;We=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,_e,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,_e,!1);var ce=setInterval(function(){_e()},$)}function re(ae){var fe=u(),We=fe.body,_e=fe.createElement(_);_e.language=ab,_e.crossOrigin=W,_e.src=ae,webModule.__errFn&&(_e.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),We.appendChild(_e)}tt(function(){re(Ce)})}webModule.__startLoadingFragment=function(Ce){return C(Ce)},webModule.__installRunAsyncCode=function(Ce){var tt=u(),re=tt.body,ae=tt.createElement(_);ae.language=ab,ae.text=Ce,re.appendChild(ae),re.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 tt=c[Ce];return tt==null?null:tt},r=d,webModule.__errFn=e}function B(){function Ce(ce){var Re=ce.lastIndexOf(rb);Re==-1&&(Re=ce.length);var ue=ce.indexOf(sb);ue==-1&&(ue=ce.length);var Ze=ce.lastIndexOf(tb,Math.min(ue,Re));return Ze>=O?ce.substring(O,Ze+P):W}function tt(ce){if(!ce.match(/^\w+:\/\//)){var Re=o.createElement(ub);Re.src=ce+vb,ce=Ce(Re.src)}return ce}function re(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ae(){for(var ce=o.getElementsByTagName(_),Re=O;Re<ce.length;++Re)if(ce[Re].src.indexOf(xb)!=-1)return Ce(ce[Re].src);return W}function fe(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function We(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var _e=re();return _e==W&&(_e=ae()),_e==W&&(_e=fe()),_e==W&&We()&&(_e=Ce(o.location.href)),_e=tt(_e),_e}function C(Ce){return Ce.match(/^\//)||Ce.match(/^[a-zA-Z]+:\/\//)?Ce:webModule.__moduleBase+Ce}function D(){var Ce=[],tt=O,re=[],ae=[];function fe(ce){var Re=ae[ce](),ue=re[ce];if(Re in ue)return Re;var Ze=[];for(var Ge in ue)Ze[ue[Ge]]=Ge;throw r&&r(ce,Ze,Re),null}if(__gwt_isKnownPropertyValue=function(ce,Re){return Re in re[ce]},webModule.__getPropMap=function(){var ce={};for(var Re in re)re.hasOwnProperty(Re)&&(ce[Re]=fe(Re));return ce},webModule.__computePropValue=fe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var _e=We.indexOf(Db);_e!=-1&&(tt=parseInt(We.substring(_e+P),$),We=We.substring(O,_e))}catch(ce){}return webModule.__softPermutationId=tt,C(We+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,tt,re){"use strict";re.d(tt,{Ax:function(){return _e},Ds:function(){return ce},KI:function(){return ue},SI:function(){return We},f1:function(){return fe}});var ae=re(90524);function fe(Ze){let Ge=!0;if(Ze.length>0){for(let Me=0;Me<Ze.length;Me++)if(Ze[Me].compile_success==0||!Ze[Me].compile_success){Ge=!1;break}}else Ge=!1;return Ge}function We(Ze,Ge=""){let Me=[];for(let Ae=0;Ae<Ze.length;Ae++){let Ne=Ze[Ae],Le=Ge?`${Ge}/${Ne.name}`:`${Ne.name}`;Me.push({title:Ne.name,type:Ne.type,isLeaf:Ne.type!=="tree",key:Le})}return Me}function _e(Ze,Ge,Me){for(let Ae=0;Ae<Ze.length;Ae++){let Ne=Ze[Ae];if(Ne.key===Ge){Ne.children=Me;break}Ne.children&&_e(Ne.children,Ge,Me)}return Ze}function ce(Ze,Ge,Me){let Ae;return function(){let Ne=this,Le=arguments,ne=function(){Ae=null,Me||Ze.apply(Ne,Le)},y=Me&&!Ae;clearTimeout(Ae),Ae=setTimeout(ne,Ge),y&&Ze.apply(Ne,Le)}}const Re=!0,ue=ae.Z.API_SERVER},6077:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return Ae}});var ae=re(59301),fe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=re(92310),_e=re.n(We),ce=re(71418),Re=re(2859),ue=re(82093),Ze=re(49661),Ge=(Ne,Le,ne)=>new Promise((y,a)=>{var x=z=>{try{E(ne.next(z))}catch(ee){a(ee)}},b=z=>{try{E(ne.throw(z))}catch(ee){a(ee)}},E=z=>z.done?y(z.value):Promise.resolve(z.value).then(x,b);E((ne=ne.apply(Ne,Le)).next())}),Ae=({data:Ne,className:Le,fullWidth:ne,style:y={},onClose:a,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),[ge,ie]=(0,ae.useState)(!1),[se,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),Ne!=null&&Ne.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",Ne!=null&&Ne.src&&Fe()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[Ne==null?void 0:Ne.visible]);const Fe=()=>Ge(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,Ze.ZJ)(Ne==null?void 0:Ne.src);z.current.src="",z.current.src=ye,z.current.onload=function(){jt()},ie(!1),le("")}),$e=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",a()},it=ye=>Ge(void 0,null,function*(){ie(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ke=yield(0,ue.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ne.title,file:ye.dataUrl}});Ke!=null&&Ke.id&&!E?(yield(0,ue.ZP)(`/api/attachments/${Ne.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ke==null?void 0:Ke.id,settings:JSON.stringify(ye.state)}})).status===0&&x():Ke!=null&&Ke.id&&x(Ke),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ie(!1),le("")}),vt=()=>{const ye=document.querySelector('a[href="https://markerjs.com/"]');ye&&ye.parentNode&&(ye.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(nt=>{const Je=document.querySelector(nt.name);Je&&Je.setAttribute("title",nt.title)})},jt=()=>{ee.current=new Re.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",it),ee.current.addEventListener("beforeclose",$e),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(),Ne!=null&&Ne.snapshotData&&ee.current.restoreState(Ne.snapshotData),setTimeout(()=>{window.scrollTo(0,0),vt()},300)};return ae.createElement(ae.Fragment,null,(Ne==null?void 0:Ne.visible)&&ae.createElement(ce.Z,{spinning:ge,tip:se,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:_e()(fe.imageDimensions,Le,ne?fe.fullWidth:""),style:y},ae.createElement("img",{className:fe.img,ref:z}))))}},88615:function(Ce,tt,re){"use strict";var ae=re(59301),fe=re(95237),We=re(43604),_e=re(99313),ce=re(3113),Re=re(7664),ue=re(21697),Ze=re(48136),Ge=re(59301);const Me=(0,ae.forwardRef)(({callback:Ae,showSaveButton:Ne,value:Le=""},ne)=>{const y=(0,ae.useRef)(),a=[{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=>{y.current.setValue(y.current.getValue()+" "+ee.value+" ")},E=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ge.createElement(fe.Z,{className:ue.Z.lists,gutter:[10,10]},a.map((ee,te)=>Ge.createElement(We.Z,{flex:"110px",className:ue.Z.item},Ge.createElement("div",null,Ge.createElement(Re.Z,{value:`$$${ee.value}$$`}),ee.name),Ge.createElement("div",{className:ue.Z.children},ee.children.map((oe,ge)=>Ge.createElement("div",{key:ge},Ge.createElement("h1",null,oe.name),Ge.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Ge.createElement(We.Z,{key:se,onClick:()=>b(ie),className:ue.Z.diamond},Ge.createElement(Re.Z,{value:"`$$"+ie.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ge.createElement(fe.Z,{className:ue.Z.lists,gutter:[10,10]},x.map((ee,te)=>Ge.createElement(We.Z,{flex:"110px",className:ue.Z.item},Ge.createElement("div",null,Ge.createElement(Re.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ge.createElement("div",{className:ue.Z.children},ee.children.map((oe,ge)=>Ge.createElement("div",{key:ge},oe.name&&Ge.createElement("h1",null,oe.name),Ge.createElement(fe.Z,{gutter:[10,10]},oe.data.map((ie,se)=>Ge.createElement(We.Z,{key:se,onClick:()=>b(ie),className:ue.Z.diamond},Ge.createElement(Re.Z,{value:"`$$"+ie.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=y.current.getValue();var te=ee.innerText;return Ae&&Ae(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),Ge.createElement("div",{className:ue.Z.mathWrap},Ge.createElement(_e.default,{defaultActiveKey:"1",items:E}),Ge.createElement("math-field",{locale:"zh_cn",className:ue.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:y,style:{width:800,marginTop:30,fontSize:18}},Le||""),Ne&&Ge.createElement("div",{className:ue.Z.button},Ge.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});tt.Z=Me},42525:function(Ce,tt,re){"use strict";re.d(tt,{z:function(){return E},Z:function(){return z}});var ae=re(59301),fe=re(54580),We=re(8591),_e=re(43418),ce=re(3113),Re=re(90524),ue=re(92725),Ze=re(67131),Ge=re(61481),Me=re(89392),Ae=Object.defineProperty,Ne=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,y=(ee,te,oe)=>te in ee?Ae(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ee[te]=oe,a=(ee,te)=>{for(var oe in te||(te={}))Le.call(te,oe)&&y(ee,oe,te[oe]);if(Ne)for(var oe of Ne(te))ne.call(te,oe)&&y(ee,oe,te[oe]);return ee},x=(ee,te,oe)=>new Promise((ge,ie)=>{var se=$e=>{try{Fe(oe.next($e))}catch(it){ie(it)}},le=$e=>{try{Fe(oe.throw($e))}catch(it){ie(it)}},Fe=$e=>$e.done?ge($e.value):Promise.resolve($e.value).then(se,le);Fe((oe=oe.apply(ee,te)).next())});const{Dragger:b}=fe.default;function E(ee){let te=[];return ee&&ee.length>0&&(te=ee.map(oe=>({uid:oe.id,id:oe.id,name:oe.title+Ze.sX+oe.filesize,url:oe.url,filesize:oe.filesize,status:"done",response:{id:oe.id}}))),te}var z=({value:ee,onChange:te,action:oe,data:ge,className:ie,maxSize:se=150,title:le="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:Fe=!1,accept:$e="",additionalText:it,isDragger:vt,number:jt=1e3,aloneClear:ye=!1,realTimeRemove:Ke=!0,uploadText:nt,setFileProgress:Je,showFileProgress:rt,setIsUpload:zt=()=>{}})=>{const[It,Tt]=(0,ae.useState)(!1);let[Mt,Be]=(0,ae.useState)(ee||[]),[Ie,Qe]=(0,ae.useState)(1);const[Bt,at]=(0,ae.useState)(0);(0,ae.useEffect)(()=>{ee&&(Ie===1&&Be([...ee]),Qe(2),jt===(ee==null?void 0:ee.length)&&Tt(!0))},[ee]);const Lt=()=>{setTimeout(()=>{Mt.pop(),Be([...Mt])},500)};(0,ae.useEffect)(()=>{(Mt==null?void 0:Mt.length)==0&&Tt(!1)},[Mt==null?void 0:Mt.length]),rt&&Je(Mt.some(St=>St.status==="uploading"));const de={multiple:!0,disabled:It,accept:$e,withCredentials:!0,fileList:Mt,beforeUpload:(St,Ht)=>{const Nt=St.size/1024/1024;return Mt.concat(Ht).length>jt?(Mt.pop(),Be([...Mt]),We.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${jt}\u4E2A\u6587\u4EF6`),ye?Promise.reject():(Lt(),!1)):Nt<se?!0:(We.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${se}MB).`),ye?Promise.reject():(Lt(),!1))},data:ge,action:oe||`${Re.Z.API_SERVER}/api/attachments.json`,onChange(St){var Ht,Nt,ze,be;if(St.file.status==="removed"?Mt=St.fileList:Mt=(0,Me.uniqBy)([...St.fileList,...Mt],"uid"),St.file.status==="done"&&((Nt=(Ht=St.file)==null?void 0:Ht.response)==null?void 0:Nt.status)===-1){We.ZP.error((be=(ze=St.file)==null?void 0:ze.response)==null?void 0:be.message);return}St.file.status==="uploading"?zt(!0):zt(!1),Mt.length>=jt?Tt(!0):Tt(!1),Be([...Mt]),Mt=Mt.map(Se=>{var ke,Ue;return(ke=Se==null?void 0:Se.response)!=null&&ke.id&&(Se.url=(Ue=Se==null?void 0:Se.response)==null?void 0:Ue.url),Se.name.indexOf(Ze.sX)===-1&&(Se.name=`${Se.name}${Ze.sX}${(0,Ze.RD)(Se.size)}`),a({},Se)}),console.log("info:",St,Mt),te(Mt)},onRemove:St=>x(void 0,null,function*(){if(!Ke)return!0;const Ht=()=>x(void 0,null,function*(){if(St.response?St.response.id:St.id){let ze=yield(0,ue.JZ)(St.response?St.response.id:St.uid);return Promise.resolve(ze)}else return!0});return Fe?new Promise((Nt,ze)=>{_e.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ae.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>x(void 0,null,function*(){const be=yield Ht();We.ZP.success("\u5220\u9664\u6210\u529F"),Nt(!0)}),onCancel:()=>Nt(!1)})}):yield Ht()})};function gt(St){St.preventDefault(),St.stopPropagation()}return ae.createElement("div",{className:`multi-upload ${ie||""}`},vt&&ae.createElement(b,a({},de),ae.createElement("p",{className:"ant-upload-drag-icon"},ae.createElement(Ge.Z,null)),ae.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ae.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",se,"MB)"," "),it),!vt&&ae.createElement(fe.default,a({},de),ae.createElement(ce.ZP,{disabled:It,key:Bt,className:"upload_button"},ae.createElement("i",{className:"iconfont icon-shangchuanfujian mr5 font14"}),le),ae.createElement("span",{onClick:gt,className:"upload_text"},nt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${se}MB)`)))}},67131:function(Ce,tt,re){"use strict";re.d(tt,{RD:function(){return Ne},sX:function(){return Ae}});var ae=re(59301),fe=re(90524),We=re(92725),_e=Object.defineProperty,ce=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,Ze=(ne,y,a)=>y in ne?_e(ne,y,{enumerable:!0,configurable:!0,writable:!0,value:a}):ne[y]=a,Ge=(ne,y)=>{for(var a in y||(y={}))Re.call(y,a)&&Ze(ne,a,y[a]);if(ce)for(var a of ce(y))ue.call(y,a)&&Ze(ne,a,y[a]);return ne},Me=(ne,y,a)=>new Promise((x,b)=>{var E=te=>{try{ee(a.next(te))}catch(oe){b(oe)}},z=te=>{try{ee(a.throw(te))}catch(oe){b(oe)}},ee=te=>te.done?x(te.value):Promise.resolve(te.value).then(E,z);ee((a=a.apply(ne,y)).next())});const Ae="\u3000\u3000";function Ne(ne){var y=["Bytes","KB","MB","GB","TB"];if(ne==0)return"0 Byte";var a=parseInt(""+Math.floor(Math.log(ne)/Math.log(1024)),10);return(ne/Math.pow(1024,a)).toFixed(1)+" "+y[a]}var Le=({value:ne=[],action:y,onChange:a,className:x,maxSize:b=150,title:E="\u6587\u4EF6\u4E0A\u4F20",accept:z=null})=>{const ee={multiple:!1,fileList:ne,accept:z,withCredentials:!0,beforeUpload:oe=>oe.size/1024/1024<b?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${b}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(oe){var ge,ie,se,le;let Fe=[...oe.fileList];if(Fe=Fe.map($e=>($e.name.indexOf(Ae)===-1&&($e.name=`${$e.name}${Ae}${Ne($e.size)}`),Ge({},$e))),oe.file.status==="done"&&((ie=(ge=oe.file)==null?void 0:ge.response)==null?void 0:ie.status)===-1){message.error((le=(se=oe.file)==null?void 0:se.response)==null?void 0:le.message),a([]);return}a(Fe)},onRemove:oe=>Me(void 0,null,function*(){const ge=oe.size/1024/1024;return oe.status==="uploading"?!0:ge<b&&(oe.response?oe.response.id:oe.uid)?yield removeAttachment(oe.response?oe.response.id:oe.id):!0})};function te(oe){oe.preventDefault(),oe.stopPropagation()}return React.createElement("div",{className:`single-upload ${x||""}`},React.createElement(Upload,Ge({},ee),React.createElement(Button,{type:"primary",title:ne.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:ne.length>0,ghost:!0},E),React.createElement("span",{onClick:te,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",b,"M)"," ")))}},44905:function(Ce,tt,re){"use strict";re.d(tt,{h:function(){return ee}});var ae=re(59301),fe=re(57809),We=re(78241),_e=re(3113),ce=re(89780),Re=re.n(ce),ue=re(66543),Ze=re(59598),Ge=Object.defineProperty,Me=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,y=(te,oe,ge)=>oe in te?Ge(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ge}):te[oe]=ge,a=(te,oe)=>{for(var ge in oe||(oe={}))Le.call(oe,ge)&&y(te,ge,oe[ge]);if(Ne)for(var ge of Ne(oe))ne.call(oe,ge)&&y(te,ge,oe[ge]);return te},x=(te,oe)=>Me(te,Ae(oe));const b=fe.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"]};tt.Z=({callback:te,onCancel:oe})=>{const[ge,ie]=(0,ae.useState)("python");function se(Fe){ie(z[Fe][1])}function le(Fe){te(Fe)}return ae.createElement(We.default,x(a({},E),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(fe.default,{getPopupContainer:Fe=>Fe.parentNode,onChange:se},Object.keys(z).map(Fe=>ae.createElement(b,{key:Fe,value:Fe},z[Fe][0])))),ae.createElement(We.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:ge})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(_e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(_e.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ge,options:ie={}}){const se=(0,ae.useRef)(),[le,Fe]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let $e=function(it){const vt=it.getValue();oe&&oe(vt)};return le.on("change",$e),()=>{le.off("change",$e)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",ge)},[le,ge]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(se.current&&!le){const $e=Re().fromTextArea(se.current,a({mode:ge,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ie));Fe($e)}},[se.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:se}))}},89389:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return Jn}});var ae=re(59301),fe=re(89780),We=re.n(fe),_e=re(76374),ce=re(66543),Re=re(6313),ue=re(25717),Ze=re(99498),Ge=re(25419),Me=re(67549),Ae=re(7664),Ne=({value:pe="",className:ve,showTextOnly:Pe,showLines:et,style:bt={}})=>{const Pt=(0,ae.useMemo)(()=>"",[pe]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Pt}}))},Le=re(59301),ne=Object.defineProperty,y=Object.defineProperties,a=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(pe,ve,Pe)=>ve in pe?ne(pe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):pe[ve]=Pe,ee=(pe,ve)=>{for(var Pe in ve||(ve={}))b.call(ve,Pe)&&z(pe,Pe,ve[Pe]);if(x)for(var Pe of x(ve))E.call(ve,Pe)&&z(pe,Pe,ve[Pe]);return pe},te=(pe,ve)=>y(pe,a(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 ge({onActionCallback:pe,title:ve,icon:Pe,actionName:et,className:bt="",children:Pt}){function gn(){pe(et)}return Le.createElement("a",{title:ve,className:bt,onClick:gn},Le.createElement("i",{className:`${Pe}`}),Pt)}var ie=({watch:pe,showNullButton:ve,showNullProgramButton:Pe,onActionCallback:et,fullScreen:bt,insertTemp:Pt,hidetoolBar:gn,extraUse:_t})=>{const Yt=[...oe,{title:`${pe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${pe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Le.createElement("ul",{className:"markdown-toolbar-container"},!gn&&Yt.map((vn,kn)=>Le.createElement("li",{key:kn},vn.actionName?Le.createElement(ge,te(ee({},vn),{onActionCallback:et})):Le.createElement("span",{className:"v-line"}))),ve?Le.createElement("li",null,Le.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:et},Le.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?Le.createElement(Le.Fragment,null,Le.createElement("li",null,Le.createElement(ge,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:et},Le.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Le.createElement("li",null,Le.createElement(ge,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:et},Le.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Pt&&Le.createElement("li",null,Le.createElement(ge,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Pt}`,onActionCallback:et},Le.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),_t&&Le.createElement("li",null,_t),Le.createElement("li",{className:"btn-full-screen"},Le.createElement(ge,{icon:`${bt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:bt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:et})))},se=re(75790),le=re(78241),Fe=re(92832),$e=re(3113),it=Object.defineProperty,vt=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Je=(pe,ve,Pe)=>ve in pe?it(pe,ve,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):pe[ve]=Pe,rt=(pe,ve)=>{for(var Pe in ve||(ve={}))Ke.call(ve,Pe)&&Je(pe,Pe,ve[Pe]);if(ye)for(var Pe of ye(ve))nt.call(ve,Pe)&&Je(pe,Pe,ve[Pe]);return pe},zt=(pe,ve)=>vt(pe,jt(ve));const It={labelCol:{span:4},wrapperCol:{span:20}};var Tt=({callback:pe,onCancel:ve})=>{function Pe(et){pe(et)}return ae.createElement(le.default,zt(rt({},It),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,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(Fe.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(Fe.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement($e.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},Mt=re(44905),Be=re(45596),Ie=re(43418),Qe=re(95237),Bt=re(6077),at=re(59301),Lt=({callback:pe,onCancel:ve})=>{const Pe=document.createElement("canvas"),et=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,et.fillStyle="#ffffff",et.fillRect(0,0,Pe.width,Pe.height);const bt=Pe.toDataURL("image/png");return at.createElement(Ie.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},at.createElement(Qe.Z,{style:{height:"100vh"}},at.createElement(Bt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:bt,visible:!0,title:String(Date.now())},onOk:Pt=>{pe({src:Pt.url})},onClose:ve})))},de=re(12378);function gt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(gt,go.CommandHandler),gt.prototype.canAlignSelection=function(){var pe=this.diagram;return!(pe===null||pe.isReadOnly||pe.isModelReadOnly||pe.selection.count<2)},gt.prototype.alignLeft=function(){var pe=this.diagram;pe.startTransaction("aligning left");var ve=1/0;pe.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.x,ve))}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve,Pe.position.y))}),pe.commitTransaction("aligning left")},gt.prototype.alignRight=function(){var pe=this.diagram;pe.startTransaction("aligning right");var ve=-1/0;pe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var et=Pe.actualBounds.x+Pe.actualBounds.width;ve=Math.max(et,ve)}}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(ve-Pe.actualBounds.width,Pe.position.y))}),pe.commitTransaction("aligning right")},gt.prototype.alignTop=function(){var pe=this.diagram;pe.startTransaction("alignTop");var ve=1/0;pe.selection.each(function(Pe){Pe instanceof go.Link||(ve=Math.min(Pe.position.y,ve))}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,ve))}),pe.commitTransaction("alignTop")},gt.prototype.alignBottom=function(){var pe=this.diagram;pe.startTransaction("aligning bottom");var ve=-1/0;pe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var et=Pe.actualBounds.y+Pe.actualBounds.height;ve=Math.max(et,ve)}}),pe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,ve-Pe.actualBounds.height))}),pe.commitTransaction("aligning bottom")},gt.prototype.alignCenterX=function(){var pe=this.diagram,ve=pe.selection.first();if(ve){pe.startTransaction("aligning Center X");var Pe=ve.actualBounds.x+ve.actualBounds.width/2;pe.selection.each(function(et){et instanceof go.Link||et.move(new go.Point(Pe-et.actualBounds.width/2,et.actualBounds.y))}),pe.commitTransaction("aligning Center X")}},gt.prototype.alignCenterY=function(){var pe=this.diagram,ve=pe.selection.first();if(ve){pe.startTransaction("aligning Center Y");var Pe=ve.actualBounds.y+ve.actualBounds.height/2;pe.selection.each(function(et){et instanceof go.Link||et.move(new go.Point(et.actualBounds.x,Pe-et.actualBounds.height/2))}),pe.commitTransaction("aligning Center Y")}},gt.prototype.alignColumn=function(pe){var ve=this.diagram;ve.startTransaction("align Column"),pe===void 0&&(pe=0),pe=parseFloat(pe);var Pe=new Array;ve.selection.each(function(_t){_t instanceof go.Link||Pe.push(_t)});for(var et=0;et<Pe.length-1;et++){var bt=Pe[et],Pt=bt.actualBounds.y+bt.actualBounds.height+pe,gn=Pe[et+1];gn.move(new go.Point(bt.actualBounds.x,Pt))}ve.commitTransaction("align Column")},gt.prototype.alignRow=function(pe){pe===void 0&&(pe=0),pe=parseFloat(pe);var ve=this.diagram;ve.startTransaction("align Row");var Pe=new Array;ve.selection.each(function(_t){_t instanceof go.Link||Pe.push(_t)});for(var et=0;et<Pe.length-1;et++){var bt=Pe[et],Pt=bt.actualBounds.x+bt.actualBounds.width+pe,gn=Pe[et+1];gn.move(new go.Point(Pt,bt.actualBounds.y))}ve.commitTransaction("align Row")},gt.prototype.canRotate=function(pe){var ve=this.diagram;return!(ve===null||ve.isReadOnly||ve.isModelReadOnly||ve.selection.count<1)},gt.prototype.rotate=function(pe){pe===void 0&&(pe=90);var ve=this.diagram;ve.startTransaction("rotate "+pe.toString());var ve=this.diagram;ve.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=pe)}),ve.commitTransaction("rotate "+pe.toString())},gt.prototype.pullToFront=function(){var pe=this.diagram;pe.startTransaction("pullToFront");var ve=new go.Map;pe.selection.each(function(Pe){ve.set(Pe.layer,0)}),ve.iteratorKeys.each(function(Pe){var et=0;Pe.parts.each(function(bt){if(!bt.isSelected){var Pt=bt.zOrder;isNaN(Pt)?bt.zOrder=0:et=Math.max(et,Pt)}}),ve.set(Pe,et)}),pe.selection.each(function(Pe){gt._assignZOrder(Pe,ve.get(Pe.layer)+1)}),pe.commitTransaction("pullToFront")},gt.prototype.pushToBack=function(){var pe=this.diagram;pe.startTransaction("pushToBack");var ve=new go.Map;pe.selection.each(function(Pe){ve.set(Pe.layer,0)}),ve.iteratorKeys.each(function(Pe){var et=0;Pe.parts.each(function(bt){if(!bt.isSelected){var Pt=bt.zOrder;isNaN(Pt)?bt.zOrder=0:et=Math.min(et,Pt)}}),ve.set(Pe,et)}),pe.selection.each(function(Pe){gt._assignZOrder(Pe,ve.get(Pe.layer)-1-gt._findGroupDepth(Pe))}),pe.commitTransaction("pushToBack")},gt._assignZOrder=function(pe,ve,Pe){Pe===void 0&&(Pe=pe),pe.layer===Pe.layer&&(pe.zOrder=ve),pe instanceof go.Group&&pe.memberParts.each(function(et){gt._assignZOrder(et,ve+1,Pe)})},gt._findGroupDepth=function(pe){if(pe instanceof go.Group){var ve=0;return pe.memberParts.each(function(Pe){ve=Math.max(ve,gt._findGroupDepth(Pe))}),ve+1}else return 0},gt.prototype.doKeyDown=function(){var pe=this.diagram;if(pe!==null){var ve=pe.lastInput;if(ve.key==="Up"||ve.key==="Down"||ve.key==="Left"||ve.key==="Right"){var Pe=this.arrowKeyBehavior;if(Pe==="none")return;if(Pe==="select"){this._arrowKeySelect();return}else if(Pe==="move"){this._arrowKeyMove();return}else if(Pe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},gt.prototype._getAllParts=function(){var pe=new Array;return this.diagram.nodes.each(function(ve){pe.push(ve)}),this.diagram.parts.each(function(ve){pe.push(ve)}),pe},gt.prototype._arrowKeyMove=function(){var pe=this.diagram,ve=pe.lastInput,Pe=0,et=0;if(ve.control||ve.meta)Pe=1,et=1;else if(pe.grid!==null){var bt=pe.grid.gridCellSize;et=bt.width,Pe=bt.height}pe.startTransaction("arrowKeyMove"),pe.selection.each(function(Pt){ve.key==="Up"?Pt.move(new go.Point(Pt.actualBounds.x,Pt.actualBounds.y-Pe)):ve.key==="Down"?Pt.move(new go.Point(Pt.actualBounds.x,Pt.actualBounds.y+Pe)):ve.key==="Left"?Pt.move(new go.Point(Pt.actualBounds.x-et,Pt.actualBounds.y)):ve.key==="Right"&&Pt.move(new go.Point(Pt.actualBounds.x+et,Pt.actualBounds.y))}),pe.commitTransaction("arrowKeyMove")},gt.prototype._arrowKeySelect=function(){var pe=this.diagram,ve=pe.lastInput,Pe=null;ve.key==="Up"?Pe=this._findNearestPartTowards(270):ve.key==="Down"?Pe=this._findNearestPartTowards(90):ve.key==="Left"?Pe=this._findNearestPartTowards(180):ve.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(ve.shift?Pe.isSelected=!0:ve.control||ve.meta?Pe.isSelected=!Pe.isSelected:pe.select(Pe))},gt.prototype._findNearestPartTowards=function(pe){var ve=this.diagram.selection.first();if(ve===null)return null;for(var Pe=ve.actualBounds.center,et=this._getAllParts(),bt=1/0,Pt=ve,gn=0;gn<et.length;gn++){var _t=et[gn];if(_t!==ve&&_t.canSelect()){var Yt=_t.actualBounds.center,vn=Pe.directionPoint(Yt),kn=this._angleCloseness(vn,pe);if(kn<=45){var qe=Pe.distanceSquaredPoint(Yt);qe*=1+Math.sin(kn*Math.PI/180),qe<bt&&(bt=qe,Pt=_t)}}}return Pt},gt.prototype._angleCloseness=function(pe,ve){return Math.min(Math.abs(ve-pe),Math.min(Math.abs(ve+360-pe),Math.abs(ve-360-pe)))},gt.prototype._arrowKeyTree=function(){var pe=this.diagram,ve=pe.selection.first();if(ve instanceof go.Node){var Pe=pe.lastInput;if(Pe.key==="Right"){if(!ve.isTreeLeaf)if(!ve.isTreeExpanded)pe.commandHandler.canExpandTree(ve)&&pe.commandHandler.expandTree(ve);else{var et=this._sortTreeChildrenByY(ve).first();et!==null&&pe.select(et)}}else if(Pe.key==="Left")if(!ve.isTreeLeaf&&ve.isTreeExpanded)pe.commandHandler.canCollapseTree(ve)&&pe.commandHandler.collapseTree(ve);else{var bt=ve.findTreeParentNode();bt!==null&&pe.select(bt)}else if(Pe.key==="Up"){var bt=ve.findTreeParentNode();if(bt!==null){var Pt=this._sortTreeChildrenByY(bt),gn=Pt.indexOf(ve);if(gn>0){for(var _t=Pt.elt(gn-1);_t!==null&&_t.isTreeExpanded&&!_t.isTreeLeaf;){var Yt=this._sortTreeChildrenByY(_t);_t=Yt.last()}_t!==null&&pe.select(_t)}else pe.select(bt)}}else if(Pe.key==="Down")if(ve.isTreeExpanded&&!ve.isTreeLeaf){var et=this._sortTreeChildrenByY(ve).first();et!==null&&pe.select(et)}else for(;ve!==null;){var bt=ve.findTreeParentNode();if(bt===null)break;var Pt=this._sortTreeChildrenByY(bt),gn=Pt.indexOf(ve);if(gn<Pt.length-1){pe.select(Pt.elt(gn+1));break}else ve=bt}var vn=pe.selection.first();vn!==null&&pe.scrollToRect(vn.actualBounds)}},gt.prototype._sortTreeChildrenByY=function(pe){var ve=new go.List().addAll(pe.findTreeChildrenNodes());return ve.sort(function(Pe,et){var bt=Pe.location,Pt=et.location;return bt.y<Pt.y?-1:bt.y>Pt.y?1:bt.x<Pt.x?-1:bt.x>Pt.x?1:0}),ve},gt.prototype.copyToClipboard=function(pe){go.CommandHandler.prototype.copyToClipboard.call(this,pe),this._lastPasteOffset.set(this.pasteOffset)},gt.prototype.pasteFromClipboard=function(){var pe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(pe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),pe},Object.defineProperty(gt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(pe){if(pe!=="move"&&pe!=="select"&&pe!=="scroll"&&pe!=="tree"&&pe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+pe);this._arrowKeyBehavior=pe}}),Object.defineProperty(gt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(pe){if(!(pe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+pe);this._pasteOffset.set(pe)}});var St=gt,Ht=re(20397),Nt=re(43604),ze=re(82093),be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Se=re(59301),ke=(pe,ve,Pe)=>new Promise((et,bt)=>{var Pt=Yt=>{try{_t(Pe.next(Yt))}catch(vn){bt(vn)}},gn=Yt=>{try{_t(Pe.throw(Yt))}catch(vn){bt(vn)}},_t=Yt=>Yt.done?et(Yt.value):Promise.resolve(Yt.value).then(Pt,gn);_t((Pe=Pe.apply(pe,ve)).next())});function Ue({onCancel:pe,callback:ve}){let Pe=(0,ae.useRef)(),et=(0,ae.useRef)(),bt=(0,ae.useRef)(),Pt=(0,ae.useRef)(!1);const gn=(0,ae.useRef)(!1),[_t,Yt]=(0,ae.useState)(0);function vn(){const qe=de.bx.make,Jt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Pe.current=new de.S0(et.current,{padding:20,grid:qe(de.s_,"Grid",qe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qe(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Ve=>{var ut=Ve.diagram.commandHandler.addTopLevelParts(Ve.diagram.selection,!0);ut||Ve.diagram.currentTool.doCancel()},commandHandler:qe(St),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Ve=>{var ut=Ve.subject;ut.location=ut.location.copy().snapToGridPoint(Ve.diagram.grid.gridOrigin,Ve.diagram.grid.gridCellSize),setTimeout(()=>{Ve.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Ve=>{var ut=Ve.subject;setTimeout(()=>{Ve.diagram.commandHandler.editTextBlock()})},LinkRelinked:Ve=>{var ut=Ve.parameter.part;ut.invalidateConnectedLinks();var xt=Ve.subject;Ve.diagram.toolManager.linkingTool.isForwards?xt.toNode.invalidateConnectedLinks():xt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=qe(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),qe(de.bn,{name:"SHAPE",fill:Jt.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")),qe(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),qe(de.al,{margin:1,textAlign:"center",overflow:de.al.OverflowEllipsis,editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.nodeTemplate.toolTip=qe("ToolTip",qe(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},qe(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),qe(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function An(Ve,ut){var xt=(mt,Xt)=>{mt.handled=!0,mt.diagram.model.commit(Vt=>{var Dt=Xt.part.adornedPart,un=new de.E9().setRectSpot(Dt.actualBounds,Ve);un.subtract(Dt.location),un.scale(2,2),un.x+=Math.sign(un.x)*130,un.y+=Math.sign(un.y)*130,un.add(Dt.location),un.snapToGridPoint(mt.diagram.grid.gridOrigin,mt.diagram.grid.gridCellSize);var cn=Vt.copyNodeData(Dt.data);Vt.setGroupKeyForNodeData(cn,Vt.getGroupKeyForNodeData(Dt.data)),Vt.addNodeData(cn);var oa={from:Dt.key,to:Vt.getKeyForNodeData(cn)};Vt.addLinkData(oa);var Qn=mt.diagram.findNodeForData(cn);Qn.location=un,mt.diagram.select(Qn),setTimeout(()=>{mt.diagram.commandHandler.editTextBlock()},20)})};return qe(de.bn,{figure:ut,alignment:Ve,alignmentFocus:Ve.opposite(),width:Ve.equals(de.z6.Top)||Ve.equals(de.z6.Bottom)?25:18,height:Ve.equals(de.z6.Top)||Ve.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:Jt.white,strokeWidth:4,mouseEnter:(mt,Xt)=>Xt.fill="dodgerblue",mouseLeave:(mt,Xt)=>Xt.fill="orange",isActionable:!0,click:xt,contextClick:xt})}function Zn(Ve){return qe(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:(ut,xt)=>xt.fill="dodgerblue",mouseLeave:(ut,xt)=>xt.fill="orange",click:(ut,xt)=>{ut.diagram.commandHandler.showContextMenu(xt.part.adornedPart)}},Ve||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=qe(de.uz,"Spot",qe(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(Ve,ut){return(xt,mt)=>{xt.handled=!0,xt.diagram.model.commit(Xt=>{Xt.set(mt.part.adornedPart.data,Ve,ut)})}}function me(Ve,ut){return ut||(ut="color"),qe(de.bn,{width:16,height:16,stroke:"lightgray",fill:Ve,margin:1,background:"transparent",mouseEnter:(xt,mt)=>mt.stroke="dodgerblue",mouseLeave:(xt,mt)=>mt.stroke="lightgray",click:Bn(ut,Ve),contextClick:Bn(ut,Ve)})}function Oe(){return[qe("ContextMenuButton",qe(de.s_,"Horizontal",me(Jt.white,"fill"),me(Jt.beige,"fill"),me(Jt.extralightblue,"fill"),me(Jt.extralightred,"fill"))),qe("ContextMenuButton",qe(de.s_,"Horizontal",me(Jt.lightgray,"fill"),me(Jt.lightgreen,"fill"),me(Jt.lightblue,"fill"),me(Jt.lightred,"fill")))]}function Ee(){return[qe("ContextMenuButton",qe(de.s_,"Horizontal",me(Jt.black),me(Jt.green),me(Jt.blue),me(Jt.red))),qe("ContextMenuButton",qe(de.s_,"Horizontal",me(Jt.white),me(Jt.magenta),me(Jt.purple),me(Jt.orange)))]}function De(Ve,ut){return ut||(ut="thickness"),qe(de.bn,"LineH",{width:16,height:16,strokeWidth:Ve,margin:1,background:"transparent",mouseEnter:(xt,mt)=>mt.background="dodgerblue",mouseLeave:(xt,mt)=>mt.background="transparent",click:Bn(ut,Ve),contextClick:Bn(ut,Ve)})}function Xe(Ve,ut){return ut||(ut="dash"),qe(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Ve,margin:1,background:"transparent",mouseEnter:(xt,mt)=>mt.background="dodgerblue",mouseLeave:(xt,mt)=>mt.background="transparent",click:Bn(ut,Ve),contextClick:Bn(ut,Ve)})}function Ye(){return[qe("ContextMenuButton",qe(de.s_,"Horizontal",De(1),De(2),De(3),De(4))),qe("ContextMenuButton",qe(de.s_,"Horizontal",Xe(null),Xe([2,4]),Xe([4,4])))]}function He(Ve,ut){return ut||(ut="figure"),qe(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Ve,margin:1,background:"transparent",mouseEnter:(xt,mt)=>mt.fill="dodgerblue",mouseLeave:(xt,mt)=>mt.fill="lightgray",click:Bn(ut,Ve),contextClick:Bn(ut,Ve)})}Pe.current.nodeTemplate.contextMenu=qe("ContextMenu",qe("ContextMenuButton",qe(de.s_,"Horizontal",He("Rectangle"),He("RoundedRectangle"),He("Ellipse"),He("Diamond"))),qe("ContextMenuButton",qe(de.s_,"Horizontal",He("Parallelogram2"),He("ManualOperation"),He("Procedure"),He("Cylinder1"))),qe("ContextMenuButton",qe(de.s_,"Horizontal",He("Terminator"),He("CreateRequest"),He("Document"),He("TriangleDown"))),Oe(),Ee(),Ye()),Pe.current.groupTemplate=qe(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Ve,ut)=>{var xt=ut.addMembers(ut.diagram.selection,!0);xt||ut.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),qe(de.s_,"Auto",{name:"BODY"},qe(de.bn,{parameter1:10,fill:Jt.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")),qe(de.Vm,{background:"transparent",margin:20})),qe(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"))),Pe.current.groupTemplate.selectionAdornmentTemplate=qe(de.uz,"Spot",qe(de.s_,"Auto",qe(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),qe(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=qe("ContextMenu",Oe(),Ee(),Ye()),Pe.current.linkTemplate=qe(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",Ve=>Ve>=1?10:0),new de.KX("toShortLength","dir",Ve=>Ve>=1?10:0),new de.KX("points").makeTwoWay(),qe(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),qe(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ve=>Ve===1)),qe(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ve=>Ve>=1),new de.KX("width","thickness",Ve=>7+3*Ve),new de.KX("height","thickness",Ve=>7+3*Ve),new de.KX("segmentOffset","thickness",Ve=>new de.E9(-15,4+1.5*Ve))),qe(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",Ve=>Ve===2),new de.KX("width","thickness",Ve=>7+3*Ve),new de.KX("height","thickness",Ve=>7+3*Ve),new de.KX("segmentOffset","thickness",Ve=>new de.E9(-15,4+1.5*Ve))),qe(de.al,{alignmentFocus:new de.z6(0,1,-4,0),editable:!0},new de.KX("text").makeTwoWay(),new de.KX("stroke","color"))),Pe.current.linkTemplate.selectionAdornmentTemplate=qe(de.uz,qe(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Te(2)},new de.KX("pathPattern","thickness",Te)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Te(Ve){return qe(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Ve+4).toString()+" H3"})}function Et(Ve){var ut="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Ve===0?ut="M0 0 M16 16 M0 8 L16 8":Ve===2&&(ut="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),qe(de.bn,{geometryString:ut,margin:2,background:"transparent",mouseEnter:(xt,mt)=>mt.background="dodgerblue",mouseLeave:(xt,mt)=>mt.background="transparent",click:Bn("dir",Ve),contextClick:Bn("dir",Ve)})}function Ct(Ve){var ut=(xt,mt)=>{xt.handled=!0,xt.diagram.model.commit(Xt=>{var Vt=mt.part.adornedPart;Xt.set(Vt.data,Ve?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(Ve?Vt.toNode:Vt.fromNode).invalidateConnectedLinks()})};return qe(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(xt,mt)=>mt.background="dodgerblue",mouseLeave:(xt,mt)=>mt.background="transparent",click:ut,contextClick:ut})}function we(Ve,ut){var xt=0,mt=de.z6.RightSide;Ve.equals(de.z6.Top)?(xt=270,mt=de.z6.TopSide):Ve.equals(de.z6.Left)?(xt=180,mt=de.z6.LeftSide):Ve.equals(de.z6.Bottom)&&(xt=90,mt=de.z6.BottomSide),ut||(xt-=180);var Xt=(Vt,Dt)=>{Vt.handled=!0,Vt.diagram.model.commit(un=>{var cn=Dt.part.adornedPart;un.set(cn.data,ut?"toSpot":"fromSpot",de.z6.stringify(mt)),(ut?cn.toNode:cn.fromNode).invalidateConnectedLinks()})};return qe(de.bn,{alignment:Ve,alignmentFocus:Ve.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:xt,background:"transparent",mouseEnter:(Vt,Dt)=>Dt.background="dodgerblue",mouseLeave:(Vt,Dt)=>Dt.background="transparent",click:Xt,contextClick:Xt})}Pe.current.linkTemplate.contextMenu=qe("ContextMenu",Ee(),Ye(),qe("ContextMenuButton",qe(de.s_,"Horizontal",Et(0),Et(1),Et(2))),qe("ContextMenuButton",qe(de.s_,"Horizontal",qe(de.s_,"Spot",Ct(!1),we(de.z6.Top,!1),we(de.z6.Left,!1),we(de.z6.Right,!1),we(de.z6.Bottom,!1)),qe(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Ct(!0),we(de.z6.Top,!0),we(de.z6.Left,!0),we(de.z6.Right,!0),we(de.z6.Bottom,!0)))));const nn=`{ "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(Ve){return console.log("shapeName:",Ve),qt.indexOf(Ve)>=0}var xn=new de.YI(bt.current,{maxSelectionCount:1,linkTemplate:qe(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:qe(de.uz,"Link",{locationSpot:de.z6.Center},qe(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),qe(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),qe(de.bn,{isPanelMain:!0,strokeWidth:2}),qe(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(Ve=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Ve.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(Ve){var ut;const xt=Ve.subject.part;var mt=(ut=document.activeElement)==null?void 0:ut.value;typeof mt=="string"&&mt.trim()===""&&Pe.current.model.commit(function(Xt){Xt.set(xt.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),xn.nodeTemplate=qe(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),qe(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")),qe(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(()=>{Pe.current.grid=qe(de.s_,"Grid",qe(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),qe(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Pe.current.grid.visible=!0,Pe.current.grid.gridCellStroke="darkgray",Pe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Pe.current,Pe.current}const kn=()=>ke(this,null,function*(){var qe=Pe.current.makeImage();const Jt=yield(0,ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:qe.src}});ve({src:Jt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{vn()},500),Yt(_t+1),()=>{Pe.current=null}),[]),Se.createElement("div",{ref:gn,className:Pt.current?`${be.maxH60} body-overflow-initial`:"body-overflow-initial"},Se.createElement(Ie.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!_t,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Se.createElement(Qe.Z,null,Se.createElement(Nt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Se.createElement(Nt.Z,{onClick:()=>{var qe,Jt,An=Pe.current.selection.first();if(Pt.current=!Pt.current,document.activeElement&&An){let Zn=(Jt=(qe=document.activeElement)==null?void 0:qe.value)==null?void 0:Jt.trim();typeof Zn=="string"&&Pe.current.model.commit(function(Bn){Bn.set(An.data,"text",Zn||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}Yt(_t+1)}},Se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:pe},Se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:be.flowChartWrp},Se.createElement("div",{style:{display:"flex",height:"100%"}},Se.createElement("div",{style:{width:"300px",height:"100%"}},Se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Se.createElement("div",{style:{height:"calc(100% - 50px)"},className:be.myPaletteDiv,ref:bt})),Se.createElement("div",{style:{flex:1,position:"relative"}},Se.createElement("div",{ref:et,style:{height:"80vh"}}))),Se.createElement("div",{className:"tr"},Se.createElement($e.ZP,{size:"large",onClick:kn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var lt=Ue,wt=re(5112),Ft=re(5871);const At=wt.ZP.Group,Rt={margin:"0 8px"};var ht=({callback:pe,onCancel:ve})=>{function Pe(et){pe(et)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:Rt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:Rt},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Ft.Z,null)),ae.createElement("span",{style:Rt},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Ft.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:Rt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(At,null,ae.createElement(wt.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement(wt.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement(wt.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement(wt.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement($e.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement($e.ZP,{type:"ghost",onClick:ve},"\u53D6\u6D88")))},kt=re(78673),Pn=re(11081),wn=re.n(Pn),on=(0,ae.forwardRef)(({use3d:pe,width:ve,height:Pe,callback:et,showSaveButton:bt},Pt)=>{const gn=(0,ae.useRef)(),_t=(0,ae.useRef)(),[Yt,vn]=(0,ae.useState)(!1),kn=(0,ae.useRef)({id:gn,appName:"graphing",width:ve||1e3,height:Pe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ae.useEffect)(()=>{_t.current=new(wn())(kn.current,!0),window.onload=function(){_t.current.inject("applet_container")}},[]);const qe=()=>{var Jt=window.ggbApplet.getPNGBase64(1,!0,72);return et&&et(Jt),Jt};return(0,ae.useEffect)(()=>{kn.current.appName=Yt?"3D":"graphing",_t.current.inject("applet_container")},[Yt]),(0,ae.useEffect)(()=>{vn(pe)},[pe]),(0,ae.useImperativeHandle)(Pt,()=>({getImgData:qe})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:gn}),ae.createElement(Qe.Z,{align:"middle"},ae.createElement(Nt.Z,{flex:1},ae.createElement(kt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Yt,onChange:Jt=>vn(Jt)})),ae.createElement(Nt.Z,null,ae.createElement($e.ZP,{size:"large",onClick:qe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),en=re(88615),he=re(1012),xe=re(8591);const je="link",ot="upload-image",st="add-flowchart",$t="draw-image",Gt="add-flowchart",pt="code-block",Ot="add-table",Kt="------------",Ut={default:Kt,left:`:${Kt}`,center:`:${Kt}:`,right:`${Kt}:`};var Qt=re(17904),Sn=(pe,ve,Pe)=>new Promise((et,bt)=>{var Pt=Yt=>{try{_t(Pe.next(Yt))}catch(vn){bt(vn)}},gn=Yt=>{try{_t(Pe.throw(Yt))}catch(vn){bt(vn)}},_t=Yt=>Yt.done?et(Yt.value):Promise.resolve(Yt.value).then(Pt,gn);_t((Pe=Pe.apply(pe,ve)).next())});function hn(){}let Fn=0;const rn=1e4,tn="\u2581",pn="@\u2581\u2581@",En="@\u2581@",Cn=`
|
|
**\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(pe){return/^\d+$/.test(pe)?`${pe}px`:pe}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[In+"-B"]:"bold",[In+"-I"]:"italic"},na={[je]:"\u6DFB\u52A0\u94FE\u63A5",[pt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ot]:"\u6DFB\u52A0\u56FE\u7247",[$t]:"\u6DFB\u52A0\u753B\u56FE",[st]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Ot]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:pe="",onChange:ve,width:Pe="100%",height:et=400,miniToolbar:bt=!1,isFocus:Pt=!1,watch:gn,insertTemp:_t,mode:Yt="markdown",id:vn="markdown-editor-id",showResizeBar:kn=!1,noStorage:qe=!1,showNullButton:Jt=!1,showNullProgramButton:An=!1,hidetoolBar:Zn=!1,fullScreen:Bn=!1,onBlur:me,onCMBeforeChange:Oe,onFullScreen:Ee,className:De="",disablePaste:Xe=!1,disabled:Ye=!1,disabledFill:He=!1,placeholder:Te="",values:Et="",extraUse:Ct})=>{const[we,nn]=(0,ae.useState)(null),[qt,fn]=(0,ae.useState)(pe),[xn,Ve]=(0,ae.useState)(gn),[ut,xt]=(0,ae.useState)(Bn),[mt,Xt]=(0,ae.useState)(""),[Vt,Dt]=(0,ae.useState)(0),[un,cn]=(0,ae.useState)(et),[oa,Qn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,he.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 yt;const dt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(yt=dt==null?void 0:dt.attachments)!=null&&yt.length&&(console.log("cm:",we,ta),dt.attachments.map(ct=>{ct.content_type.indexOf("image")>-1?we.replaceSelection(``):ct.content_type.indexOf("video")>-1?we.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):ct.content_type.indexOf("pdf")>-1?we.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${ct.id}?type=${ct.content_type}&disposition=inline" target="_blank">${ct.name}</a>`):we.replaceSelection(`[${ct.name}](${ENV.API_SERVER}/api/attachments/${ct.id}?type=${ct.content_type})`)}))});(0,ae.useEffect)(()=>{const yt=window.scrollY||window.pageYOffset;fn(Et),we==null||we.setValue(Et),window.scrollTo(0,yt)},[Et]),(0,ae.useEffect)(()=>{Ee==null||Ee(ut)},[ut]),(0,ae.useEffect)(()=>{if(ta.current){let yt=function(ct,ft){var ln;if(Xe){ft.preventDefault();return}const zn=ft.clipboardData;if(zn){const Rn=zn.types.toString(),Tn=zn.items;if(Rn==="Files"||zn.types.indexOf("Files")>-1){if(ft.preventDefault(),Yt=="stex")return;try{let jn=Tn[1];((ln=Tn[0])==null?void 0:ln.kind)==="file"&&(jn=Tn[0]);const _n=jn.getAsFile(),sa=_n.name.split(".").pop();(0,Be.I)(_n,Kn=>{var Zt,dn,Ln;Kn.id?((Zt=_n==null?void 0:_n.type)==null?void 0:Zt.indexOf("image"))>-1?dt.replaceSelection(`<img width="100%" src="/api/attachments/${Kn.id}?type=${Kn.content_type})" alt="" />`):((dn=_n==null?void 0:_n.type)==null?void 0:dn.indexOf("video"))>-1?dt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Kn.id}"></video>`):((Ln=_n==null?void 0:_n.type)==null?void 0:Ln.indexOf("pdf"))>-1?dt.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=${_n.type}&disposition=inline" target="_blank">${_n.name}</a>`):sn.includes(sa)?dt.replaceSelection(`<a href="/api/attachments/${Kn.id}?type=office&disposition=inline" target="_blank">${_n.name}</a>`):dt.replaceSelection(`[${_n.name}](/api/attachments/${Kn.id}?type=${Kn.content_type})`):(Kn==null?void 0:Kn.status)===401&&(xe.ZP.warning((Kn==null?void 0:Kn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){xe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const dt=We().fromTextArea(ta.current,{mode:Yt,lineNumbers:!bt,lineWrapping:!0,value:pe,autoCloseTags:!An,autoCloseBrackets:!0});return dt.on("keyup",function(ct,ft){ft.keyCode===8&&(ct.getValue()==""?dt.setOption("placeholder",Te):dt.setOption("placeholder",null))}),dt.on("keydown",function(ct,ft){if(ft.keyCode===8){var ln=Wt(ct);ln&&ft.preventDefault()}}),Pt&&dt.focus(),dt.on("paste",yt),dt.on("dragleave",function(ct,ft){ga.current.classList.remove("mouse-hover-md")}),Ye&&dt.on("beforeChange",function(ct,ft){(ft.origin==="paste"||ft.origin==="+input")&&ft.cancel()}),nn(dt),()=>{dt.off("paste",yt)}}},[]);const fa=(0,ae.useCallback)(()=>{if(ga.current)try{}catch(yt){console.log(yt,"---- to set md editor body height")}},[un,ga,ut]);(0,ae.useEffect)(()=>{function yt(){let dt=new _e.Z(ct=>{for(let ft of ct)(ft.target.offsetHeight>0||ft.target.offsetWidth>0)&&(fa(),we.setSize("100%","100%"),we.refresh())});return dt.observe(ta.current.parentElement),dt}if(we){const dt=yt();return()=>{var ct,ft;(ct=ta.current)!=null&&ct.parentElement&&dt.unobserve((ft=ta.current)==null?void 0:ft.parentElement)}}},[we,fa]),(0,ae.useEffect)(()=>{if(we){let yt=[];for(const[dt,ct]of Object.entries(Wn)){let ft={[dt]:()=>{On(ct)}};yt.push(ft),we.addKeyMap(ft)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let dt of yt)we.removeKeyMap(dt)}}},[we]),(0,ae.useEffect)(()=>{Bn!==ut&&xt(Bn)},[Bn]),(0,Qt.Z)(()=>{if(!qe&&Vt>0){let yt=new Date().getTime(),dt=window.sessionStorage.getItem(vn);yt>=Vt+rn&&(!dt||dt!==qt)&&(window.sessionStorage.setItem(vn,qt),Qn(!0))}},rn),(0,ae.useEffect)(()=>{Ve(gn)},[we,gn]),(0,ae.useEffect)(()=>{we&&Pt&&we.focus()},[we,Pt]),(0,ae.useEffect)(()=>{if(xn&&we){let yt=function(ct){let ft=ct.target;if(aa.current){let ln=ft.scrollTop/ft.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*ln}};const dt=we.getScrollerElement();return dt.addEventListener("scroll",yt),()=>{dt.removeEventListener("scroll",yt)}}},[we,xn]),(0,ae.useEffect)(()=>{if(we&&Oe){let yt=function(dt,ct){Oe(dt,ct)};return we.on("beforeChange",yt),()=>{we.off("beforeChange",yt)}}},[we,Oe]),(0,ae.useEffect)(()=>{if(we&&me){let yt=function(){me(we.getValue())};return we.on("blur",yt),()=>{we.off("blur",yt)}}},[we,me]);function Wt(yt,dt){var ct=yt.getDoc(),ft=ct.getCursor(),ln=ct.getLine(ft.line),zn=ln.charAt(ft.ch-1),Rn=ln.lastIndexOf("@\u2581@",ft.ch),Tn=ln.lastIndexOf("@\u2581\u2581@",ft.ch),jn=Rn>Tn?Rn:Tn,_n=Rn>Tn?3:4;if(pn.indexOf(zn)===-1)return null;if(console.log("change1:",dt,yt,ln,ft,jn,Rn,Tn,zn),jn>=0&&ft.ch-jn<5){var sa=jn+_n;return ct.replaceRange("",{line:ft.line,ch:jn},{line:ft.line,ch:sa}),{line:ft.line,ch:sa}}return null}(0,ae.useEffect)(()=>{if(we){let yt=function(dt,ct){const ft=dt.getValue();fn(ft),Dt(new Date().getTime()),dt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),ve&&(An?ve(ft,Gn(ft)):ve(ft))};return we.on("change",yt),()=>{we.off("change",yt)}}},[we,ve]),(0,ae.useEffect)(()=>{if(we)if(pe==null)we.setValue(""),fn("");else{const yt=window.scrollY||window.pageYOffset;pe!==we.getValue()&&(we.setValue(pe),fn(pe),we.setCursor(Ye?1:we.lineCount(),0),window.scrollTo(0,yt))}},[we,pe]);const On=(0,ae.useCallback)(yt=>{const dt=we.getCursor(),ct=we.getSelection();let ft=ct.split(`
|
|
`);switch(yt){case"bold":return we.replaceSelection("**"+ct+"**"),ct===""&&we.setCursor(dt.line,dt.ch+2),we.focus();case"italic":return we.replaceSelection("*"+ct+"*"),ct===""&&we.setCursor(dt.line,dt.ch+1),we.focus();case"code":return we.replaceSelection("`"+ct+"`"),ct===""&&we.setCursor(dt.line,dt.ch+1),we.focus();case"inline-latex":return Xt("inline-latex"),we.focus();case"latex":return we.replaceSelection("```latex\n"+ct+"\n```"),we.setCursor(dt.line+1,ct.length+1),we.focus();case"line-break":return we.replaceSelection(`<br/>
|
|
`),we.focus();case"list-ul":return ct===""?we.replaceSelection("- "+ct):we.replaceSelection(ft.map(ln=>ln===""?"":`- ${ln}`).join(`
|
|
`)),we.focus();case"list-ol":return ct===""?we.replaceSelection("1. "+ct):we.replaceSelection(ft.map((ln,zn)=>ln===""?"":`${zn+1}. ${ln}`).join(`
|
|
`)),we.focus();case"add-null-ch":return ct===""&&we.setCursor(dt.line,dt.ch),we.replaceSelection(tn),we.focus();case"add-signal":return ct===""&&we.setCursor(dt.line,dt.ch),we.replaceSelection(En),we.focus();case"add-multiple":return ct===""&&we.setCursor(dt.line,dt.ch),we.replaceSelection(pn),we.focus();case"inster-template-1":return ct===""&&we.setCursor(dt.line,dt.ch),we.replaceSelection(Cn),we.focus();case"eraser":return we.setValue(""),we.focus();case"trigger-watch":return Ve(!xn),we.focus();case"trigger-full-screen":return xt(!ut),we.focus();case je:Xt(je);return;case pt:Xt(pt);return;case ot:Xt(ot);return;case $t:Xt($t);return;case"maths-latex":Xt("maths-latex");return;case st:Xt(st);return;case Ot:Xt(Ot);return;default:throw new Error}},[we,xn,ut]),Mn=(0,ae.useCallback)((yt,dt)=>{var ct,ft,ln,zn,Rn,Tn;switch(Xt(""),mt){case je:const{title:Zt,link:dn}=yt;return we.replaceSelection(`[${Zt}](${dn})`),we.focus();case pt:const{language:Ln,content:an}=yt;return we.replaceSelection(["```"+Ln,an,"```"].join(`
|
|
`)),we.focus();case"maths-latex":for(var jn=atob(yt),_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?we.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":we.replaceSelection("`$$"+yt+"$$`");break;case ot:case $t:case Gt:const{src:mn,alt:Hn}=yt,bn=dt,ha=(ln=(ft=(ct=bn==null?void 0:bn.name)==null?void 0:ct.split("."))==null?void 0:ft.pop)==null?void 0:ln.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?we.replaceSelection(`<p style="text-align:${bn.align||"initial"}"><img width="${bn.width?bn.width+"%":"initial"}" src="${mn}" alt="${Hn||""}" /></p>`):we.replaceSelection(`<img width="100%" src="${mn}" alt="${Hn||""}" />`):((Rn=bn==null?void 0:bn.type)==null?void 0:Rn.indexOf("video"))>-1?we.replaceSelection(`<video width="100%" controls src="${mn}"></video>`):((Tn=bn==null?void 0:bn.type)==null?void 0:Tn.indexOf("pdf"))>-1?we.replaceSelection(`<a href="${mn}?type=${bn.type}&disposition=inline" target="_blank">${bn.name}</a>`):sn.includes(ha)?we.replaceSelection(`<a href="${mn}?type=office&disposition=inline" target="_blank">${bn.name}</a>`):we.replaceSelection(`[${bn.name}](${mn})`),we.focus();case Ot:const{row:ua,col:wa,align:Ca}=yt;let Fa=`
|
|
`;for(let ma=0;ma<ua;ma++){let Ba=[],xa=[];for(let Ea=0;Ea<wa;Ea++)ma===1&&xa.push(Ut[Ca]),Ba.push(" ");ma===1&&(Fa+=`| ${xa.join(" | ")} |
|
|
`),Fa+=`| ${Ba.join(wa===1?"":" | ")} |
|
|
`}return we.replaceSelection(Fa+`
|
|
`),we.focus();default:throw new Error}},[we,mt]),Un=(0,ae.useMemo)(()=>{switch(mt){case je:return ae.createElement(Tt,{callback:Mn,onCancel:Xn});case pt:return ae.createElement(Mt.Z,{callback:Mn,onCancel:Xn});case ot:return ae.createElement(Be.Z,{callback:Mn,onCancel:Xn});case st:return ae.createElement(lt,{callback:Mn,onCancel:Xn});case Ot:return ae.createElement(ht,{callback:Mn,onCancel:Xn});case"maths-latex":return ae.createElement(on,{showSaveButton:!0,callback:Mn});case"inline-latex":return ae.createElement(en.Z,{showSaveButton:!0,callback:Mn});default:return null}},[mt]);function Xn(){Xt("")}(0,ae.useEffect)(()=>{if(ia.current){let yt=function(Rn){ln=!0,zn=Rn.pageY},dt=function(){ln=!1},ct=function(Rn){if(ln){let Tn=Rn.pageY-zn;Tn<0&&(Tn=0),Tn>300&&(Tn=300);let jn=et+Tn+"px";cn(jn)}},ft=ia.current,ln=!1,zn=0;return ft.addEventListener("mousedown",yt),document.addEventListener("mousemove",ct),document.addEventListener("mouseup",dt),()=>{ft.removeEventListener("mousedown",yt),document.removeEventListener("mousemove",ct),document.removeEventListener("mouseup",dt)}}},[we,ia]),(0,ae.useEffect)(()=>{cn(et)},[et]);const ra=Nn(Pe),va=Nn(un),pa={width:ra,height:va},Dn=(0,ae.useMemo)(()=>{if(Vt){let yt=new Date(Vt),dt=yt.getHours(),ct=yt.getMinutes(),ft=yt.getSeconds();return dt=dt<10?"0"+dt:dt,ct=ct<10?"0"+ct:ct,ft=ft<10?"0"+ft:ft,`${dt}:${ct}:${ft}`}return 0},[Vt]),Gn=yt=>{const dt=[];if(An){let ct=-1;yt=yt.replace(/(@▁▁@|@▁@)/g,function(ft,ln,zn){dt.push({multiLine:ft!==En})})}return dt};function la(){window.sessionStorage.removeItem(vn),Qn(!1),Dt(0)}function ya(){Qn(!1),Dt(0),we.setValue(window.sessionStorage.getItem(vn))}(0,ae.useEffect)(()=>{na[mt]&&mt!==$t&&mt!==st&&setTimeout(()=>{const yt=document.getElementsByClassName("markdown-popup-form")[0],dt=window.innerWidth/2-yt.offsetWidth/2,ct=window.innerHeight/2-yt.offsetHeight/2;da(dt),$n(ct)},0)},[mt]);const La=yt=>{yt.preventDefault();const dt=yt.clientX-Pa,ct=yt.clientY-Vn;document.body.onmousemove=ft=>{let ln=ft.clientX-dt,zn=ft.clientY-ct;const Rn=document.getElementsByClassName("markdown-popup-form")[0],Tn=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;ln=Math.max(0,Math.min(ln,Tn)),zn=Math.max(0,Math.min(zn,jn)),ba(ft.clientX,ft.clientY,dt,ct)&&(da(ln),$n(zn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(yt,dt,ct,ft)=>{const ln=document.body.clientHeight,zn=document.body.clientWidth;return yt<20&&ct>yt||yt>zn-20&&ct<yt||dt<20&&ft>dt||dt>ln-20&&ft<dt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ga},ae.createElement("div",{className:`markdown-editor-container ${De} ${xn?"on-preview":""} ${bt?"mini":""} ${ut?"full-screen":""}`,style:pa},ae.createElement(ie,{insertTemp:_t,watch:xn,fullScreen:ut,showNullButton:Jt,showNullProgramButton:An,onActionCallback:On,hidetoolBar:Zn,extraUse:Ct}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ta,placeholder:Te})),xn?ae.createElement("div",{ref:aa,className:"preview-container"},Yt==="stex"&&ae.createElement(Ne,{value:qt}),Yt!=="stex"&&ae.createElement(Ae.Z,{disabledFill:He,showProgramFill:An,value:qt})):null))),kn?ae.createElement("a",{ref:ia,className:"editor-resize"}):null,mt===$t&&ae.createElement(Lt,{callback:Mn,onCancel:Xn}),mt===st&&ae.createElement(lt,{callback:Mn,onCancel:Xn}),ae.createElement(se.Z,null,na[mt]&&mt!==$t&&mt!==st?ae.createElement(Ie.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Vn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[mt]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:mt===st?"1200px":null,height:mt===st?"80vh":null,className:"markdown-popup-form"},Un):null))}},45596:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return ge},I:function(){return se}});var ae=re(78241),fe=re(8591),We=re(92832),_e=re(81327),ce=re(5871),Re=re(5112),ue=re(3113),Ze=re(67303),Ge=re(59301),Me=re(34055),Ae=re(59301),Ne=Object.defineProperty,Le=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,b=(le,Fe,$e)=>Fe in le?Ne(le,Fe,{enumerable:!0,configurable:!0,writable:!0,value:$e}):le[Fe]=$e,E=(le,Fe)=>{for(var $e in Fe||(Fe={}))a.call(Fe,$e)&&b(le,$e,Fe[$e]);if(y)for(var $e of y(Fe))x.call(Fe,$e)&&b(le,$e,Fe[$e]);return le},z=(le,Fe)=>Le(le,ne(Fe));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ge=({callback:le,onCancel:Fe})=>{const[$e]=ee();let it=(0,Ge.useRef)();function vt(Ke){it.current.width=$e.getFieldValue("width"),it.current.align=$e.getFieldValue("align"),le(Ke,it.current)}function jt(Ke,nt){if(Ke.status===-1){fe.ZP.error(Ke.message);return}$e.setFieldsValue({src:`/api/attachments/${Ke.id}`,type:nt.type})}function ye(Ke){let nt=Ke.target.files[0];it.current=nt,se(nt,jt)}return Ae.createElement(ae.default,z(E({form:$e},oe),{className:"upload-image-panel",onFinish:vt,style:{width:470,overflow:"hidden"}}),Ae.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ae.createElement("div",{className:"flex-container"},Ae.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ae.createElement(We.default,{style:te})),Ae.createElement(ie,{onFileChange:ye}))),Ae.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ae.createElement(We.default,{style:{width:264}})),Ae.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ae.createElement(_e.Z,null,Ae.createElement(ae.default.Item,{name:"width",style:{margin:0}},Ae.createElement(ce.Z,{style:{width:264}})),Ae.createElement("span",{className:"ml8"},"%"))),Ae.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ae.createElement(Re.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"}]})),Ae.createElement("aside",null,Ae.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ae.createElement(ue.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ae.createElement(ue.ZP,{type:"default",onClick:Fe},"\u53D6\u6D88"))))};function ie({onFileChange:le}){return Ae.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ae.createElement("input",{type:"file",onChange:le}))}function se(le,Fe){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Me.bg)())throw fe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let $e=new FormData;$e.append("editormd-image-file",le),$e.append("file_param_name","editormd-image-file"),$e.append("byxhr","true");var it=new window.XMLHttpRequest;it.withCredentials=!0,it.addEventListener("load",function(vt){Fe(JSON.parse(vt.target.responseText),le)},!1),it.addEventListener("error",function(vt){console.error(vt)},!1),it.open("POST",`${Ze.KI}/api/attachments.json`),it.send($e)}},75790:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return We}});var ae=re(59301),fe=re(4676);class We extends ae.Component{constructor(ce){super(ce);const Re=window.document;this.node=Re.createElement("div"),Re.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,fe.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},17904:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return fe}});var ae=re(59301);function fe(We,_e){const ce=(0,ae.useRef)();(0,ae.useEffect)(()=>{ce.current=We}),(0,ae.useEffect)(()=>{function Re(){ce.current()}if(_e!==null){let ue=setInterval(Re,_e);return()=>clearInterval(ue)}},[_e])}},23279:function(Ce,tt,re){"use strict";re.r(tt),re.d(tt,{default:function(){return ge}});var ae=re(59301),fe=re(89389),We=re(76560),_e=re(78241),ce=re(8591),Re=re(66104),ue=re(95237),Ze=re(43604),Ge=re(57809),Me=re(92832),Ae=re(28103),Ne=re(3113),Le={flex_box_center:"flex_box_center___xV7b6",flex_space_between:"flex_space_between___VKhsb",flex_box_vertical_center:"flex_box_vertical_center___ZeNry",flex_box_center_end:"flex_box_center_end___j462S",flex_box_column:"flex_box_column___zDUss",bg:"bg___I9Ce6",title:"title___N0IDa",titleLeft:"titleLeft___v14y3",titleRight:"titleRight___QkPDR",btns:"btns___QGvIi"},ne=re(65583),y=re(42525),a=Object.defineProperty,x=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,z=(ie,se,le)=>se in ie?a(ie,se,{enumerable:!0,configurable:!0,writable:!0,value:le}):ie[se]=le,ee=(ie,se)=>{for(var le in se||(se={}))b.call(se,le)&&z(ie,le,se[le]);if(x)for(var le of x(se))E.call(se,le)&&z(ie,le,se[le]);return ie},te=(ie,se,le)=>new Promise((Fe,$e)=>{var it=ye=>{try{jt(le.next(ye))}catch(Ke){$e(Ke)}},vt=ye=>{try{jt(le.throw(ye))}catch(Ke){$e(Ke)}},jt=ye=>ye.done?Fe(ye.value):Promise.resolve(ye.value).then(it,vt);jt((le=le.apply(ie,se)).next())});const oe=({graduation:ie,globalSetting:se,loading:le,user:Fe,dispatch:$e})=>{var it;const vt=(0,We.useParams)(),jt=(0,We.useLocation)(),{userInfo:ye}=Fe,[Ke]=_e.default.useForm(),{addTopicData:nt}=ie,Je=()=>te(void 0,null,function*(){var rt;const zt=Ke.getFieldsValue(),It=ee({},zt);It!=null&&It.attachment_ids&&(It.attachment_ids=(rt=It.attachment_ids)==null?void 0:rt.map(Mt=>Mt.id||Mt.response.id));const Tt=yield(0,ne.Sv)(ee({coursesId:vt.coursesId,attachment_ids:[]},It));Tt.status?ce.ZP.error(Tt.message):We.history.push(`/classrooms/${vt.coursesId}/graduation_tasks/${vt.categoryId}`)});return(0,ae.useEffect)(()=>{$e({type:"graduation/addTopicDefaultData",payload:ee({},vt)})},[vt.coursesId]),ae.createElement("section",{className:"edu-container"},ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},ye&&ae.createElement(Re.Z,{separator:">"},ae.createElement(Re.Z.Item,null,ae.createElement(We.Link,{to:`${ye.first_category_url}`},(it=ye==null?void 0:ye.course)==null?void 0:it.course_name)),ae.createElement(Re.Z.Item,null,ae.createElement(We.Link,{to:`/classrooms/${vt.coursesId}/graduation_tasks/${vt.categoryId}`},"\u6BD5\u8BBE\u4EFB\u52A1")),ae.createElement(Re.Z.Item,null,"\u65B0\u5EFA"))),ae.createElement("aside",{className:[Le.title,"mt20"].join(" ")},ae.createElement(ue.Z,{style:{width:"100%"}},ae.createElement(Ze.Z,{flex:"1"},ae.createElement("strong",{className:"font20 ml5"},"\u65B0\u5EFA\u6BD5\u8BBE\u4EFB\u52A1")),ae.createElement(Ze.Z,null,ae.createElement(We.Link,{className:"font16 c-light-black",to:`/classrooms/${vt.coursesId}/exercise`},"\u8FD4\u56DE"))))),ae.createElement("section",{className:[Le.bg,"pt30","pl30","pr30","pb30","mt20"].join(" ")},ae.createElement(_e.default,{layout:"vertical",form:Ke,scrollToFirstError:!0,onFinish:rt=>te(void 0,null,function*(){Je()})},ae.createElement(_e.default.Item,{name:"task_type",label:"\u7C7B\u578B\uFF1A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B"}]},ae.createElement(Ge.default,{size:"middle",placeholder:"\u8BF7\u9009\u62E9\u4EFB\u52A1\u7C7B\u578B",style:{width:200}},ae.createElement(Ge.default.Option,{value:1},"\u666E\u901A"),ae.createElement(Ge.default.Option,{value:2},"\u5206\u7EC4"))),ae.createElement(_e.default.Item,{name:"name",label:"\u9009\u9898\u540D\u79F0\uFF1A",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EFB\u52A1\u6807\u9898"}]},ae.createElement(Me.default,{maxLength:60,size:"middle",suffix:"0/60",placeholder:"\u4EFB\u52A1\u6807\u9898\uFF0C\u6700\u5927\u9650\u523660\u4E2A\u5B57\u7B26"})),ae.createElement(Ae.Z,null),ae.createElement(_e.default.Item,{label:"\u5185\u5BB9",name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5185\u5BB9"}]},ae.createElement(fe.Z,{watch:!0,placeholder:"\u8BF7\u4EFB\u52A1\u5185\u5BB9\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"})),ae.createElement(ue.Z,null,ae.createElement(Ze.Z,null,ae.createElement(_e.default.Item,{name:"attachment_ids"},ae.createElement(y.Z,null)))))),ae.createElement("aside",{className:Le.btns},ae.createElement(Ne.ZP,{type:"primary",onClick:()=>{Ke.submit()}},"\u4FDD\u5B58"),ae.createElement(We.Link,{to:`/classrooms/${vt.coursesId}/graduation_tasks/${vt.categoryId}`},"\u53D6\u6D88")))};var ge=(0,We.connect)(({graduation:ie,loading:se,user:le,globalSetting:Fe})=>({graduation:ie,globalSetting:Fe,user:le,loading:se.effects}))(oe)},92725:function(Ce,tt,re){"use strict";re.d(tt,{$J:function(){return We},JZ:function(){return ce},bN:function(){return ue},jP:function(){return Re},rO:function(){return _e}});var ae=re(82093),fe=(Ze,Ge,Me)=>new Promise((Ae,Ne)=>{var Le=a=>{try{y(Me.next(a))}catch(x){Ne(x)}},ne=a=>{try{y(Me.throw(a))}catch(x){Ne(x)}},y=a=>a.done?Ae(a.value):Promise.resolve(a.value).then(Le,ne);y((Me=Me.apply(Ze,Ge)).next())});function We(Ze){return(0,ae.U2)(`libraries/${Ze}.json`)}function _e(Ze){return(0,ae.U2)("library_tags.json",Ze)}function ce(Ze){return fe(this,null,function*(){return(yield(0,ae.IV)(`attachments/${Ze}.json`)).status===0})}function Re(Ze){return(0,ae.v_)("libraries.json",Ze)}function ue(Ze,Ge){return(0,ae.gz)(`libraries/${Ze}.json`,Ge)}},56762:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return fe}});var ae=re(59301);function fe(){const[,We]=ae.useReducer(_e=>_e+1,0);return We}},66104:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return jt}});var ae=re(92310),fe=re.n(ae),We=re(11592),_e=re(26112),ce=re(59301),Re=re(92343),ue=re(36355),Ze=re(84105),Ge=re(91857);const Me=ye=>{let{children:Ke}=ye;const{getPrefixCls:nt}=ce.useContext(ue.E_),Je=nt("breadcrumb");return ce.createElement("li",{className:`${Je}-separator`,"aria-hidden":"true"},Ke===""?Ke:Ke||"/")};Me.__ANT_BREADCRUMB_SEPARATOR=!0;var Ae=Me,Ne=function(ye,Ke){var nt={};for(var Je in ye)Object.prototype.hasOwnProperty.call(ye,Je)&&Ke.indexOf(Je)<0&&(nt[Je]=ye[Je]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Je=Object.getOwnPropertySymbols(ye);rt<Je.length;rt++)Ke.indexOf(Je[rt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Je[rt])&&(nt[Je[rt]]=ye[Je[rt]]);return nt};function Le(ye,Ke){if(ye.title===void 0||ye.title===null)return null;const nt=Object.keys(Ke).join("|");return typeof ye.title=="object"?ye.title:String(ye.title).replace(new RegExp(`:(${nt})`,"g"),(Je,rt)=>Ke[rt]||Je)}function ne(ye,Ke,nt,Je){if(nt==null)return null;const{className:rt,onClick:zt}=Ke,It=Ne(Ke,["className","onClick"]),Tt=Object.assign(Object.assign({},(0,_e.Z)(It,{data:!0,aria:!0})),{onClick:zt});return Je!==void 0?ce.createElement("a",Object.assign({},Tt,{className:fe()(`${ye}-link`,rt),href:Je}),nt):ce.createElement("span",Object.assign({},Tt,{className:fe()(`${ye}-link`,rt)}),nt)}function y(ye,Ke){return(Je,rt,zt,It,Tt)=>{if(Ke)return Ke(Je,rt,zt,It);const Mt=Le(Je,rt);return ne(ye,Je,Mt,Tt)}}var a=function(ye,Ke){var nt={};for(var Je in ye)Object.prototype.hasOwnProperty.call(ye,Je)&&Ke.indexOf(Je)<0&&(nt[Je]=ye[Je]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Je=Object.getOwnPropertySymbols(ye);rt<Je.length;rt++)Ke.indexOf(Je[rt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Je[rt])&&(nt[Je[rt]]=ye[Je[rt]]);return nt};const x=ye=>{const{prefixCls:Ke,separator:nt="/",children:Je,menu:rt,overlay:zt,dropdownProps:It,href:Tt}=ye,Be=(Ie=>{if(rt||zt){const Qe=Object.assign({},It);if(rt){const Bt=rt||{},{items:at}=Bt,Lt=a(Bt,["items"]);Qe.menu=Object.assign(Object.assign({},Lt),{items:at==null?void 0:at.map((de,gt)=>{var{key:St,title:Ht,label:Nt,path:ze}=de,be=a(de,["key","title","label","path"]);let Se=Nt!=null?Nt:Ht;return ze&&(Se=ce.createElement("a",{href:`${Tt}${ze}`},Se)),Object.assign(Object.assign({},be),{key:St!=null?St:gt,label:Se})})})}else zt&&(Qe.overlay=zt);return ce.createElement(Ge.Z,Object.assign({placement:"bottom"},Qe),ce.createElement("span",{className:`${Ke}-overlay-link`},Ie,ce.createElement(Ze.Z,null)))}return Ie})(Je);return Be!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,Be),nt&&ce.createElement(Ae,null,nt)):null},b=ye=>{const{prefixCls:Ke,children:nt,href:Je}=ye,rt=a(ye,["prefixCls","children","href"]),{getPrefixCls:zt}=ce.useContext(ue.E_),It=zt("breadcrumb",Ke);return ce.createElement(x,Object.assign({},rt,{prefixCls:It}),ne(It,rt,nt,Je))};b.__ANT_BREADCRUMB_ITEM=!0;var E=b,z=re(17313),ee=re(83116),te=re(37613);const oe=ye=>{const{componentCls:Ke,iconCls:nt}=ye;return{[Ke]:Object.assign(Object.assign({},(0,z.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[nt]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,z.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${Ke}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${Ke}-link`]:{[`
|
|
> ${nt} + span,
|
|
> ${nt} + a
|
|
`]:{marginInlineStart:ye.marginXXS}},[`${Ke}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${nt}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var ge=(0,ee.Z)("Breadcrumb",ye=>{const Ke=(0,te.TS)(ye,{});return[oe(Ke)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),ie=function(ye,Ke){var nt={};for(var Je in ye)Object.prototype.hasOwnProperty.call(ye,Je)&&Ke.indexOf(Je)<0&&(nt[Je]=ye[Je]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Je=Object.getOwnPropertySymbols(ye);rt<Je.length;rt++)Ke.indexOf(Je[rt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Je[rt])&&(nt[Je[rt]]=ye[Je[rt]]);return nt};function se(ye){const{breadcrumbName:Ke,children:nt}=ye,Je=ie(ye,["breadcrumbName","children"]),rt=Object.assign({title:Ke},Je);return nt&&(rt.menu={items:nt.map(zt=>{var{breadcrumbName:It}=zt,Tt=ie(zt,["breadcrumbName"]);return Object.assign(Object.assign({},Tt),{title:It})})}),rt}function le(ye,Ke){return(0,ce.useMemo)(()=>ye||(Ke?Ke.map(se):null),[ye,Ke])}var Fe=function(ye,Ke){var nt={};for(var Je in ye)Object.prototype.hasOwnProperty.call(ye,Je)&&Ke.indexOf(Je)<0&&(nt[Je]=ye[Je]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,Je=Object.getOwnPropertySymbols(ye);rt<Je.length;rt++)Ke.indexOf(Je[rt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Je[rt])&&(nt[Je[rt]]=ye[Je[rt]]);return nt};const $e=(ye,Ke)=>{if(Ke===void 0)return Ke;let nt=(Ke||"").replace(/^\//,"");return Object.keys(ye).forEach(Je=>{nt=nt.replace(`:${Je}`,ye[Je])}),nt},it=ye=>{const{prefixCls:Ke,separator:nt="/",style:Je,className:rt,rootClassName:zt,routes:It,items:Tt,children:Mt,itemRender:Be,params:Ie={}}=ye,Qe=Fe(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Bt,direction:at,breadcrumb:Lt}=ce.useContext(ue.E_);let de;const gt=Bt("breadcrumb",Ke),[St,Ht]=ge(gt),Nt=le(Tt,It),ze=y(gt,Be);if(Nt&&Nt.length>0){const ke=[],Ue=Tt||It;de=Nt.map((lt,wt)=>{const{path:Ft,key:At,type:Rt,menu:ht,overlay:kt,onClick:Pn,className:wn,separator:yn,dropdownProps:on}=lt,en=$e(Ie,Ft);en!==void 0&&ke.push(en);const he=At!=null?At:wt;if(Rt==="separator")return ce.createElement(Ae,{key:he},yn);const xe={},je=wt===Nt.length-1;ht?xe.menu=ht:kt&&(xe.overlay=kt);let{href:ot}=lt;return ke.length&&en!==void 0&&(ot=`#/${ke.join("/")}`),ce.createElement(x,Object.assign({key:he},xe,(0,_e.Z)(lt,{data:!0,aria:!0}),{className:wn,dropdownProps:on,href:ot,separator:je?"":nt,onClick:Pn,prefixCls:gt}),ze(lt,Ie,Ue,ke,ot))})}else if(Mt){const ke=(0,We.Z)(Mt).length;de=(0,We.Z)(Mt).map((Ue,lt)=>{if(!Ue)return Ue;const wt=lt===ke-1;return(0,Re.Tm)(Ue,{separator:wt?"":nt,key:lt})})}const be=fe()(gt,Lt==null?void 0:Lt.className,{[`${gt}-rtl`]:at==="rtl"},rt,zt,Ht),Se=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),Je);return St(ce.createElement("nav",Object.assign({className:be,style:Se},Qe),ce.createElement("ol",null,de)))};it.Item=E,it.Separator=Ae;var vt=it,jt=vt},28103:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return Ne}});var ae=re(92310),fe=re.n(ae),We=re(59301),_e=re(36355),ce=re(17313),Re=re(83116),ue=re(37613);const Ze=Le=>{const{componentCls:ne,sizePaddingEdgeHorizontal:y,colorSplit:a,lineWidth:x,textPaddingInline:b,orientationMargin:E,verticalMarginInline:z}=Le;return{[ne]:Object.assign(Object.assign({},(0,ce.Wf)(Le)),{borderBlockStart:`${x}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:z,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${x}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Le.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${ne}-with-text`]:{display:"flex",alignItems:"center",margin:`${Le.dividerHorizontalWithTextGutterMargin}px 0`,color:Le.colorTextHeading,fontWeight:500,fontSize:Le.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${x}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${ne}-with-text-left`]:{"&::before":{width:`${E*100}%`},"&::after":{width:`${100-E*100}%`}},[`&-horizontal${ne}-with-text-right`]:{"&::before":{width:`${100-E*100}%`},"&::after":{width:`${E*100}%`}},[`${ne}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:b},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${x}px 0 0`},[`&-horizontal${ne}-with-text${ne}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${ne}-dashed`]:{borderInlineStartWidth:x,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${ne}-with-text`]:{color:Le.colorText,fontWeight:"normal",fontSize:Le.fontSize},[`&-horizontal${ne}-with-text-left${ne}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${ne}-inner-text`]:{paddingInlineStart:y}},[`&-horizontal${ne}-with-text-right${ne}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${ne}-inner-text`]:{paddingInlineEnd:y}}})}};var Ge=(0,Re.Z)("Divider",Le=>{const ne=(0,ue.TS)(Le,{dividerHorizontalWithTextGutterMargin:Le.margin,dividerHorizontalGutterMargin:Le.marginLG,sizePaddingEdgeHorizontal:0});return[Ze(ne)]},Le=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Le.marginXS})),Me=function(Le,ne){var y={};for(var a in Le)Object.prototype.hasOwnProperty.call(Le,a)&&ne.indexOf(a)<0&&(y[a]=Le[a]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var x=0,a=Object.getOwnPropertySymbols(Le);x<a.length;x++)ne.indexOf(a[x])<0&&Object.prototype.propertyIsEnumerable.call(Le,a[x])&&(y[a[x]]=Le[a[x]]);return y},Ne=Le=>{const{getPrefixCls:ne,direction:y,divider:a}=We.useContext(_e.E_),{prefixCls:x,type:b="horizontal",orientation:E="center",orientationMargin:z,className:ee,rootClassName:te,children:oe,dashed:ge,plain:ie,style:se}=Le,le=Me(Le,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Fe=ne("divider",x),[$e,it]=Ge(Fe),vt=E.length>0?`-${E}`:E,jt=!!oe,ye=E==="left"&&z!=null,Ke=E==="right"&&z!=null,nt=fe()(Fe,a==null?void 0:a.className,it,`${Fe}-${b}`,{[`${Fe}-with-text`]:jt,[`${Fe}-with-text${vt}`]:jt,[`${Fe}-dashed`]:!!ge,[`${Fe}-plain`]:!!ie,[`${Fe}-rtl`]:y==="rtl",[`${Fe}-no-default-orientation-margin-left`]:ye,[`${Fe}-no-default-orientation-margin-right`]:Ke},ee,te),Je=We.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),rt=Object.assign(Object.assign({},ye&&{marginLeft:Je}),Ke&&{marginRight:Je});return $e(We.createElement("div",Object.assign({className:nt,style:Object.assign(Object.assign({},a==null?void 0:a.style),se)},le,{role:"separator"}),oe&&b!=="vertical"&&We.createElement("span",{className:`${Fe}-inner-text`,style:rt},oe)))}},91857:function(Ce,tt,re){"use strict";var ae=re(59301),fe=re(38819),We=re(92310),_e=re.n(We),ce=re(31561),Re=re(70425),ue=re(18929),Ze=re(2738),Ge=re(79676),Me=re(53487),Ae=re(92343),Ne=re(36355),Le=re(20834),ne=re(40875),y=re(88088),a=re(47211);const x=null,b=te=>{const{menu:oe,arrow:ge,prefixCls:ie,children:se,trigger:le,disabled:Fe,dropdownRender:$e,getPopupContainer:it,overlayClassName:vt,rootClassName:jt,open:ye,onOpenChange:Ke,visible:nt,onVisibleChange:Je,mouseEnterDelay:rt=.15,mouseLeaveDelay:zt=.1,autoAdjustOverflow:It=!0,placement:Tt="",overlay:Mt,transitionName:Be}=te,{getPopupContainer:Ie,getPrefixCls:Qe,direction:Bt}=ae.useContext(Ne.E_),at=ae.useMemo(()=>{const ht=Qe();return Be!==void 0?Be:Tt.includes("top")?`${ht}-slide-down`:`${ht}-slide-up`},[Qe,Tt,Be]),Lt=ae.useMemo(()=>Tt?Tt.includes("Center")?Tt.slice(0,Tt.indexOf("Center")):Tt:Bt==="rtl"?"bottomRight":"bottomLeft",[Tt,Bt]),de=Qe("dropdown",ie),[gt,St]=(0,a.Z)(de),[,Ht]=(0,y.Z)(),Nt=ae.Children.only(se),ze=(0,Ae.Tm)(Nt,{className:_e()(`${de}-trigger`,{[`${de}-rtl`]:Bt==="rtl"},Nt.props.className),disabled:Fe}),be=Fe?[]:le;let Se;be&&be.includes("contextMenu")&&(Se=!0);const[ke,Ue]=(0,ue.Z)(!1,{value:ye!=null?ye:nt}),lt=(0,Re.useEvent)(ht=>{Ke==null||Ke(ht),Je==null||Je(ht),Ue(ht)}),wt=_e()(vt,jt,St,{[`${de}-rtl`]:Bt==="rtl"}),Ft=(0,Ge.Z)({arrowPointAtCenter:typeof ge=="object"&&ge.pointAtCenter,autoAdjustOverflow:It,offset:Ht.marginXXS,arrowWidth:ge?Ht.sizePopupArrow:0,borderRadius:Ht.borderRadius}),At=ae.useCallback(()=>{Ue(!1)},[]),Rt=()=>{let ht;return oe!=null&&oe.items?ht=ae.createElement(Le.default,Object.assign({},oe)):typeof Mt=="function"?ht=Mt():ht=Mt,$e&&(ht=$e(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(fe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:At,validator:kt=>{let{mode:Pn}=kt}},ht)};return gt(ae.createElement(ce.Z,Object.assign({alignPoint:Se},(0,Ze.Z)(te,["rootClassName"]),{mouseEnterDelay:rt,mouseLeaveDelay:zt,visible:ke,builtinPlacements:Ft,arrow:!!ge,overlayClassName:wt,prefixCls:de,getPopupContainer:it||Ie,transitionName:at,trigger:be,overlay:Rt,placement:Lt,onVisibleChange:lt}),ze))};function E(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Me.Z)(b,"dropdown",te=>te,E),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,tt.Z=b},47211:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return Ae}});var ae=re(17313),fe=re(13826),We=re(92899),_e=re(29878),ce=re(19447),Re=re(83116),ue=re(37613),Ge=Ne=>{const{componentCls:Le,menuCls:ne,colorError:y,colorTextLightSolid:a}=Ne,x=`${ne}-item`;return{[`${Le}, ${Le}-menu-submenu`]:{[`${ne} ${x}`]:{[`&${x}-danger:not(${x}-disabled)`]:{color:y,"&:hover":{color:a,backgroundColor:y}}}}}};const Me=Ne=>{const{componentCls:Le,menuCls:ne,zIndexPopup:y,dropdownArrowDistance:a,sizePopupArrow:x,antCls:b,iconCls:E,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ge,fontSizeIcon:ie,controlPaddingHorizontal:se,colorBgElevated:le}=Ne;return[{[Le]:Object.assign(Object.assign({},(0,ae.Wf)(Ne)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-a+x/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${E}-down, & > ${b}-btn-icon > ${E}-down`]:{fontSize:ie}},[`${Le}-wrap`]:{position:"relative",[`${b}-btn > ${E}-down`]:{fontSize:ie},[`${E}-down::before`]:{transition:`transform ${z}`}},[`${Le}-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${Le}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Le}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Le}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Le}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Le}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Le}-placement-bottomRight`]:{animationName:fe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Le}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Le}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Le}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Le}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Le}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Le}-placement-topRight`]:{animationName:fe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Le}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Le}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Le}-placement-bottomRight`]:{animationName:fe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Le}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Le}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Le}-placement-topRight`]:{animationName:fe.ly}})},(0,ce.ZP)(Ne,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Le} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Le}, ${Le}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:Ne.borderRadiusLG,outline:"none",boxShadow:Ne.boxShadowSecondary},(0,ae.Qy)(Ne)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${se}px`,color:Ne.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:Ne.marginXS,fontSize:Ne.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 ${se}px`,color:Ne.colorText,fontWeight:"normal",fontSize:te,lineHeight:Ne.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:Ne.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ne.controlItemBgHover}},(0,ae.Qy)(Ne)),{"&-selected":{color:Ne.colorPrimary,backgroundColor:Ne.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ne.controlItemBgActiveHover}},"&-disabled":{color:ge,cursor:"not-allowed","&:hover":{color:ge,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Ne.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ne.colorSplit},[`${Le}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ne.paddingXS,[`${Le}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ne.colorTextDescription,fontSize:ie,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${Ne.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:se+Ne.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Le}-menu-submenu-title`]:{[`&, ${Le}-menu-submenu-arrow-icon`]:{color:ge,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Le}-menu-submenu-title`]:{color:Ne.colorPrimary}})}},[(0,fe.oN)(Ne,"slide-up"),(0,fe.oN)(Ne,"slide-down"),(0,We.Fm)(Ne,"move-up"),(0,We.Fm)(Ne,"move-down"),(0,_e._y)(Ne,"zoom-big")]]};var Ae=(0,Re.Z)("Dropdown",(Ne,Le)=>{let{rootPrefixCls:ne}=Le;const{marginXXS:y,sizePopupArrow:a,controlHeight:x,fontSize:b,lineHeight:E,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=Ne,oe=(x-b*E)/2,{dropdownArrowOffset:ge}=(0,ce.fS)({contentRadius:te}),ie=(0,ue.TS)(Ne,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:a/2+y,dropdownArrowOffset:ge,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Me(ie),Ge(ie)]},Ne=>({zIndexPopup:Ne.zIndexPopupBase+50}))},45818:function(Ce,tt,re){"use strict";re.d(tt,{D:function(){return z},Z:function(){return oe}});var ae=re(32855),fe=re(59301),We={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"},_e=We,ce=re(7657),Re=function(ie,se){return fe.createElement(ce.Z,(0,ae.Z)({},ie,{ref:se,icon:_e}))},ue=fe.forwardRef(Re),Ze=ue,Ge=re(33853),Me=re(38819),Ae=re(92310),Ne=re.n(Ae),Le=re(2738),y=ge=>!isNaN(parseFloat(ge))&&isFinite(ge),a=re(36355),x=re(84966),b=function(ge,ie){var se={};for(var le in ge)Object.prototype.hasOwnProperty.call(ge,le)&&ie.indexOf(le)<0&&(se[le]=ge[le]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,le=Object.getOwnPropertySymbols(ge);Fe<le.length;Fe++)ie.indexOf(le[Fe])<0&&Object.prototype.propertyIsEnumerable.call(ge,le[Fe])&&(se[le[Fe]]=ge[le[Fe]]);return se};const E={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=fe.createContext({}),ee=(()=>{let ge=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ge+=1,`${ie}${ge}`}})();var oe=fe.forwardRef((ge,ie)=>{const{prefixCls:se,className:le,trigger:Fe,children:$e,defaultCollapsed:it=!1,theme:vt="dark",style:jt={},collapsible:ye=!1,reverseArrow:Ke=!1,width:nt=200,collapsedWidth:Je=80,zeroWidthTriggerStyle:rt,breakpoint:zt,onCollapse:It,onBreakpoint:Tt}=ge,Mt=b(ge,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Be}=(0,fe.useContext)(x.Gs),[Ie,Qe]=(0,fe.useState)("collapsed"in ge?ge.collapsed:it),[Bt,at]=(0,fe.useState)(!1);(0,fe.useEffect)(()=>{"collapsed"in ge&&Qe(ge.collapsed)},[ge.collapsed]);const Lt=(ze,be)=>{"collapsed"in ge||Qe(ze),It==null||It(ze,be)},de=(0,fe.useRef)();de.current=ze=>{at(ze.matches),Tt==null||Tt(ze.matches),Ie!==ze.matches&&Lt(ze.matches,"responsive")},(0,fe.useEffect)(()=>{function ze(Se){return de.current(Se)}let be;if(typeof window!="undefined"){const{matchMedia:Se}=window;if(Se&&zt&&zt in E){be=Se(`(max-width: ${E[zt]})`);try{be.addEventListener("change",ze)}catch(ke){be.addListener(ze)}ze(be)}}return()=>{try{be==null||be.removeEventListener("change",ze)}catch(Se){be==null||be.removeListener(ze)}}},[zt]),(0,fe.useEffect)(()=>{const ze=ee("ant-sider-");return Be.addSider(ze),()=>Be.removeSider(ze)},[]);const gt=()=>{Lt(!Ie,"clickTrigger")},{getPrefixCls:St}=(0,fe.useContext)(a.E_),Ht=()=>{const ze=St("layout-sider",se),be=(0,Le.Z)(Mt,["collapsed"]),Se=Ie?Je:nt,ke=y(Se)?`${Se}px`:String(Se),Ue=parseFloat(String(Je||0))===0?fe.createElement("span",{onClick:gt,className:Ne()(`${ze}-zero-width-trigger`,`${ze}-zero-width-trigger-${Ke?"right":"left"}`),style:rt},Fe||fe.createElement(Ze,null)):null,Ft={expanded:Ke?fe.createElement(Me.Z,null):fe.createElement(Ge.Z,null),collapsed:Ke?fe.createElement(Ge.Z,null):fe.createElement(Me.Z,null)}[Ie?"collapsed":"expanded"],At=Fe!==null?Ue||fe.createElement("div",{className:`${ze}-trigger`,onClick:gt,style:{width:ke}},Fe||Ft):null,Rt=Object.assign(Object.assign({},jt),{flex:`0 0 ${ke}`,maxWidth:ke,minWidth:ke,width:ke}),ht=Ne()(ze,`${ze}-${vt}`,{[`${ze}-collapsed`]:!!Ie,[`${ze}-has-trigger`]:ye&&Fe!==null&&!Ue,[`${ze}-below`]:!!Bt,[`${ze}-zero-width`]:parseFloat(ke)===0},le);return fe.createElement("aside",Object.assign({className:ht},be,{style:Rt,ref:ie}),fe.createElement("div",{className:`${ze}-children`},$e),ye||Bt&&Ue?At:null)},Nt=fe.useMemo(()=>({siderCollapsed:Ie}),[Ie]);return fe.createElement(z.Provider,{value:Nt},Ht())})},84966:function(Ce,tt,re){"use strict";re.d(tt,{VY:function(){return z},$_:function(){return E},h4:function(){return b},Gs:function(){return Le},ZP:function(){return ee}});var ae=re(3300),fe=re(92310),We=re.n(fe),_e=re(2738),ce=re(59301),Re=re(36355),ue=re(83116),Ge=te=>{const{componentCls:oe,bodyBg:ge,lightSiderBg:ie,lightTriggerBg:se,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ie,[`${oe}-sider-trigger`]:{color:le,background:se},[`${oe}-sider-zero-width-trigger`]:{color:le,background:se,border:`1px solid ${ge}`,borderInlineStart:0}}}};const Me=te=>{const{antCls:oe,componentCls:ge,colorText:ie,triggerColor:se,footerBg:le,triggerBg:Fe,headerHeight:$e,headerPadding:it,headerColor:vt,footerPadding:jt,triggerHeight:ye,zeroTriggerHeight:Ke,zeroTriggerWidth:nt,motionDurationMid:Je,motionDurationSlow:rt,fontSize:zt,borderRadius:It,bodyBg:Tt,headerBg:Mt,siderBg:Be}=te;return{[ge]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Tt,"&, *":{boxSizing:"border-box"},[`&${ge}-has-sider`]:{flexDirection:"row",[`> ${ge}, > ${ge}-content`]:{width:0}},[`${ge}-header, &${ge}-footer`]:{flex:"0 0 auto"},[`${ge}-sider`]:{position:"relative",minWidth:0,background:Be,transition:`all ${Je}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ye},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ye,color:se,lineHeight:`${ye}px`,textAlign:"center",background:Fe,cursor:"pointer",transition:`all ${Je}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:$e,insetInlineEnd:-nt,zIndex:1,width:nt,height:Ke,color:se,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Be,borderStartStartRadius:0,borderStartEndRadius:It,borderEndEndRadius:It,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:-nt,borderStartStartRadius:It,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:It}}}}},Ge(te)),{"&-rtl":{direction:"rtl"}}),[`${ge}-header`]:{height:$e,padding:it,color:vt,lineHeight:`${$e}px`,background:Mt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ge}-footer`]:{padding:jt,color:ie,fontSize:zt,background:le},[`${ge}-content`]:{flex:"auto",minHeight:0}}};var Ae=(0,ue.Z)("Layout",te=>[Me(te)],te=>{const{colorBgLayout:oe,controlHeight:ge,controlHeightLG:ie,colorText:se,controlHeightSM:le,marginXXS:Fe,colorTextLightSolid:$e,colorBgContainer:it}=te,vt=ie*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ge*2,headerPadding:`0 ${vt}px`,headerColor:se,footerPadding:`${le}px ${vt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ie+Fe*2,triggerBg:"#002140",triggerColor:$e,zeroTriggerWidth:ie,zeroTriggerHeight:ie,lightSiderBg:it,lightTriggerBg:it,lightTriggerColor:se}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Ne=function(te,oe){var ge={};for(var ie in te)Object.prototype.hasOwnProperty.call(te,ie)&&oe.indexOf(ie)<0&&(ge[ie]=te[ie]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,ie=Object.getOwnPropertySymbols(te);se<ie.length;se++)oe.indexOf(ie[se])<0&&Object.prototype.propertyIsEnumerable.call(te,ie[se])&&(ge[ie[se]]=te[ie[se]]);return ge};const Le=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ge,displayName:ie}=te;return se=>ce.forwardRef((Fe,$e)=>ce.createElement(se,Object.assign({ref:$e,suffixCls:oe,tagName:ge},Fe)))}const y=ce.forwardRef((te,oe)=>{const{prefixCls:ge,suffixCls:ie,className:se,tagName:le}=te,Fe=Ne(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:$e}=ce.useContext(Re.E_),it=$e("layout",ge),[vt,jt]=Ae(it),ye=ie?`${it}-${ie}`:it;return vt(ce.createElement(le,Object.assign({className:We()(ge||ye,se,jt),ref:oe},Fe)))}),a=ce.forwardRef((te,oe)=>{const{direction:ge}=ce.useContext(Re.E_),[ie,se]=ce.useState([]),{prefixCls:le,className:Fe,rootClassName:$e,children:it,hasSider:vt,tagName:jt,style:ye}=te,Ke=Ne(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),nt=(0,_e.Z)(Ke,["suffixCls"]),{getPrefixCls:Je,layout:rt}=ce.useContext(Re.E_),zt=Je("layout",le),[It,Tt]=Ae(zt),Mt=We()(zt,{[`${zt}-has-sider`]:typeof vt=="boolean"?vt:ie.length>0,[`${zt}-rtl`]:ge==="rtl"},rt==null?void 0:rt.className,Fe,$e,Tt),Be=ce.useMemo(()=>({siderHook:{addSider:Ie=>{se(Qe=>[].concat((0,ae.Z)(Qe),[Ie]))},removeSider:Ie=>{se(Qe=>Qe.filter(Bt=>Bt!==Ie))}}}),[]);return It(ce.createElement(Le.Provider,{value:Be},ce.createElement(jt,Object.assign({ref:oe,className:Mt,style:Object.assign(Object.assign({},rt==null?void 0:rt.style),ye)},nt),it)))}),x=ne({tagName:"div",displayName:"Layout"})(a),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(y),E=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(y),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(y);var ee=x},40875:function(Ce,tt,re){"use strict";re.d(tt,{J:function(){return Re}});var ae=re(59301),fe=re(33234),We=re(70425),_e=function(ue,Ze){var Ge={};for(var Me in ue)Object.prototype.hasOwnProperty.call(ue,Me)&&Ze.indexOf(Me)<0&&(Ge[Me]=ue[Me]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Me=Object.getOwnPropertySymbols(ue);Ae<Me.length;Ae++)Ze.indexOf(Me[Ae])<0&&Object.prototype.propertyIsEnumerable.call(ue,Me[Ae])&&(Ge[Me[Ae]]=ue[Me[Ae]]);return Ge};const ce=ae.createContext(null),Re=ae.forwardRef((ue,Ze)=>{const{children:Ge}=ue,Me=_e(ue,["children"]),Ae=ae.useContext(ce),Ne=ae.useMemo(()=>Object.assign(Object.assign({},Ae),Me),[Ae,Me.prefixCls,Me.mode,Me.selectable]);return ae.createElement(ce.Provider,{value:Ne},ae.createElement(fe.BR,null,(0,We.supportNodeRef)(Ge)?ae.cloneElement(Ge,{ref:Ze}):Ge))});tt.Z=ce},20834:function(Ce,tt,re){"use strict";re.d(tt,{default:function(){return Nt}});var ae=re(15285),fe=re(59301),We=re(45818),_e=re(92310),ce=re.n(_e),Re=re(36355),ue=function(ze,be){var Se={};for(var ke in ze)Object.prototype.hasOwnProperty.call(ze,ke)&&be.indexOf(ke)<0&&(Se[ke]=ze[ke]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ke=Object.getOwnPropertySymbols(ze);Ue<ke.length;Ue++)be.indexOf(ke[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ze,ke[Ue])&&(Se[ke[Ue]]=ze[ke[Ue]]);return Se},Ge=ze=>{const{prefixCls:be,className:Se,dashed:ke}=ze,Ue=ue(ze,["prefixCls","className","dashed"]),{getPrefixCls:lt}=fe.useContext(Re.E_),wt=lt("menu",be),Ft=ce()({[`${wt}-item-divider-dashed`]:!!ke},Se);return fe.createElement(ae.iz,Object.assign({className:Ft},Ue))},Me=re(11592),Ae=re(2738),Ne=re(6848),Le=re(92343),y=(0,fe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),x=ze=>{var be;const{className:Se,children:ke,icon:Ue,title:lt,danger:wt}=ze,{prefixCls:Ft,firstLevel:At,direction:Rt,disableMenuItemTitleTooltip:ht,inlineCollapsed:kt}=fe.useContext(y),Pn=xe=>{const je=fe.createElement("span",{className:`${Ft}-title-content`},ke);return(!Ue||(0,Le.l$)(ke)&&ke.type==="span")&&ke&&xe&&At&&typeof ke=="string"?fe.createElement("div",{className:`${Ft}-inline-collapsed-noicon`},ke.charAt(0)):je},{siderCollapsed:wn}=fe.useContext(We.D);let yn=lt;typeof lt=="undefined"?yn=At?ke:"":lt===!1&&(yn="");const on={title:yn};!wn&&!kt&&(on.title=null,on.open=!1);const en=(0,Me.Z)(ke).length;let he=fe.createElement(ae.ck,Object.assign({},(0,Ae.Z)(ze,["title","icon","danger"]),{className:ce()({[`${Ft}-item-danger`]:wt,[`${Ft}-item-only-child`]:(Ue?en+1:en)===1},Se),title:typeof lt=="string"?lt:void 0}),(0,Le.Tm)(Ue,{className:ce()((0,Le.l$)(Ue)?(be=Ue.props)===null||be===void 0?void 0:be.className:"",`${Ft}-item-icon`)}),Pn(kt));return ht||(he=fe.createElement(Ne.Z,Object.assign({},on,{placement:Rt==="rtl"?"left":"right",overlayClassName:`${Ft}-inline-collapsed-tooltip`}),he)),he},E=ze=>{var be;const{popupClassName:Se,icon:ke,title:Ue,theme:lt}=ze,wt=fe.useContext(y),{prefixCls:Ft,inlineCollapsed:At,theme:Rt}=wt,ht=(0,ae.Xl)();let kt;if(!ke)kt=At&&!ht.length&&Ue&&typeof Ue=="string"?fe.createElement("div",{className:`${Ft}-inline-collapsed-noicon`},Ue.charAt(0)):fe.createElement("span",{className:`${Ft}-title-content`},Ue);else{const wn=(0,Le.l$)(Ue)&&Ue.type==="span";kt=fe.createElement(fe.Fragment,null,(0,Le.Tm)(ke,{className:ce()((0,Le.l$)(ke)?(be=ke.props)===null||be===void 0?void 0:be.className:"",`${Ft}-item-icon`)}),wn?Ue:fe.createElement("span",{className:`${Ft}-title-content`},Ue))}const Pn=fe.useMemo(()=>Object.assign(Object.assign({},wt),{firstLevel:!1}),[wt]);return fe.createElement(y.Provider,{value:Pn},fe.createElement(ae.Wd,Object.assign({},(0,Ae.Z)(ze,["icon"]),{title:kt,popupClassName:ce()(Ft,Se,`${Ft}-${lt||Rt}`)})))},z=re(18785),ee=re(70425),te=re(62892),oe=re(40875),ge=function(ze,be){var Se={};for(var ke in ze)Object.prototype.hasOwnProperty.call(ze,ke)&&be.indexOf(ke)<0&&(Se[ke]=ze[ke]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ke=Object.getOwnPropertySymbols(ze);Ue<ke.length;Ue++)be.indexOf(ke[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ze,ke[Ue])&&(Se[ke[Ue]]=ze[ke[Ue]]);return Se};function ie(ze){return(ze||[]).map((be,Se)=>{if(be&&typeof be=="object"){const ke=be,{label:Ue,children:lt,key:wt,type:Ft}=ke,At=ge(ke,["label","children","key","type"]),Rt=wt!=null?wt:`tmp-${Se}`;return lt||Ft==="group"?Ft==="group"?fe.createElement(ae.BW,Object.assign({key:Rt},At,{title:Ue}),ie(lt)):fe.createElement(E,Object.assign({key:Rt},At,{title:Ue}),ie(lt)):Ft==="divider"?fe.createElement(Ge,Object.assign({key:Rt},At)):fe.createElement(x,Object.assign({key:Rt},At),Ue)}return null}).filter(be=>be)}function se(ze){return fe.useMemo(()=>ze&&ie(ze),[ze])}var le=re(64993),Fe=re(17313),$e=re(8378),it=re(13826),vt=re(29878),jt=re(83116),ye=re(37613),nt=ze=>{const{componentCls:be,motionDurationSlow:Se,horizontalLineHeight:ke,colorSplit:Ue,lineWidth:lt,lineType:wt,itemPaddingInline:Ft}=ze;return{[`${be}-horizontal`]:{lineHeight:ke,border:0,borderBottom:`${lt}px ${wt} ${Ue}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${be}-item, ${be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ft},[`> ${be}-item:hover,
|
|
> ${be}-item-active,
|
|
> ${be}-submenu ${be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${be}-item, ${be}-submenu-title`]:{transition:[`border-color ${Se}`,`background ${Se}`].join(",")},[`${be}-submenu-arrow`]:{display:"none"}}}},rt=ze=>{let{componentCls:be,menuArrowOffset:Se}=ze;return{[`${be}-rtl`]:{direction:"rtl"},[`${be}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${be}-rtl${be}-vertical,
|
|
${be}-submenu-rtl ${be}-vertical`]:{[`${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Se})`},"&::after":{transform:`rotate(45deg) translateY(${Se})`}}}}};const zt=ze=>Object.assign({},(0,Fe.oN)(ze));var Tt=(ze,be)=>{const{componentCls:Se,itemColor:ke,itemSelectedColor:Ue,groupTitleColor:lt,itemBg:wt,subMenuItemBg:Ft,itemSelectedBg:At,activeBarHeight:Rt,activeBarWidth:ht,activeBarBorderWidth:kt,motionDurationSlow:Pn,motionEaseInOut:wn,motionEaseOut:yn,itemPaddingInline:on,motionDurationMid:en,itemHoverColor:he,lineType:xe,colorSplit:je,itemDisabledColor:ot,dangerItemColor:st,dangerItemHoverColor:$t,dangerItemSelectedColor:Gt,dangerItemActiveBg:pt,dangerItemSelectedBg:Ot,itemHoverBg:Kt,itemActiveBg:Ut,menuSubMenuBg:Qt,horizontalItemSelectedColor:Sn,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:rn,popupBg:tn}=ze;return{[`${Se}-${be}, ${Se}-${be} > ${Se}`]:{color:ke,background:wt,[`&${Se}-root:focus-visible`]:Object.assign({},zt(ze)),[`${Se}-item-group-title`]:{color:lt},[`${Se}-submenu-selected`]:{[`> ${Se}-submenu-title`]:{color:Ue}},[`${Se}-item-disabled, ${Se}-submenu-disabled`]:{color:`${ot} !important`},[`${Se}-item:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{[`&:hover, > ${Se}-submenu-title:hover`]:{color:he}},[`&:not(${Se}-horizontal)`]:{[`${Se}-item:not(${Se}-item-selected)`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Ut}},[`${Se}-submenu-title`]:{"&:hover":{backgroundColor:Kt},"&:active":{backgroundColor:Ut}}},[`${Se}-item-danger`]:{color:st,[`&${Se}-item:hover`]:{[`&:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{color:$t}},[`&${Se}-item:active`]:{background:pt}},[`${Se}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Se}-item-selected`]:{color:Ue,[`&${Se}-item-danger`]:{color:Gt},"a, a:hover":{color:"inherit"}},[`& ${Se}-item-selected`]:{backgroundColor:At,[`&${Se}-item-danger`]:{backgroundColor:Ot}},[`${Se}-item, ${Se}-submenu-title`]:{[`&:not(${Se}-item-disabled):focus-visible`]:Object.assign({},zt(ze))},[`&${Se}-submenu > ${Se}`]:{backgroundColor:Qt},[`&${Se}-popup > ${Se}`]:{backgroundColor:tn},[`&${Se}-horizontal`]:Object.assign(Object.assign({},be==="dark"?{borderBottom:0}:{}),{[`> ${Se}-item, > ${Se}-submenu`]:{top:kt,marginTop:-kt,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:on,bottom:0,borderBottom:`${Rt}px solid transparent`,transition:`border-color ${Pn} ${wn}`,content:'""'},"&:hover, &-active, &-open":{background:rn,"&::after":{borderBottomWidth:Rt,borderBottomColor:Sn}},"&-selected":{color:Sn,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:Rt,borderBottomColor:Sn}}}}),[`&${Se}-root`]:{[`&${Se}-inline, &${Se}-vertical`]:{borderInlineEnd:`${kt}px ${xe} ${je}`}},[`&${Se}-inline`]:{[`${Se}-sub${Se}-inline`]:{background:Ft},[`${Se}-item, ${Se}-submenu-title`]:kt&&ht?{width:`calc(100% + ${kt}px)`}:{},[`${Se}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ht}px solid ${Ue}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${en} ${yn}`,`opacity ${en} ${yn}`].join(","),content:'""'},[`&${Se}-item-danger`]:{"&::after":{borderInlineEndColor:Gt}}},[`${Se}-selected, ${Se}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${en} ${wn}`,`opacity ${en} ${wn}`].join(",")}}}}}};const Mt=ze=>{const{componentCls:be,itemHeight:Se,itemMarginInline:ke,padding:Ue,menuArrowSize:lt,marginXS:wt,itemMarginBlock:Ft}=ze,At=Ue+lt+wt;return{[`${be}-item`]:{position:"relative",overflow:"hidden"},[`${be}-item, ${be}-submenu-title`]:{height:Se,lineHeight:`${Se}px`,paddingInline:Ue,overflow:"hidden",textOverflow:"ellipsis",marginInline:ke,marginBlock:Ft,width:`calc(100% - ${ke*2}px)`},[`> ${be}-item,
|
|
> ${be}-submenu > ${be}-submenu-title`]:{height:Se,lineHeight:`${Se}px`},[`${be}-item-group-list ${be}-submenu-title,
|
|
${be}-submenu-title`]:{paddingInlineEnd:At}}};var Ie=ze=>{const{componentCls:be,iconCls:Se,itemHeight:ke,colorTextLightSolid:Ue,dropdownWidth:lt,controlHeightLG:wt,motionDurationMid:Ft,motionEaseOut:At,paddingXL:Rt,itemMarginInline:ht,fontSizeLG:kt,motionDurationSlow:Pn,paddingXS:wn,boxShadowSecondary:yn,collapsedWidth:on,collapsedIconSize:en}=ze,he={height:ke,lineHeight:`${ke}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[be]:{"&-inline, &-vertical":Object.assign({[`&${be}-root`]:{boxShadow:"none"}},Mt(ze))},[`${be}-submenu-popup`]:{[`${be}-vertical`]:Object.assign(Object.assign({},Mt(ze)),{boxShadow:yn})}},{[`${be}-submenu-popup ${be}-vertical${be}-sub`]:{minWidth:lt,maxHeight:`calc(100vh - ${wt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${be}-inline`]:{width:"100%",[`&${be}-root`]:{[`${be}-item, ${be}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Pn}`,`background ${Pn}`,`padding ${Ft} ${At}`].join(","),[`> ${be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${be}-sub${be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${be}-submenu > ${be}-submenu-title`]:he,[`& ${be}-item-group-title`]:{paddingInlineStart:Rt}},[`${be}-item`]:he}},{[`${be}-inline-collapsed`]:{width:on,[`&${be}-root`]:{[`${be}-item, ${be}-submenu ${be}-submenu-title`]:{[`> ${be}-inline-collapsed-noicon`]:{fontSize:kt,textAlign:"center"}}},[`> ${be}-item,
|
|
> ${be}-item-group > ${be}-item-group-list > ${be}-item,
|
|
> ${be}-item-group > ${be}-item-group-list > ${be}-submenu > ${be}-submenu-title,
|
|
> ${be}-submenu > ${be}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${kt/2}px - ${ht}px)`,textOverflow:"clip",[`
|
|
${be}-submenu-arrow,
|
|
${be}-submenu-expand-icon
|
|
`]:{opacity:0},[`${be}-item-icon, ${Se}`]:{margin:0,fontSize:en,lineHeight:`${ke}px`,"+ span":{display:"inline-block",opacity:0}}},[`${be}-item-icon, ${Se}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${be}-item-icon, ${Se}`]:{display:"none"},"a, a:hover":{color:Ue}},[`${be}-item-group-title`]:Object.assign(Object.assign({},Fe.vS),{paddingInline:wn})}}]};const Qe=ze=>{const{componentCls:be,motionDurationSlow:Se,motionDurationMid:ke,motionEaseInOut:Ue,motionEaseOut:lt,iconCls:wt,iconSize:Ft,iconMarginInlineEnd:At}=ze;return{[`${be}-item, ${be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Se}`,`background ${Se}`,`padding ${Se} ${Ue}`].join(","),[`${be}-item-icon, ${wt}`]:{minWidth:Ft,fontSize:Ft,transition:[`font-size ${ke} ${lt}`,`margin ${Se} ${Ue}`,`color ${Se}`].join(","),"+ span":{marginInlineStart:At,opacity:1,transition:[`opacity ${Se} ${Ue}`,`margin ${Se}`,`color ${Se}`].join(",")}},[`${be}-item-icon`]:Object.assign({},(0,Fe.Ro)()),[`&${be}-item-only-child`]:{[`> ${wt}, > ${be}-item-icon`]:{marginInlineEnd:0}}},[`${be}-item-disabled, ${be}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${be}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Bt=ze=>{const{componentCls:be,motionDurationSlow:Se,motionEaseInOut:ke,borderRadius:Ue,menuArrowSize:lt,menuArrowOffset:wt}=ze;return{[`${be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:ze.margin,width:lt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Se} ${ke}, opacity ${Se}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:lt*.6,height:lt*.15,backgroundColor:"currentcolor",borderRadius:Ue,transition:[`background ${Se} ${ke}`,`transform ${Se} ${ke}`,`top ${Se} ${ke}`,`color ${Se} ${ke}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${wt})`},"&::after":{transform:`rotate(-45deg) translateY(${wt})`}}}}},at=ze=>{const{antCls:be,componentCls:Se,fontSize:ke,motionDurationSlow:Ue,motionDurationMid:lt,motionEaseInOut:wt,paddingXS:Ft,padding:At,colorSplit:Rt,lineWidth:ht,zIndexPopup:kt,borderRadiusLG:Pn,subMenuItemBorderRadius:wn,menuArrowSize:yn,menuArrowOffset:on,lineType:en,menuPanelMaskInset:he,groupTitleLineHeight:xe,groupTitleFontSize:je}=ze;return[{"":{[`${Se}`]:Object.assign(Object.assign({},(0,Fe.dF)()),{"&-hidden":{display:"none"}})},[`${Se}-submenu-hidden`]:{display:"none"}},{[Se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Fe.Wf)(ze)),(0,Fe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ke,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ue} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Se}-item`]:{flex:"none"}},[`${Se}-item, ${Se}-submenu, ${Se}-submenu-title`]:{borderRadius:ze.itemBorderRadius},[`${Se}-item-group-title`]:{padding:`${Ft}px ${At}px`,fontSize:je,lineHeight:xe,transition:`all ${Ue}`},[`&-horizontal ${Se}-submenu`]:{transition:[`border-color ${Ue} ${wt}`,`background ${Ue} ${wt}`].join(",")},[`${Se}-submenu, ${Se}-submenu-inline`]:{transition:[`border-color ${Ue} ${wt}`,`background ${Ue} ${wt}`,`padding ${lt} ${wt}`].join(",")},[`${Se}-submenu ${Se}-sub`]:{cursor:"initial",transition:[`background ${Ue} ${wt}`,`padding ${Ue} ${wt}`].join(",")},[`${Se}-title-content`]:{transition:`color ${Ue}`},[`${Se}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Se}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Rt,borderStyle:en,borderWidth:0,borderTopWidth:ht,marginBlock:ht,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Qe(ze)),{[`${Se}-item-group`]:{[`${Se}-item-group-list`]:{margin:0,padding:0,[`${Se}-item, ${Se}-submenu-title`]:{paddingInline:`${ke*2}px ${At}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:kt,borderRadius:Pn,boxShadow:"none",transformOrigin:"0 0",[`&${Se}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${he}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:he},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:ze.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:ze.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:ze.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:ze.paddingXS},[`> ${Se}`]:Object.assign(Object.assign(Object.assign({borderRadius:Pn},Qe(ze)),Bt(ze)),{[`${Se}-item, ${Se}-submenu > ${Se}-submenu-title`]:{borderRadius:wn},[`${Se}-submenu-title::after`]:{transition:`transform ${Ue} ${wt}`}})}}),Bt(ze)),{[`&-inline-collapsed ${Se}-submenu-arrow,
|
|
&-inline ${Se}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${on})`},"&::after":{transform:`rotate(45deg) translateX(-${on})`}},[`${Se}-submenu-open${Se}-submenu-inline > ${Se}-submenu-title > ${Se}-submenu-arrow`]:{transform:`translateY(-${yn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${on})`},"&::before":{transform:`rotate(45deg) translateX(${on})`}}})},{[`${be}-layout-header`]:{[Se]:{lineHeight:"inherit"}}}]};var Lt=(ze,be)=>(0,jt.Z)("Menu",ke=>{if(be===!1)return[];const{colorBgElevated:Ue,colorPrimary:lt,colorTextLightSolid:wt,controlHeightLG:Ft,fontSize:At,darkItemColor:Rt,darkDangerItemColor:ht,darkItemBg:kt,darkSubMenuItemBg:Pn,darkItemSelectedColor:wn,darkItemSelectedBg:yn,darkDangerItemSelectedBg:on,darkItemHoverBg:en,darkGroupTitleColor:he,darkItemHoverColor:xe,darkItemDisabledColor:je,darkDangerItemHoverColor:ot,darkDangerItemSelectedColor:st,darkDangerItemActiveBg:$t}=ke,Gt=At/7*5,pt=(0,ye.TS)(ke,{menuArrowSize:Gt,menuHorizontalHeight:Ft*1.15,menuArrowOffset:`${Gt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ue}),Ot=(0,ye.TS)(pt,{itemColor:Rt,itemHoverColor:xe,groupTitleColor:he,itemSelectedColor:wn,itemBg:kt,popupBg:kt,subMenuItemBg:Pn,itemActiveBg:"transparent",itemSelectedBg:yn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:en,itemDisabledColor:je,dangerItemColor:ht,dangerItemHoverColor:ot,dangerItemSelectedColor:st,dangerItemActiveBg:$t,dangerItemSelectedBg:on,menuSubMenuBg:Pn,horizontalItemSelectedColor:wt,horizontalItemSelectedBg:lt});return[at(pt),nt(pt),Ie(pt),Tt(pt,"light"),Tt(Ot,"dark"),rt(pt),(0,$e.Z)(pt),(0,it.oN)(pt,"slide-up"),(0,it.oN)(pt,"slide-down"),(0,vt._y)(pt,"zoom-big")]},ke=>{const{colorPrimary:Ue,colorError:lt,colorTextDisabled:wt,colorErrorBg:Ft,colorText:At,colorTextDescription:Rt,colorBgContainer:ht,colorFillAlter:kt,colorFillContent:Pn,lineWidth:wn,lineWidthBold:yn,controlItemBgActive:on,colorBgTextHover:en,controlHeightLG:he,lineHeight:xe,colorBgElevated:je,marginXXS:ot,padding:st,fontSize:$t,controlHeightSM:Gt,fontSizeLG:pt,colorTextLightSolid:Ot,colorErrorHover:Kt}=ke,Ut=new le.C(Ot).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ke.zIndexPopupBase+50,radiusItem:ke.borderRadiusLG,itemBorderRadius:ke.borderRadiusLG,radiusSubMenuItem:ke.borderRadiusSM,subMenuItemBorderRadius:ke.borderRadiusSM,colorItemText:At,itemColor:At,colorItemTextHover:At,itemHoverColor:At,colorItemTextHoverHorizontal:Ue,horizontalItemHoverColor:Ue,colorGroupTitle:Rt,groupTitleColor:Rt,colorItemTextSelected:Ue,itemSelectedColor:Ue,colorItemTextSelectedHorizontal:Ue,horizontalItemSelectedColor:Ue,colorItemBg:ht,itemBg:ht,colorItemBgHover:en,itemHoverBg:en,colorItemBgActive:Pn,itemActiveBg:on,colorSubItemBg:kt,subMenuItemBg:kt,colorItemBgSelected:on,itemSelectedBg:on,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:yn,activeBarHeight:yn,colorActiveBarBorderSize:wn,activeBarBorderWidth:wn,colorItemTextDisabled:wt,itemDisabledColor:wt,colorDangerItemText:lt,dangerItemColor:lt,colorDangerItemTextHover:lt,dangerItemHoverColor:lt,colorDangerItemTextSelected:lt,dangerItemSelectedColor:lt,colorDangerItemBgActive:Ft,dangerItemActiveBg:Ft,colorDangerItemBgSelected:Ft,dangerItemSelectedBg:Ft,itemMarginInline:ke.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:he,groupTitleLineHeight:xe,collapsedWidth:he*2,popupBg:je,itemMarginBlock:ot,itemPaddingInline:st,horizontalLineHeight:`${he*1.15}px`,iconSize:$t,iconMarginInlineEnd:Gt-$t,collapsedIconSize:pt,groupTitleFontSize:$t,darkItemDisabledColor:new le.C(Ot).setAlpha(.25).toRgbString(),darkItemColor:Ut,darkDangerItemColor:lt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Ot,darkItemSelectedBg:Ue,darkDangerItemSelectedBg:lt,darkItemHoverBg:"transparent",darkGroupTitleColor:Ut,darkItemHoverColor:Ot,darkDangerItemHoverColor:Kt,darkDangerItemSelectedColor:Ot,darkDangerItemActiveBg:lt}},{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"]]})(ze),de=function(ze,be){var Se={};for(var ke in ze)Object.prototype.hasOwnProperty.call(ze,ke)&&be.indexOf(ke)<0&&(Se[ke]=ze[ke]);if(ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ke=Object.getOwnPropertySymbols(ze);Ue<ke.length;Ue++)be.indexOf(ke[Ue])<0&&Object.prototype.propertyIsEnumerable.call(ze,ke[Ue])&&(Se[ke[Ue]]=ze[ke[Ue]]);return Se},St=(0,fe.forwardRef)((ze,be)=>{var Se,ke;const Ue=fe.useContext(oe.Z),lt=Ue||{},{getPrefixCls:wt,getPopupContainer:Ft,direction:At,menu:Rt}=fe.useContext(Re.E_),ht=wt(),{prefixCls:kt,className:Pn,style:wn,theme:yn="light",expandIcon:on,_internalDisableMenuItemTitleTooltip:en,inlineCollapsed:he,siderCollapsed:xe,items:je,children:ot,rootClassName:st,mode:$t,selectable:Gt,onClick:pt,overflowedIndicatorPopupClassName:Ot}=ze,Kt=de(ze,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Ut=(0,Ae.Z)(Kt,["collapsedWidth"]),Qt=se(je)||ot;(Se=lt.validator)===null||Se===void 0||Se.call(lt,{mode:$t});const Sn=(0,ee.useEvent)(function(){var In;pt==null||pt.apply(void 0,arguments),(In=lt.onClick)===null||In===void 0||In.call(lt)}),hn=lt.mode||$t,Fn=Gt!=null?Gt:lt.selectable,rn=fe.useMemo(()=>xe!==void 0?xe:he,[he,xe]),tn={horizontal:{motionName:`${ht}-slide-up`},inline:(0,te.Z)(ht),other:{motionName:`${ht}-zoom-big`}},pn=wt("menu",kt||lt.prefixCls),[En,Cn]=Lt(pn,!Ue),sn=ce()(`${pn}-${yn}`,Rt==null?void 0:Rt.className,Pn);let Nn;if(typeof on=="function")Nn=on;else if(on===null||on===!1)Nn=null;else if(lt.expandIcon===null||lt.expandIcon===!1)Nn=null;else{const In=on!=null?on:lt.expandIcon;Nn=(0,Le.Tm)(In,{className:ce()(`${pn}-submenu-expand-icon`,(0,Le.l$)(In)?(ke=In.props)===null||ke===void 0?void 0:ke.className:"")})}const Yn=fe.useMemo(()=>({prefixCls:pn,inlineCollapsed:rn||!1,direction:At,firstLevel:!0,theme:yn,mode:hn,disableMenuItemTitleTooltip:en}),[pn,rn,At,en,yn]);return En(fe.createElement(oe.Z.Provider,{value:null},fe.createElement(y.Provider,{value:Yn},fe.createElement(ae.ZP,Object.assign({getPopupContainer:Ft,overflowedIndicator:fe.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(pn,`${pn}-${yn}`,Ot),mode:hn,selectable:Fn,onClick:Sn},Ut,{inlineCollapsed:rn,style:Object.assign(Object.assign({},Rt==null?void 0:Rt.style),wn),className:sn,prefixCls:pn,direction:At,defaultMotions:tn,expandIcon:Nn,ref:be,rootClassName:ce()(st,Cn)}),Qt))))});const Ht=(0,fe.forwardRef)((ze,be)=>{const Se=(0,fe.useRef)(null),ke=fe.useContext(We.D);return(0,fe.useImperativeHandle)(be,()=>({menu:Se.current,focus:Ue=>{var lt;(lt=Se.current)===null||lt===void 0||lt.focus(Ue)}})),fe.createElement(St,Object.assign({ref:Se},ze,ke))});Ht.Item=x,Ht.SubMenu=E,Ht.Divider=Ge,Ht.ItemGroup=ae.BW;var Nt=Ht},93948:function(Ce,tt,re){"use strict";re.d(tt,{Z:function(){return en}});var ae=re(59301),fe=re(29679),We=re(40001),_e=re(19248),ce=re(99267),Re=re(92310),ue=re.n(Re),Ze=re(2738),Ge=re(36355),Me=re(32855),Ae=re(27247),Ne=re(43079),Le={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var xe=(0,ae.useRef)([]),je=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var ot=Date.now(),st=!1;xe.current.forEach(function($t){if($t){st=!0;var Gt=$t.style;Gt.transitionDuration=".3s, .3s, .3s, .06s",je.current&&ot-je.current<100&&(Gt.transitionDuration="0s, 0s")}}),st&&(je.current=Date.now())}),xe.current},y=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],a=function(xe){var je=(0,Ae.Z)((0,Ae.Z)({},Le),xe),ot=je.className,st=je.percent,$t=je.prefixCls,Gt=je.strokeColor,pt=je.strokeLinecap,Ot=je.strokeWidth,Kt=je.style,Ut=je.trailColor,Qt=je.trailWidth,Sn=je.transition,hn=(0,Ne.Z)(je,y);delete hn.gapPosition;var Fn=Array.isArray(st)?st:[st],rn=Array.isArray(Gt)?Gt:[Gt],tn=ne(),pn=Ot/2,En=100-Ot/2,Cn="M ".concat(pt==="round"?pn:0,",").concat(pn,`
|
|
L `).concat(pt==="round"?En:100,",").concat(pn),sn="0 0 100 ".concat(Ot),Nn=0;return ae.createElement("svg",(0,Me.Z)({className:ue()("".concat($t,"-line"),ot),viewBox:sn,preserveAspectRatio:"none",style:Kt},hn),ae.createElement("path",{className:"".concat($t,"-line-trail"),d:Cn,strokeLinecap:pt,stroke:Ut,strokeWidth:Qt||Ot,fillOpacity:"0"}),Fn.map(function(Yn,In){var Wn=1;switch(pt){case"round":Wn=1-Ot/100;break;case"square":Wn=1-Ot/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=rn[In]||rn[rn.length-1];return Nn+=Yn,ae.createElement("path",{key:In,className:"".concat($t,"-line-path"),d:Cn,strokeLinecap:pt,stroke:Jn,strokeWidth:Ot,fillOpacity:"0",ref:function(ve){tn[In]=ve},style:na})}))},x=a,b=re(34666),E=re(11913),z=re(47273),ee=0,te=(0,z.Z)();function oe(){var he;return te?(he=ee,ee+=1):he="TEST_OR_SSR",he}var ge=function(he){var xe=ae.useState(),je=(0,E.Z)(xe,2),ot=je[0],st=je[1];return ae.useEffect(function(){st("rc_progress_".concat(oe()))},[]),he||ot},ie=function(xe){var je=xe.bg,ot=xe.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:je}},ot)};function se(he,xe){return Object.keys(he).map(function(je){var ot=parseFloat(je),st="".concat(Math.floor(ot*xe),"%");return"".concat(he[je]," ").concat(st)})}var le=ae.forwardRef(function(he,xe){var je=he.prefixCls,ot=he.color,st=he.gradientId,$t=he.radius,Gt=he.style,pt=he.ptg,Ot=he.strokeLinecap,Kt=he.strokeWidth,Ut=he.size,Qt=he.gapDegree,Sn=ot&&(0,b.Z)(ot)==="object",hn=Sn?"#FFF":void 0,Fn=Ut/2,rn=ae.createElement("circle",{className:"".concat(je,"-circle-path"),r:$t,cx:Fn,cy:Fn,stroke:hn,strokeLinecap:Ot,strokeWidth:Kt,opacity:pt===0?0:1,style:Gt,ref:xe});if(!Sn)return rn;var tn="".concat(st,"-conic"),pn=Qt?"".concat(180+Qt/2,"deg"):"0deg",En=se(ot,(360-Qt)/360),Cn=se(ot,1),sn="conic-gradient(from ".concat(pn,", ").concat(En.join(", "),")"),Nn="linear-gradient(to ".concat(Qt?"bottom":"top",", ").concat(Cn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:tn},rn),ae.createElement("foreignObject",{x:0,y:0,width:Ut,height:Ut,mask:"url(#".concat(tn,")")},ae.createElement(ie,{bg:Nn},ae.createElement(ie,{bg:sn}))))}),Fe=le,$e=100,it=function(xe,je,ot,st,$t,Gt,pt,Ot,Kt,Ut){var Qt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Sn=ot/100*360*((360-Gt)/360),hn=Gt===0?0:{bottom:0,top:180,left:90,right:-90}[pt],Fn=(100-st)/100*je;Kt==="round"&&st!==100&&(Fn+=Ut/2,Fn>=je&&(Fn=je-.01));var rn=$e/2;return{stroke:typeof Ot=="string"?Ot:void 0,strokeDasharray:"".concat(je,"px ").concat(xe),strokeDashoffset:Fn+Qt,transform:"rotate(".concat($t+Sn+hn,"deg)"),transformOrigin:"".concat(rn,"px ").concat(rn,"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}},vt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function jt(he){var xe=he!=null?he:[];return Array.isArray(xe)?xe:[xe]}var ye=function(xe){var je=(0,Ae.Z)((0,Ae.Z)({},Le),xe),ot=je.id,st=je.prefixCls,$t=je.steps,Gt=je.strokeWidth,pt=je.trailWidth,Ot=je.gapDegree,Kt=Ot===void 0?0:Ot,Ut=je.gapPosition,Qt=je.trailColor,Sn=je.strokeLinecap,hn=je.style,Fn=je.className,rn=je.strokeColor,tn=je.percent,pn=(0,Ne.Z)(je,vt),En=$e/2,Cn=ge(ot),sn="".concat(Cn,"-gradient"),Nn=En-Gt/2,Yn=Math.PI*2*Nn,In=Kt>0?90+Kt/2:-90,Wn=Yn*((360-Kt)/360),na=(0,b.Z)($t)==="object"?$t:{count:$t,space:2},Jn=na.count,pe=na.space,ve=jt(tn),Pe=jt(rn),et=Pe.find(function(kn){return kn&&(0,b.Z)(kn)==="object"}),bt=et&&(0,b.Z)(et)==="object",Pt=bt?"butt":Sn,gn=it(Yn,Wn,0,100,In,Kt,Ut,Qt,Pt,Gt),_t=ne(),Yt=function(){var qe=0;return ve.map(function(Jt,An){var Zn=Pe[An]||Pe[Pe.length-1],Bn=it(Yn,Wn,qe,Jt,In,Kt,Ut,Zn,Pt,Gt);return qe+=Jt,ae.createElement(Fe,{key:An,color:Zn,ptg:Jt,radius:Nn,prefixCls:st,gradientId:sn,style:Bn,strokeLinecap:Pt,strokeWidth:Gt,gapDegree:Kt,ref:function(Oe){_t[An]=Oe},size:$e})}).reverse()},vn=function(){var qe=Math.round(Jn*(ve[0]/100)),Jt=100/Jn,An=0;return new Array(Jn).fill(null).map(function(Zn,Bn){var me=Bn<=qe-1?Pe[0]:Qt,Oe=me&&(0,b.Z)(me)==="object"?"url(#".concat(sn,")"):void 0,Ee=it(Yn,Wn,An,Jt,In,Kt,Ut,me,"butt",Gt,pe);return An+=(Wn-Ee.strokeDashoffset+pe)*100/Wn,ae.createElement("circle",{key:Bn,className:"".concat(st,"-circle-path"),r:Nn,cx:En,cy:En,stroke:Oe,strokeWidth:Gt,opacity:1,style:Ee,ref:function(Xe){_t[Bn]=Xe}})})};return ae.createElement("svg",(0,Me.Z)({className:ue()("".concat(st,"-circle"),Fn),viewBox:"0 0 ".concat($e," ").concat($e),style:hn,id:ot,role:"presentation"},pn),!Jn&&ae.createElement("circle",{className:"".concat(st,"-circle-trail"),r:Nn,cx:En,cy:En,stroke:Qt,strokeLinecap:Pt,strokeWidth:pt||Gt,style:gn}),Jn?vn():Yt())},Ke=ye,nt={Line:x,Circle:Ke},Je=re(6848),rt=re(30071);function zt(he){return!he||he<0?0:he>100?100:he}function It(he){let{success:xe,successPercent:je}=he,ot=je;return xe&&"progress"in xe&&(ot=xe.progress),xe&&"percent"in xe&&(ot=xe.percent),ot}const Tt=he=>{let{percent:xe,success:je,successPercent:ot}=he;const st=zt(It({success:je,successPercent:ot}));return[st,zt(zt(xe)-st)]},Mt=he=>{let{success:xe={},strokeColor:je}=he;const{strokeColor:ot}=xe;return[ot||rt.presetPrimaryColors.green,je||null]},Be=(he,xe,je)=>{var ot,st,$t,Gt;let pt=-1,Ot=-1;if(xe==="step"){const Kt=je.steps,Ut=je.strokeWidth;typeof he=="string"||typeof he=="undefined"?(pt=he==="small"?2:14,Ot=Ut!=null?Ut:8):typeof he=="number"?[pt,Ot]=[he,he]:[pt=14,Ot=8]=he,pt*=Kt}else if(xe==="line"){const Kt=je==null?void 0:je.strokeWidth;typeof he=="string"||typeof he=="undefined"?Ot=Kt||(he==="small"?6:8):typeof he=="number"?[pt,Ot]=[he,he]:[pt=-1,Ot=8]=he}else(xe==="circle"||xe==="dashboard")&&(typeof he=="string"||typeof he=="undefined"?[pt,Ot]=he==="small"?[60,60]:[120,120]:typeof he=="number"?[pt,Ot]=[he,he]:(pt=(st=(ot=he[0])!==null&&ot!==void 0?ot:he[1])!==null&&st!==void 0?st:120,Ot=(Gt=($t=he[0])!==null&&$t!==void 0?$t:he[1])!==null&&Gt!==void 0?Gt:120));return[pt,Ot]},Ie=3,Qe=he=>Ie/he*100;var at=he=>{const{prefixCls:xe,trailColor:je=null,strokeLinecap:ot="round",gapPosition:st,gapDegree:$t,width:Gt=120,type:pt,children:Ot,success:Kt,size:Ut=Gt}=he,[Qt,Sn]=Be(Ut,"circle");let{strokeWidth:hn}=he;hn===void 0&&(hn=Math.max(Qe(Qt),6));const Fn={width:Qt,height:Sn,fontSize:Qt*.15+6},rn=ae.useMemo(()=>{if($t||$t===0)return $t;if(pt==="dashboard")return 75},[$t,pt]),tn=st||pt==="dashboard"&&"bottom"||void 0,pn=Object.prototype.toString.call(he.strokeColor)==="[object Object]",En=Mt({success:Kt,strokeColor:he.strokeColor}),Cn=ue()(`${xe}-inner`,{[`${xe}-circle-gradient`]:pn}),sn=ae.createElement(Ke,{percent:Tt(he),strokeWidth:hn,trailWidth:hn,strokeColor:En,strokeLinecap:ot,trailColor:je,prefixCls:xe,gapDegree:rn,gapPosition:tn});return ae.createElement("div",{className:Cn,style:Fn},Qt<=20?ae.createElement(Je.Z,{title:Ot},ae.createElement("span",null,sn)):ae.createElement(ae.Fragment,null,sn,Ot))},Lt=function(he,xe){var je={};for(var ot in he)Object.prototype.hasOwnProperty.call(he,ot)&&xe.indexOf(ot)<0&&(je[ot]=he[ot]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,ot=Object.getOwnPropertySymbols(he);st<ot.length;st++)xe.indexOf(ot[st])<0&&Object.prototype.propertyIsEnumerable.call(he,ot[st])&&(je[ot[st]]=he[ot[st]]);return je};const de=he=>{let xe=[];return Object.keys(he).forEach(je=>{const ot=parseFloat(je.replace(/%/g,""));isNaN(ot)||xe.push({key:ot,value:he[je]})}),xe=xe.sort((je,ot)=>je.key-ot.key),xe.map(je=>{let{key:ot,value:st}=je;return`${st} ${ot}%`}).join(", ")},gt=(he,xe)=>{const{from:je=rt.presetPrimaryColors.blue,to:ot=rt.presetPrimaryColors.blue,direction:st=xe==="rtl"?"to left":"to right"}=he,$t=Lt(he,["from","to","direction"]);if(Object.keys($t).length!==0){const Gt=de($t);return{backgroundImage:`linear-gradient(${st}, ${Gt})`}}return{backgroundImage:`linear-gradient(${st}, ${je}, ${ot})`}};var Ht=he=>{const{prefixCls:xe,direction:je,percent:ot,size:st,strokeWidth:$t,strokeColor:Gt,strokeLinecap:pt="round",children:Ot,trailColor:Kt=null,success:Ut}=he,Qt=Gt&&typeof Gt!="string"?gt(Gt,je):{backgroundColor:Gt},Sn=pt==="square"||pt==="butt"?0:void 0,hn={backgroundColor:Kt||void 0,borderRadius:Sn},Fn=st!=null?st:[-1,$t||(st==="small"?6:8)],[rn,tn]=Be(Fn,"line",{strokeWidth:$t}),pn=Object.assign({width:`${zt(ot)}%`,height:tn,borderRadius:Sn},Qt),En=It(he),Cn={width:`${zt(En)}%`,height:tn,borderRadius:Sn,backgroundColor:Ut==null?void 0:Ut.strokeColor},sn={width:rn<0?"100%":rn,height:tn};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${xe}-outer`,style:sn},ae.createElement("div",{className:`${xe}-inner`,style:hn},ae.createElement("div",{className:`${xe}-bg`,style:pn}),En!==void 0?ae.createElement("div",{className:`${xe}-success-bg`,style:Cn}):null)),Ot)},ze=he=>{const{size:xe,steps:je,percent:ot=0,strokeWidth:st=8,strokeColor:$t,trailColor:Gt=null,prefixCls:pt,children:Ot}=he,Kt=Math.round(je*(ot/100)),Ut=xe==="small"?2:14,Qt=xe!=null?xe:[Ut,st],[Sn,hn]=Be(Qt,"step",{steps:je,strokeWidth:st}),Fn=Sn/je,rn=new Array(je);for(let tn=0;tn<je;tn++){const pn=Array.isArray($t)?$t[tn]:$t;rn[tn]=ae.createElement("div",{key:tn,className:ue()(`${pt}-steps-item`,{[`${pt}-steps-item-active`]:tn<=Kt-1}),style:{backgroundColor:tn<=Kt-1?pn:Gt,width:Fn,height:hn}})}return ae.createElement("div",{className:`${pt}-steps-outer`},rn,Ot)},be=re(36237),Se=re(17313),ke=re(83116),Ue=re(37613);const lt=he=>{const xe=he?"100%":"-100%";return new be.Keyframes(`antProgress${he?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${xe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},wt=he=>{const{componentCls:xe,iconCls:je}=he;return{[xe]:Object.assign(Object.assign({},(0,Se.Wf)(he)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:he.fontSize,marginInlineEnd:he.marginXS,marginBottom:he.marginXS},[`${xe}-outer`]:{display:"inline-block",width:"100%"},[`&${xe}-show-info`]:{[`${xe}-outer`]:{marginInlineEnd:`calc(-2em - ${he.marginXS}px)`,paddingInlineEnd:`calc(2em + ${he.paddingXS}px)`}},[`${xe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:he.remainingColor,borderRadius:he.lineBorderRadius},[`${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:he.defaultColor}},[`${xe}-success-bg, ${xe}-bg`]:{position:"relative",backgroundColor:he.defaultColor,borderRadius:he.lineBorderRadius,transition:`all ${he.motionDurationSlow} ${he.motionEaseInOutCirc}`},[`${xe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:he.colorSuccess},[`${xe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:he.marginXS,color:he.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[je]:{fontSize:he.fontSize}},[`&${xe}-status-active`]:{[`${xe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:he.colorBgContainer,borderRadius:he.lineBorderRadius,opacity:0,animationName:lt(),animationDuration:he.progressActiveMotionDuration,animationTimingFunction:he.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${xe}-rtl${xe}-status-active`]:{[`${xe}-bg::before`]:{animationName:lt(!0)}},[`&${xe}-status-exception`]:{[`${xe}-bg`]:{backgroundColor:he.colorError},[`${xe}-text`]:{color:he.colorError}},[`&${xe}-status-exception ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:he.colorError}},[`&${xe}-status-success`]:{[`${xe}-bg`]:{backgroundColor:he.colorSuccess},[`${xe}-text`]:{color:he.colorSuccess}},[`&${xe}-status-success ${xe}-inner:not(${xe}-circle-gradient)`]:{[`${xe}-circle-path`]:{stroke:he.colorSuccess}}})}},Ft=he=>{const{componentCls:xe,iconCls:je}=he;return{[xe]:{[`${xe}-circle-trail`]:{stroke:he.remainingColor},[`&${xe}-circle ${xe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${xe}-circle ${xe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:he.circleTextColor,fontSize:he.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[je]:{fontSize:`${he.fontSize/he.fontSizeSM}em`}},[`${xe}-circle&-status-exception`]:{[`${xe}-text`]:{color:he.colorError}},[`${xe}-circle&-status-success`]:{[`${xe}-text`]:{color:he.colorSuccess}}},[`${xe}-inline-circle`]:{lineHeight:1,[`${xe}-inner`]:{verticalAlign:"bottom"}}}},At=he=>{const{componentCls:xe}=he;return{[xe]:{[`${xe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:he.progressStepMinWidth,marginInlineEnd:he.progressStepMarginInlineEnd,backgroundColor:he.remainingColor,transition:`all ${he.motionDurationSlow}`,"&-active":{backgroundColor:he.defaultColor}}}}}},Rt=he=>{const{componentCls:xe,iconCls:je}=he;return{[xe]:{[`${xe}-small&-line, ${xe}-small&-line ${xe}-text ${je}`]:{fontSize:he.fontSizeSM}}}};var ht=(0,ke.Z)("Progress",he=>{const xe=he.marginXXS/2,je=(0,Ue.TS)(he,{progressStepMarginInlineEnd:xe,progressStepMinWidth:xe,progressActiveMotionDuration:"2.4s"});return[wt(je),Ft(je),At(je),Rt(je)]},he=>({circleTextColor:he.colorText,defaultColor:he.colorInfo,remainingColor:he.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),kt=function(he,xe){var je={};for(var ot in he)Object.prototype.hasOwnProperty.call(he,ot)&&xe.indexOf(ot)<0&&(je[ot]=he[ot]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,ot=Object.getOwnPropertySymbols(he);st<ot.length;st++)xe.indexOf(ot[st])<0&&Object.prototype.propertyIsEnumerable.call(he,ot[st])&&(je[ot[st]]=he[ot[st]]);return je};const Pn=null,wn=["normal","exception","active","success"];var on=ae.forwardRef((he,xe)=>{const{prefixCls:je,className:ot,rootClassName:st,steps:$t,strokeColor:Gt,percent:pt=0,size:Ot="default",showInfo:Kt=!0,type:Ut="line",status:Qt,format:Sn,style:hn}=he,Fn=kt(he,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),rn=ae.useMemo(()=>{var ve,Pe;const et=It(he);return parseInt(et!==void 0?(ve=et!=null?et:0)===null||ve===void 0?void 0:ve.toString():(Pe=pt!=null?pt:0)===null||Pe===void 0?void 0:Pe.toString(),10)},[pt,he.success,he.successPercent]),tn=ae.useMemo(()=>!wn.includes(Qt)&&rn>=100?"success":Qt||"normal",[Qt,rn]),{getPrefixCls:pn,direction:En,progress:Cn}=ae.useContext(Ge.E_),sn=pn("progress",je),[Nn,Yn]=ht(sn),In=ae.useMemo(()=>{if(!Kt)return null;const ve=It(he);let Pe;const et=Sn||(Pt=>`${Pt}%`),bt=Ut==="line";return Sn||tn!=="exception"&&tn!=="success"?Pe=et(zt(pt),zt(ve)):tn==="exception"?Pe=bt?ae.createElement(_e.Z,null):ae.createElement(ce.Z,null):tn==="success"&&(Pe=bt?ae.createElement(fe.Z,null):ae.createElement(We.Z,null)),ae.createElement("span",{className:`${sn}-text`,title:typeof Pe=="string"?Pe:void 0},Pe)},[Kt,pt,rn,tn,Ut,sn,Sn]),Wn=Array.isArray(Gt)?Gt[0]:Gt,na=typeof Gt=="string"||Array.isArray(Gt)?Gt:void 0;let Jn;Ut==="line"?Jn=$t?ae.createElement(ze,Object.assign({},he,{strokeColor:na,prefixCls:sn,steps:$t}),In):ae.createElement(Ht,Object.assign({},he,{strokeColor:Wn,prefixCls:sn,direction:En}),In):(Ut==="circle"||Ut==="dashboard")&&(Jn=ae.createElement(at,Object.assign({},he,{strokeColor:Wn,prefixCls:sn,progressStatus:tn}),In));const pe=ue()(sn,`${sn}-status-${tn}`,`${sn}-${Ut==="dashboard"&&"circle"||$t&&"steps"||Ut}`,{[`${sn}-inline-circle`]:Ut==="circle"&&Be(Ot,"circle")[0]<=20,[`${sn}-show-info`]:Kt,[`${sn}-${Ot}`]:typeof Ot=="string",[`${sn}-rtl`]:En==="rtl"},Cn==null?void 0:Cn.className,ot,st,Yn);return Nn(ae.createElement("div",Object.assign({ref:xe,style:Object.assign(Object.assign({},Cn==null?void 0:Cn.style),hn),className:pe,role:"progressbar","aria-valuenow":rn},(0,Ze.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),en=on},54580:function(Ce,tt,re){"use strict";re.d(tt,{default:function(){return Bn}});var ae=re(59301),fe=re(3300),We=re(92310),_e=re.n(We),ce=re(32855),Re=re(33377),ue=re(93912),Ze=re(18881),Ge=re(85461),Me=re(74430),Ae=re(43079),Ne=re(13932),Le=re(34666),ne=re(68702),y=re(26112);function a(me,Oe){var Ee="cannot ".concat(me.method," ").concat(me.action," ").concat(Oe.status,"'"),De=new Error(Ee);return De.status=Oe.status,De.method=me.method,De.url=me.action,De}function x(me){var Oe=me.responseText||me.response;if(!Oe)return Oe;try{return JSON.parse(Oe)}catch(Ee){return Oe}}function b(me){var Oe=new XMLHttpRequest;me.onProgress&&Oe.upload&&(Oe.upload.onprogress=function(Ye){Ye.total>0&&(Ye.percent=Ye.loaded/Ye.total*100),me.onProgress(Ye)});var Ee=new FormData;me.data&&Object.keys(me.data).forEach(function(Xe){var Ye=me.data[Xe];if(Array.isArray(Ye)){Ye.forEach(function(He){Ee.append("".concat(Xe,"[]"),He)});return}Ee.append(Xe,Ye)}),me.file instanceof Blob?Ee.append(me.filename,me.file,me.file.name):Ee.append(me.filename,me.file),Oe.onerror=function(Ye){me.onError(Ye)},Oe.onload=function(){return Oe.status<200||Oe.status>=300?me.onError(a(me,Oe),x(Oe)):me.onSuccess(x(Oe),Oe)},Oe.open(me.method,me.action,!0),me.withCredentials&&"withCredentials"in Oe&&(Oe.withCredentials=!0);var De=me.headers||{};return De["X-Requested-With"]!==null&&Oe.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(De).forEach(function(Xe){De[Xe]!==null&&Oe.setRequestHeader(Xe,De[Xe])}),Oe.send(Ee),{abort:function(){Oe.abort()}}}var E=+new Date,z=0;function ee(){return"rc-upload-".concat(E,"-").concat(++z)}var te=re(48736),oe=function(me,Oe){if(me&&Oe){var Ee=Array.isArray(Oe)?Oe:Oe.split(","),De=me.name||"",Xe=me.type||"",Ye=Xe.replace(/\/.*$/,"");return Ee.some(function(He){var Te=He.trim();if(/^\*(\/\*)?$/.test(He))return!0;if(Te.charAt(0)==="."){var Et=De.toLowerCase(),Ct=Te.toLowerCase(),we=[Ct];return(Ct===".jpg"||Ct===".jpeg")&&(we=[".jpg",".jpeg"]),we.some(function(nn){return Et.endsWith(nn)})}return/\/\*$/.test(Te)?Ye===Te.replace(/\/.*$/,""):Xe===Te?!0:/^\w+$/.test(Te)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Te,"'.Skip for check.")),!0):!1})}return!0};function ge(me,Oe){var Ee=me.createReader(),De=[];function Xe(){Ee.readEntries(function(Ye){var He=Array.prototype.slice.apply(Ye);De=De.concat(He);var Te=!He.length;Te?Oe(De):Xe()})}Xe()}var ie=function(Oe,Ee,De){var Xe=function Ye(He,Te){He&&(He.path=Te||"",He.isFile?He.file(function(Et){De(Et)&&(He.fullPath&&!Et.webkitRelativePath&&(Object.defineProperties(Et,{webkitRelativePath:{writable:!0}}),Et.webkitRelativePath=He.fullPath.replace(/^\//,""),Object.defineProperties(Et,{webkitRelativePath:{writable:!1}})),Ee([Et]))}):He.isDirectory&&ge(He,function(Et){Et.forEach(function(Ct){Ye(Ct,"".concat(Te).concat(He.name,"/"))})}))};Oe.forEach(function(Ye){Xe(Ye.webkitGetAsEntry())})},se=ie,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Fe=function(me){(0,Ze.Z)(Ee,me);var Oe=(0,Ge.Z)(Ee);function Ee(){var De;(0,Re.Z)(this,Ee);for(var Xe=arguments.length,Ye=new Array(Xe),He=0;He<Xe;He++)Ye[He]=arguments[He];return De=Oe.call.apply(Oe,[this].concat(Ye)),De.state={uid:ee()},De.reqs={},De.fileInput=void 0,De._isMounted=void 0,De.onChange=function(Te){var Et=De.props,Ct=Et.accept,we=Et.directory,nn=Te.target.files,qt=(0,fe.Z)(nn).filter(function(fn){return!we||oe(fn,Ct)});De.uploadFiles(qt),De.reset()},De.onClick=function(Te){var Et=De.fileInput;if(Et){var Ct=Te.target,we=De.props.onClick;if(Ct&&Ct.tagName==="BUTTON"){var nn=Et.parentNode;nn.focus(),Ct.blur()}Et.click(),we&&we(Te)}},De.onKeyDown=function(Te){Te.key==="Enter"&&De.onClick(Te)},De.onFileDrop=function(Te){var Et=De.props.multiple;if(Te.preventDefault(),Te.type!=="dragover")if(De.props.directory)se(Array.prototype.slice.call(Te.dataTransfer.items),De.uploadFiles,function(we){return oe(we,De.props.accept)});else{var Ct=(0,fe.Z)(Te.dataTransfer.files).filter(function(we){return oe(we,De.props.accept)});Et===!1&&(Ct=Ct.slice(0,1)),De.uploadFiles(Ct)}},De.uploadFiles=function(Te){var Et=(0,fe.Z)(Te),Ct=Et.map(function(we){return we.uid=ee(),De.processFile(we,Et)});Promise.all(Ct).then(function(we){var nn=De.props.onBatchStart;nn==null||nn(we.map(function(qt){var fn=qt.origin,xn=qt.parsedFile;return{file:fn,parsedFile:xn}})),we.filter(function(qt){return qt.parsedFile!==null}).forEach(function(qt){De.post(qt)})})},De.processFile=function(){var Te=(0,ne.Z)((0,Ne.Z)().mark(function Et(Ct,we){var nn,qt,fn,xn,Ve,ut,xt,mt,Xt;return(0,Ne.Z)().wrap(function(Dt){for(;;)switch(Dt.prev=Dt.next){case 0:if(nn=De.props.beforeUpload,qt=Ct,!nn){Dt.next=14;break}return Dt.prev=3,Dt.next=6,nn(Ct,we);case 6:qt=Dt.sent,Dt.next=12;break;case 9:Dt.prev=9,Dt.t0=Dt.catch(3),qt=!1;case 12:if(qt!==!1){Dt.next=14;break}return Dt.abrupt("return",{origin:Ct,parsedFile:null,action:null,data:null});case 14:if(fn=De.props.action,typeof fn!="function"){Dt.next=21;break}return Dt.next=18,fn(Ct);case 18:xn=Dt.sent,Dt.next=22;break;case 21:xn=fn;case 22:if(Ve=De.props.data,typeof Ve!="function"){Dt.next=29;break}return Dt.next=26,Ve(Ct);case 26:ut=Dt.sent,Dt.next=30;break;case 29:ut=Ve;case 30:return xt=((0,Le.Z)(qt)==="object"||typeof qt=="string")&&qt?qt:Ct,xt instanceof File?mt=xt:mt=new File([xt],Ct.name,{type:Ct.type}),Xt=mt,Xt.uid=Ct.uid,Dt.abrupt("return",{origin:Ct,data:ut,parsedFile:Xt,action:xn});case 35:case"end":return Dt.stop()}},Et,null,[[3,9]])}));return function(Et,Ct){return Te.apply(this,arguments)}}(),De.saveFileInput=function(Te){De.fileInput=Te},De}return(0,ue.Z)(Ee,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Xe){var Ye=this,He=Xe.data,Te=Xe.origin,Et=Xe.action,Ct=Xe.parsedFile;if(this._isMounted){var we=this.props,nn=we.onStart,qt=we.customRequest,fn=we.name,xn=we.headers,Ve=we.withCredentials,ut=we.method,xt=Te.uid,mt=qt||b,Xt={action:Et,filename:fn,data:He,file:Ct,headers:xn,withCredentials:Ve,method:ut||"post",onProgress:function(Dt){var un=Ye.props.onProgress;un==null||un(Dt,Ct)},onSuccess:function(Dt,un){var cn=Ye.props.onSuccess;cn==null||cn(Dt,Ct,un),delete Ye.reqs[xt]},onError:function(Dt,un){var cn=Ye.props.onError;cn==null||cn(Dt,un,Ct),delete Ye.reqs[xt]}};nn(Te),this.reqs[xt]=mt(Xt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Xe){var Ye=this.reqs;if(Xe){var He=Xe.uid?Xe.uid:Xe;Ye[He]&&Ye[He].abort&&Ye[He].abort(),delete Ye[He]}else Object.keys(Ye).forEach(function(Te){Ye[Te]&&Ye[Te].abort&&Ye[Te].abort(),delete Ye[Te]})}},{key:"render",value:function(){var Xe=this.props,Ye=Xe.component,He=Xe.prefixCls,Te=Xe.className,Et=Xe.disabled,Ct=Xe.id,we=Xe.style,nn=Xe.multiple,qt=Xe.accept,fn=Xe.capture,xn=Xe.children,Ve=Xe.directory,ut=Xe.openFileDialogOnClick,xt=Xe.onMouseEnter,mt=Xe.onMouseLeave,Xt=(0,Ae.Z)(Xe,le),Vt=_e()((0,Me.Z)((0,Me.Z)((0,Me.Z)({},He,!0),"".concat(He,"-disabled"),Et),Te,Te)),Dt=Ve?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},un=Et?{}:{onClick:ut?this.onClick:function(){},onKeyDown:ut?this.onKeyDown:function(){},onMouseEnter:xt,onMouseLeave:mt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(Ye,(0,ce.Z)({},un,{className:Vt,role:"button",style:we}),ae.createElement("input",(0,ce.Z)({},(0,y.Z)(Xt,{aria:!0,data:!0}),{id:Ct,disabled:Et,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:qt},Dt,{multiple:nn,onChange:this.onChange},fn!=null?{capture:fn}:{})),xn)}}]),Ee}(ae.Component),$e=Fe;function it(){}var vt=function(me){(0,Ze.Z)(Ee,me);var Oe=(0,Ge.Z)(Ee);function Ee(){var De;(0,Re.Z)(this,Ee);for(var Xe=arguments.length,Ye=new Array(Xe),He=0;He<Xe;He++)Ye[He]=arguments[He];return De=Oe.call.apply(Oe,[this].concat(Ye)),De.uploader=void 0,De.saveUploader=function(Te){De.uploader=Te},De}return(0,ue.Z)(Ee,[{key:"abort",value:function(Xe){this.uploader.abort(Xe)}},{key:"render",value:function(){return ae.createElement($e,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Ee}(ae.Component);vt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:it,onError:it,onSuccess:it,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var jt=vt,ye=jt,Ke=re(18929),nt=re(4676),Je=re(36355),rt=re(1684),zt=re(9763),It=re(31724),Tt={icon:function(Oe,Ee){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ee}},{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:Oe}}]}},name:"file",theme:"twotone"},Mt=Tt,Be=re(7657),Ie=function(Oe,Ee){return ae.createElement(Be.Z,(0,ce.Z)({},Oe,{ref:Ee,icon:Mt}))},Qe=ae.forwardRef(Ie),Bt=Qe,at=re(58617),Lt={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=Lt,gt=function(Oe,Ee){return ae.createElement(Be.Z,(0,ce.Z)({},Oe,{ref:Ee,icon:de}))},St=ae.forwardRef(gt),Ht=St,Nt={icon:function(Oe,Ee){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:Oe}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ee}},{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:Ee}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ee}},{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:Oe}}]}},name:"picture",theme:"twotone"},ze=Nt,be=function(Oe,Ee){return ae.createElement(Be.Z,(0,ce.Z)({},Oe,{ref:Ee,icon:ze}))},Se=ae.forwardRef(be),ke=Se,Ue=re(77900),lt=re(56762),wt=re(62892),Ft=re(92343),At=re(3113);function Rt(me){return Object.assign(Object.assign({},me),{lastModified:me.lastModified,lastModifiedDate:me.lastModifiedDate,name:me.name,size:me.size,type:me.type,uid:me.uid,percent:0,originFileObj:me})}function ht(me,Oe){const Ee=(0,fe.Z)(Oe),De=Ee.findIndex(Xe=>{let{uid:Ye}=Xe;return Ye===me.uid});return De===-1?Ee.push(me):Ee[De]=me,Ee}function kt(me,Oe){const Ee=me.uid!==void 0?"uid":"name";return Oe.filter(De=>De[Ee]===me[Ee])[0]}function Pn(me,Oe){const Ee=me.uid!==void 0?"uid":"name",De=Oe.filter(Xe=>Xe[Ee]!==me[Ee]);return De.length===Oe.length?null:De}const wn=function(){const Oe=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),De=Oe[Oe.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(De)||[""])[0]},yn=me=>me.indexOf("image/")===0,on=me=>{if(me.type&&!me.thumbUrl)return yn(me.type);const Oe=me.thumbUrl||me.url||"",Ee=wn(Oe);return/^data:image\//.test(Oe)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ee)?!0:!(/^data:/.test(Oe)||Ee)},en=200;function he(me){return new Promise(Oe=>{if(!me.type||!yn(me.type)){Oe("");return}const Ee=document.createElement("canvas");Ee.width=en,Ee.height=en,Ee.style.cssText=`position: fixed; left: 0; top: 0; width: ${en}px; height: ${en}px; z-index: 9999; display: none;`,document.body.appendChild(Ee);const De=Ee.getContext("2d"),Xe=new Image;if(Xe.onload=()=>{const{width:Ye,height:He}=Xe;let Te=en,Et=en,Ct=0,we=0;Ye>He?(Et=He*(en/Ye),we=-(Et-Te)/2):(Te=Ye*(en/He),Ct=-(Te-Et)/2),De.drawImage(Xe,Ct,we,Te,Et);const nn=Ee.toDataURL();document.body.removeChild(Ee),window.URL.revokeObjectURL(Xe.src),Oe(nn)},Xe.crossOrigin="anonymous",me.type.startsWith("image/svg+xml")){const Ye=new FileReader;Ye.onload=()=>{Ye.result&&(Xe.src=Ye.result)},Ye.readAsDataURL(me)}else if(me.type.startsWith("image/gif")){const Ye=new FileReader;Ye.onload=()=>{Ye.result&&Oe(Ye.result)},Ye.readAsDataURL(me)}else Xe.src=window.URL.createObjectURL(me)})}var xe=re(26227),je=re(41464),ot=re(15277),st=re(93948),$t=re(6848),pt=ae.forwardRef((me,Oe)=>{let{prefixCls:Ee,className:De,style:Xe,locale:Ye,listType:He,file:Te,items:Et,progress:Ct,iconRender:we,actionIconRender:nn,itemRender:qt,isImgUrl:fn,showPreviewIcon:xn,showRemoveIcon:Ve,showDownloadIcon:ut,previewIcon:xt,removeIcon:mt,downloadIcon:Xt,onPreview:Vt,onDownload:Dt,onClose:un}=me;var cn,oa;const{status:Qn}=Te,[qn,ca]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const Dn=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(Dn)}},[]);const da=we(Te);let Vn=ae.createElement("div",{className:`${Ee}-icon`},da);if(He==="picture"||He==="picture-card"||He==="picture-circle")if(qn==="uploading"||!Te.thumbUrl&&!Te.url){const Dn=_e()(`${Ee}-list-item-thumbnail`,{[`${Ee}-list-item-file`]:qn!=="uploading"});Vn=ae.createElement("div",{className:Dn},da)}else{const Dn=fn!=null&&fn(Te)?ae.createElement("img",{src:Te.thumbUrl||Te.url,alt:Te.name,className:`${Ee}-list-item-image`,crossOrigin:Te.crossOrigin}):da,Gn=_e()(`${Ee}-list-item-thumbnail`,{[`${Ee}-list-item-file`]:fn&&!fn(Te)});Vn=ae.createElement("a",{className:Gn,onClick:la=>Vt(Te,la),href:Te.url||Te.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Dn)}const $n=_e()(`${Ee}-list-item`,`${Ee}-list-item-${qn}`),ta=typeof Te.linkProps=="string"?JSON.parse(Te.linkProps):Te.linkProps,ga=Ve?nn((typeof mt=="function"?mt(Te):mt)||ae.createElement(xe.Z,null),()=>un(Te),Ee,Ye.removeFile):null,ia=ut&&qn==="done"?nn((typeof Xt=="function"?Xt(Te):Xt)||ae.createElement(je.Z,null),()=>Dt(Te),Ee,Ye.downloadFile):null,aa=He!=="picture-card"&&He!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:_e()(`${Ee}-list-item-actions`,{picture:He==="picture"})},ia,ga),ea=_e()(`${Ee}-list-item-name`),fa=Te.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Te.name},ta,{href:Te.url,onClick:Dn=>Vt(Te,Dn)}),Te.name),aa]:[ae.createElement("span",{key:"view",className:ea,onClick:Dn=>Vt(Te,Dn),title:Te.name},Te.name),aa],Wt={pointerEvents:"none",opacity:.5},On=xn?ae.createElement("a",{href:Te.url||Te.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Te.url||Te.thumbUrl?void 0:Wt,onClick:Dn=>Vt(Te,Dn),title:Ye.previewFile},typeof xt=="function"?xt(Te):xt||ae.createElement(ot.Z,null)):null,Mn=(He==="picture-card"||He==="picture-circle")&&qn!=="uploading"&&ae.createElement("span",{className:`${Ee}-list-item-actions`},On,qn==="done"&&ia,ga),{getPrefixCls:Un}=ae.useContext(Je.E_),Xn=Un(),ra=ae.createElement("div",{className:$n},Vn,fa,Mn,Sa&&ae.createElement(Ue.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},Dn=>{let{className:Gn}=Dn;const la="percent"in Te?ae.createElement(st.Z,Object.assign({},Ct,{type:"line",percent:Te.percent,"aria-label":Te["aria-label"],"aria-labelledby":Te["aria-labelledby"]})):null;return ae.createElement("div",{className:_e()(`${Ee}-list-item-progress`,Gn)},la)})),va=Te.response&&typeof Te.response=="string"?Te.response:((cn=Te.error)===null||cn===void 0?void 0:cn.statusText)||((oa=Te.error)===null||oa===void 0?void 0:oa.message)||Ye.uploadError,pa=qn==="error"?ae.createElement($t.Z,{title:va,getPopupContainer:Dn=>Dn.parentNode},ra):ra;return ae.createElement("div",{className:_e()(`${Ee}-list-item-container`,De),style:Xe,ref:Oe},qt?qt(pa,Te,Et,{download:Dt.bind(null,Te),preview:Vt.bind(null,Te),remove:un.bind(null,Te)}):pa)});const Ot=(me,Oe)=>{const{listType:Ee="text",previewFile:De=he,onPreview:Xe,onDownload:Ye,onRemove:He,locale:Te,iconRender:Et,isImageUrl:Ct=on,prefixCls:we,items:nn=[],showPreviewIcon:qt=!0,showRemoveIcon:fn=!0,showDownloadIcon:xn=!1,removeIcon:Ve,previewIcon:ut,downloadIcon:xt,progress:mt={size:[-1,2],showInfo:!1},appendAction:Xt,appendActionVisible:Vt=!0,itemRender:Dt,disabled:un}=me,cn=(0,lt.Z)(),[oa,Qn]=ae.useState(!1);ae.useEffect(()=>{Ee!=="picture"&&Ee!=="picture-card"&&Ee!=="picture-circle"||(nn||[]).forEach(Wt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Wt.originFileObj instanceof File||Wt.originFileObj instanceof Blob)||Wt.thumbUrl!==void 0||(Wt.thumbUrl="",De&&De(Wt.originFileObj).then(On=>{Wt.thumbUrl=On||"",cn()}))})},[Ee,nn,De]),ae.useEffect(()=>{Qn(!0)},[]);const qn=(Wt,On)=>{if(Xe)return On==null||On.preventDefault(),Xe(Wt)},ca=Wt=>{typeof Ye=="function"?Ye(Wt):Wt.url&&window.open(Wt.url)},Sa=Wt=>{He==null||He(Wt)},Pa=Wt=>{if(Et)return Et(Wt,Ee);const On=Wt.status==="uploading",Mn=Ct&&Ct(Wt)?ae.createElement(ke,null):ae.createElement(Bt,null);let Un=On?ae.createElement(at.Z,null):ae.createElement(Ht,null);return Ee==="picture"?Un=On?ae.createElement(at.Z,null):Mn:(Ee==="picture-card"||Ee==="picture-circle")&&(Un=On?Te.uploading:Mn),Un},da=(Wt,On,Mn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{On(),(0,Ft.l$)(Wt)&&Wt.props.onClick&&Wt.props.onClick(ra)},className:`${Mn}-list-item-action`,disabled:un};if((0,Ft.l$)(Wt)){const ra=(0,Ft.Tm)(Wt,Object.assign(Object.assign({},Wt.props),{onClick:()=>{}}));return ae.createElement(At.ZP,Object.assign({},Xn,{icon:ra}))}return ae.createElement(At.ZP,Object.assign({},Xn),ae.createElement("span",null,Wt))};ae.useImperativeHandle(Oe,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Vn}=ae.useContext(Je.E_),$n=Vn("upload",we),ta=Vn(),ga=_e()(`${$n}-list`,`${$n}-list-${Ee}`),ia=(0,fe.Z)(nn.map(Wt=>({key:Wt.uid,file:Wt})));let ea={motionDeadline:2e3,motionName:`${$n}-${Ee==="picture-card"||Ee==="picture-circle"?"animate-inline":"animate"}`,keys:ia,motionAppear:oa};const fa=ae.useMemo(()=>{const Wt=Object.assign({},(0,wt.Z)(ta));return delete Wt.onAppearEnd,delete Wt.onEnterEnd,delete Wt.onLeaveEnd,Wt},[ta]);return Ee!=="picture-card"&&Ee!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ae.createElement("div",{className:ga},ae.createElement(Ue.CSSMotionList,Object.assign({},ea,{component:!1}),Wt=>{let{key:On,file:Mn,className:Un,style:Xn}=Wt;return ae.createElement(pt,{key:On,locale:Te,prefixCls:$n,className:Un,style:Xn,file:Mn,items:nn,progress:mt,listType:Ee,isImgUrl:Ct,showPreviewIcon:qt,showRemoveIcon:fn,showDownloadIcon:xn,removeIcon:Ve,previewIcon:ut,downloadIcon:xt,iconRender:Pa,actionIconRender:da,itemRender:Dt,onPreview:qn,onDownload:ca,onClose:Sa})}),Xt&&ae.createElement(Ue.default,Object.assign({},ea,{visible:Vt,forceRender:!0}),Wt=>{let{className:On,style:Mn}=Wt;return(0,Ft.Tm)(Xt,Un=>({className:_e()(Un.className,On),style:Object.assign(Object.assign(Object.assign({},Mn),{pointerEvents:On?"none":void 0}),Un.style)}))}))};var Ut=ae.forwardRef(Ot),Qt=re(17313),Sn=re(8378),hn=re(83116),Fn=re(37613),tn=me=>{const{componentCls:Oe,iconCls:Ee}=me;return{[`${Oe}-wrapper`]:{[`${Oe}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[Oe]:{padding:`${me.padding}px 0`},[`${Oe}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Oe}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Oe}-disabled):hover`]:{borderColor:me.colorPrimaryHover},[`p${Oe}-drag-icon`]:{marginBottom:me.margin,[Ee]:{color:me.colorPrimary,fontSize:me.uploadThumbnailSize}},[`p${Oe}-text`]:{margin:`0 0 ${me.marginXXS}px`,color:me.colorTextHeading,fontSize:me.fontSizeLG},[`p${Oe}-hint`]:{color:me.colorTextDescription,fontSize:me.fontSize},[`&${Oe}-disabled`]:{cursor:"not-allowed",[`p${Oe}-drag-icon ${Ee},
|
|
p${Oe}-text,
|
|
p${Oe}-hint
|
|
`]:{color:me.colorTextDisabled}}}}}},En=me=>{const{componentCls:Oe,antCls:Ee,iconCls:De,fontSize:Xe,lineHeight:Ye}=me,He=`${Oe}-list-item`,Te=`${He}-actions`,Et=`${He}-action`,Ct=Math.round(Xe*Ye);return{[`${Oe}-wrapper`]:{[`${Oe}-list`]:Object.assign(Object.assign({},(0,Qt.dF)()),{lineHeight:me.lineHeight,[He]:{position:"relative",height:me.lineHeight*Xe,marginTop:me.marginXS,fontSize:Xe,display:"flex",alignItems:"center",transition:`background-color ${me.motionDurationSlow}`,"&:hover":{backgroundColor:me.controlItemBgHover},[`${He}-name`]:Object.assign(Object.assign({},Qt.vS),{padding:`0 ${me.paddingXS}px`,lineHeight:Ye,flex:"auto",transition:`all ${me.motionDurationSlow}`}),[Te]:{[Et]:{opacity:0},[`${Et}${Ee}-btn-sm`]:{height:Ct,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Et}:focus-visible,
|
|
&.picture ${Et}
|
|
`]:{opacity:1},[De]:{color:me.actionsColor,transition:`all ${me.motionDurationSlow}`},[`&:hover ${De}`]:{color:me.colorText}},[`${Oe}-icon ${De}`]:{color:me.colorTextDescription,fontSize:Xe},[`${He}-progress`]:{position:"absolute",bottom:-me.uploadProgressOffset,width:"100%",paddingInlineStart:Xe+me.paddingXS,fontSize:Xe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${He}:hover ${Et}`]:{opacity:1,color:me.colorText},[`${He}-error`]:{color:me.colorError,[`${He}-name, ${Oe}-icon ${De}`]:{color:me.colorError},[Te]:{[`${De}, ${De}:hover`]:{color:me.colorError},[Et]:{opacity:1}}},[`${Oe}-list-item-container`]:{transition:`opacity ${me.motionDurationSlow}, height ${me.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Cn=re(36237),sn=re(1950);const Nn=new Cn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new Cn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=me=>{const{componentCls:Oe}=me,Ee=`${Oe}-animate-inline`;return[{[`${Oe}-wrapper`]:{[`${Ee}-appear, ${Ee}-enter, ${Ee}-leave`]:{animationDuration:me.motionDurationSlow,animationTimingFunction:me.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ee}-appear, ${Ee}-enter`]:{animationName:Nn},[`${Ee}-leave`]:{animationName:Yn}}},{[`${Oe}-wrapper`]:(0,sn.J$)(me)},Nn,Yn]},na=re(30071),Jn=re(64993);const pe=me=>{const{componentCls:Oe,iconCls:Ee,uploadThumbnailSize:De,uploadProgressOffset:Xe}=me,Ye=`${Oe}-list`,He=`${Ye}-item`;return{[`${Oe}-wrapper`]:{[`
|
|
${Ye}${Ye}-picture,
|
|
${Ye}${Ye}-picture-card,
|
|
${Ye}${Ye}-picture-circle
|
|
`]:{[He]:{position:"relative",height:De+me.lineWidth*2+me.paddingXS*2,padding:me.paddingXS,border:`${me.lineWidth}px ${me.lineType} ${me.colorBorder}`,borderRadius:me.borderRadiusLG,"&:hover":{background:"transparent"},[`${He}-thumbnail`]:Object.assign(Object.assign({},Qt.vS),{width:De,height:De,lineHeight:`${De+me.paddingSM}px`,textAlign:"center",flex:"none",[Ee]:{fontSize:me.fontSizeHeading2,color:me.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${He}-progress`]:{bottom:Xe,width:`calc(100% - ${me.paddingSM*2}px)`,marginTop:0,paddingInlineStart:De+me.paddingXS}},[`${He}-error`]:{borderColor:me.colorError,[`${He}-thumbnail ${Ee}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:me.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:me.colorError}}},[`${He}-uploading`]:{borderStyle:"dashed",[`${He}-name`]:{marginBottom:Xe}}},[`${Ye}${Ye}-picture-circle ${He}`]:{[`&, &::before, ${He}-thumbnail`]:{borderRadius:"50%"}}}}},ve=me=>{const{componentCls:Oe,iconCls:Ee,fontSizeLG:De,colorTextLightSolid:Xe}=me,Ye=`${Oe}-list`,He=`${Ye}-item`,Te=me.uploadPicCardSize;return{[`
|
|
${Oe}-wrapper${Oe}-picture-card-wrapper,
|
|
${Oe}-wrapper${Oe}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,Qt.dF)()),{display:"inline-block",width:"100%",[`${Oe}${Oe}-select`]:{width:Te,height:Te,marginInlineEnd:me.marginXS,marginBottom:me.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:me.colorFillAlter,border:`${me.lineWidth}px dashed ${me.colorBorder}`,borderRadius:me.borderRadiusLG,cursor:"pointer",transition:`border-color ${me.motionDurationSlow}`,[`> ${Oe}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Oe}-disabled):hover`]:{borderColor:me.colorPrimary}},[`${Ye}${Ye}-picture-card, ${Ye}${Ye}-picture-circle`]:{[`${Ye}-item-container`]:{display:"inline-block",width:Te,height:Te,marginBlock:`0 ${me.marginXS}px`,marginInline:`0 ${me.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[He]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${me.paddingXS*2}px)`,height:`calc(100% - ${me.paddingXS*2}px)`,backgroundColor:me.colorBgMask,opacity:0,transition:`all ${me.motionDurationSlow}`,content:'" "'}},[`${He}:hover`]:{[`&::before, ${He}-actions`]:{opacity:1}},[`${He}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${me.motionDurationSlow}`,[`${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{zIndex:10,width:De,margin:`0 ${me.marginXXS}px`,fontSize:De,cursor:"pointer",transition:`all ${me.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${He}-actions, ${He}-actions:hover`]:{[`${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{color:new Jn.C(Xe).setAlpha(.65).toRgbString(),"&:hover":{color:Xe}}},[`${He}-thumbnail, ${He}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${He}-name`]:{display:"none",textAlign:"center"},[`${He}-file + ${He}-name`]:{position:"absolute",bottom:me.margin,display:"block",width:`calc(100% - ${me.paddingXS*2}px)`},[`${He}-uploading`]:{[`&${He}`]:{backgroundColor:me.colorFillAlter},[`&::before, ${Ee}-eye, ${Ee}-download, ${Ee}-delete`]:{display:"none"}},[`${He}-progress`]:{bottom:me.marginXL,width:`calc(100% - ${me.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Oe}-wrapper${Oe}-picture-circle-wrapper`]:{[`${Oe}${Oe}-select`]:{borderRadius:"50%"}}}};var et=me=>{const{componentCls:Oe}=me;return{[`${Oe}-rtl`]:{direction:"rtl"}}};const bt=me=>{const{componentCls:Oe,colorTextDisabled:Ee}=me;return{[`${Oe}-wrapper`]:Object.assign(Object.assign({},(0,Qt.Wf)(me)),{[Oe]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Oe}-select`]:{display:"inline-block"},[`${Oe}-disabled`]:{color:Ee,cursor:"not-allowed"}})}};var Pt=(0,hn.Z)("Upload",me=>{const{fontSizeHeading3:Oe,fontSize:Ee,lineHeight:De,lineWidth:Xe,controlHeightLG:Ye}=me,He=Math.round(Ee*De),Te=(0,Fn.TS)(me,{uploadThumbnailSize:Oe*2,uploadProgressOffset:He/2+Xe,uploadPicCardSize:Ye*2.55});return[bt(Te),tn(Te),pe(Te),ve(Te),En(Te),Wn(Te),et(Te),(0,Sn.Z)(Te)]},me=>({actionsColor:me.colorTextDescription})),gn=function(me,Oe,Ee,De){function Xe(Ye){return Ye instanceof Ee?Ye:new Ee(function(He){He(Ye)})}return new(Ee||(Ee=Promise))(function(Ye,He){function Te(we){try{Ct(De.next(we))}catch(nn){He(nn)}}function Et(we){try{Ct(De.throw(we))}catch(nn){He(nn)}}function Ct(we){we.done?Ye(we.value):Xe(we.value).then(Te,Et)}Ct((De=De.apply(me,Oe||[])).next())})};const _t=`__LIST_IGNORE_${Date.now()}__`,Yt=(me,Oe)=>{const{fileList:Ee,defaultFileList:De,onRemove:Xe,showUploadList:Ye=!0,listType:He="text",onPreview:Te,onDownload:Et,onChange:Ct,onDrop:we,previewFile:nn,disabled:qt,locale:fn,iconRender:xn,isImageUrl:Ve,progress:ut,prefixCls:xt,className:mt,type:Xt="select",children:Vt,style:Dt,itemRender:un,maxCount:cn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=me,da=ae.useContext(rt.Z),Vn=qt!=null?qt:da,[$n,ta]=(0,Ke.Z)(De||[],{value:Ee,postState:Zt=>Zt!=null?Zt:[]}),[ga,ia]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const Zt=Date.now();(Ee||[]).forEach((dn,Ln)=>{!dn.uid&&!Object.isFrozen(dn)&&(dn.uid=`__AUTO__${Zt}_${Ln}__`)})},[Ee]);const ea=(Zt,dn,Ln)=>{let an=(0,fe.Z)(dn),mn=!1;cn===1?an=an.slice(-1):cn&&(mn=an.length>cn,an=an.slice(0,cn)),(0,nt.flushSync)(()=>{ta(an)});const Hn={file:Zt,fileList:an};Ln&&(Hn.event=Ln),(!mn||an.some(bn=>bn.uid===Zt.uid))&&(0,nt.flushSync)(()=>{Ct==null||Ct(Hn)})},fa=(Zt,dn)=>gn(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:an}=me;let mn=Zt;if(Ln){const Hn=yield Ln(Zt,dn);if(Hn===!1)return!1;if(delete Zt[_t],Hn===_t)return Object.defineProperty(Zt,_t,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(mn=Hn)}return an&&(mn=yield an(mn)),mn}),Wt=Zt=>{const dn=Zt.filter(mn=>!mn.file[_t]);if(!dn.length)return;const Ln=dn.map(mn=>Rt(mn.file));let an=(0,fe.Z)($n);Ln.forEach(mn=>{an=ht(mn,an)}),Ln.forEach((mn,Hn)=>{let bn=mn;if(dn[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,an)})},On=(Zt,dn,Ln)=>{try{typeof Zt=="string"&&(Zt=JSON.parse(Zt))}catch(Hn){}if(!kt(dn,$n))return;const an=Rt(dn);an.status="done",an.percent=100,an.response=Zt,an.xhr=Ln;const mn=ht(an,$n);ea(an,mn)},Mn=(Zt,dn)=>{if(!kt(dn,$n))return;const Ln=Rt(dn);Ln.status="uploading",Ln.percent=Zt.percent;const an=ht(Ln,$n);ea(Ln,an,Zt)},Un=(Zt,dn,Ln)=>{if(!kt(Ln,$n))return;const an=Rt(Ln);an.error=Zt,an.response=dn,an.status="error";const mn=ht(an,$n);ea(an,mn)},Xn=Zt=>{let dn;Promise.resolve(typeof Xe=="function"?Xe(Zt):Xe).then(Ln=>{var an;if(Ln===!1)return;const mn=Pn(Zt,$n);mn&&(dn=Object.assign(Object.assign({},Zt),{status:"removed"}),$n==null||$n.forEach(Hn=>{const bn=dn.uid!==void 0?"uid":"name";Hn[bn]===dn[bn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(an=aa.current)===null||an===void 0||an.abort(dn),ea(dn,mn))})},ra=Zt=>{ia(Zt.type),Zt.type==="drop"&&(we==null||we(Zt))};ae.useImperativeHandle(Oe,()=>({onBatchStart:Wt,onSuccess:On,onProgress:Mn,onError:Un,fileList:$n,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:Dn}=ae.useContext(Je.E_),Gn=va("upload",xt),la=Object.assign(Object.assign({onBatchStart:Wt,onError:Un,onProgress:Mn,onSuccess:On},me),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:Gn,disabled:Vn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Vt||Vn)&&delete la.id;const[ya,La]=Pt(Gn),[ba]=(0,zt.Z)("Upload",It.Z.Upload),{showRemoveIcon:yt,showPreviewIcon:dt,showDownloadIcon:ct,removeIcon:ft,previewIcon:ln,downloadIcon:zn}=typeof Ye=="boolean"?{}:Ye,Rn=(Zt,dn)=>Ye?ae.createElement(Ut,{prefixCls:Gn,listType:He,items:$n,previewFile:nn,onPreview:Te,onDownload:Et,onRemove:Xn,showRemoveIcon:!Vn&&yt,showPreviewIcon:dt,showDownloadIcon:ct,removeIcon:ft,previewIcon:ln,downloadIcon:zn,iconRender:xn,locale:Object.assign(Object.assign({},ba),fn),isImageUrl:Ve,progress:ut,appendAction:Zt,appendActionVisible:dn,itemRender:un,disabled:Vn}):Zt,Tn=_e()(`${Gn}-wrapper`,mt,Pa,La,Dn==null?void 0:Dn.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:He==="picture-card",[`${Gn}-picture-circle-wrapper`]:He==="picture-circle"}),jn=Object.assign(Object.assign({},Dn==null?void 0:Dn.style),Dt);if(Xt==="drag"){const Zt=_e()(La,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:$n.some(dn=>dn.status==="uploading"),[`${Gn}-drag-hover`]:ga==="dragover",[`${Gn}-disabled`]:Vn,[`${Gn}-rtl`]:pa==="rtl"});return ya(ae.createElement("span",{className:Tn},ae.createElement("div",{className:Zt,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ae.createElement(ye,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ae.createElement("div",{className:`${Gn}-drag-container`},Vt))),Rn()))}const _n=_e()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Vn}),Kn=(Zt=>ae.createElement("div",{className:_n,style:Zt},ae.createElement(ye,Object.assign({},la,{ref:aa}))))(Vt?void 0:{display:"none"});return ya(He==="picture-card"||He==="picture-circle"?ae.createElement("span",{className:Tn},Rn(Kn,!!Vt)):ae.createElement("span",{className:Tn},Kn,Rn()))};var kn=ae.forwardRef(Yt),qe=function(me,Oe){var Ee={};for(var De in me)Object.prototype.hasOwnProperty.call(me,De)&&Oe.indexOf(De)<0&&(Ee[De]=me[De]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xe=0,De=Object.getOwnPropertySymbols(me);Xe<De.length;Xe++)Oe.indexOf(De[Xe])<0&&Object.prototype.propertyIsEnumerable.call(me,De[Xe])&&(Ee[De[Xe]]=me[De[Xe]]);return Ee},An=ae.forwardRef((me,Oe)=>{var{style:Ee,height:De}=me,Xe=qe(me,["style","height"]);return ae.createElement(kn,Object.assign({ref:Oe},Xe,{type:"drag",style:Object.assign(Object.assign({},Ee),{height:De})}))});const Zn=kn;Zn.Dragger=An,Zn.LIST_IGNORE=_t;var Bn=Zn}}]);
|