You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
167 lines
423 KiB
167 lines
423 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[9715],{84249:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},90674:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},33859:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},22751:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},24018:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},ze=_e,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},40043:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},ze=_e,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},91034:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return le}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(xe,Te){return ce.createElement(ue.Z,(0,ne.Z)({},xe,{ref:Te,icon:ze}))},le=ce.forwardRef(Ce)},71736:function(Me,it){"use strict";it.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},18023:function(){"use strict";function Me(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Me.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(Me.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(Me.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(Me.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof Me))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var it=[];function oe(ae,a){var y=it.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=it.pop();return ae===void 0?new go.Point:ae}function ce(ae){it.push(ae)}function _e(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,me=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,me=a);else{var se=(x-ee)/ie,Ne=x-se*b;ge=ae,me=se*ge+Ne}else if(ie===0){var Ge=(a-E)/re,pt=a-Ge*ae;ge=b,me=Ge*ge+pt}else{var Ge=(a-E)/re,se=(x-ee)/ie,pt=a-Ge*ae,Ne=x-se*b;ge=(Ne-pt)/(Ge-se),me=Ge*ge+pt}return te.x=ge,te.y=me,te}function ze(ae,a,y,E,b,x,z,ee,te,re,ie,ge,me,se){var Ne=1-te,Ge=te,pt=ae*Ne+y*Ge,Gt=a*Ne+E*Ge,kt=y*Ne+b*Ge,Le=E*Ne+x*Ge,Ie=b*Ne+z*Ge,Ae=x*Ne+ee*Ge,nt=pt*Ne+kt*Ge,gt=Gt*Ne+Le*Ge,We=kt*Ne+Ie*Ge,Ke=Le*Ne+Ae*Ge,at=nt*Ne+We*Ge,xt=gt*Ne+Ke*Ge;re.x=pt,re.y=Gt,ie.x=nt,ie.y=gt,ge.x=at,ge.y=xt,me.x=We,me.y=Ke,se.x=Ie,se.y=Ae}var ue=new go.Spot(.156,.156),Ce=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Me("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ue,b.spot2=Ce,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Me("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Me("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new Me("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Me("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new Me("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var He=[];function xe(){var ae=He.pop();return ae===void 0?[]:ae}function Te(ae){ae.length=0,He.push(ae)}function Ue(ae){for(var a=xe(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function ke(ae){var a=je(ae),y=xe();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return Te(a),y}function je(ae){for(var a=Ue(ae),y=xe(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=_e(ee.x,ee.y,re.x,re.y,te.x,te.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],Te(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ue(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<5;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Ue(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<6;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Ue(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<7;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Ue(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<8;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Ue(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<9;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Ue(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Ue(12),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=je(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<10;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=je(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<12;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=je(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<14;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=je(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<16;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=je(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<18;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=je(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<20;z++)x.add(new go.PathSegment(go.PathSegment.Line,E[z].x*a,E[z].y*y));return x.add(new go.PathSegment(go.PathSegment.Line,E[0].x*a,E[0].y*y).close()),Te(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=ke(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=ke(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=ke(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=ke(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=ke(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=ke(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),Te(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new Me("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Me("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new Me("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ue,x.spot2=Ce,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new Me("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Me("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Me("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Me("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new Me("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Me("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new Me("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new Me("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var re=ne(),ie=ne(),ge=ne(),me=ne();ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,me,me);var se=ne(),Ne=ne(),Ge=ne();ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,Ge,se,Ne);var pt=ne(),Gt=ne(),kt=ne();ze(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,pt,Gt,kt,me,me);var Le=ne(),Ie=ne(),Ae=ne();return ze(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,Ae,Le,Ie),te.add(new go.PathSegment(go.PathSegment.Move,Ae.x*a,Ae.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,Le.x*a,Le.y*y,Ie.x*a,Ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ae.x*a,Ae.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,kt.x*a,kt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,Ne.x*a,Ne.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,kt.x*a,kt.y*y,pt.x*a,pt.y*y,Gt.x*a,Gt.y*y).close()),ce(re),ce(ie),ce(ge),ce(me),ce(se),ce(Ne),ce(Ge),ce(pt),ce(Gt),ce(kt),ce(Le),ce(Ie),ce(Ae),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Me("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),me=new go.PathFigure((z-x)*a,ee*y,!1);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,re,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var se=oe(re.x,re.y);ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var Ne=oe(re.x,re.y);me.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ne.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(Ne.x*.1+.9)*a,(Ne.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,Ne.x*a,Ne.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var Ge=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var pt=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(pt),ce(te),ce(re),ce(ie),ce(ge),ce(se),ce(Ne),E.spot1=new go.Spot(.202,.257),E.spot2=new go.Spot(.792,.739),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("GenderFemale",function(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Me("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Me("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=_e(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Me("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Me("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=_e(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),ce(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Me("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=_e(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=_e(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Me("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Me("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=_e(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=_e(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new Me("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=_e(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Me("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Me("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=_e(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),ce(ge),re}),go.Shape.setFigureParameter("Pointer",0,new Me("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=_e(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Me("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=_e(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),ce(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Me("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=_e(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Me("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=_e(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),ce(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Me("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,me=le*ge;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+me)*a,(re-ge)*y,(te+ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,me=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,me=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,me=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-me)*y,(te+me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-me)*a,(re-ge)*y,(te-ge)*a,(re-me)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,me=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-me)*y,(te-me)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new Me("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,me=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.4,ee=.4,te=.2,re=.5;var se=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.2,ee=.2,te=.5,re=.5;var Ne=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=le*.4,ee=.4,te=.8,re=.5;var Ge=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=le*.8,ee=.8,te=1,re=.5;var pt=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),pt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),pt.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne();ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var me=oe(re.x,re.y),se=new go.PathFigure(re.x*a,re.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),ze(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=le*.3,x=.3,ze(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ze(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),ce(te),ce(re),ce(ie),ce(ge),ce(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,me=.5,se=0,Ne=new go.PathFigure(te*a,(1-re)*y,!1);return E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(se+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(.35+x)*a,.9*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,.9*y)),Ne.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),Ne.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),Ne.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,me=z,se=z,Ne=ie*me,Ge=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(Ne+me)/2)*a,(te+(se+Ge)/2)*y,(ee-me)*a,(te+Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-me)*a,(te-Ge)*y,(ee-Ne)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+Ne)*a,(te-se)*y,(ee+me)*a,(te-Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Ge)*y,(ee+(Ne+me)/2)*a,(te+(se+Ge)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var pt=new go.PathFigure(.2*a,y,!1);E.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Gt=new go.PathFigure(.8*a,y,!1);return E.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=le*.1,ie=.1,ge=.9,me=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=le*.1,ie=.4,ge=.9;var se=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=le*.05,me=.175,se=.95,ee=new go.PathFigure((me-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.375,se=.95,te=new go.PathFigure((me-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.625,se=.95,re=new go.PathFigure((me-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,me=.825,se=.95,Ne=new go.PathFigure((me-ie)*a,se*y,!0);E.add(Ne),Ne.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se-ie)*y,(me-ie)*a,(se-ge)*y,(me-ge)*a,(se-ie)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,se*y,(me+ge)*a,(se-ie)*y,(me+ie)*a,(se-ge)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(se+ie)*y,(me+ie)*a,(se+ge)*y,(me+ge)*a,(se+ie)*y)),Ne.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,se*y,(me-ge)*a,(se+ie)*y,(me-ie)*a,(se+ge)*y).close());var Ge=new go.PathFigure(0,y,!1);return E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},61016:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Me={},it="5.0",oe={},ne=null,ce=!1,_e=!1,ze=null,ue=!1,Ce=null,le=null,He=0;He<arguments.length;He++){var xe=arguments[He];if(xe!==null)switch(typeof xe){case"number":it=xe.toFixed(1);break;case"string":xe.match(new RegExp("^[0-9]\\.[0-9]+$"))?it=xe:ze=xe;break;case"object":typeof xe.is3D!="undefined"?ne=xe:oe=xe;break;case"boolean":ce=xe,_e=!0;break}}ne===null&&(ne={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!_e&&(ce=!0)),ze!==null&&oe.id===void 0&&(oe.id=ze);var Te="",Ue="",ke=!1,je=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(he){return parseFloat(he)>4?parseFloat(he):5};Me.setHTML5Codebase=function(he,Be){le=he,Ke(he,Be)},Me.setJavaCodebase=Me.setJavaCodebaseVersion=Me.isCompiledInstalled=Me.setPreCompiledScriptPath=Me.setPreCompiledResourcePath=function(){},Me.setHTML5CodebaseVersion=function(he,Be){var qe=parseFloat(he);if(qe!==NaN&&qe<5){console.log("The GeoGebra HTML5 codebase version "+qe+" is deprecated. Using version latest instead.");return}Ce=he,We(he,Be)},Me.getHTML5CodebaseVersion=function(){return ae},Me.getParameters=function(){return oe},Me.setFontsCSSURL=function(he){z=he},Me.setGiacJSURL=function(he){},Me.setJNLPFile=function(he){Te=he},Me.setJNLPBaseDir=function(he){},Me.inject=function(){function he(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Be="auto",qe=oe.id,yt,Ve=!1,Qe=0;Qe<arguments.length;Qe++){var de=arguments[Qe];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Be=de:qe=arguments[Qe]):typeof de=="boolean"?Ve=de:de instanceof HTMLElement&&(yt=de)}tt();function tt(){if(!ue){setTimeout(tt,200);return}Be=nt(Be);var ft=yt||document.getElementById(qe);if(!ft){console.log("possibly bug on ajax loading? ");return}if(Me.removeExistingApplet(ft,!1),oe.width===void 0&&ft.clientWidth&&(oe.width=ft.clientWidth),oe.height===void 0&&ft.clientHeight&&(oe.height=ft.clientHeight),!(oe.width&&oe.height)&&Be==="html5"&&(delete oe.width,delete oe.height),je=Be,Be==="screenshot")Gt(ft,oe);else{var Ht=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?Ht=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(Ht=(!re()||he())&&ie()),Ht?(je="screenshot",Le(ft,oe,Ve,Be)):pt(ft,oe,Ve)}}};function re(){try{return window.self!==window.top}catch(he){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Me.getViews=function(){return ne},Me.isJavaInstalled=function(){return!1};var ge=function(he){var Be=function(Qe){var de=JSON.parse(Qe),tt=function(mt){return mt.type=="G"||mt.type=="E"},ft=de.elements?de.elements.filter(tt)[0]:de;if(!ft||!ft.url){qe();return}oe.fileName=ft.url,me(ft.settings||{}),ne.is3D=!0;var Ht="https://www.geogebra.org/images/";Me.setPreviewImage(E||ft.previewUrl,Ht+"GeoGebra_loading.png",Ht+"applet_play.png"),he()},qe=function(){oe.onError&&oe.onError(),at("Error: Fetching material (id "+oe.material_id+") failed.",oe)},yt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ve="/materials/"+oe.material_id+"?scope=basic";se("https://"+yt+"/api/proxy.php?path="+encodeURIComponent(Ve),Be,qe)};function me(he){var Be=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(qe){he[qe]=!!he[qe]}),Be.forEach(function(qe){oe[qe]===void 0&&he[qe]!==void 0&&(oe[qe]=he[qe])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(he,Be,qe){var yt=new XMLHttpRequest;yt.open("GET",he),yt.onload=function(){Be(yt.responseText)},yt.onerror=qe,yt.send()}Me.isHTML5Installed=function(){return!0},Me.getLoadedAppletType=function(){return je},Me.setPreviewImage=function(he,Be,qe){E=he,b=Be,x=qe},Me.removeExistingApplet=function(he,Be){var qe;typeof he=="string"&&(he=document.getElementById(he)),je=null;var yt=null;for(qe=0;qe<he.childNodes.length;qe++){var Ve=he.childNodes[qe],Qe=Ve.className;Qe==="applet_screenshot"?Be?(Ve.style.display="block",je="screenshot"):Ve.style.display="none":Qe!=="applet_scaler prerender"&&(he.removeChild(Ve),yt=Qe&&Qe.indexOf("appletParameters")!=-1?Ve.id:null,qe--)}var de=oe.id!==void 0?oe.id:yt,tt=window[de];tt&&typeof tt.getBase64=="function"&&(tt.remove(),window[de]=null)},Me.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var he=Me.getAppletObject();return he&&typeof he.recalculateEnvironments=="function"?(he.recalculateEnvironments(),!0):!1},Me.startAnimation=function(){var he=Me.getAppletObject();return he&&typeof he.startAnimation=="function"?(he.startAnimation(),!0):!1},Me.stopAnimation=function(){var he=Me.getAppletObject();return he&&typeof he.stopAnimation=="function"?(he.stopAnimation(),!0):!1},Me.getAppletObject=function(){var he=oe.id!==void 0?oe.id:"ggbApplet";return window[he]},Me.resize=function(){};var Ne=function(he,Be,qe){var yt=document.createElement("param");yt.setAttribute("name",Be),yt.setAttribute("value",qe),he.appendChild(yt)},Ge=function(he){return he&&he!=="false"},pt=function(he,Be,qe){te(ae)<=4.2&&(qe=!0);var yt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(yt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ve=document.createElement("div");Ve.classList.add("appletParameters","notranslate");var Qe=Be.width,de=Be.height;if(Be.disableAutoScale=Be.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Be.disableAutoScale,Be.width!==void 0)if(te(ae)<=4.4)Ge(Be.showToolBar)&&(Be.height-=7),Ge(Be.showAlgebraInput)&&(Be.height-=37),Be.width<605&&Ge(Be.showToolBar)&&(Be.width=605,Qe=605);else{var tt=100;(Ge(Be.showToolBar)||Ge(Be.showMenuBar))&&(Be.hasOwnProperty("customToolBar")&&(Be.customToolbar=Be.customToolBar),tt=Ge(Be.showMenuBar)?245:155),Qe<tt&&(Be.width=tt,Qe=tt)}Ve.style.border="none",Ve.style.display="inline-block";for(var ft in Be)Be.hasOwnProperty(ft)&&ft!=="appletOnLoad"&&Ve.setAttribute("data-param-"+ft,Be[ft]);z&&Ve.setAttribute("data-param-fontscssurl",z),Me.resize=function(){GGBAppletUtils.responsiveResize(he,Be)},window.addEventListener("resize",function(jt){Me.resize()});var Ht=typeof Be.appletOnLoad=="function"?Be.appletOnLoad:function(){};if(!qe&&Be.width!==void 0){Be.hasOwnProperty("showSplash")||Ve.setAttribute("data-param-showSplash","false");var mt=he.querySelector(".applet_scaler.prerender"),Ee=mt!==null;if(Ee)var be=mt.querySelector(".ggb_preview");else{var be=Ae(Qe,de,Be.borderColor,!1);mt=document.createElement("div"),mt.className="applet_scaler",mt.style.position="relative",mt.style.display="block",mt.style.width=Qe+"px",mt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(mt,"66%"),te(ae)>=5?(Be.appletOnLoad=function(jt){var wt=he.querySelector(".ggb_preview");wt&&wt.parentNode.removeChild(wt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(mt),window.GGBT_wsf_view&&$(window).trigger("resize"),Ht(jt)},Ee||mt.appendChild(be)):Ve.appendChild(be),mt.appendChild(Ve),Ee||he.appendChild(mt),setTimeout(function(){Me.resize()},1)}else{var ve=document.createElement("div");ve.className="applet_scaler",ve.style.position="relative",ve.style.display="block",ve.appendChild(Ve),he.appendChild(ve),Be.appletOnLoad=function(jt){Me.resize(),Ht(jt)}}function ye(jt,wt){wt&&typeof wt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(jt,wt.appletOnLoad):renderGGBElement(jt),at("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",wt)}function Fe(jt,wt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:jt,params:wt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(bt){ye(bt.article,bt.params)}),html5AppletsToProcess=null)},te(ae)<5&&(jt.className+=" geogebraweb")):ye(jt,wt)}if(yt){scriptLoadStarted=!0;for(var Xe=0;Xe<Ve.childNodes.length;Xe++){var ut=Ve.childNodes[Xe].tagName;ut==="TABLE"&&(Ve.removeChild(Ve.childNodes[Xe]),Xe--)}if(ggbHTML5LoadedScript!==null){var Pt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Pt!=null&&Pt.parentNode.removeChild(Pt)}var Lt=document.createElement("script"),Ot=function(){Fe(Ve,Be)};Lt.src=Ue+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=Lt.src,at("GeoGebra HTML5 codebase loaded: '"+Ue+"'.",Be),!le&&(!Ce||Ce=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Ot()):Ue.requirejs?__webpack_require__.e(12).then(function(){var jt=[__webpack_require__(12)];Ot.apply(null,jt)}.bind(this)).catch(__webpack_require__.oe):(Lt.onload=Ot,he.appendChild(Lt))}else Fe(Ve,Be);Be.height=de,Be.width=Qe},Gt=function(he,Be,qe){var yt=Ae(Be.width,Be.height,Be.borderColor,qe),Ve=document.createElement("div");Ve.style.position="relative",Ve.style.display="block",Ve.style.width=Be.width+"px",Ve.style.height=Be.height+"px",Ve.className="applet_screenshot applet_scaler"+(qe?" applet_screenshot_play":""),Ve.appendChild(yt);var Qe=GGBAppletUtils.getScale(Be,he,qe);qe?(he.appendChild(Ie()),window.GGBT_wsf_view||(he.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ve,"66%"),he.appendChild(Ve),Qe!==1&&!isNaN(Qe)&&(GGBAppletUtils.scaleElement(Ve,Qe),Ve.style.width=Be.width+"px",Ve.style.height=Be.height+"px",Ve.parentNode.style.width=Be.width*Qe+"px",Ve.parentNode.style.height=Be.height*Qe+"px"),Me.resize=function(){kt(he,yt,Ve,qe)},window.addEventListener("resize",function(de){Me.resize()}),Me.resize()};function kt(he,Be,qe,yt){if(he.contains(Be)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(he.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(he)}var Ve=GGBAppletUtils.getScale(oe,he,yt);qe.parentNode!==null&&(!isNaN(Ve)&&Ve!==1?(GGBAppletUtils.scaleElement(qe,Ve),qe.parentNode.style.width=oe.width*Ve+"px",qe.parentNode.style.height=oe.height*Ve+"px"):(GGBAppletUtils.scaleElement(qe,1),qe.parentNode.style.width=oe.width+"px",qe.parentNode.style.height=oe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(he),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Me.onExitFullscreen=function(he,Be){Be.appendChild(he)};var Le=function(he,Be,qe,yt){Gt(he,Be,!0);for(var Ve=function(){var tt=[];for(de=0;de<he.childNodes.length;de++)tt.push(he.childNodes[de]);if(window.GGBT_wsf_view){var ft=window.GGBT_wsf_view.renderFullScreen(he,Be.id),Ht=document.getElementById("fullscreencontainer"),mt=jQuery(he).find(".fullscreencontent");mt.length>0?(ft.remove(),mt.attr("id","fullscreencontent").show(),jQuery(Ht).append(mt),window.dispatchEvent(new Event("resize"))):pt(ft,Be,!1),window.GGBT_wsf_view.launchFullScreen(Ht)}else je=yt,pt(he,Be,!1);if(!window.GGBT_wsf_view)for(de=0;de<tt.length;de++)he.removeChild(tt[de])},Qe=he.getElementsByClassName("ggb_preview_play"),de=0;de<Qe.length;de++)Qe[de].addEventListener("click",Ve,!1),Qe[de].addEventListener("ontouchstart",Ve,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(he),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ie=function(){var he=document.createElement("div");if(he.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Be='.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=Be:qe.appendChild(document.createTextNode(Be)),document.getElementsByTagName("head")[0].appendChild(qe)}return he},Ae=function(he,Be,qe,yt){var Ve=document.createElement("div");Ve.className="ggb_preview",Ve.style.position="absolute",Ve.style.zIndex="90",Ve.style.width=he-2+"px",Ve.style.height=Be-2+"px",Ve.style.top="0px",Ve.style.left="0px",Ve.style.overflow="hidden",Ve.style.backgroundColor="white";var Qe="lightgrey";qe!==void 0&&(qe==="none"?Qe="transparent":Qe=qe),Ve.style.border="1px solid "+Qe;var de=document.createElement("img");if(de.style.position="relative",de.style.zIndex="1000",de.style.top="-1px",de.style.left="-1px",E!==null&&de.setAttribute("src",E),de.style.opacity=.7,b!==null){var tt,ft,Ht;if(!yt){tt=document.createElement("img"),tt.style.position="absolute",tt.style.zIndex="1001",tt.style.opacity=1,de.style.opacity=.3,ft=360,ft>he/4*3&&(ft=he/4*3),Ht=ft/5.8,tt.setAttribute("src",b),tt.setAttribute("width",ft),tt.setAttribute("height",Ht);var mt=(he-ft)/2,Ee=(Be-Ht)/2;tt.style.left=mt+"px",tt.style.top=Ee+"px",Ve.appendChild(tt)}}return Ve.appendChild(de),Ve},nt=function(he){return he=he.toLowerCase(),he==="html5"||he==="screenshot"?he:"html5"},gt=["web","webSimple","web3d","tablet","tablet3d","phone"],We=function(he,Be){if(ae=he,Be){Ke(ae,!0);return}var qe=!ce;if(qe){var yt=te(ae);!isNaN(yt)&&yt<4.4&&(qe=!1)}var Ve,Qe;window.location.protocol.substr(0,4)==="http"?Ve=window.location.protocol:Ve="http:";var de=ae.indexOf("//");de>0?Qe=ae:de===0?Qe=Ve+ae:Qe="https://www.geogebra.org/apps/5.2.814.0/";for(var tt in gt)if(ae.slice(gt[tt].length*-1)===gt[tt]||ae.slice((gt[tt].length+1)*-1)===gt[tt]+"/"){Ke(Qe,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&qe&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!Ge(oe.showToolBar)&&!Ge(oe.showMenuBar)&&!Ge(oe.showAlgebraInput)&&!Ge(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?Qe+="webSimple/":Qe+="web3d/",Ke(Qe,!1)},Ke=function(he,Be){if(he.requirejs){Ue=he;return}he.slice(-1)!=="/"&&(he+="/"),Ue=he,Be===null&&(Be=he.indexOf("http")===-1),ke=Be,a="web.nocache.js",y=!1;var qe=Ue.split("/");qe.length>1&&(!Be&&qe[qe.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):gt.indexOf(qe[qe.length-2])>=0&&(a=qe[qe.length-2]+".nocache.js")),qe=he.split("/"),ae=qe[qe.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var yt=parseFloat(ae);yt!==NaN&&yt<5&&he.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+yt+" is deprecated. Using version latest instead."),We("5.0",Be))},at=function(he,Be){window.console&&window.console.log&&(!Be||typeof Be.showLogging=="undefined"||Be.showLogging&&Be.showLogging!=="false")&&console.log(he)};oe.material_id!==void 0?ge(xt):xt();function xt(){var he=it;Ce!==null?he=Ce:parseFloat(he)<5&&(he="5.0"),We(he,!1),le!==null&&Ke(le,ke),ue=!0}return Me},GGBAppletUtils=function(){"use strict";function Me(){return window.GGBT_wsf_edit!==void 0}function it(ue,Ce){Ce!=1?(ue.style.transformOrigin="0% 0% 0px",ue.style.webkitTransformOrigin="0% 0% 0px",ue.style.transform="scale("+Ce+","+Ce+")",ue.style.webkitTransform="scale("+Ce+","+Ce+")",ue.style.maxWidth="initial",ue.querySelector(".ggb_preview")!==null&&(ue.querySelector(".ggb_preview").style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ue.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ue.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ue.style.transform="none",ue.style.webkitTransform="none")}function oe(ue,Ce,le,He,xe,Te){var Ue=null;if(Te!=null&&Te!="")for(var ke=ue.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+Te+" ")>-1){Ue=ke;break}else ke=ke.parentNode;var je=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ue)je=Ue.offsetWidth,ae=Math.max(He?Ue.offsetWidth:0,Ue.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(je=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=je):(je=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),ue){var z=ue.getBoundingClientRect();z.left>0&&z.left<=je&&(xe===void 0||!xe)&&(document.dir==="rtl"?(E=je-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ue&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ue.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ue&&((le===void 0||!le)&&Ce>0&&Ce+y<je?je=Ce:je-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:je,height:ae}}function ne(ue,Ce,le,He,xe){if(ue.isScreenshoGenerator)return 1;var Te=He!==void 0&&He,Ue=ue.noScaleMargin!=null&&ue.noScaleMargin,ke=function(ee){return ee&&ee!=="false"},je=ke(ue.autoHeight),ae=oe(Ce,ue.width,le,je,Te&&window.GGBT_wsf_view||Ue,xe),a=parseInt(ae.width),y=ue.width,E=ue.height;if(y===void 0){var b=Ce.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Te?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function ce(ue,Ce,le){var He=1,xe,Te=!1;if(ue.hasOwnProperty("allowUpscale")&&(Te=ue.allowUpscale),ue.hasOwnProperty("scale")&&(He=parseFloat(ue.scale),(isNaN(He)||He===null||He===0)&&(He=1),He>1&&(Te=!0)),Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(ue.hasOwnProperty("disableAutoScale")&&ue.disableAutoScale))xe=ne(ue,Ce,Te,le,ue.scaleContainerClass);else return He;return Te&&(!ue.hasOwnProperty("scale")||He===1)?xe:Math.min(He,xe)}function _e(ue){var Ce=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),He=ue.getBoundingClientRect(),xe=(Ce-He.width)/2,Te=(le-He.height)/2;Te<0&&(Te=0),ue.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(xe<40?ue.style.left="40px":ue.style.left=xe+"px",ue.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?ue.style.top="40px":ue.style.top=Te+"px",ue.style.left=xe+"px")}function ze(ue,Ce){var le=ue.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ce.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ue)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var He=ce(Ce,ue);Me()&&le.setAttribute("data-param-scale",He);for(var xe=null,Te=0;Te<ue.childNodes.length;Te++)if(ue.childNodes[Te].className!==void 0&&ue.childNodes[Te].className.match(/^applet_scaler/)){xe=ue.childNodes[Te];break}if(xe!==null&&xe.querySelector(".noscale")!==null)return;var Ue=Ce.id!==void 0?Ce.id:"ggbApplet",ke=window[Ue];(ke==null||!ke.recalculateEnvironments)&&xe!==null&&!xe.className.match(/fullscreen/)&&(xe.parentNode.style.transform="",!isNaN(He)&&He!==1?(xe.parentNode.style.width=Ce.width*He+"px",xe.parentNode.style.height=Ce.height*He+"px",it(xe,He)):(it(xe,1),xe.parentNode.style.width=Ce.width+"px",xe.parentNode.style.height=Ce.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&_e(ue),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:ze,isFlexibleWorksheetEditor:Me,positionCenter:_e,getScale:ce,scaleElement:it}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Me=n.location.search;return Me.indexOf(J)!=-1||Me.indexOf(K)!=-1}function q(Me,it){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Me){var it=s[L].bindings;s[L].bindings=function(){for(var oe=it?it():{},ne=Me[webModule.__softPermutationId],ce=O;ce<ne.length;ce++){var _e=ne[ce];oe[_e[O]]=_e[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var Me=o.createElement(Q);if(Me.id=L,Me.style.cssText=R+S,Me.tabIndex=-1,o.body.appendChild(Me),t=Me.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var it=document.compatMode==U?V:W;t.write(it+X),t.close()}}}function w(Me){function it(ne){function ce(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var _e=ce();if(_e){ne();return}function ze(){if(!_e){if(!ce())return;_e=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,ze,!1),ue&&clearInterval(ue)}}o.addEventListener&&o.addEventListener(Z,ze,!1);var ue=setInterval(function(){ze()},$)}function oe(ne){var ce=u(),_e=ce.body,ze=ce.createElement(_);ze.language=ab,ze.crossOrigin=W,ze.src=ne,webModule.__errFn&&(ze.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),_e.appendChild(ze)}it(function(){oe(Me)})}webModule.__startLoadingFragment=function(Me){return C(Me)},webModule.__installRunAsyncCode=function(Me){var it=u(),oe=it.body,ne=it.createElement(_);ne.language=ab,ne.text=Me,oe.appendChild(ne),oe.removeChild(ne)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Me){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Me){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Me){var it=c[Me];return it==null?null:it},r=d,webModule.__errFn=e}function B(){function Me(ue){var Ce=ue.lastIndexOf(rb);Ce==-1&&(Ce=ue.length);var le=ue.indexOf(sb);le==-1&&(le=ue.length);var He=ue.lastIndexOf(tb,Math.min(le,Ce));return He>=O?ue.substring(O,He+P):W}function it(ue){if(!ue.match(/^\w+:\/\//)){var Ce=o.createElement(ub);Ce.src=ue+vb,ue=Me(Ce.src)}return ue}function oe(){var ue=__gwt_getMetaProperty(wb);return ue!=null?ue:W}function ne(){for(var ue=o.getElementsByTagName(_),Ce=O;Ce<ue.length;++Ce)if(ue[Ce].src.indexOf(xb)!=-1)return Me(ue[Ce].src);return W}function ce(){var ue=o.getElementsByTagName(yb);return ue.length>O?ue[ue.length-P].href:W}function _e(){var ue=o.location;return ue.href==ue.protocol+zb+ue.host+ue.pathname+ue.search+ue.hash}var ze=oe();return ze==W&&(ze=ne()),ze==W&&(ze=ce()),ze==W&&_e()&&(ze=Me(o.location.href)),ze=it(ze),ze}function C(Me){return Me.match(/^\//)||Me.match(/^[a-zA-Z]+:\/\//)?Me:webModule.__moduleBase+Me}function D(){var Me=[],it=O,oe=[],ne=[];function ce(ue){var Ce=ne[ue](),le=oe[ue];if(Ce in le)return Ce;var He=[];for(var xe in le)He[le[xe]]=xe;throw r&&r(ue,He,Ce),null}if(__gwt_isKnownPropertyValue=function(ue,Ce){return Ce in oe[ue]},webModule.__getPropMap=function(){var ue={};for(var Ce in oe)oe.hasOwnProperty(Ce)&&(ue[Ce]=ce(Ce));return ue},webModule.__computePropValue=ce,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var _e;try{_e=Cb;var ze=_e.indexOf(Db);ze!=-1&&(it=parseInt(_e.substring(ze+P),$),_e=_e.substring(O,ze))}catch(ue){}return webModule.__softPermutationId=it,C(_e+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},15476:function(Me,it,oe){"use strict";oe.d(it,{Ax:function(){return ze},Ds:function(){return ue},KI:function(){return le},SI:function(){return _e},f1:function(){return ce}});var ne=oe(11320);function ce(He){let xe=!0;if(He.length>0){for(let Te=0;Te<He.length;Te++)if(He[Te].compile_success==0||!He[Te].compile_success){xe=!1;break}}else xe=!1;return xe}function _e(He,xe=""){let Te=[];for(let Ue=0;Ue<He.length;Ue++){let ke=He[Ue],je=xe?`${xe}/${ke.name}`:`${ke.name}`;Te.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:je})}return Te}function ze(He,xe,Te){for(let Ue=0;Ue<He.length;Ue++){let ke=He[Ue];if(ke.key===xe){ke.children=Te;break}ke.children&&ze(ke.children,xe,Te)}return He}function ue(He,xe,Te){let Ue;return function(){let ke=this,je=arguments,ae=function(){Ue=null,Te||He.apply(ke,je)},a=Te&&!Ue;clearTimeout(Ue),Ue=setTimeout(ae,xe),a&&He.apply(ke,je)}}const Ce=!0,le=ne.Z.API_SERVER},10191:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return kt}});var ne=oe(67294),ce=oe(35973),_e=oe(84567),ze=oe(24018),ue=oe(40043),Ce=oe(33170),le=oe(22150),He=oe(11713),xe={},Te=Object.defineProperty,Ue=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,ae=(Le,Ie,Ae)=>Ie in Le?Te(Le,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Le[Ie]=Ae,a=(Le,Ie)=>{for(var Ae in Ie||(Ie={}))ke.call(Ie,Ae)&&ae(Le,Ae,Ie[Ae]);if(Ue)for(var Ae of Ue(Ie))je.call(Ie,Ae)&&ae(Le,Ae,Ie[Ae]);return Le},y=(Le,Ie,Ae)=>new Promise((nt,gt)=>{var We=xt=>{try{at(Ae.next(xt))}catch(he){gt(he)}},Ke=xt=>{try{at(Ae.throw(xt))}catch(he){gt(he)}},at=xt=>xt.done?nt(xt.value):Promise.resolve(xt.value).then(We,Ke);at((Ae=Ae.apply(Le,Ie)).next())});const E=_e.default.Group,b=({classroomList:Le,loading:Ie,user:Ae,exercise_id:nt=null,homework_common_id:gt=null,setitem:We,item:Ke,type:at,rz:xt,dispatch:he})=>{var Be,qe,yt,Ve,Qe,de,tt,ft;const[Ht,mt]=(0,ne.useState)([]);let[Ee,be]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const ve=(0,ce.useParams)(),[ye,Fe]=(0,ne.useState)(!1),[Xe,ut]=(0,ne.useState)(!1),[Pt]=le.default.useForm();(0,ne.useEffect)(()=>{xt&&(Ee.zydatas=xt,be(a({},Ee)),Ke!=null&&Ke.ec_course_id&&Lt())},[Ke,xt]);function Lt(){return y(this,null,function*(){console.log("----",Ke),yield Ot(Ke==null?void 0:Ke.ec_major_school_id),yield jt(Ke==null?void 0:Ke.ec_year_id),yield wt(Ke==null?void 0:Ke.ec_course_id),Pt.setFieldsValue({ec_course_id:Ke==null?void 0:Ke.ec_course_id,ec_major_school_id:Ke==null?void 0:Ke.ec_major_school_id,ec_point_ids:Ke==null?void 0:Ke.ec_point_ids,ec_year_id:Ke==null?void 0:Ke.ec_year_id})})}function Ot(bt){return y(this,null,function*(){const Mt=yield(0,Ce.ZP)(`/api/ec_major_schools/${bt}/ec_years/get_year_list.json`,{method:"get"});Ee.jbdatas=Mt==null?void 0:Mt.data,be(a({},Ee)),Pt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function jt(bt){return y(this,null,function*(){const Mt=yield(0,Ce.ZP)(`/api/ec_years/${bt}/ec_courses/get_courses.json`,{method:"get"});Ee.kcdatas=Mt==null?void 0:Mt.data,be(a({},Ee)),Pt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const wt=bt=>y(void 0,null,function*(){const Mt=yield(0,Ce.ZP)(`/api/ec_courses/${bt}/ec_points.json`,{method:"get",params:{ec_course_id:bt}});Ee.zsdatas=Mt==null?void 0:Mt.data,be(a({},Ee))});return ne.createElement("div",{className:xe.from},ne.createElement(le.default,{form:Pt,layout:"inline",onValuesChange:bt=>{console.log("----",bt),bt.ec_major_school_id&&(Ee.jbdatas=[],Ee.kcdatas=[],Ee.zsdatas=[],be(a({},Ee)),Ot(bt.ec_major_school_id)),bt.ec_year_id&&(Ee.kcdatas=[],Ee.zsdatas=[],be(a({},Ee)),jt(bt.ec_year_id)),bt.ec_course_id&&(Ee.zsdatas=[],be(a({},Ee)),wt(bt.ec_course_id))},onFinish:bt=>y(void 0,null,function*(){We(bt)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement(He.default,{style:{width:150},disabled:((Be=Ee.zydatas)==null?void 0:Be.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(qe=Ee==null?void 0:Ee.zydatas)==null?void 0:qe.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,value:bt==null?void 0:bt.ec_major_school_id},bt==null?void 0:bt.name)))),ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement(He.default,{style:{width:150},disabled:((yt=Ee.jbdatas)==null?void 0:yt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Ve=Ee==null?void 0:Ee.jbdatas)==null?void 0:Ve.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,value:bt==null?void 0:bt.ec_year_id},bt==null?void 0:bt.year)))),ne.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement(He.default,{style:{width:150},disabled:((Qe=Ee.kcdatas)==null?void 0:Qe.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=Ee==null?void 0:Ee.kcdatas)==null?void 0:de.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,value:bt==null?void 0:bt.id},bt==null?void 0:bt.name)))),ne.createElement(le.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement(He.default,{onChange:()=>{Pt.submit()},style:{width:150},mode:"multiple",disabled:((tt=Ee.zsdatas)==null?void 0:tt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(ft=Ee==null?void 0:Ee.zsdatas)==null?void 0:ft.map((bt,Mt)=>ne.createElement(He.default.Option,{key:Mt,value:bt==null?void 0:bt.id},bt==null?void 0:bt.name))))))};var x=(0,ce.connect)(({classroomList:Le,loading:Ie,globalSetting:Ae,user:nt})=>({classroomList:Le,globalSetting:Ae,loading:Ie.effects,user:nt}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(Le,Ie,Ae)=>Ie in Le?z(Le,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Le[Ie]=Ae,se=(Le,Ie)=>{for(var Ae in Ie||(Ie={}))ie.call(Ie,Ae)&&me(Le,Ae,Ie[Ae]);if(re)for(var Ae of re(Ie))ge.call(Ie,Ae)&&me(Le,Ae,Ie[Ae]);return Le},Ne=(Le,Ie)=>ee(Le,te(Ie)),Ge=(Le,Ie,Ae)=>new Promise((nt,gt)=>{var We=xt=>{try{at(Ae.next(xt))}catch(he){gt(he)}},Ke=xt=>{try{at(Ae.throw(xt))}catch(he){gt(he)}},at=xt=>xt.done?nt(xt.value):Promise.resolve(xt.value).then(We,Ke);at((Ae=Ae.apply(Le,Ie)).next())});const pt=_e.default.Group,Gt=({classroomList:Le,loading:Ie,user:Ae,exercise_id:nt=null,homework_common_id:gt=null,setitem:We,type:Ke,dispatch:at})=>{var xt,he;let[Be,qe]=(0,ne.useState)([{}]),[yt,Ve]=(0,ne.useState)([]);function Qe(){return Ge(this,null,function*(){var tt,ft,Ht;let mt=yield(0,Ce.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:nt,homework_common_id:gt}});if(((tt=mt==null?void 0:mt.data)==null?void 0:tt.length)>0){let Ee=[];(ft=mt==null?void 0:mt.data)==null||ft.map(be=>{var ve;(ve=be==null?void 0:be.ec_point_ids)==null||ve.map(ye=>{Ee.push(ye)})}),We(Ne(se({},(Ht=mt==null?void 0:mt.data)==null?void 0:Ht[0]),{ec_point_ids:Ee})),qe(mt==null?void 0:mt.data)}})}(0,ne.useEffect)(()=>{var tt,ft;(ft=(tt=Ae==null?void 0:Ae.userInfo)==null?void 0:tt.course)!=null&&ft.course_school_id&&de()},[(he=(xt=Ae==null?void 0:Ae.userInfo)==null?void 0:xt.course)==null?void 0:he.course_school_id]);function de(){return Ge(this,null,function*(){var tt,ft;const Ht=yield(0,Ce.ZP)(`/api/schools/${(ft=(tt=Ae==null?void 0:Ae.userInfo)==null?void 0:tt.course)==null?void 0:ft.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ve(Ht==null?void 0:Ht.data),(gt||nt)&&Qe()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Be==null?void 0:Be.map((tt,ft)=>ne.createElement("div",{key:ft,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:yt,item:tt,type:ft,setitem:Ht=>{Be.splice(ft,1,Ht),qe([...Be]);let mt=[];Be==null||Be.map(Ee=>{var be;(be=Ee==null?void 0:Ee.ec_point_ids)==null||be.map(ve=>{mt.push(ve)})}),We(Ne(se({},Ht),{ec_point_ids:mt}))}}),ft!=0&&ne.createElement(ze.Z,{onClick:()=>{Be.splice(ft,1),qe([...Be])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(ue.Z,{onClick:()=>{Be.push({}),qe([...Be])},style:{marginLeft:10,fontSize:"20px"}}))))};var kt=(0,ce.connect)(({classroomList:Le,loading:Ie,globalSetting:Ae,user:nt})=>({classroomList:Le,globalSetting:Ae,loading:Ie.effects,user:nt}))(Gt)},63205:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return Ue}});var ne=oe(67294),ce={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},_e=oe(94184),ze=oe.n(_e),ue=oe(57953),Ce=oe(15979),le=oe(33170),He=oe(28706),xe=(ke,je,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(ke,je)).next())}),Ue=({data:ke,className:je,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),[ie,ge]=(0,ne.useState)(!1),[me,se]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&Ne()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ke==null?void 0:ke.visible]);const Ne=()=>xe(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Le=yield(0,He.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=Le,z.current.onload=function(){kt()},ge(!1),se("")}),Ge=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},pt=Le=>xe(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ie=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:Le.dataUrl}});Ie!=null&&Ie.id&&!x?(yield(0,le.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ie==null?void 0:Ie.id,settings:JSON.stringify(Le.state)}})).status===0&&E():Ie!=null&&Ie.id&&E(Ie),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),se("")}),Gt=()=>{const Le=document.querySelector('a[href="https://markerjs.com/"]');Le&&Le.parentNode&&(Le.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Ae=>{const nt=document.querySelector(Ae.name);nt&&nt.setAttribute("title",Ae.title)})},kt=()=>{ee.current=new Ce.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",pt),ee.current.addEventListener("beforeclose",Ge),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(),ke!=null&&ke.snapshotData&&ee.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Gt()},300)};return ne.createElement(ne.Fragment,null,(ke==null?void 0:ke.visible)&&ne.createElement(ue.Z,{spinning:ie,tip:me,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:ze()(ce.imageDimensions,je,ae?ce.fullWidth:""),style:a},ne.createElement("img",{className:ce.img,ref:z}))))}},36527:function(Me,it,oe){"use strict";var ne=oe(67294),ce=oe(71230),_e=oe(15746),ze=oe(66368),ue=oe(71577),Ce=oe(85725),le=oe(71736),He=oe(84279),xe=oe(67294);const Te=(0,ne.forwardRef)(({callback:Ue,showSaveButton:ke,value:je=""},ae)=>{const a=(0,ne.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:xe.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>xe.createElement(_e.Z,{flex:"110px",className:le.Z.item},xe.createElement("div",null,xe.createElement(Ce.Z,{value:`$$${ee.value}$$`}),ee.name),xe.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>xe.createElement("div",{key:ie},xe.createElement("h1",null,re.name),xe.createElement(ce.Z,{gutter:[10,10]},re.data.map((ge,me)=>xe.createElement(_e.Z,{key:me,onClick:()=>b(ge),className:le.Z.diamond},xe.createElement(Ce.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:xe.createElement(ce.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>xe.createElement(_e.Z,{flex:"110px",className:le.Z.item},xe.createElement("div",null,xe.createElement(Ce.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),xe.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>xe.createElement("div",{key:ie},re.name&&xe.createElement("h1",null,re.name),xe.createElement(ce.Z,{gutter:[10,10]},re.data.map((ge,me)=>xe.createElement(_e.Z,{key:me,onClick:()=>b(ge),className:le.Z.diamond},xe.createElement(Ce.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ue&&Ue(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),xe.createElement("div",{className:le.Z.mathWrap},xe.createElement(ze.default,{defaultActiveKey:"1",items:x}),xe.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},je||""),ke&&xe.createElement("div",{className:le.Z.button},xe.createElement(ue.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});it.Z=Te},65866:function(Me,it,oe){"use strict";oe.d(it,{z:function(){return nt},Z:function(){return gt}});var ne=oe(67294),ce=oe(59810),_e=oe(2453),ze=oe(14446),ue=oe(71577),Ce=oe(11320),le=oe(4440),He=Object.defineProperty,xe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,ke=(We,Ke,at)=>Ke in We?He(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:at}):We[Ke]=at,je=(We,Ke)=>{for(var at in Ke||(Ke={}))Te.call(Ke,at)&&ke(We,at,Ke[at]);if(xe)for(var at of xe(Ke))Ue.call(Ke,at)&&ke(We,at,Ke[at]);return We},ae=(We,Ke,at)=>new Promise((xt,he)=>{var Be=Ve=>{try{yt(at.next(Ve))}catch(Qe){he(Qe)}},qe=Ve=>{try{yt(at.throw(Ve))}catch(Qe){he(Qe)}},yt=Ve=>Ve.done?xt(Ve.value):Promise.resolve(Ve.value).then(Be,qe);yt((at=at.apply(We,Ke)).next())});const a="\u3000\u3000";function y(We){var Ke=["Bytes","KB","MB","GB","TB"];if(We==0)return"0 Byte";var at=parseInt(""+Math.floor(Math.log(We)/Math.log(1024)),10);return(We/Math.pow(1024,at)).toFixed(1)+" "+Ke[at]}var E=({value:We=[],action:Ke,onChange:at,className:xt,maxSize:he=150,title:Be="\u6587\u4EF6\u4E0A\u4F20",accept:qe=null})=>{const yt={multiple:!1,fileList:We,accept:qe,withCredentials:!0,beforeUpload:Qe=>Qe.size/1024/1024<he?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${he}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(Qe){var de,tt,ft,Ht;let mt=[...Qe.fileList];if(mt=mt.map(Ee=>(Ee.name.indexOf(a)===-1&&(Ee.name=`${Ee.name}${a}${y(Ee.size)}`),je({},Ee))),Qe.file.status==="done"&&((tt=(de=Qe.file)==null?void 0:de.response)==null?void 0:tt.status)===-1){message.error((Ht=(ft=Qe.file)==null?void 0:ft.response)==null?void 0:Ht.message),at([]);return}at(mt)},onRemove:Qe=>ae(void 0,null,function*(){const de=Qe.size/1024/1024;return Qe.status==="uploading"?!0:de<he&&(Qe.response?Qe.response.id:Qe.uid)?yield removeAttachment(Qe.response?Qe.response.id:Qe.id):!0})};function Ve(Qe){Qe.preventDefault(),Qe.stopPropagation()}return React.createElement("div",{className:`single-upload ${xt||""}`},React.createElement(Upload,je({},yt),React.createElement(Button,{type:"primary",title:We.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:We.length>0,ghost:!0},Be),React.createElement("span",{onClick:Ve,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",he,"M)"," ")))},b=oe(33859),x=oe(96486),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(We,Ke,at)=>Ke in We?z(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:at}):We[Ke]=at,ge=(We,Ke)=>{for(var at in Ke||(Ke={}))te.call(Ke,at)&&ie(We,at,Ke[at]);if(ee)for(var at of ee(Ke))re.call(Ke,at)&&ie(We,at,Ke[at]);return We};const me=We=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},We),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Ne=Object.defineProperty,Ge=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Gt=Object.prototype.propertyIsEnumerable,kt=(We,Ke,at)=>Ke in We?Ne(We,Ke,{enumerable:!0,configurable:!0,writable:!0,value:at}):We[Ke]=at,Le=(We,Ke)=>{for(var at in Ke||(Ke={}))pt.call(Ke,at)&&kt(We,at,Ke[at]);if(Ge)for(var at of Ge(Ke))Gt.call(Ke,at)&&kt(We,at,Ke[at]);return We},Ie=(We,Ke,at)=>new Promise((xt,he)=>{var Be=Ve=>{try{yt(at.next(Ve))}catch(Qe){he(Qe)}},qe=Ve=>{try{yt(at.throw(Ve))}catch(Qe){he(Qe)}},yt=Ve=>Ve.done?xt(Ve.value):Promise.resolve(Ve.value).then(Be,qe);yt((at=at.apply(We,Ke)).next())});const{Dragger:Ae}=ce.default;function nt(We){let Ke=[];return We&&We.length>0&&(Ke=We.map(at=>({uid:at.id,id:at.id,name:at.title+a+at.filesize,url:at.url,filesize:at.filesize,status:"done",response:{id:at.id}}))),Ke}var gt=({value:We,onChange:Ke,action:at,data:xt,className:he,maxSize:Be=150,title:qe="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:yt=!1,accept:Ve="",additionalText:Qe,isDragger:de,number:tt=1e3,aloneClear:ft=!1,realTimeRemove:Ht=!0,uploadText:mt,setFileProgress:Ee,showFileProgress:be})=>{const[ve,ye]=(0,ne.useState)(!1);let[Fe,Xe]=(0,ne.useState)(We||[]),[ut,Pt]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{We&&(ut===1&&Xe([...We]),Pt(2),tt===(We==null?void 0:We.length)&&ye(!0))},[We]);const Lt=()=>{setTimeout(()=>{Fe.pop(),Xe([...Fe])},500)};be&&Ee(Fe.some(wt=>wt.status==="uploading"));const Ot={multiple:!0,disabled:ve,accept:Ve,withCredentials:!0,fileList:Fe,beforeUpload:(wt,bt)=>{const Mt=wt.size/1024/1024;return Fe.concat(bt).length>tt?(Fe.pop(),Xe([...Fe]),_e.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${tt}\u4E2A\u6587\u4EF6`),ft?Promise.reject():(Lt(),!1)):Mt<Be?!0:(_e.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Be}MB).`),ft?Promise.reject():(Lt(),!1))},data:xt,action:at||`${Ce.Z.API_SERVER}/api/attachments.json`,onChange(wt){var bt,Mt,Yt,Vt;if(wt.file.status==="removed"?Fe=wt.fileList:Fe=(0,x.uniqBy)([...wt.fileList,...Fe],"uid"),wt.file.status==="done"&&((Mt=(bt=wt.file)==null?void 0:bt.response)==null?void 0:Mt.status)===-1){_e.ZP.error((Vt=(Yt=wt.file)==null?void 0:Yt.response)==null?void 0:Vt.message);return}Fe.length>=tt?ye(!0):ye(!1),Xe([...Fe]),Fe=Fe.map(tn=>{var pe,Oe;return(pe=tn==null?void 0:tn.response)!=null&&pe.id&&(tn.url=(Oe=tn==null?void 0:tn.response)==null?void 0:Oe.url),tn.name.indexOf(a)===-1&&(tn.name=`${tn.name}${a}${y(tn.size)}`),Le({},tn)}),console.log("info:",wt,Fe),Ke(Fe)},onRemove:wt=>Ie(void 0,null,function*(){if(!Ht)return!0;const bt=()=>Ie(void 0,null,function*(){if(wt.response?wt.response.id:wt.id){let Yt=yield(0,le.JZ)(wt.response?wt.response.id:wt.uid);return Promise.resolve(Yt)}else return!0});return yt?new Promise((Mt,Yt)=>{ze.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ne.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ie(void 0,null,function*(){const Vt=yield bt();_e.ZP.success("\u5220\u9664\u6210\u529F"),Mt(!0)}),onCancel:()=>Mt(!1)})}):yield bt()})};function jt(wt){wt.preventDefault(),wt.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${he||""}`},de&&ne.createElement(Ae,Le({},Ot),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(b.Z,null)),ne.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",ne.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Be,"MB)"," "),Qe),!de&&ne.createElement(ce.default,Le({},Ot),ne.createElement(ue.ZP,{disabled:ve,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),qe),ne.createElement("span",{onClick:jt,className:"upload_text"},mt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Be}MB)`)))}},57444:function(Me,it,oe){"use strict";oe.d(it,{h:function(){return ee}});var ne=oe(67294),ce=oe(11713),_e=oe(22150),ze=oe(71577),ue=oe(4631),Ce=oe.n(ue),le=oe(71749),He=oe(30483),xe=Object.defineProperty,Te=Object.defineProperties,Ue=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?xe(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))je.call(re,ie)&&a(te,ie,re[ie]);if(ke)for(var ie of ke(re))ae.call(re,ie)&&a(te,ie,re[ie]);return te},E=(te,re)=>Te(te,Ue(re));const b=ce.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};it.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function me(Ne){ge(z[Ne][1])}function se(Ne){te(Ne)}return ne.createElement(_e.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(_e.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(ce.default,{getPopupContainer:Ne=>Ne.parentNode,onChange:me},Object.keys(z).map(Ne=>ne.createElement(b,{key:Ne,value:Ne},z[Ne][0])))),ne.createElement(_e.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ee,{mode:ie})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(ze.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ie,options:ge={}}){const me=(0,ne.useRef)(),[se,Ne]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let Ge=function(pt){const Gt=pt.getValue();re&&re(Gt)};return se.on("change",Ge),()=>{se.off("change",Ge)}}},[se,re]),(0,ne.useEffect)(()=>{se&&se.setOption("mode",ie)},[se,ie]),(0,ne.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ne.useEffect)(()=>{if(me.current&&!se){const Ge=Ce().fromTextArea(me.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Ne(Ge)}},[me.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:me}))}},35567:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return kn}});var ne=oe(67294),ce=oe(4631),_e=oe.n(ce),ze=oe(91033),ue=oe(71749),Ce=oe(57341),le=oe(82801),He=oe(88386),xe=oe(49047),Te=oe(80785),Ue=oe(85725),ke=({value:fe="",className:we,showTextOnly:Pe,showLines:dt,style:Et={}})=>{const Nt=(0,ne.useMemo)(()=>"",[fe]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Nt}}))},je=oe(67294),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(fe,we,Pe)=>we in fe?ae(fe,we,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):fe[we]=Pe,ee=(fe,we)=>{for(var Pe in we||(we={}))b.call(we,Pe)&&z(fe,Pe,we[Pe]);if(E)for(var Pe of E(we))x.call(we,Pe)&&z(fe,Pe,we[Pe]);return fe},te=(fe,we)=>a(fe,y(we));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ie({onActionCallback:fe,title:we,icon:Pe,actionName:dt,className:Et="",children:Nt}){function Sn(){fe(dt)}return je.createElement("a",{title:we,className:Et,onClick:Sn},je.createElement("i",{className:`${Pe}`}),Nt)}var ge=({watch:fe,showNullButton:we,showNullProgramButton:Pe,onActionCallback:dt,fullScreen:Et,insertTemp:Nt,hidetoolBar:Sn,extraUse:en})=>{const ln=[...re,{title:`${fe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${fe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return je.createElement("ul",{className:"markdown-toolbar-container"},!Sn&&ln.map((Bn,Hn)=>je.createElement("li",{key:Hn},Bn.actionName?je.createElement(ie,te(ee({},Bn),{onActionCallback:dt})):je.createElement("span",{className:"v-line"}))),we?je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Pe?je.createElement(je.Fragment,null,je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Nt&&je.createElement("li",null,je.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Nt}`,onActionCallback:dt},je.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),en&&je.createElement("li",null,en),je.createElement("li",{className:"btn-full-screen"},je.createElement(ie,{icon:`${Et?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Et?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:dt})))},me=oe(76621),se=oe(22150),Ne=oe(69677),Ge=oe(71577),pt=Object.defineProperty,Gt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,nt=(fe,we,Pe)=>we in fe?pt(fe,we,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):fe[we]=Pe,gt=(fe,we)=>{for(var Pe in we||(we={}))Ie.call(we,Pe)&&nt(fe,Pe,we[Pe]);if(Le)for(var Pe of Le(we))Ae.call(we,Pe)&&nt(fe,Pe,we[Pe]);return fe},We=(fe,we)=>Gt(fe,kt(we));const Ke={labelCol:{span:4},wrapperCol:{span:20}};var at=({callback:fe,onCancel:we})=>{function Pe(dt){fe(dt)}return ne.createElement(se.default,We(gt({},Ke),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Pe,style:{width:500}}),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(Ne.default,null)),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(Ne.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ge.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},xt=oe(57444),he=oe(70859),Be=oe(14446),qe=oe(71230),yt=oe(63205),Ve=oe(67294),Qe=({callback:fe,onCancel:we})=>{const Pe=document.createElement("canvas"),dt=Pe.getContext("2d");Pe.width=1e3,Pe.height=800,dt.fillStyle="#ffffff",dt.fillRect(0,0,Pe.width,Pe.height);const Et=Pe.toDataURL("image/png");return Ve.createElement(Be.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ve.createElement(qe.Z,{style:{height:"100vh"}},Ve.createElement(yt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Et,visible:!0,title:String(Date.now())},onOk:Nt=>{fe({src:Nt.url})},onClose:we})))},de=oe(23495);function tt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(tt,go.CommandHandler),tt.prototype.canAlignSelection=function(){var fe=this.diagram;return!(fe===null||fe.isReadOnly||fe.isModelReadOnly||fe.selection.count<2)},tt.prototype.alignLeft=function(){var fe=this.diagram;fe.startTransaction("aligning left");var we=1/0;fe.selection.each(function(Pe){Pe instanceof go.Link||(we=Math.min(Pe.position.x,we))}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(we,Pe.position.y))}),fe.commitTransaction("aligning left")},tt.prototype.alignRight=function(){var fe=this.diagram;fe.startTransaction("aligning right");var we=-1/0;fe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var dt=Pe.actualBounds.x+Pe.actualBounds.width;we=Math.max(dt,we)}}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(we-Pe.actualBounds.width,Pe.position.y))}),fe.commitTransaction("aligning right")},tt.prototype.alignTop=function(){var fe=this.diagram;fe.startTransaction("alignTop");var we=1/0;fe.selection.each(function(Pe){Pe instanceof go.Link||(we=Math.min(Pe.position.y,we))}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.position.x,we))}),fe.commitTransaction("alignTop")},tt.prototype.alignBottom=function(){var fe=this.diagram;fe.startTransaction("aligning bottom");var we=-1/0;fe.selection.each(function(Pe){if(!(Pe instanceof go.Link)){var dt=Pe.actualBounds.y+Pe.actualBounds.height;we=Math.max(dt,we)}}),fe.selection.each(function(Pe){Pe instanceof go.Link||Pe.move(new go.Point(Pe.actualBounds.x,we-Pe.actualBounds.height))}),fe.commitTransaction("aligning bottom")},tt.prototype.alignCenterX=function(){var fe=this.diagram,we=fe.selection.first();if(we){fe.startTransaction("aligning Center X");var Pe=we.actualBounds.x+we.actualBounds.width/2;fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(Pe-dt.actualBounds.width/2,dt.actualBounds.y))}),fe.commitTransaction("aligning Center X")}},tt.prototype.alignCenterY=function(){var fe=this.diagram,we=fe.selection.first();if(we){fe.startTransaction("aligning Center Y");var Pe=we.actualBounds.y+we.actualBounds.height/2;fe.selection.each(function(dt){dt instanceof go.Link||dt.move(new go.Point(dt.actualBounds.x,Pe-dt.actualBounds.height/2))}),fe.commitTransaction("aligning Center Y")}},tt.prototype.alignColumn=function(fe){var we=this.diagram;we.startTransaction("align Column"),fe===void 0&&(fe=0),fe=parseFloat(fe);var Pe=new Array;we.selection.each(function(en){en instanceof go.Link||Pe.push(en)});for(var dt=0;dt<Pe.length-1;dt++){var Et=Pe[dt],Nt=Et.actualBounds.y+Et.actualBounds.height+fe,Sn=Pe[dt+1];Sn.move(new go.Point(Et.actualBounds.x,Nt))}we.commitTransaction("align Column")},tt.prototype.alignRow=function(fe){fe===void 0&&(fe=0),fe=parseFloat(fe);var we=this.diagram;we.startTransaction("align Row");var Pe=new Array;we.selection.each(function(en){en instanceof go.Link||Pe.push(en)});for(var dt=0;dt<Pe.length-1;dt++){var Et=Pe[dt],Nt=Et.actualBounds.x+Et.actualBounds.width+fe,Sn=Pe[dt+1];Sn.move(new go.Point(Nt,Et.actualBounds.y))}we.commitTransaction("align Row")},tt.prototype.canRotate=function(fe){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},tt.prototype.rotate=function(fe){fe===void 0&&(fe=90);var we=this.diagram;we.startTransaction("rotate "+fe.toString());var we=this.diagram;we.selection.each(function(Pe){Pe instanceof go.Link||Pe instanceof go.Group||(Pe.angle+=fe)}),we.commitTransaction("rotate "+fe.toString())},tt.prototype.pullToFront=function(){var fe=this.diagram;fe.startTransaction("pullToFront");var we=new go.Map;fe.selection.each(function(Pe){we.set(Pe.layer,0)}),we.iteratorKeys.each(function(Pe){var dt=0;Pe.parts.each(function(Et){if(!Et.isSelected){var Nt=Et.zOrder;isNaN(Nt)?Et.zOrder=0:dt=Math.max(dt,Nt)}}),we.set(Pe,dt)}),fe.selection.each(function(Pe){tt._assignZOrder(Pe,we.get(Pe.layer)+1)}),fe.commitTransaction("pullToFront")},tt.prototype.pushToBack=function(){var fe=this.diagram;fe.startTransaction("pushToBack");var we=new go.Map;fe.selection.each(function(Pe){we.set(Pe.layer,0)}),we.iteratorKeys.each(function(Pe){var dt=0;Pe.parts.each(function(Et){if(!Et.isSelected){var Nt=Et.zOrder;isNaN(Nt)?Et.zOrder=0:dt=Math.min(dt,Nt)}}),we.set(Pe,dt)}),fe.selection.each(function(Pe){tt._assignZOrder(Pe,we.get(Pe.layer)-1-tt._findGroupDepth(Pe))}),fe.commitTransaction("pushToBack")},tt._assignZOrder=function(fe,we,Pe){Pe===void 0&&(Pe=fe),fe.layer===Pe.layer&&(fe.zOrder=we),fe instanceof go.Group&&fe.memberParts.each(function(dt){tt._assignZOrder(dt,we+1,Pe)})},tt._findGroupDepth=function(fe){if(fe instanceof go.Group){var we=0;return fe.memberParts.each(function(Pe){we=Math.max(we,tt._findGroupDepth(Pe))}),we+1}else return 0},tt.prototype.doKeyDown=function(){var fe=this.diagram;if(fe!==null){var we=fe.lastInput;if(we.key==="Up"||we.key==="Down"||we.key==="Left"||we.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)}},tt.prototype._getAllParts=function(){var fe=new Array;return this.diagram.nodes.each(function(we){fe.push(we)}),this.diagram.parts.each(function(we){fe.push(we)}),fe},tt.prototype._arrowKeyMove=function(){var fe=this.diagram,we=fe.lastInput,Pe=0,dt=0;if(we.control||we.meta)Pe=1,dt=1;else if(fe.grid!==null){var Et=fe.grid.gridCellSize;dt=Et.width,Pe=Et.height}fe.startTransaction("arrowKeyMove"),fe.selection.each(function(Nt){we.key==="Up"?Nt.move(new go.Point(Nt.actualBounds.x,Nt.actualBounds.y-Pe)):we.key==="Down"?Nt.move(new go.Point(Nt.actualBounds.x,Nt.actualBounds.y+Pe)):we.key==="Left"?Nt.move(new go.Point(Nt.actualBounds.x-dt,Nt.actualBounds.y)):we.key==="Right"&&Nt.move(new go.Point(Nt.actualBounds.x+dt,Nt.actualBounds.y))}),fe.commitTransaction("arrowKeyMove")},tt.prototype._arrowKeySelect=function(){var fe=this.diagram,we=fe.lastInput,Pe=null;we.key==="Up"?Pe=this._findNearestPartTowards(270):we.key==="Down"?Pe=this._findNearestPartTowards(90):we.key==="Left"?Pe=this._findNearestPartTowards(180):we.key==="Right"&&(Pe=this._findNearestPartTowards(0)),Pe!==null&&(we.shift?Pe.isSelected=!0:we.control||we.meta?Pe.isSelected=!Pe.isSelected:fe.select(Pe))},tt.prototype._findNearestPartTowards=function(fe){var we=this.diagram.selection.first();if(we===null)return null;for(var Pe=we.actualBounds.center,dt=this._getAllParts(),Et=1/0,Nt=we,Sn=0;Sn<dt.length;Sn++){var en=dt[Sn];if(en!==we&&en.canSelect()){var ln=en.actualBounds.center,Bn=Pe.directionPoint(ln),Hn=this._angleCloseness(Bn,fe);if(Hn<=45){var lt=Pe.distanceSquaredPoint(ln);lt*=1+Math.sin(Hn*Math.PI/180),lt<Et&&(Et=lt,Nt=en)}}}return Nt},tt.prototype._angleCloseness=function(fe,we){return Math.min(Math.abs(we-fe),Math.min(Math.abs(we+360-fe),Math.abs(we-360-fe)))},tt.prototype._arrowKeyTree=function(){var fe=this.diagram,we=fe.selection.first();if(we instanceof go.Node){var Pe=fe.lastInput;if(Pe.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)fe.commandHandler.canExpandTree(we)&&fe.commandHandler.expandTree(we);else{var dt=this._sortTreeChildrenByY(we).first();dt!==null&&fe.select(dt)}}else if(Pe.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)fe.commandHandler.canCollapseTree(we)&&fe.commandHandler.collapseTree(we);else{var Et=we.findTreeParentNode();Et!==null&&fe.select(Et)}else if(Pe.key==="Up"){var Et=we.findTreeParentNode();if(Et!==null){var Nt=this._sortTreeChildrenByY(Et),Sn=Nt.indexOf(we);if(Sn>0){for(var en=Nt.elt(Sn-1);en!==null&&en.isTreeExpanded&&!en.isTreeLeaf;){var ln=this._sortTreeChildrenByY(en);en=ln.last()}en!==null&&fe.select(en)}else fe.select(Et)}}else if(Pe.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var dt=this._sortTreeChildrenByY(we).first();dt!==null&&fe.select(dt)}else for(;we!==null;){var Et=we.findTreeParentNode();if(Et===null)break;var Nt=this._sortTreeChildrenByY(Et),Sn=Nt.indexOf(we);if(Sn<Nt.length-1){fe.select(Nt.elt(Sn+1));break}else we=Et}var Bn=fe.selection.first();Bn!==null&&fe.scrollToRect(Bn.actualBounds)}},tt.prototype._sortTreeChildrenByY=function(fe){var we=new go.List().addAll(fe.findTreeChildrenNodes());return we.sort(function(Pe,dt){var Et=Pe.location,Nt=dt.location;return Et.y<Nt.y?-1:Et.y>Nt.y?1:Et.x<Nt.x?-1:Et.x>Nt.x?1:0}),we},tt.prototype.copyToClipboard=function(fe){go.CommandHandler.prototype.copyToClipboard.call(this,fe),this._lastPasteOffset.set(this.pasteOffset)},tt.prototype.pasteFromClipboard=function(){var fe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(fe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),fe},Object.defineProperty(tt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(fe){if(fe!=="move"&&fe!=="select"&&fe!=="scroll"&&fe!=="tree"&&fe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+fe);this._arrowKeyBehavior=fe}}),Object.defineProperty(tt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(fe){if(!(fe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+fe);this._pasteOffset.set(fe)}});var ft=tt,Ht=oe(18023),mt=oe(15746),Ee=oe(33170),be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ve=oe(67294),ye=(fe,we,Pe)=>new Promise((dt,Et)=>{var Nt=ln=>{try{en(Pe.next(ln))}catch(Bn){Et(Bn)}},Sn=ln=>{try{en(Pe.throw(ln))}catch(Bn){Et(Bn)}},en=ln=>ln.done?dt(ln.value):Promise.resolve(ln.value).then(Nt,Sn);en((Pe=Pe.apply(fe,we)).next())});function Fe({onCancel:fe,callback:we}){let Pe=(0,ne.useRef)(),dt=(0,ne.useRef)(),Et=(0,ne.useRef)(),Nt=(0,ne.useRef)(!1);const Sn=(0,ne.useRef)(!1),[en,ln]=(0,ne.useState)(0);function Bn(){const lt=de.bx.make,dn={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(dt.current,{padding:20,grid:lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ot=>{var Ft=ot.diagram.commandHandler.addTopLevelParts(ot.diagram.selection,!0);Ft||ot.diagram.currentTool.doCancel()},commandHandler:lt(ft),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ot=>{var Ft=ot.subject;Ft.location=Ft.location.copy().snapToGridPoint(ot.diagram.grid.gridOrigin,ot.diagram.grid.gridCellSize),setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ot=>{var Ft=ot.subject;setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()})},LinkRelinked:ot=>{var Ft=ot.parameter.part;Ft.invalidateConnectedLinks();var Rt=ot.subject;ot.diagram.toolManager.linkingTool.isForwards?Rt.toNode.invalidateConnectedLinks():Rt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Pe.current.nodeTemplate=lt(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),lt(de.bn,{name:"SHAPE",fill:dn.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")),lt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),lt(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=lt("ToolTip",lt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},lt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),lt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Se(ot,Ft){var Rt=(St,cn)=>{St.handled=!0,St.diagram.model.commit(_t=>{var vn=cn.part.adornedPart,$n=new de.E9().setRectSpot(vn.actualBounds,ot);$n.subtract(vn.location),$n.scale(2,2),$n.x+=Math.sign($n.x)*130,$n.y+=Math.sign($n.y)*130,$n.add(vn.location),$n.snapToGridPoint(St.diagram.grid.gridOrigin,St.diagram.grid.gridCellSize);var Nn=_t.copyNodeData(vn.data);_t.setGroupKeyForNodeData(Nn,_t.getGroupKeyForNodeData(vn.data)),_t.addNodeData(Nn);var ea={from:vn.key,to:_t.getKeyForNodeData(Nn)};_t.addLinkData(ea);var ta=St.diagram.findNodeForData(Nn);ta.location=$n,St.diagram.select(ta),setTimeout(()=>{St.diagram.commandHandler.editTextBlock()},20)})};return lt(de.bn,{figure:Ft,alignment:ot,alignmentFocus:ot.opposite(),width:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?25:18,height:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:dn.white,strokeWidth:4,mouseEnter:(St,cn)=>cn.fill="dodgerblue",mouseLeave:(St,cn)=>cn.fill="orange",isActionable:!0,click:Rt,contextClick:Rt})}function De(ot){return lt(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:(Ft,Rt)=>Rt.fill="dodgerblue",mouseLeave:(Ft,Rt)=>Rt.fill="orange",click:(Ft,Rt)=>{Ft.diagram.commandHandler.showContextMenu(Rt.part.adornedPart)}},ot||{})}Pe.current.nodeTemplate.selectionAdornmentTemplate=lt(de.uz,"Spot",lt(de.Vm,{padding:10}),Se(de.z6.Top,"TriangleUp"),Se(de.z6.Left,"TriangleLeft"),Se(de.z6.Right,"TriangleRight"),Se(de.z6.Bottom,"TriangleDown"),De({alignment:new de.z6(.75,0)}));function $e(ot,Ft){return(Rt,St)=>{Rt.handled=!0,Rt.diagram.model.commit(cn=>{cn.set(St.part.adornedPart.data,ot,Ft)})}}function Re(ot,Ft){return Ft||(Ft="color"),lt(de.bn,{width:16,height:16,stroke:"lightgray",fill:ot,margin:1,background:"transparent",mouseEnter:(Rt,St)=>St.stroke="dodgerblue",mouseLeave:(Rt,St)=>St.stroke="lightgray",click:$e(Ft,ot),contextClick:$e(Ft,ot)})}function st(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.white,"fill"),Re(dn.beige,"fill"),Re(dn.extralightblue,"fill"),Re(dn.extralightred,"fill"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.lightgray,"fill"),Re(dn.lightgreen,"fill"),Re(dn.lightblue,"fill"),Re(dn.lightred,"fill")))]}function Je(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.black),Re(dn.green),Re(dn.blue),Re(dn.red))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Re(dn.white),Re(dn.magenta),Re(dn.purple),Re(dn.orange)))]}function rt(ot,Ft){return Ft||(Ft="thickness"),lt(de.bn,"LineH",{width:16,height:16,strokeWidth:ot,margin:1,background:"transparent",mouseEnter:(Rt,St)=>St.background="dodgerblue",mouseLeave:(Rt,St)=>St.background="transparent",click:$e(Ft,ot),contextClick:$e(Ft,ot)})}function Ze(ot,Ft){return Ft||(Ft="dash"),lt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ot,margin:1,background:"transparent",mouseEnter:(Rt,St)=>St.background="dodgerblue",mouseLeave:(Rt,St)=>St.background="transparent",click:$e(Ft,ot),contextClick:$e(Ft,ot)})}function Wt(){return[lt("ContextMenuButton",lt(de.s_,"Horizontal",rt(1),rt(2),rt(3),rt(4))),lt("ContextMenuButton",lt(de.s_,"Horizontal",Ze(null),Ze([2,4]),Ze([4,4])))]}function $t(ot,Ft){return Ft||(Ft="figure"),lt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ot,margin:1,background:"transparent",mouseEnter:(Rt,St)=>St.fill="dodgerblue",mouseLeave:(Rt,St)=>St.fill="lightgray",click:$e(Ft,ot),contextClick:$e(Ft,ot)})}Pe.current.nodeTemplate.contextMenu=lt("ContextMenu",lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Rectangle"),$t("RoundedRectangle"),$t("Ellipse"),$t("Diamond"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Parallelogram2"),$t("ManualOperation"),$t("Procedure"),$t("Cylinder1"))),lt("ContextMenuButton",lt(de.s_,"Horizontal",$t("Terminator"),$t("CreateRequest"),$t("Document"),$t("TriangleDown"))),st(),Je(),Wt()),Pe.current.groupTemplate=lt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ot,Ft)=>{var Rt=Ft.addMembers(Ft.diagram.selection,!0);Rt||Ft.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),lt(de.s_,"Auto",{name:"BODY"},lt(de.bn,{parameter1:10,fill:dn.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")),lt(de.Vm,{background:"transparent",margin:20})),lt(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=lt(de.uz,"Spot",lt(de.s_,"Auto",lt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),lt(de.Vm,{margin:1.5})),De({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),Pe.current.groupTemplate.contextMenu=lt("ContextMenu",st(),Je(),Wt()),Pe.current.linkTemplate=lt(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",ot=>ot>=1?10:0),new de.KX("toShortLength","dir",ot=>ot>=1?10:0),new de.KX("points").makeTwoWay(),lt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),lt(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",ot=>ot===1)),lt(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",ot=>ot>=1),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),lt(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",ot=>ot===2),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),lt(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=lt(de.uz,lt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Xt(2)},new de.KX("pathPattern","thickness",Xt)),De({alignmentFocus:new de.z6(0,0,-6,-4)}));function Xt(ot){return lt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ot+4).toString()+" H3"})}function an(ot){var Ft="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ot===0?Ft="M0 0 M16 16 M0 8 L16 8":ot===2&&(Ft="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),lt(de.bn,{geometryString:Ft,margin:2,background:"transparent",mouseEnter:(Rt,St)=>St.background="dodgerblue",mouseLeave:(Rt,St)=>St.background="transparent",click:$e("dir",ot),contextClick:$e("dir",ot)})}function sn(ot){var Ft=(Rt,St)=>{Rt.handled=!0,Rt.diagram.model.commit(cn=>{var _t=St.part.adornedPart;cn.set(_t.data,ot?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(ot?_t.toNode:_t.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Rt,St)=>St.background="dodgerblue",mouseLeave:(Rt,St)=>St.background="transparent",click:Ft,contextClick:Ft})}function fn(ot,Ft){var Rt=0,St=de.z6.RightSide;ot.equals(de.z6.Top)?(Rt=270,St=de.z6.TopSide):ot.equals(de.z6.Left)?(Rt=180,St=de.z6.LeftSide):ot.equals(de.z6.Bottom)&&(Rt=90,St=de.z6.BottomSide),Ft||(Rt-=180);var cn=(_t,vn)=>{_t.handled=!0,_t.diagram.model.commit($n=>{var Nn=vn.part.adornedPart;$n.set(Nn.data,Ft?"toSpot":"fromSpot",de.z6.stringify(St)),(Ft?Nn.toNode:Nn.fromNode).invalidateConnectedLinks()})};return lt(de.bn,{alignment:ot,alignmentFocus:ot.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Rt,background:"transparent",mouseEnter:(_t,vn)=>vn.background="dodgerblue",mouseLeave:(_t,vn)=>vn.background="transparent",click:cn,contextClick:cn})}Pe.current.linkTemplate.contextMenu=lt("ContextMenu",Je(),Wt(),lt("ContextMenuButton",lt(de.s_,"Horizontal",an(0),an(1),an(2))),lt("ContextMenuButton",lt(de.s_,"Horizontal",lt(de.s_,"Spot",sn(!1),fn(de.z6.Top,!1),fn(de.z6.Left,!1),fn(de.z6.Right,!1),fn(de.z6.Bottom,!1)),lt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},sn(!0),fn(de.z6.Top,!0),fn(de.z6.Left,!0),fn(de.z6.Right,!0),fn(de.z6.Bottom,!0)))));const Tn=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var et=["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 _n(ot){return console.log("shapeName:",ot),et.indexOf(ot)>=0}var On=new de.YI(Et.current,{maxSelectionCount:1,linkTemplate:lt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:lt(de.uz,"Link",{locationSpot:de.z6.Center},lt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),lt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),lt(de.bn,{isPanelMain:!0,strokeWidth:2}),lt(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(ot=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ot.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Pe.current.addDiagramListener("TextEdited",function(ot){var Ft;const Rt=ot.subject.part;var St=(Ft=document.activeElement)==null?void 0:Ft.value;typeof St=="string"&&St.trim()===""&&Pe.current.model.commit(function(cn){cn.set(Rt.data,"text","\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}),On.nodeTemplate=lt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),lt(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")),lt(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=lt(de.s_,"Grid",lt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),lt(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 Hn=()=>ye(this,null,function*(){var lt=Pe.current.makeImage();const dn=yield(0,Ee.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:lt.src}});we({src:dn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{Bn()},500),ln(en+1),()=>{Pe.current=null}),[]),ve.createElement("div",{ref:Sn,className:Nt.current?`${be.maxH60} body-overflow-initial`:"body-overflow-initial"},ve.createElement(Be.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!en,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ve.createElement(qe.Z,null,ve.createElement(mt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ve.createElement(mt.Z,{onClick:()=>{var lt,dn,Se=Pe.current.selection.first();if(Nt.current=!Nt.current,document.activeElement&&Se){let De=(dn=(lt=document.activeElement)==null?void 0:lt.value)==null?void 0:dn.trim();typeof De=="string"&&Pe.current.model.commit(function($e){$e.set(Se.data,"text",De||"\u672A\u547D\u540D"),Pe.current.commandHandler.stopCommand()},"increment")}ln(en+1)}},ve.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:fe},ve.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:be.flowChartWrp},ve.createElement("div",{style:{display:"flex",height:"100%"}},ve.createElement("div",{style:{width:"300px",height:"100%"}},ve.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ve.createElement("div",{style:{height:"calc(100% - 50px)"},className:be.myPaletteDiv,ref:Et})),ve.createElement("div",{style:{flex:1,position:"relative"}},ve.createElement("div",{ref:dt,style:{height:"80vh"}}))),ve.createElement("div",{className:"tr"},ve.createElement(Ge.ZP,{size:"large",onClick:Hn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Xe=Fe,ut=oe(78045),Pt=oe(31795);const Lt=ut.ZP.Group,Ot={margin:"0 8px"};var jt=({callback:fe,onCancel:we})=>{function Pe(dt){fe(dt)}return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Pe},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:Ot},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:Ot},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(Pt.Z,null)),ne.createElement("span",{style:Ot},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(Pt.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:Ot},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(Lt,null,ne.createElement(ut.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(ut.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(ut.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(ut.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ge.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},wt=oe(47897),bt=oe(61016),Mt=oe.n(bt),Vt=(0,ne.forwardRef)(({use3d:fe,width:we,height:Pe,callback:dt,showSaveButton:Et},Nt)=>{const Sn=(0,ne.useRef)(),en=(0,ne.useRef)(),[ln,Bn]=(0,ne.useState)(!1),Hn=(0,ne.useRef)({id:Sn,appName:"graphing",width:we||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,ne.useEffect)(()=>{en.current=new(Mt())(Hn.current,!0),window.onload=function(){en.current.inject("applet_container")}},[]);const lt=()=>{var dn=window.ggbApplet.getPNGBase64(1,!0,72);return dt&&dt(dn),dn};return(0,ne.useEffect)(()=>{Hn.current.appName=ln?"3D":"graphing",en.current.inject("applet_container")},[ln]),(0,ne.useEffect)(()=>{Bn(fe)},[fe]),(0,ne.useImperativeHandle)(Nt,()=>({getImgData:lt})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Sn}),ne.createElement(qe.Z,{align:"middle"},ne.createElement(mt.Z,{flex:1},ne.createElement(wt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ln,onChange:dn=>Bn(dn)})),ne.createElement(mt.Z,null,ne.createElement(Ge.ZP,{size:"large",onClick:lt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),tn=oe(36527),pe=oe(25934),Oe=oe(2453);const Ye="link",ct="upload-image",ht="add-flowchart",Tt="draw-image",Dt="add-flowchart",Bt="code-block",It="add-table",Jt="------------",Kt={default:Jt,left:`:${Jt}`,center:`:${Jt}:`,right:`${Jt}:`};var gn=oe(99914),rn=(fe,we,Pe)=>new Promise((dt,Et)=>{var Nt=ln=>{try{en(Pe.next(ln))}catch(Bn){Et(Bn)}},Sn=ln=>{try{en(Pe.throw(ln))}catch(Bn){Et(Bn)}},en=ln=>ln.done?dt(ln.value):Promise.resolve(ln.value).then(Nt,Sn);en((Pe=Pe.apply(fe,we)).next())});function hn(){}let bn=0;const on=1e4,nn="\u2581",un="@\u2581\u2581@",pn="@\u2581@",wn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,mn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function xn(fe){return/^\d+$/.test(fe)?`${fe}px`:fe}const Cn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",An={[Cn+"-B"]:"bold",[Cn+"-I"]:"italic"},Un={[Ye]:"\u6DFB\u52A0\u94FE\u63A5",[Bt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ct]:"\u6DFB\u52A0\u56FE\u7247",[Tt]:"\u6DFB\u52A0\u753B\u56FE",[ht]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[It]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var kn=({defaultValue:fe="",onChange:we,width:Pe="100%",height:dt=400,miniToolbar:Et=!1,isFocus:Nt=!1,watch:Sn,insertTemp:en,mode:ln="markdown",id:Bn="markdown-editor-id",showResizeBar:Hn=!1,noStorage:lt=!1,showNullButton:dn=!1,showNullProgramButton:Se=!1,hidetoolBar:De=!1,fullScreen:$e=!1,onBlur:Re,onCMBeforeChange:st,onFullScreen:Je,className:rt="",disablePaste:Ze=!1,disabled:Wt=!1,disabledFill:$t=!1,placeholder:Xt="",values:an="",extraUse:sn,isShowTool:fn=!0,disableImageUpload:Tn=!1})=>{const[et,_n]=(0,ne.useState)(null),[On,ot]=(0,ne.useState)(fe),[Ft,Rt]=(0,ne.useState)(Sn),[St,cn]=(0,ne.useState)($e),[_t,vn]=(0,ne.useState)(""),[$n,Nn]=(0,ne.useState)(0),[ea,ta]=(0,ne.useState)(dt),[ua,na]=(0,ne.useState)(!1),Vn=(0,ne.useRef)((0,pe.Z)()),Mn=(0,ne.useRef)(!1),da=(0,ne.useRef)(),[la,sa]=(0,ne.useState)(0),[aa,Xn]=(0,ne.useState)(0),Yn=(0,ne.useRef)(),Qt=(0,ne.useRef)(),Gn=(0,ne.useRef)(),Wn=(0,ne.useRef)(),Zn=()=>rn(void 0,null,function*(){var At;const vt=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:Vn.current}});(At=vt==null?void 0:vt.attachments)!=null&&At.length&&(console.log("cm:",et,Yn),vt.attachments.map(Ct=>{Ct.content_type.indexOf("image")>-1?et.replaceSelection(``):Ct.content_type.indexOf("video")>-1?et.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Ct.content_type.indexOf("pdf")>-1?et.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type}&disposition=inline" target="_blank">${Ct.name}</a>`):et.replaceSelection(`[${Ct.name}](${ENV.API_SERVER}/api/attachments/${Ct.id}?type=${Ct.content_type})`)}))});(0,ne.useEffect)(()=>{const At=window.scrollY||window.pageYOffset;ot(an),et==null||et.setValue(an),window.scrollTo(0,At)},[an]),(0,ne.useEffect)(()=>{Je==null||Je(St)},[St]),(0,ne.useEffect)(()=>{if(Yn.current){let At=function(Ct,zt){var Pn,Dn;if(Ze){zt.preventDefault();return}const In=zt.clipboardData;if(In){const Zt=In.types.toString(),qt=In.items;if(Zt==="Files"||In.types.indexOf("Files")>-1){if(zt.preventDefault(),ln=="stex")return;try{let Ln=qt[1];((Pn=qt[0])==null?void 0:Pn.kind)==="file"&&(Ln=qt[0]);const Ut=Ln.getAsFile(),En=Ut.name.split(".").pop();if(Tn&&((Dn=Ut==null?void 0:Ut.type)==null?void 0:Dn.indexOf("image"))>-1)return!0;(0,he.I)(Ut,Fn=>{var Qn,ia,qn;Fn.id?((Qn=Ut==null?void 0:Ut.type)==null?void 0:Qn.indexOf("image"))>-1?vt.replaceSelection(`<img width="100%" src="/api/attachments/${Fn.id}?type=${Fn.content_type})" alt="" />`):((ia=Ut==null?void 0:Ut.type)==null?void 0:ia.indexOf("video"))>-1?vt.replaceSelection(`<video width="100%" controls src="/api/attachments/${Fn.id}"></video>`):((qn=Ut==null?void 0:Ut.type)==null?void 0:qn.indexOf("pdf"))>-1?vt.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=${Ut.type}&disposition=inline" target="_blank">${Ut.name}</a>`):mn.includes(En)?vt.replaceSelection(`<a href="/api/attachments/${Fn.id}?type=office&disposition=inline" target="_blank">${Ut.name}</a>`):vt.replaceSelection(`[${Ut.name}](/api/attachments/${Fn.id}?type=${Fn.content_type})`):(Fn==null?void 0:Fn.status)===401&&(Oe.ZP.warning((Fn==null?void 0:Fn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(Ln){Oe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const vt=_e().fromTextArea(Yn.current,{mode:ln,lineNumbers:!Et,lineWrapping:!0,value:fe,autoCloseTags:!Se,autoCloseBrackets:!0});return vt.on("keyup",function(Ct,zt){zt.keyCode===8&&(Ct.getValue()==""?vt.setOption("placeholder",Xt):vt.setOption("placeholder",null))}),vt.on("keydown",function(Ct,zt){if(zt.keyCode===8){var Pn=Jn(Ct);Pn&&zt.preventDefault()}}),Nt&&vt.focus(),vt.on("paste",At),vt.on("dragleave",function(Ct,zt){Qt.current.classList.remove("mouse-hover-md")}),Wt&&vt.on("beforeChange",function(Ct,zt){(zt.origin==="paste"||zt.origin==="+input")&&zt.cancel()}),_n(vt),()=>{vt.off("paste",At)}}},[]);const oa=(0,ne.useCallback)(()=>{if(Qt.current)try{}catch(At){console.log(At,"---- to set md editor body height")}},[ea,Qt,St]);(0,ne.useEffect)(()=>{function At(){let vt=new ze.Z(Ct=>{for(let zt of Ct)(zt.target.offsetHeight>0||zt.target.offsetWidth>0)&&(oa(),et.setSize("100%","100%"),et.refresh())});return vt.observe(Yn.current.parentElement),vt}if(et){const vt=At();return()=>{var Ct,zt;(Ct=Yn.current)!=null&&Ct.parentElement&&vt.unobserve((zt=Yn.current)==null?void 0:zt.parentElement)}}},[et,oa]),(0,ne.useEffect)(()=>{if(et){let At=[];for(const[vt,Ct]of Object.entries(An)){let zt={[vt]:()=>{ca(Ct)}};At.push(zt),et.addKeyMap(zt)}return da.current=setInterval(()=>{Mn.current&&Zn()},4e3),()=>{clearInterval(da.current);for(let vt of At)et.removeKeyMap(vt)}}},[et]),(0,ne.useEffect)(()=>{$e!==St&&cn($e)},[$e]),(0,gn.Z)(()=>{if(!lt&&$n>0){let At=new Date().getTime(),vt=window.sessionStorage.getItem(Bn);At>=$n+on&&(!vt||vt!==On)&&(window.sessionStorage.setItem(Bn,On),na(!0))}},on),(0,ne.useEffect)(()=>{Rt(Sn)},[et,Sn]),(0,ne.useEffect)(()=>{et&&Nt&&et.focus()},[et,Nt]),(0,ne.useEffect)(()=>{if(Ft&&et){let At=function(Ct){let zt=Ct.target;if(Wn.current){let Pn=zt.scrollTop/zt.scrollHeight;Wn.current.scrollTop=Wn.current.scrollHeight*Pn}};const vt=et.getScrollerElement();return vt.addEventListener("scroll",At),()=>{vt.removeEventListener("scroll",At)}}},[et,Ft]),(0,ne.useEffect)(()=>{if(et&&st){let At=function(vt,Ct){st(vt,Ct)};return et.on("beforeChange",At),()=>{et.off("beforeChange",At)}}},[et,st]),(0,ne.useEffect)(()=>{if(et&&Re){let At=function(){Re(et.getValue())};return et.on("blur",At),()=>{et.off("blur",At)}}},[et,Re]);function Jn(At,vt){var Ct=At.getDoc(),zt=Ct.getCursor(),Pn=Ct.getLine(zt.line),Dn=Pn.charAt(zt.ch-1),In=Pn.lastIndexOf("@\u2581@",zt.ch),Zt=Pn.lastIndexOf("@\u2581\u2581@",zt.ch),qt=In>Zt?In:Zt,Ln=In>Zt?3:4;if(un.indexOf(Dn)===-1)return null;if(console.log("change1:",vt,At,Pn,zt,qt,In,Zt,Dn),qt>=0&&zt.ch-qt<5){var Ut=qt+Ln;return Ct.replaceRange("",{line:zt.line,ch:qt},{line:zt.line,ch:Ut}),{line:zt.line,ch:Ut}}return null}(0,ne.useEffect)(()=>{if(et){let At=function(vt,Ct){const zt=vt.getValue();ot(zt),Nn(new Date().getTime()),vt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Se?we(zt,Pa(zt)):we(zt))};return et.on("change",At),()=>{et.off("change",At)}}},[et,we]),(0,ne.useEffect)(()=>{if(et)if(fe==null)et.setValue(""),ot("");else{const At=window.scrollY||window.pageYOffset;fe!==et.getValue()&&(et.setValue(fe),ot(fe),et.setCursor(Wt?1:et.lineCount(),0),window.scrollTo(0,At))}},[et,fe]);const ca=(0,ne.useCallback)(At=>{const vt=et.getCursor(),Ct=et.getSelection();let zt=Ct.split(`
|
|
`);switch(At){case"bold":return et.replaceSelection("**"+Ct+"**"),Ct===""&&et.setCursor(vt.line,vt.ch+2),et.focus();case"italic":return et.replaceSelection("*"+Ct+"*"),Ct===""&&et.setCursor(vt.line,vt.ch+1),et.focus();case"code":return et.replaceSelection("`"+Ct+"`"),Ct===""&&et.setCursor(vt.line,vt.ch+1),et.focus();case"inline-latex":return vn("inline-latex"),et.focus();case"latex":return et.replaceSelection("```latex\n"+Ct+"\n```"),et.setCursor(vt.line+1,Ct.length+1),et.focus();case"line-break":return et.replaceSelection(`<br/>
|
|
`),et.focus();case"list-ul":return Ct===""?et.replaceSelection("- "+Ct):et.replaceSelection(zt.map(Pn=>Pn===""?"":`- ${Pn}`).join(`
|
|
`)),et.focus();case"list-ol":return Ct===""?et.replaceSelection("1. "+Ct):et.replaceSelection(zt.map((Pn,Dn)=>Pn===""?"":`${Dn+1}. ${Pn}`).join(`
|
|
`)),et.focus();case"add-null-ch":return Ct===""&&et.setCursor(vt.line,vt.ch),et.replaceSelection(nn),et.focus();case"add-signal":return Ct===""&&et.setCursor(vt.line,vt.ch),et.replaceSelection(pn),et.focus();case"add-multiple":return Ct===""&&et.setCursor(vt.line,vt.ch),et.replaceSelection(un),et.focus();case"inster-template-1":return Ct===""&&et.setCursor(vt.line,vt.ch),et.replaceSelection(wn),et.focus();case"eraser":return et.setValue(""),et.focus();case"trigger-watch":return Rt(!Ft),et.focus();case"trigger-full-screen":return cn(!St),et.focus();case Ye:vn(Ye);return;case Bt:vn(Bt);return;case ct:vn(ct);return;case Tt:vn(Tt);return;case"maths-latex":vn("maths-latex");return;case ht:vn(ht);return;case It:vn(It);return;default:throw new Error}},[et,Ft,St]),Kn=(0,ne.useCallback)((At,vt)=>{var Ct,zt,Pn,Dn,In,Zt;if(vn(""),!(Tn&&_t==ct))switch(_t){case Ye:const{title:Fn,link:Qn}=At;return et.replaceSelection(`[${Fn}](${Qn})`),et.focus();case Bt:const{language:ia,content:qn}=At;return et.replaceSelection(["```"+ia,qn,"```"].join(`
|
|
`)),et.focus();case"maths-latex":for(var qt=atob(At),Ln=new Uint8Array(qt.length),Ut=0;Ut<qt.length;Ut++)Ln[Ut]=qt.charCodeAt(Ut);var En=new Blob([Ln],{type:"image/png"});(0,he.I)(En,ga=>{ga.id?et.replaceSelection(``):(ga==null?void 0:ga.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":et.replaceSelection("`$$"+At+"$$`");break;case ct:case Tt:case Dt:const{src:ma,alt:wa}=At,jn=vt,Ba=(Pn=(zt=(Ct=jn==null?void 0:jn.name)==null?void 0:Ct.split("."))==null?void 0:zt.pop)==null?void 0:Pn.call(zt);return((Dn=jn==null?void 0:jn.type)==null?void 0:Dn.indexOf("image"))>-1||!(jn!=null&&jn.type)?jn.align||jn.width?et.replaceSelection(`<p style="text-align:${jn.align||"initial"}"><img width="${jn.width?jn.width+"%":"initial"}" src="${ma}" alt="${wa||""}" /></p>`):et.replaceSelection(`<img width="100%" src="${ma}" alt="${wa||""}" />`):((In=jn==null?void 0:jn.type)==null?void 0:In.indexOf("video"))>-1?et.replaceSelection(`<video width="100%" controls src="${ma}"></video>`):((Zt=jn==null?void 0:jn.type)==null?void 0:Zt.indexOf("pdf"))>-1?et.replaceSelection(`<a href="${ma}?type=${jn.type}&disposition=inline" target="_blank">${jn.name}</a>`):mn.includes(Ba)?et.replaceSelection(`<a href="${ma}?type=office&disposition=inline" target="_blank">${jn.name}</a>`):et.replaceSelection(`[${jn.name}](${ma})`),et.focus();case It:const{row:$a,col:Fa,align:Oa}=At;let va=`
|
|
`;for(let ga=0;ga<$a;ga++){let Ca=[],Ea=[];for(let xa=0;xa<Fa;xa++)ga===1&&Ea.push(Kt[Oa]),Ca.push(" ");ga===1&&(va+=`| ${Ea.join(" | ")} |
|
|
`),va+=`| ${Ca.join(Fa===1?"":" | ")} |
|
|
`}return et.replaceSelection(va+`
|
|
`),et.focus();default:throw new Error}},[et,_t,Tn]),zn=(0,ne.useMemo)(()=>{switch(_t){case Ye:return ne.createElement(at,{callback:Kn,onCancel:yn});case Bt:return ne.createElement(xt.Z,{callback:Kn,onCancel:yn});case ct:return ne.createElement(he.Z,{callback:Kn,onCancel:yn});case ht:return ne.createElement(Xe,{callback:Kn,onCancel:yn});case It:return ne.createElement(jt,{callback:Kn,onCancel:yn});case"maths-latex":return ne.createElement(Vt,{showSaveButton:!0,callback:Kn});case"inline-latex":return ne.createElement(tn.Z,{showSaveButton:!0,callback:Kn});default:return null}},[_t]);function yn(){vn("")}(0,ne.useEffect)(()=>{if(Gn.current){let At=function(In){Pn=!0,Dn=In.pageY},vt=function(){Pn=!1},Ct=function(In){if(Pn){let Zt=In.pageY-Dn;Zt<0&&(Zt=0),Zt>300&&(Zt=300);let qt=dt+Zt+"px";ta(qt)}},zt=Gn.current,Pn=!1,Dn=0;return zt.addEventListener("mousedown",At),document.addEventListener("mousemove",Ct),document.addEventListener("mouseup",vt),()=>{zt.removeEventListener("mousedown",At),document.removeEventListener("mousemove",Ct),document.removeEventListener("mouseup",vt)}}},[et,Gn]),(0,ne.useEffect)(()=>{ta(dt)},[dt]);const ra=xn(Pe),Sa=xn(ea),fa={width:ra,height:Sa},ya=(0,ne.useMemo)(()=>{if($n){let At=new Date($n),vt=At.getHours(),Ct=At.getMinutes(),zt=At.getSeconds();return vt=vt<10?"0"+vt:vt,Ct=Ct<10?"0"+Ct:Ct,zt=zt<10?"0"+zt:zt,`${vt}:${Ct}:${zt}`}return 0},[$n]),Pa=At=>{const vt=[];if(Se){let Ct=-1;At=At.replace(/(@▁▁@|@▁@)/g,function(zt,Pn,Dn){vt.push({multiLine:zt!==pn})})}return vt};function La(){window.sessionStorage.removeItem(Bn),na(!1),Nn(0)}function ba(){na(!1),Nn(0),et.setValue(window.sessionStorage.getItem(Bn))}(0,ne.useEffect)(()=>{Un[_t]&&_t!==Tt&&_t!==ht&&setTimeout(()=>{const At=document.getElementsByClassName("markdown-popup-form")[0],vt=window.innerWidth/2-At.offsetWidth/2,Ct=window.innerHeight/2-At.offsetHeight/2;sa(vt),Xn(Ct)},0)},[_t]);const ha=At=>{At.preventDefault();const vt=At.clientX-la,Ct=At.clientY-aa;document.body.onmousemove=zt=>{let Pn=zt.clientX-vt,Dn=zt.clientY-Ct;const In=document.getElementsByClassName("markdown-popup-form")[0],Zt=window.innerWidth-In.offsetWidth,qt=window.innerHeight-In.offsetHeight;Pn=Math.max(0,Math.min(Pn,Zt)),Dn=Math.max(0,Math.min(Dn,qt)),pa(zt.clientX,zt.clientY,vt,Ct)&&(sa(Pn),Xn(Dn))},document.body.onmouseup=function(){document.body.onmousemove=null}},pa=(At,vt,Ct,zt)=>{const Pn=document.body.clientHeight,Dn=document.body.clientWidth;return At<20&&Ct>At||At>Dn-20&&Ct<At||vt<20&&zt>vt||vt>Pn-20&&zt<vt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:Qt},ne.createElement("div",{className:`markdown-editor-container ${rt} ${Ft?"on-preview":""} ${Et?"mini":""} ${St?"full-screen":""}`,style:fa},fn&&ne.createElement(ge,{insertTemp:en,watch:Ft,fullScreen:St,showNullButton:dn,showNullProgramButton:Se,onActionCallback:ca,hidetoolBar:De,extraUse:sn}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:Yn,placeholder:Xt})),Ft?ne.createElement("div",{ref:Wn,className:"preview-container"},ln==="stex"&&ne.createElement(ke,{value:On}),ln!=="stex"&&ne.createElement(Ue.Z,{disabledFill:$t,showProgramFill:Se,value:On})):null))),Hn?ne.createElement("a",{ref:Gn,className:"editor-resize"}):null,_t===Tt&&ne.createElement(Qe,{callback:Kn,onCancel:yn}),_t===ht&&ne.createElement(Xe,{callback:Kn,onCancel:yn}),ne.createElement(me.Z,null,Un[_t]&&_t!==Tt&&_t!==ht?ne.createElement(Be.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:la,top:aa},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:ha},Un[_t]),open:!0,onCancel:yn,footer:null,destroyOnClose:!0,width:_t===ht?"1200px":null,height:_t===ht?"80vh":null,className:"markdown-popup-form"},zn):null))}},70859:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return ie},I:function(){return me}});var ne=oe(22150),ce=oe(2453),_e=oe(69677),ze=oe(93421),ue=oe(31795),Ce=oe(78045),le=oe(71577),He=oe(15476),xe=oe(67294),Te=oe(52262),Ue=oe(67294),ke=Object.defineProperty,je=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(se,Ne,Ge)=>Ne in se?ke(se,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):se[Ne]=Ge,x=(se,Ne)=>{for(var Ge in Ne||(Ne={}))y.call(Ne,Ge)&&b(se,Ge,Ne[Ge]);if(a)for(var Ge of a(Ne))E.call(Ne,Ge)&&b(se,Ge,Ne[Ge]);return se},z=(se,Ne)=>je(se,ae(Ne));const{useForm:ee}=ne.default,te={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:se,onCancel:Ne})=>{const[Ge]=ee();let pt=(0,xe.useRef)();function Gt(Ie){pt.current.width=Ge.getFieldValue("width"),pt.current.align=Ge.getFieldValue("align"),se(Ie,pt.current)}function kt(Ie,Ae){if(Ie.status===-1){ce.ZP.error(Ie.message);return}Ge.setFieldsValue({src:`/api/attachments/${Ie.id}`,type:Ae.type})}function Le(Ie){let Ae=Ie.target.files[0];pt.current=Ae,me(Ae,kt)}return Ue.createElement(ne.default,z(x({form:Ge},re),{className:"upload-image-panel",onFinish:Gt,style:{width:470,overflow:"hidden"}}),Ue.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ue.createElement("div",{className:"flex-container"},Ue.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ue.createElement(_e.default,{style:te})),Ue.createElement(ge,{onFileChange:Le}))),Ue.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ue.createElement(_e.default,{style:{width:264}})),Ue.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ue.createElement(ze.Z,null,Ue.createElement(ne.default.Item,{name:"width",style:{margin:0}},Ue.createElement(ue.Z,{style:{width:264}})),Ue.createElement("span",{className:"ml8"},"%"))),Ue.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ue.createElement(Ce.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"}]})),Ue.createElement("aside",null,Ue.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ue.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ue.createElement(le.ZP,{type:"default",onClick:Ne},"\u53D6\u6D88"))))};function ge({onFileChange:se}){return Ue.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ue.createElement("input",{type:"file",onChange:se}))}function me(se,Ne){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Te.bg)())throw ce.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ge=new FormData;Ge.append("editormd-image-file",se),Ge.append("file_param_name","editormd-image-file"),Ge.append("byxhr","true");var pt=new window.XMLHttpRequest;pt.withCredentials=!0,pt.addEventListener("load",function(Gt){Ne(JSON.parse(Gt.target.responseText),se)},!1),pt.addEventListener("error",function(Gt){console.error(Gt)},!1),pt.open("POST",`${He.KI}/api/attachments.json`),pt.send(Ge)}},76621:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return _e}});var ne=oe(67294),ce=oe(73935);class _e extends ne.Component{constructor(ue){super(ue);const Ce=window.document;this.node=Ce.createElement("div"),Ce.body.appendChild(this.node)}render(){const{children:ue}=this.props;return(0,ce.createPortal)(ue,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},99914:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return ce}});var ne=oe(67294);function ce(_e,ze){const ue=(0,ne.useRef)();(0,ne.useEffect)(()=>{ue.current=_e}),(0,ne.useEffect)(()=>{function Ce(){ue.current()}if(ze!==null){let le=setInterval(Ce,ze);return()=>clearInterval(le)}},[ze])}},61712:function(Me,it,oe){"use strict";oe.r(it),oe.d(it,{default:function(){return ie}});var ne=oe(67294),ce=oe(35973),_e=oe(22150),ze=oe(85673),ue=oe(69677),Ce=oe(71577),le=oe(35567),He=oe(86763),xe={bg:"bg___ZTexa",flexRow:"flexRow___VO4ro",flexJustifyCenter:"flexJustifyCenter___OXFkk",flexAlignEnd:"flexAlignEnd___d6zIM",flexAlignCenter:"flexAlignCenter___YzqD8",flexColumn:"flexColumn___RKoTE",formWrap:"formWrap___BxAFG",titleWrap:"titleWrap___tvKuf",fieldWrap:"fieldWrap___eigdN",mdWrap:"mdWrap___cmz87",backgroundFa:"backgroundFa___b57J2",button:"button___VVH5U"},Te=oe(65866),Ue=oe(10191),ke=oe(33170),je=Object.defineProperty,ae=Object.defineProperties,a=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable,x=(ge,me,se)=>me in ge?je(ge,me,{enumerable:!0,configurable:!0,writable:!0,value:se}):ge[me]=se,z=(ge,me)=>{for(var se in me||(me={}))E.call(me,se)&&x(ge,se,me[se]);if(y)for(var se of y(me))b.call(me,se)&&x(ge,se,me[se]);return ge},ee=(ge,me)=>ae(ge,a(me)),te=(ge,me,se)=>new Promise((Ne,Ge)=>{var pt=Le=>{try{kt(se.next(Le))}catch(Ie){Ge(Ie)}},Gt=Le=>{try{kt(se.throw(Le))}catch(Ie){Ge(Ie)}},kt=Le=>Le.done?Ne(Le.value):Promise.resolve(Le.value).then(pt,Gt);kt((se=se.apply(ge,me)).next())});const re=({shixunHomeworks:ge,newCourse:me,globalSetting:se,user:Ne,loading:Ge,dispatch:pt})=>{var Gt,kt,Le;const Ie=(0,ce.useParams)(),[Ae]=_e.default.useForm(),[nt,gt]=(0,ne.useState)({}),[We,Ke]=(0,ne.useState)(!1);let[at,xt]=(0,ne.useState)({});const he=(0,ne.useRef)(),{commonHomeWorkEditDefaultData:Be}=ge;(0,ne.useEffect)(()=>{qe()},[Ie.categoryId]);const qe=()=>te(void 0,null,function*(){const Qe=yield pt({type:"shixunHomeworks/editCommonHomeWorkDefaultData",payload:ee(z({},Ie),{type:1})});if(Qe){const de={name:Qe.name,description:Qe.description,reference_answer:Qe.reference_answer,attachment_ids:(0,Te.z)(Qe.attachments),reference_attachment_ids:(0,Te.z)(Qe.ref_attachments)};Ae.setFieldsValue(z({},de)),gt(z({},de)),Ke(!0)}});function yt(Qe){return te(this,null,function*(){if(!(at!=null&&at.ec_point_ids))return;let de=yield(0,ke.ZP)(`/api/ec_courses/${at==null?void 0:at.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:z({homework_common_id:Qe},at)})})}const Ve=Qe=>te(void 0,null,function*(){var de,tt;const ft=z({},nt);ft.attachment_ids&&(ft.attachment_ids=(de=ft==null?void 0:ft.attachment_ids)==null?void 0:de.map(mt=>{var Ee;return(Ee=mt.response)==null?void 0:Ee.id})),ft.reference_attachment_ids&&(ft.reference_attachment_ids=(tt=ft==null?void 0:ft.reference_attachment_ids)==null?void 0:tt.map(mt=>{var Ee;return(Ee=mt.response)==null?void 0:Ee.id}));const Ht=yield(0,He.Ar)(ee(z(z({},Ie),ft),{base_on_project:!0,type:1}));yt(Ie.categoryId),Ht&&ce.history.push(`/classrooms/${Ie.coursesId}/common_homework/${Ie.categoryId}/detail`)});return ne.createElement("section",{className:xe.bg},Be.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},Be.category&&ne.createElement(ze.Z,{separator:">"},ne.createElement(ze.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${Ie.coursesId}/common_homework`},Be.course_name)),ne.createElement(ze.Z.Item,null,ne.createElement(ce.Link,{to:`/classrooms/${Ie.coursesId}/common_homework`},Be.category.category_name)),ne.createElement(ze.Z.Item,null,"\u7F16\u8F91")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u7F16\u8F91\u56FE\u6587\u4F5C\u4E1A"),ne.createElement(_e.default,{form:Ae,className:xe.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{gt(z({},Ae.getFieldsValue()))},onFinish:Ve},ne.createElement("div",{className:xe.fieldWrap},ne.createElement(_e.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(ue.default,{maxLength:60,suffix:`${((Gt=nt.name)==null?void 0:Gt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:xe.mdWrap},ne.createElement(_e.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ne.createElement(le.Z,{watch:!0,defaultValue:Be.description})),ne.createElement("div",null,ne.createElement(_e.default.Item,{name:"attachment_ids"},We&&ne.createElement(Te.Z,null)))),ne.createElement("div",{className:xe.mdWrap},ne.createElement(_e.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(le.Z,{defaultValue:Be.reference_answer,watch:!0})),ne.createElement("div",null,ne.createElement(_e.default.Item,{name:"reference_attachment_ids"},We&&ne.createElement(Te.Z,null))))),ne.createElement("div",{className:xe.mdWrap,style:{display:(kt=se==null?void 0:se.setting)!=null&&kt.hide_ec?"none":(Le=Ne.userInfo.course)!=null&&Le.is_openengineering?"":"none"}},ne.createElement(Ue.Z,{setitem:Qe=>xt(z({},Qe)),homework_common_id:Ie.categoryId})),ne.createElement("div",{className:xe.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(_e.default.Item,null,ne.createElement(Ce.ZP,{size:"middle",type:"primary",className:`${xe.button} mr20`,htmlType:"submit",onClick:()=>{Ae.submit()},loading:Ge["newCourse/editCourse"]||Ge["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(Ce.ZP,{size:"middle",type:"primary",ghost:!0,className:xe.button,onClick:()=>ce.history.push(`/classrooms/${Ie.coursesId}/common_homework`)},"\u53D6\u6D88")))))};var ie=(0,ce.connect)(({shixunHomeworks:ge,newCourse:me,loading:se,user:Ne,globalSetting:Ge})=>({shixunHomeworks:ge,newCourse:me,globalSetting:Ge,user:Ne,loading:se.effects}))(re)},4440:function(Me,it,oe){"use strict";oe.d(it,{$J:function(){return _e},JZ:function(){return ue},bN:function(){return le},jP:function(){return Ce},rO:function(){return ze}});var ne=oe(33170),ce=(He,xe,Te)=>new Promise((Ue,ke)=>{var je=y=>{try{a(Te.next(y))}catch(E){ke(E)}},ae=y=>{try{a(Te.throw(y))}catch(E){ke(E)}},a=y=>y.done?Ue(y.value):Promise.resolve(y.value).then(je,ae);a((Te=Te.apply(He,xe)).next())});function _e(He){return(0,ne.U2)(`libraries/${He}.json`)}function ze(He){return(0,ne.U2)("library_tags.json",He)}function ue(He){return ce(this,null,function*(){return(yield(0,ne.IV)(`attachments/${He}.json`)).status===0})}function Ce(He){return(0,ne.v_)("libraries.json",He)}function le(He,xe){return(0,ne.gz)(`libraries/${He}.json`,xe)}},57838:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return ce}});var ne=oe(67294);function ce(){const[,_e]=ne.useReducer(ze=>ze+1,0);return _e}},85673:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return kt}});var ne=oe(94184),ce=oe.n(ne),_e=oe(37419),ze=oe(1337),ue=oe(67294),Ce=oe(96159),le=oe(53124),He=oe(42922),xe=oe(35874);const Te=Le=>{let{children:Ie}=Le;const{getPrefixCls:Ae}=ue.useContext(le.E_),nt=Ae("breadcrumb");return ue.createElement("li",{className:`${nt}-separator`,"aria-hidden":"true"},Ie===""?Ie:Ie||"/")};Te.__ANT_BREADCRUMB_SEPARATOR=!0;var Ue=Te,ke=function(Le,Ie){var Ae={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ie.indexOf(nt)<0&&(Ae[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Le);gt<nt.length;gt++)Ie.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Le,nt[gt])&&(Ae[nt[gt]]=Le[nt[gt]]);return Ae};function je(Le,Ie){if(Le.title===void 0||Le.title===null)return null;const Ae=Object.keys(Ie).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${Ae})`,"g"),(nt,gt)=>Ie[gt]||nt)}function ae(Le,Ie,Ae,nt){if(Ae==null)return null;const{className:gt,onClick:We}=Ie,Ke=ke(Ie,["className","onClick"]),at=Object.assign(Object.assign({},(0,ze.Z)(Ke,{data:!0,aria:!0})),{onClick:We});return nt!==void 0?ue.createElement("a",Object.assign({},at,{className:ce()(`${Le}-link`,gt),href:nt}),Ae):ue.createElement("span",Object.assign({},at,{className:ce()(`${Le}-link`,gt)}),Ae)}function a(Le,Ie){return(nt,gt,We,Ke,at)=>{if(Ie)return Ie(nt,gt,We,Ke);const xt=je(nt,gt);return ae(Le,nt,xt,at)}}var y=function(Le,Ie){var Ae={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ie.indexOf(nt)<0&&(Ae[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Le);gt<nt.length;gt++)Ie.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Le,nt[gt])&&(Ae[nt[gt]]=Le[nt[gt]]);return Ae};const E=Le=>{const{prefixCls:Ie,separator:Ae="/",children:nt,menu:gt,overlay:We,dropdownProps:Ke,href:at}=Le,he=(Be=>{if(gt||We){const qe=Object.assign({},Ke);if(gt){const yt=gt||{},{items:Ve}=yt,Qe=y(yt,["items"]);qe.menu=Object.assign(Object.assign({},Qe),{items:Ve==null?void 0:Ve.map((de,tt)=>{var{key:ft,title:Ht,label:mt,path:Ee}=de,be=y(de,["key","title","label","path"]);let ve=mt!=null?mt:Ht;return Ee&&(ve=ue.createElement("a",{href:`${at}${Ee}`},ve)),Object.assign(Object.assign({},be),{key:ft!=null?ft:tt,label:ve})})})}else We&&(qe.overlay=We);return ue.createElement(xe.Z,Object.assign({placement:"bottom"},qe),ue.createElement("span",{className:`${Ie}-overlay-link`},Be,ue.createElement(He.Z,null)))}return Be})(nt);return he!=null?ue.createElement(ue.Fragment,null,ue.createElement("li",null,he),Ae&&ue.createElement(Ue,null,Ae)):null},b=Le=>{const{prefixCls:Ie,children:Ae,href:nt}=Le,gt=y(Le,["prefixCls","children","href"]),{getPrefixCls:We}=ue.useContext(le.E_),Ke=We("breadcrumb",Ie);return ue.createElement(E,Object.assign({},gt,{prefixCls:Ke}),ae(Ke,gt,Ae,nt))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(14747),ee=oe(67968),te=oe(45503);const re=Le=>{const{componentCls:Ie,iconCls:Ae}=Le;return{[Ie]:Object.assign(Object.assign({},(0,z.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[Ae]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,z.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ie}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ie}-link`]:{[`
|
|
> ${Ae} + span,
|
|
> ${Ae} + a
|
|
`]:{marginInlineStart:Le.marginXXS}},[`${Ie}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${Ae}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",Le=>{const Ie=(0,te.TS)(Le,{});return[re(Ie)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),ge=function(Le,Ie){var Ae={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ie.indexOf(nt)<0&&(Ae[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Le);gt<nt.length;gt++)Ie.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Le,nt[gt])&&(Ae[nt[gt]]=Le[nt[gt]]);return Ae};function me(Le){const{breadcrumbName:Ie,children:Ae}=Le,nt=ge(Le,["breadcrumbName","children"]),gt=Object.assign({title:Ie},nt);return Ae&&(gt.menu={items:Ae.map(We=>{var{breadcrumbName:Ke}=We,at=ge(We,["breadcrumbName"]);return Object.assign(Object.assign({},at),{title:Ke})})}),gt}function se(Le,Ie){return(0,ue.useMemo)(()=>Le||(Ie?Ie.map(me):null),[Le,Ie])}var Ne=function(Le,Ie){var Ae={};for(var nt in Le)Object.prototype.hasOwnProperty.call(Le,nt)&&Ie.indexOf(nt)<0&&(Ae[nt]=Le[nt]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,nt=Object.getOwnPropertySymbols(Le);gt<nt.length;gt++)Ie.indexOf(nt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Le,nt[gt])&&(Ae[nt[gt]]=Le[nt[gt]]);return Ae};const Ge=(Le,Ie)=>{if(Ie===void 0)return Ie;let Ae=(Ie||"").replace(/^\//,"");return Object.keys(Le).forEach(nt=>{Ae=Ae.replace(`:${nt}`,Le[nt])}),Ae},pt=Le=>{const{prefixCls:Ie,separator:Ae="/",style:nt,className:gt,rootClassName:We,routes:Ke,items:at,children:xt,itemRender:he,params:Be={}}=Le,qe=Ne(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:yt,direction:Ve,breadcrumb:Qe}=ue.useContext(le.E_);let de;const tt=yt("breadcrumb",Ie),[ft,Ht]=ie(tt),mt=se(at,Ke),Ee=a(tt,he);if(mt&&mt.length>0){const ye=[],Fe=at||Ke;de=mt.map((Xe,ut)=>{const{path:Pt,key:Lt,type:Ot,menu:jt,overlay:wt,onClick:bt,className:Mt,separator:Yt,dropdownProps:Vt}=Xe,tn=Ge(Be,Pt);tn!==void 0&&ye.push(tn);const pe=Lt!=null?Lt:ut;if(Ot==="separator")return ue.createElement(Ue,{key:pe},Yt);const Oe={},Ye=ut===mt.length-1;jt?Oe.menu=jt:wt&&(Oe.overlay=wt);let{href:ct}=Xe;return ye.length&&tn!==void 0&&(ct=`#/${ye.join("/")}`),ue.createElement(E,Object.assign({key:pe},Oe,(0,ze.Z)(Xe,{data:!0,aria:!0}),{className:Mt,dropdownProps:Vt,href:ct,separator:Ye?"":Ae,onClick:bt,prefixCls:tt}),Ee(Xe,Be,Fe,ye,ct))})}else if(xt){const ye=(0,_e.Z)(xt).length;de=(0,_e.Z)(xt).map((Fe,Xe)=>{if(!Fe)return Fe;const ut=Xe===ye-1;return(0,Ce.Tm)(Fe,{separator:ut?"":Ae,key:Xe})})}const be=ce()(tt,Qe==null?void 0:Qe.className,{[`${tt}-rtl`]:Ve==="rtl"},gt,We,Ht),ve=Object.assign(Object.assign({},Qe==null?void 0:Qe.style),nt);return ft(ue.createElement("nav",Object.assign({className:be,style:ve},qe),ue.createElement("ol",null,de)))};pt.Item=x,pt.Separator=Ue;var Gt=pt,kt=Gt},84567:function(Me,it,oe){"use strict";oe.d(it,{default:function(){return ie}});var ne=oe(94184),ce=oe.n(ne),_e=oe(95860),ze=oe(67294),ue=oe(53124),Ce=oe(98866),le=oe(65223),xe=ze.createContext(null),Te=oe(63185),Ue=oe(45353),ke=oe(92429),je=function(ge,me){var se={};for(var Ne in ge)Object.prototype.hasOwnProperty.call(ge,Ne)&&me.indexOf(Ne)<0&&(se[Ne]=ge[Ne]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ne=Object.getOwnPropertySymbols(ge);Ge<Ne.length;Ge++)me.indexOf(Ne[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ne[Ge])&&(se[Ne[Ge]]=ge[Ne[Ge]]);return se};const ae=(ge,me)=>{var se;const{prefixCls:Ne,className:Ge,rootClassName:pt,children:Gt,indeterminate:kt=!1,style:Le,onMouseEnter:Ie,onMouseLeave:Ae,skipGroup:nt=!1,disabled:gt}=ge,We=je(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ke,direction:at,checkbox:xt}=ze.useContext(ue.E_),he=ze.useContext(xe),{isFormItemInput:Be}=ze.useContext(le.aM),qe=ze.useContext(Ce.Z),yt=(se=(he==null?void 0:he.disabled)||gt)!==null&&se!==void 0?se:qe,Ve=ze.useRef(We.value);ze.useEffect(()=>{he==null||he.registerValue(We.value)},[]),ze.useEffect(()=>{if(!nt)return We.value!==Ve.current&&(he==null||he.cancelValue(Ve.current),he==null||he.registerValue(We.value),Ve.current=We.value),()=>he==null?void 0:he.cancelValue(We.value)},[We.value]);const Qe=Ke("checkbox",Ne),[de,tt]=(0,Te.ZP)(Qe),ft=Object.assign({},We);he&&!nt&&(ft.onChange=function(){We.onChange&&We.onChange.apply(We,arguments),he.toggleOption&&he.toggleOption({label:Gt,value:We.value})},ft.name=he.name,ft.checked=he.value.includes(We.value));const Ht=ce()(`${Qe}-wrapper`,{[`${Qe}-rtl`]:at==="rtl",[`${Qe}-wrapper-checked`]:ft.checked,[`${Qe}-wrapper-disabled`]:yt,[`${Qe}-wrapper-in-form-item`]:Be},xt==null?void 0:xt.className,Ge,pt,tt),mt=ce()({[`${Qe}-indeterminate`]:kt},ke.A,tt),Ee=kt?"mixed":void 0;return de(ze.createElement(Ue.Z,{component:"Checkbox",disabled:yt},ze.createElement("label",{className:Ht,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),Le),onMouseEnter:Ie,onMouseLeave:Ae},ze.createElement(_e.Z,Object.assign({"aria-checked":Ee},ft,{prefixCls:Qe,className:mt,disabled:yt,ref:me})),Gt!==void 0&&ze.createElement("span",null,Gt))))};var y=ze.forwardRef(ae),E=oe(74902),b=oe(10366),x=function(ge,me){var se={};for(var Ne in ge)Object.prototype.hasOwnProperty.call(ge,Ne)&&me.indexOf(Ne)<0&&(se[Ne]=ge[Ne]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Ne=Object.getOwnPropertySymbols(ge);Ge<Ne.length;Ge++)me.indexOf(Ne[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ne[Ge])&&(se[Ne[Ge]]=ge[Ne[Ge]]);return se};const z=(ge,me)=>{const{defaultValue:se,children:Ne,options:Ge=[],prefixCls:pt,className:Gt,rootClassName:kt,style:Le,onChange:Ie}=ge,Ae=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:nt,direction:gt}=ze.useContext(ue.E_),[We,Ke]=ze.useState(Ae.value||se||[]),[at,xt]=ze.useState([]);ze.useEffect(()=>{"value"in Ae&&Ke(Ae.value||[])},[Ae.value]);const he=ze.useMemo(()=>Ge.map(be=>typeof be=="string"||typeof be=="number"?{label:be,value:be}:be),[Ge]),Be=be=>{xt(ve=>ve.filter(ye=>ye!==be))},qe=be=>{xt(ve=>[].concat((0,E.Z)(ve),[be]))},yt=be=>{const ve=We.indexOf(be.value),ye=(0,E.Z)(We);ve===-1?ye.push(be.value):ye.splice(ve,1),"value"in Ae||Ke(ye),Ie==null||Ie(ye.filter(Fe=>at.includes(Fe)).sort((Fe,Xe)=>{const ut=he.findIndex(Lt=>Lt.value===Fe),Pt=he.findIndex(Lt=>Lt.value===Xe);return ut-Pt}))},Ve=nt("checkbox",pt),Qe=`${Ve}-group`,[de,tt]=(0,Te.ZP)(Ve),ft=(0,b.Z)(Ae,["value","disabled"]),Ht=Ge.length?he.map(be=>ze.createElement(y,{prefixCls:Ve,key:be.value.toString(),disabled:"disabled"in be?be.disabled:Ae.disabled,value:be.value,checked:We.includes(be.value),onChange:be.onChange,className:`${Qe}-item`,style:be.style,title:be.title},be.label)):Ne,mt={toggleOption:yt,value:We,disabled:Ae.disabled,name:Ae.name,registerValue:qe,cancelValue:Be},Ee=ce()(Qe,{[`${Qe}-rtl`]:gt==="rtl"},Gt,kt,tt);return de(ze.createElement("div",Object.assign({className:Ee,style:Le},ft,{ref:me}),ze.createElement(xe.Provider,{value:mt},Ht)))},ee=ze.forwardRef(z);var te=ze.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},63185:function(Me,it,oe){"use strict";oe.d(it,{C2:function(){return ue}});var ne=oe(14747),ce=oe(45503),_e=oe(67968);const ze=Ce=>{const{checkboxCls:le}=Ce,He=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(Ce)),{display:"inline-flex",flexWrap:"wrap",columnGap:Ce.marginXS,[`> ${Ce.antCls}-row`]:{flex:1}}),[He]:Object.assign(Object.assign({},(0,ne.Wf)(Ce)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${He}`]:{marginInlineStart:0},[`&${He}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(Ce)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Ce.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(Ce))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Ce.checkboxSize,height:Ce.checkboxSize,direction:"ltr",backgroundColor:Ce.colorBgContainer,border:`${Ce.lineWidth}px ${Ce.lineType} ${Ce.colorBorder}`,borderRadius:Ce.borderRadiusSM,borderCollapse:"separate",transition:`all ${Ce.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Ce.checkboxSize/14*5,height:Ce.checkboxSize/14*8,border:`${Ce.lineWidthBold}px solid ${Ce.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Ce.motionDurationFast} ${Ce.motionEaseInBack}, opacity ${Ce.motionDurationFast}`}},"& + span":{paddingInlineStart:Ce.paddingXS,paddingInlineEnd:Ce.paddingXS}})},{[`
|
|
${He}:not(${He}-disabled),
|
|
${le}:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{borderColor:Ce.colorPrimary}},[`${He}:not(${He}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:Ce.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:Ce.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:Ce.colorPrimary,borderColor:Ce.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Ce.motionDurationMid} ${Ce.motionEaseOutBack} ${Ce.motionDurationFast}`}}},[`
|
|
${He}-checked:not(${He}-disabled),
|
|
${le}-checked:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{backgroundColor:Ce.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:Ce.colorBgContainer,borderColor:Ce.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Ce.fontSizeLG/2,height:Ce.fontSizeLG/2,backgroundColor:Ce.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${He}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:Ce.colorBgContainerDisabled,borderColor:Ce.colorBorder,"&:after":{borderColor:Ce.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Ce.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:Ce.colorTextDisabled}}}]};function ue(Ce,le){const He=(0,ce.TS)(le,{checkboxCls:`.${Ce}`,checkboxSize:le.controlInteractiveSize});return[ze(He)]}it.ZP=(0,_e.Z)("Checkbox",(Ce,le)=>{let{prefixCls:He}=le;return[ue(He,Ce)]})},35874:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return ve}});var ne=oe(67294),ce=oe(91034),_e=oe(94184),ze=oe.n(_e),ue=oe(87462),Ce=oe(4942),le=oe(97685),He=oe(45987),xe=oe(62709),Te=oe(71002),Ue=oe(12060);function ke(ye,Fe,Xe){var ut=React.useRef({});return(!("value"in ut.current)||Xe(ut.current.condition,Fe))&&(ut.current.value=ye(),ut.current.condition=Fe),ut.current.value}function je(ye,Fe){typeof ye=="function"?ye(Fe):(0,Te.Z)(ye)==="object"&&ye&&"current"in ye&&(ye.current=Fe)}function ae(){for(var ye=arguments.length,Fe=new Array(ye),Xe=0;Xe<ye;Xe++)Fe[Xe]=arguments[Xe];var ut=Fe.filter(function(Pt){return Pt});return ut.length<=1?ut[0]:function(Pt){Fe.forEach(function(Lt){je(Lt,Pt)})}}function a(){for(var ye=arguments.length,Fe=new Array(ye),Xe=0;Xe<ye;Xe++)Fe[Xe]=arguments[Xe];return useMemo(function(){return ae.apply(void 0,Fe)},Fe,function(ut,Pt){return ut.length===Pt.length&&ut.every(function(Lt,Ot){return Lt===Pt[Ot]})})}function y(ye){var Fe,Xe,ut=(0,Ue.isMemo)(ye)?ye.type.type:ye.type;return!(typeof ut=="function"&&!((Fe=ut.prototype)!==null&&Fe!==void 0&&Fe.render)||typeof ye=="function"&&!((Xe=ye.prototype)!==null&&Xe!==void 0&&Xe.render))}var E={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(Fe){var Xe=Fe.keyCode;if(Fe.altKey&&!Fe.ctrlKey||Fe.metaKey||Xe>=E.F1&&Xe<=E.F12)return!1;switch(Xe){case E.ALT:case E.CAPS_LOCK:case E.CONTEXT_MENU:case E.CTRL:case E.DOWN:case E.END:case E.ESC:case E.HOME:case E.INSERT:case E.LEFT:case E.MAC_FF_META:case E.META:case E.NUMLOCK:case E.NUM_CENTER:case E.PAGE_DOWN:case E.PAGE_UP:case E.PAUSE:case E.PRINT_SCREEN:case E.RIGHT:case E.SHIFT:case E.UP:case E.WIN_KEY:case E.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(Fe){if(Fe>=E.ZERO&&Fe<=E.NINE||Fe>=E.NUM_ZERO&&Fe<=E.NUM_MULTIPLY||Fe>=E.A&&Fe<=E.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&Fe===0)return!0;switch(Fe){case E.SPACE:case E.QUESTION_MARK:case E.NUM_PLUS:case E.NUM_MINUS:case E.NUM_PERIOD:case E.NUM_DIVISION:case E.SEMICOLON:case E.DASH:case E.EQUALS:case E.COMMA:case E.PERIOD:case E.SLASH:case E.APOSTROPHE:case E.SINGLE_QUOTE:case E.OPEN_SQUARE_BRACKET:case E.BACKSLASH:case E.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},b=E,x=function(Fe){return+setTimeout(Fe,16)},z=function(Fe){return clearTimeout(Fe)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(x=function(Fe){return window.requestAnimationFrame(Fe)},z=function(Fe){return window.cancelAnimationFrame(Fe)});var ee=0,te=new Map;function re(ye){te.delete(ye)}var ie=function(Fe){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ee+=1;var ut=ee;function Pt(Lt){if(Lt===0)re(ut),Fe();else{var Ot=x(function(){Pt(Lt-1)});te.set(ut,Ot)}}return Pt(Xe),ut};ie.cancel=function(ye){var Fe=te.get(ye);return re(Fe),z(Fe)};var ge=ie,me=b.ESC,se=b.TAB;function Ne(ye){var Fe=ye.visible,Xe=ye.triggerRef,ut=ye.onVisibleChange,Pt=ye.autoFocus,Lt=ye.overlayRef,Ot=ne.useRef(!1),jt=function(){if(Fe){var Yt,Vt;(Yt=Xe.current)===null||Yt===void 0||(Vt=Yt.focus)===null||Vt===void 0||Vt.call(Yt),ut==null||ut(!1)}},wt=function(){var Yt;return(Yt=Lt.current)!==null&&Yt!==void 0&&Yt.focus?(Lt.current.focus(),Ot.current=!0,!0):!1},bt=function(Yt){switch(Yt.keyCode){case me:jt();break;case se:{var Vt=!1;Ot.current||(Vt=wt()),Vt?Yt.preventDefault():jt();break}}};ne.useEffect(function(){return Fe?(window.addEventListener("keydown",bt),Pt&&ge(wt,3),function(){window.removeEventListener("keydown",bt),Ot.current=!1}):function(){Ot.current=!1}},[Fe])}var Ge=(0,ne.forwardRef)(function(ye,Fe){var Xe=ye.overlay,ut=ye.arrow,Pt=ye.prefixCls,Lt=(0,ne.useMemo)(function(){var jt;return typeof Xe=="function"?jt=Xe():jt=Xe,jt},[Xe]),Ot=ae(Fe,Lt==null?void 0:Lt.ref);return ne.createElement(ne.Fragment,null,ut&&ne.createElement("div",{className:"".concat(Pt,"-arrow")}),ne.cloneElement(Lt,{ref:y(Lt)?Ot:void 0}))}),pt=Ge,Gt={adjustX:1,adjustY:1},kt=[0,0],Le={topLeft:{points:["bl","tl"],overflow:Gt,offset:[0,-4],targetOffset:kt},top:{points:["bc","tc"],overflow:Gt,offset:[0,-4],targetOffset:kt},topRight:{points:["br","tr"],overflow:Gt,offset:[0,-4],targetOffset:kt},bottomLeft:{points:["tl","bl"],overflow:Gt,offset:[0,4],targetOffset:kt},bottom:{points:["tc","bc"],overflow:Gt,offset:[0,4],targetOffset:kt},bottomRight:{points:["tr","br"],overflow:Gt,offset:[0,4],targetOffset:kt}},Ie=Le,Ae=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function nt(ye,Fe){var Xe,ut=ye.arrow,Pt=ut===void 0?!1:ut,Lt=ye.prefixCls,Ot=Lt===void 0?"rc-dropdown":Lt,jt=ye.transitionName,wt=ye.animation,bt=ye.align,Mt=ye.placement,Yt=Mt===void 0?"bottomLeft":Mt,Vt=ye.placements,tn=Vt===void 0?Ie:Vt,pe=ye.getPopupContainer,Oe=ye.showAction,Ye=ye.hideAction,ct=ye.overlayClassName,ht=ye.overlayStyle,Tt=ye.visible,Dt=ye.trigger,Bt=Dt===void 0?["hover"]:Dt,It=ye.autoFocus,Jt=ye.overlay,Kt=ye.children,gn=ye.onVisibleChange,rn=(0,He.Z)(ye,Ae),hn=ne.useState(),bn=(0,le.Z)(hn,2),on=bn[0],nn=bn[1],un="visible"in ye?Tt:on,pn=ne.useRef(null),wn=ne.useRef(null),mn=ne.useRef(null);ne.useImperativeHandle(Fe,function(){return pn.current});var xn=function(dt){nn(dt),gn==null||gn(dt)};Ne({visible:un,triggerRef:mn,onVisibleChange:xn,autoFocus:It,overlayRef:wn});var Rn=function(dt){var Et=ye.onOverlayClick;nn(!1),Et&&Et(dt)},Cn=function(){return ne.createElement(pt,{ref:wn,overlay:Jt,prefixCls:Ot,arrow:Pt})},An=function(){return typeof Jt=="function"?Cn:Cn()},Un=function(){var dt=ye.minOverlayWidthMatchTrigger,Et=ye.alignPoint;return"minOverlayWidthMatchTrigger"in ye?dt:!Et},kn=function(){var dt=ye.openClassName;return dt!==void 0?dt:"".concat(Ot,"-open")},fe=ne.cloneElement(Kt,{className:ze()((Xe=Kt.props)===null||Xe===void 0?void 0:Xe.className,un&&kn()),ref:y(Kt)?ae(mn,Kt.ref):void 0}),we=Ye;return!we&&Bt.indexOf("contextMenu")!==-1&&(we=["click"]),ne.createElement(xe.Z,(0,ue.Z)({builtinPlacements:tn},rn,{prefixCls:Ot,ref:pn,popupClassName:ze()(ct,(0,Ce.Z)({},"".concat(Ot,"-show-arrow"),Pt)),popupStyle:ht,action:Bt,showAction:Oe,hideAction:we,popupPlacement:Yt,popupAlign:bt,popupTransitionName:jt,popupAnimation:wt,popupVisible:un,stretch:Un()?"minWidth":"",popup:An(),onPopupVisibleChange:xn,onPopupClick:Rn,getPopupContainer:pe}),fe)}var gt=ne.forwardRef(nt),We=gt,Ke=oe(60276),at=oe(5663),xt=oe(10366),he=oe(80636),Be=oe(8745),qe=oe(96159),yt=oe(53124),Ve=oe(68508),Qe=oe(76529),de=oe(46605),tt=oe(66748);const ft=null,Ht=ye=>{const{menu:Fe,arrow:Xe,prefixCls:ut,children:Pt,trigger:Lt,disabled:Ot,dropdownRender:jt,getPopupContainer:wt,overlayClassName:bt,rootClassName:Mt,open:Yt,onOpenChange:Vt,visible:tn,onVisibleChange:pe,mouseEnterDelay:Oe=.15,mouseLeaveDelay:Ye=.1,autoAdjustOverflow:ct=!0,placement:ht="",overlay:Tt,transitionName:Dt}=ye,{getPopupContainer:Bt,getPrefixCls:It,direction:Jt}=ne.useContext(yt.E_),Kt=ne.useMemo(()=>{const fe=It();return Dt!==void 0?Dt:ht.includes("top")?`${fe}-slide-down`:`${fe}-slide-up`},[It,ht,Dt]),gn=ne.useMemo(()=>ht?ht.includes("Center")?ht.slice(0,ht.indexOf("Center")):ht:Jt==="rtl"?"bottomRight":"bottomLeft",[ht,Jt]),rn=It("dropdown",ut),[hn,bn]=(0,tt.Z)(rn),[,on]=(0,de.Z)(),nn=ne.Children.only(Pt),un=(0,qe.Tm)(nn,{className:ze()(`${rn}-trigger`,{[`${rn}-rtl`]:Jt==="rtl"},nn.props.className),disabled:Ot}),pn=Ot?[]:Lt;let wn;pn&&pn.includes("contextMenu")&&(wn=!0);const[mn,xn]=(0,at.Z)(!1,{value:Yt!=null?Yt:tn}),Rn=(0,Ke.useEvent)(fe=>{Vt==null||Vt(fe),pe==null||pe(fe),xn(fe)}),Cn=ze()(bt,Mt,bn,{[`${rn}-rtl`]:Jt==="rtl"}),An=(0,he.Z)({arrowPointAtCenter:typeof Xe=="object"&&Xe.pointAtCenter,autoAdjustOverflow:ct,offset:on.marginXXS,arrowWidth:Xe?on.sizePopupArrow:0,borderRadius:on.borderRadius}),Un=ne.useCallback(()=>{xn(!1)},[]),kn=()=>{let fe;return Fe!=null&&Fe.items?fe=ne.createElement(Ve.default,Object.assign({},Fe)):typeof Tt=="function"?fe=Tt():fe=Tt,jt&&(fe=jt(fe)),fe=ne.Children.only(typeof fe=="string"?ne.createElement("span",null,fe):fe),ne.createElement(Qe.J,{prefixCls:`${rn}-menu`,expandIcon:ne.createElement("span",{className:`${rn}-menu-submenu-arrow`},ne.createElement(ce.Z,{className:`${rn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Un,validator:we=>{let{mode:Pe}=we}},fe)};return hn(ne.createElement(We,Object.assign({alignPoint:wn},(0,xt.Z)(ye,["rootClassName"]),{mouseEnterDelay:Oe,mouseLeaveDelay:Ye,visible:mn,builtinPlacements:An,arrow:!!Xe,overlayClassName:Cn,prefixCls:rn,getPopupContainer:wt||Bt,transitionName:Kt,trigger:pn,overlay:kn,placement:gn,onVisibleChange:Rn}),un))};function mt(ye){return Object.assign(Object.assign({},ye),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const Ee=(0,Be.Z)(Ht,"dropdown",ye=>ye,mt),be=ye=>ne.createElement(Ee,Object.assign({},ye),ne.createElement("span",null));Ht._InternalPanelDoNotUseOrYouWillBeFired=be;var ve=Ht},66748:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return Ue}});var ne=oe(14747),ce=oe(67771),_e=oe(33297),ze=oe(50438),ue=oe(97414),Ce=oe(67968),le=oe(45503),xe=ke=>{const{componentCls:je,menuCls:ae,colorError:a,colorTextLightSolid:y}=ke,E=`${ae}-item`;return{[`${je}, ${je}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Te=ke=>{const{componentCls:je,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:se}=ke;return[{[je]:Object.assign(Object.assign({},(0,ne.Wf)(ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${je}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${je}-wrap-open`]:{[`${x}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${je}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${je}-placement-bottomRight`]:{animationName:ce.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${je}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${je}-placement-topRight`]:{animationName:ce.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${je}-placement-bottomRight`]:{animationName:ce.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${je}-placement-topRight`]:{animationName:ce.ly}})},(0,ue.ZP)(ke,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${je} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${je}, ${je}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,ne.Qy)(ke)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${me}px`,color:ke.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:ke.marginXS,fontSize:ke.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:ke.colorText,fontWeight:"normal",fontSize:te,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,ne.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${je}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${je}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:me+ke.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${je}-menu-submenu-title`]:{[`&, ${je}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${je}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,ce.oN)(ke,"slide-up"),(0,ce.oN)(ke,"slide-down"),(0,_e.Fm)(ke,"move-up"),(0,_e.Fm)(ke,"move-down"),(0,ze._y)(ke,"zoom-big")]]};var Ue=(0,Ce.Z)("Dropdown",(ke,je)=>{let{rootPrefixCls:ae}=je;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=ke,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,ue.fS)({contentRadius:te}),ge=(0,le.TS)(ke,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[Te(ge),xe(ge)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},71322:function(Me,it,oe){"use strict";oe.d(it,{D:function(){return x},Z:function(){return te}});var ne=oe(87462),ce=oe(67294),_e={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"},ze=_e,ue=oe(74643),Ce=function(ie,ge){return ce.createElement(ue.Z,(0,ne.Z)({},ie,{ref:ge,icon:ze}))},le=ce.forwardRef(Ce),He=oe(22751),xe=oe(91034),Te=oe(94184),Ue=oe.n(Te),ke=oe(10366),ae=re=>!isNaN(parseFloat(re))&&isFinite(re),a=oe(53124),y=oe(84321),E=function(re,ie){var ge={};for(var me in re)Object.prototype.hasOwnProperty.call(re,me)&&ie.indexOf(me)<0&&(ge[me]=re[me]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,me=Object.getOwnPropertySymbols(re);se<me.length;se++)ie.indexOf(me[se])<0&&Object.prototype.propertyIsEnumerable.call(re,me[se])&&(ge[me[se]]=re[me[se]]);return ge};const b={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},x=ce.createContext({}),z=(()=>{let re=0;return function(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return re+=1,`${ie}${re}`}})();var te=ce.forwardRef((re,ie)=>{const{prefixCls:ge,className:me,trigger:se,children:Ne,defaultCollapsed:Ge=!1,theme:pt="dark",style:Gt={},collapsible:kt=!1,reverseArrow:Le=!1,width:Ie=200,collapsedWidth:Ae=80,zeroWidthTriggerStyle:nt,breakpoint:gt,onCollapse:We,onBreakpoint:Ke}=re,at=E(re,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:xt}=(0,ce.useContext)(y.Gs),[he,Be]=(0,ce.useState)("collapsed"in re?re.collapsed:Ge),[qe,yt]=(0,ce.useState)(!1);(0,ce.useEffect)(()=>{"collapsed"in re&&Be(re.collapsed)},[re.collapsed]);const Ve=(mt,Ee)=>{"collapsed"in re||Be(mt),We==null||We(mt,Ee)},Qe=(0,ce.useRef)();Qe.current=mt=>{yt(mt.matches),Ke==null||Ke(mt.matches),he!==mt.matches&&Ve(mt.matches,"responsive")},(0,ce.useEffect)(()=>{function mt(be){return Qe.current(be)}let Ee;if(typeof window!="undefined"){const{matchMedia:be}=window;if(be&>&> in b){Ee=be(`(max-width: ${b[gt]})`);try{Ee.addEventListener("change",mt)}catch(ve){Ee.addListener(mt)}mt(Ee)}}return()=>{try{Ee==null||Ee.removeEventListener("change",mt)}catch(be){Ee==null||Ee.removeListener(mt)}}},[gt]),(0,ce.useEffect)(()=>{const mt=z("ant-sider-");return xt.addSider(mt),()=>xt.removeSider(mt)},[]);const de=()=>{Ve(!he,"clickTrigger")},{getPrefixCls:tt}=(0,ce.useContext)(a.E_),ft=()=>{const mt=tt("layout-sider",ge),Ee=(0,ke.Z)(at,["collapsed"]),be=he?Ae:Ie,ve=ae(be)?`${be}px`:String(be),ye=parseFloat(String(Ae||0))===0?ce.createElement("span",{onClick:de,className:Ue()(`${mt}-zero-width-trigger`,`${mt}-zero-width-trigger-${Le?"right":"left"}`),style:nt},se||ce.createElement(le,null)):null,ut={expanded:Le?ce.createElement(xe.Z,null):ce.createElement(He.Z,null),collapsed:Le?ce.createElement(He.Z,null):ce.createElement(xe.Z,null)}[he?"collapsed":"expanded"],Pt=se!==null?ye||ce.createElement("div",{className:`${mt}-trigger`,onClick:de,style:{width:ve}},se||ut):null,Lt=Object.assign(Object.assign({},Gt),{flex:`0 0 ${ve}`,maxWidth:ve,minWidth:ve,width:ve}),Ot=Ue()(mt,`${mt}-${pt}`,{[`${mt}-collapsed`]:!!he,[`${mt}-has-trigger`]:kt&&se!==null&&!ye,[`${mt}-below`]:!!qe,[`${mt}-zero-width`]:parseFloat(ve)===0},me);return ce.createElement("aside",Object.assign({className:Ot},Ee,{style:Lt,ref:ie}),ce.createElement("div",{className:`${mt}-children`},Ne),kt||qe&&ye?Pt:null)},Ht=ce.useMemo(()=>({siderCollapsed:he}),[he]);return ce.createElement(x.Provider,{value:Ht},ft())})},84321:function(Me,it,oe){"use strict";oe.d(it,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return je},ZP:function(){return ee}});var ne=oe(74902),ce=oe(94184),_e=oe.n(ce),ze=oe(10366),ue=oe(67294),Ce=oe(53124),le=oe(67968),xe=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:me,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:me},[`${re}-sider-zero-width-trigger`]:{color:se,background:me,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Te=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:me,footerBg:se,triggerBg:Ne,headerHeight:Ge,headerPadding:pt,headerColor:Gt,footerPadding:kt,triggerHeight:Le,zeroTriggerHeight:Ie,zeroTriggerWidth:Ae,motionDurationMid:nt,motionDurationSlow:gt,fontSize:We,borderRadius:Ke,bodyBg:at,headerBg:xt,siderBg:he}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:at,"&, *":{boxSizing:"border-box"},[`&${ie}-has-sider`]:{flexDirection:"row",[`> ${ie}, > ${ie}-content`]:{width:0}},[`${ie}-header, &${ie}-footer`]:{flex:"0 0 auto"},[`${ie}-sider`]:{position:"relative",minWidth:0,background:he,transition:`all ${nt}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:me,lineHeight:`${Le}px`,textAlign:"center",background:Ne,cursor:"pointer",transition:`all ${nt}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ge,insetInlineEnd:-Ae,zIndex:1,width:Ae,height:Ie,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:he,borderStartStartRadius:0,borderStartEndRadius:Ke,borderEndEndRadius:Ke,borderEndStartRadius:0,cursor:"pointer",transition:`background ${gt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${gt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ae,borderStartStartRadius:Ke,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ke}}}}},xe(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Ge,padding:pt,color:Gt,lineHeight:`${Ge}px`,background:xt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:kt,color:ge,fontSize:We,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Ue=(0,le.Z)("Layout",te=>[Te(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:se,marginXXS:Ne,colorTextLightSolid:Ge,colorBgContainer:pt}=te,Gt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Gt}px`,headerColor:me,footerPadding:`${se}px ${Gt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Ne*2,triggerBg:"#002140",triggerColor:Ge,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:pt,lightTriggerBg:pt,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,ge=Object.getOwnPropertySymbols(te);me<ge.length;me++)re.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[me])&&(ie[ge[me]]=te[ge[me]]);return ie};const je=ue.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return me=>ue.forwardRef((Ne,Ge)=>ue.createElement(me,Object.assign({ref:Ge,suffixCls:re,tagName:ie},Ne)))}const a=ue.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:se}=te,Ne=ke(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ge}=ue.useContext(Ce.E_),pt=Ge("layout",ie),[Gt,kt]=Ue(pt),Le=ge?`${pt}-${ge}`:pt;return Gt(ue.createElement(se,Object.assign({className:_e()(ie||Le,me,kt),ref:re},Ne)))}),y=ue.forwardRef((te,re)=>{const{direction:ie}=ue.useContext(Ce.E_),[ge,me]=ue.useState([]),{prefixCls:se,className:Ne,rootClassName:Ge,children:pt,hasSider:Gt,tagName:kt,style:Le}=te,Ie=ke(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ae=(0,ze.Z)(Ie,["suffixCls"]),{getPrefixCls:nt,layout:gt}=ue.useContext(Ce.E_),We=nt("layout",se),[Ke,at]=Ue(We),xt=_e()(We,{[`${We}-has-sider`]:typeof Gt=="boolean"?Gt:ge.length>0,[`${We}-rtl`]:ie==="rtl"},gt==null?void 0:gt.className,Ne,Ge,at),he=ue.useMemo(()=>({siderHook:{addSider:Be=>{me(qe=>[].concat((0,ne.Z)(qe),[Be]))},removeSider:Be=>{me(qe=>qe.filter(yt=>yt!==Be))}}}),[]);return Ke(ue.createElement(je.Provider,{value:he},ue.createElement(kt,Object.assign({ref:re,className:xt,style:Object.assign(Object.assign({},gt==null?void 0:gt.style),Le)},Ae),pt)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},76529:function(Me,it,oe){"use strict";oe.d(it,{J:function(){return Ce}});var ne=oe(67294),ce=oe(4173),_e=oe(60276),ze=function(le,He){var xe={};for(var Te in le)Object.prototype.hasOwnProperty.call(le,Te)&&He.indexOf(Te)<0&&(xe[Te]=le[Te]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Te=Object.getOwnPropertySymbols(le);Ue<Te.length;Ue++)He.indexOf(Te[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,Te[Ue])&&(xe[Te[Ue]]=le[Te[Ue]]);return xe};const ue=ne.createContext(null),Ce=ne.forwardRef((le,He)=>{const{children:xe}=le,Te=ze(le,["children"]),Ue=ne.useContext(ue),ke=ne.useMemo(()=>Object.assign(Object.assign({},Ue),Te),[Ue,Te.prefixCls,Te.mode,Te.selectable]);return ne.createElement(ue.Provider,{value:ke},ne.createElement(ce.BR,null,(0,_e.supportNodeRef)(xe)?ne.cloneElement(xe,{ref:He}):xe))});it.Z=ue},68508:function(Me,it,oe){"use strict";oe.d(it,{default:function(){return mt}});var ne=oe(78595),ce=oe(67294),_e=oe(71322),ze=oe(94184),ue=oe.n(ze),Ce=oe(53124),le=function(Ee,be){var ve={};for(var ye in Ee)Object.prototype.hasOwnProperty.call(Ee,ye)&&be.indexOf(ye)<0&&(ve[ye]=Ee[ye]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ye=Object.getOwnPropertySymbols(Ee);Fe<ye.length;Fe++)be.indexOf(ye[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ye[Fe])&&(ve[ye[Fe]]=Ee[ye[Fe]]);return ve},xe=Ee=>{const{prefixCls:be,className:ve,dashed:ye}=Ee,Fe=le(Ee,["prefixCls","className","dashed"]),{getPrefixCls:Xe}=ce.useContext(Ce.E_),ut=Xe("menu",be),Pt=ue()({[`${ut}-item-divider-dashed`]:!!ye},ve);return ce.createElement(ne.iz,Object.assign({className:Pt},Fe))},Te=oe(37419),Ue=oe(10366),ke=oe(83062),je=oe(96159),a=(0,ce.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ee=>{var be;const{className:ve,children:ye,icon:Fe,title:Xe,danger:ut}=Ee,{prefixCls:Pt,firstLevel:Lt,direction:Ot,disableMenuItemTitleTooltip:jt,inlineCollapsed:wt}=ce.useContext(a),bt=Oe=>{const Ye=ce.createElement("span",{className:`${Pt}-title-content`},ye);return(!Fe||(0,je.l$)(ye)&&ye.type==="span")&&ye&&Oe&&Lt&&typeof ye=="string"?ce.createElement("div",{className:`${Pt}-inline-collapsed-noicon`},ye.charAt(0)):Ye},{siderCollapsed:Mt}=ce.useContext(_e.D);let Yt=Xe;typeof Xe=="undefined"?Yt=Lt?ye:"":Xe===!1&&(Yt="");const Vt={title:Yt};!Mt&&!wt&&(Vt.title=null,Vt.open=!1);const tn=(0,Te.Z)(ye).length;let pe=ce.createElement(ne.ck,Object.assign({},(0,Ue.Z)(Ee,["title","icon","danger"]),{className:ue()({[`${Pt}-item-danger`]:ut,[`${Pt}-item-only-child`]:(Fe?tn+1:tn)===1},ve),title:typeof Xe=="string"?Xe:void 0}),(0,je.Tm)(Fe,{className:ue()((0,je.l$)(Fe)?(be=Fe.props)===null||be===void 0?void 0:be.className:"",`${Pt}-item-icon`)}),bt(wt));return jt||(pe=ce.createElement(ke.Z,Object.assign({},Vt,{placement:Ot==="rtl"?"left":"right",overlayClassName:`${Pt}-inline-collapsed-tooltip`}),pe)),pe},x=Ee=>{var be;const{popupClassName:ve,icon:ye,title:Fe,theme:Xe}=Ee,ut=ce.useContext(a),{prefixCls:Pt,inlineCollapsed:Lt,theme:Ot}=ut,jt=(0,ne.Xl)();let wt;if(!ye)wt=Lt&&!jt.length&&Fe&&typeof Fe=="string"?ce.createElement("div",{className:`${Pt}-inline-collapsed-noicon`},Fe.charAt(0)):ce.createElement("span",{className:`${Pt}-title-content`},Fe);else{const Mt=(0,je.l$)(Fe)&&Fe.type==="span";wt=ce.createElement(ce.Fragment,null,(0,je.Tm)(ye,{className:ue()((0,je.l$)(ye)?(be=ye.props)===null||be===void 0?void 0:be.className:"",`${Pt}-item-icon`)}),Mt?Fe:ce.createElement("span",{className:`${Pt}-title-content`},Fe))}const bt=ce.useMemo(()=>Object.assign(Object.assign({},ut),{firstLevel:!1}),[ut]);return ce.createElement(a.Provider,{value:bt},ce.createElement(ne.Wd,Object.assign({},(0,Ue.Z)(Ee,["icon"]),{title:wt,popupClassName:ue()(Pt,ve,`${Pt}-${Xe||Ot}`)})))},z=oe(25877),ee=oe(60276),te=oe(33603),re=oe(76529),ie=function(Ee,be){var ve={};for(var ye in Ee)Object.prototype.hasOwnProperty.call(Ee,ye)&&be.indexOf(ye)<0&&(ve[ye]=Ee[ye]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ye=Object.getOwnPropertySymbols(Ee);Fe<ye.length;Fe++)be.indexOf(ye[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ye[Fe])&&(ve[ye[Fe]]=Ee[ye[Fe]]);return ve};function ge(Ee){return(Ee||[]).map((be,ve)=>{if(be&&typeof be=="object"){const ye=be,{label:Fe,children:Xe,key:ut,type:Pt}=ye,Lt=ie(ye,["label","children","key","type"]),Ot=ut!=null?ut:`tmp-${ve}`;return Xe||Pt==="group"?Pt==="group"?ce.createElement(ne.BW,Object.assign({key:Ot},Lt,{title:Fe}),ge(Xe)):ce.createElement(x,Object.assign({key:Ot},Lt,{title:Fe}),ge(Xe)):Pt==="divider"?ce.createElement(xe,Object.assign({key:Ot},Lt)):ce.createElement(E,Object.assign({key:Ot},Lt),Fe)}return null}).filter(be=>be)}function me(Ee){return ce.useMemo(()=>Ee&&ge(Ee),[Ee])}var se=oe(84780),Ne=oe(14747),Ge=oe(33507),pt=oe(67771),Gt=oe(50438),kt=oe(67968),Le=oe(45503),Ae=Ee=>{const{componentCls:be,motionDurationSlow:ve,horizontalLineHeight:ye,colorSplit:Fe,lineWidth:Xe,lineType:ut,itemPaddingInline:Pt}=Ee;return{[`${be}-horizontal`]:{lineHeight:ye,border:0,borderBottom:`${Xe}px ${ut} ${Fe}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${be}-item, ${be}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Pt},[`> ${be}-item:hover,
|
|
> ${be}-item-active,
|
|
> ${be}-submenu ${be}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${be}-item, ${be}-submenu-title`]:{transition:[`border-color ${ve}`,`background ${ve}`].join(",")},[`${be}-submenu-arrow`]:{display:"none"}}}},gt=Ee=>{let{componentCls:be,menuArrowOffset:ve}=Ee;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(-${ve})`},"&::after":{transform:`rotate(45deg) translateY(${ve})`}}}}};const We=Ee=>Object.assign({},(0,Ne.oN)(Ee));var at=(Ee,be)=>{const{componentCls:ve,itemColor:ye,itemSelectedColor:Fe,groupTitleColor:Xe,itemBg:ut,subMenuItemBg:Pt,itemSelectedBg:Lt,activeBarHeight:Ot,activeBarWidth:jt,activeBarBorderWidth:wt,motionDurationSlow:bt,motionEaseInOut:Mt,motionEaseOut:Yt,itemPaddingInline:Vt,motionDurationMid:tn,itemHoverColor:pe,lineType:Oe,colorSplit:Ye,itemDisabledColor:ct,dangerItemColor:ht,dangerItemHoverColor:Tt,dangerItemSelectedColor:Dt,dangerItemActiveBg:Bt,dangerItemSelectedBg:It,itemHoverBg:Jt,itemActiveBg:Kt,menuSubMenuBg:gn,horizontalItemSelectedColor:rn,horizontalItemSelectedBg:hn,horizontalItemBorderRadius:bn,horizontalItemHoverBg:on,popupBg:nn}=Ee;return{[`${ve}-${be}, ${ve}-${be} > ${ve}`]:{color:ye,background:ut,[`&${ve}-root:focus-visible`]:Object.assign({},We(Ee)),[`${ve}-item-group-title`]:{color:Xe},[`${ve}-submenu-selected`]:{[`> ${ve}-submenu-title`]:{color:Fe}},[`${ve}-item-disabled, ${ve}-submenu-disabled`]:{color:`${ct} !important`},[`${ve}-item:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{[`&:hover, > ${ve}-submenu-title:hover`]:{color:pe}},[`&:not(${ve}-horizontal)`]:{[`${ve}-item:not(${ve}-item-selected)`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}},[`${ve}-submenu-title`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}}},[`${ve}-item-danger`]:{color:ht,[`&${ve}-item:hover`]:{[`&:not(${ve}-item-selected):not(${ve}-submenu-selected)`]:{color:Tt}},[`&${ve}-item:active`]:{background:Bt}},[`${ve}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ve}-item-selected`]:{color:Fe,[`&${ve}-item-danger`]:{color:Dt},"a, a:hover":{color:"inherit"}},[`& ${ve}-item-selected`]:{backgroundColor:Lt,[`&${ve}-item-danger`]:{backgroundColor:It}},[`${ve}-item, ${ve}-submenu-title`]:{[`&:not(${ve}-item-disabled):focus-visible`]:Object.assign({},We(Ee))},[`&${ve}-submenu > ${ve}`]:{backgroundColor:gn},[`&${ve}-popup > ${ve}`]:{backgroundColor:nn},[`&${ve}-horizontal`]:Object.assign(Object.assign({},be==="dark"?{borderBottom:0}:{}),{[`> ${ve}-item, > ${ve}-submenu`]:{top:wt,marginTop:-wt,marginBottom:0,borderRadius:bn,"&::after":{position:"absolute",insetInline:Vt,bottom:0,borderBottom:`${Ot}px solid transparent`,transition:`border-color ${bt} ${Mt}`,content:'""'},"&:hover, &-active, &-open":{background:on,"&::after":{borderBottomWidth:Ot,borderBottomColor:rn}},"&-selected":{color:rn,backgroundColor:hn,"&:hover":{backgroundColor:hn},"&::after":{borderBottomWidth:Ot,borderBottomColor:rn}}}}),[`&${ve}-root`]:{[`&${ve}-inline, &${ve}-vertical`]:{borderInlineEnd:`${wt}px ${Oe} ${Ye}`}},[`&${ve}-inline`]:{[`${ve}-sub${ve}-inline`]:{background:Pt},[`${ve}-item, ${ve}-submenu-title`]:wt&&jt?{width:`calc(100% + ${wt}px)`}:{},[`${ve}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${jt}px solid ${Fe}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${tn} ${Yt}`,`opacity ${tn} ${Yt}`].join(","),content:'""'},[`&${ve}-item-danger`]:{"&::after":{borderInlineEndColor:Dt}}},[`${ve}-selected, ${ve}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${tn} ${Mt}`,`opacity ${tn} ${Mt}`].join(",")}}}}}};const xt=Ee=>{const{componentCls:be,itemHeight:ve,itemMarginInline:ye,padding:Fe,menuArrowSize:Xe,marginXS:ut,itemMarginBlock:Pt}=Ee,Lt=Fe+Xe+ut;return{[`${be}-item`]:{position:"relative",overflow:"hidden"},[`${be}-item, ${be}-submenu-title`]:{height:ve,lineHeight:`${ve}px`,paddingInline:Fe,overflow:"hidden",textOverflow:"ellipsis",marginInline:ye,marginBlock:Pt,width:`calc(100% - ${ye*2}px)`},[`> ${be}-item,
|
|
> ${be}-submenu > ${be}-submenu-title`]:{height:ve,lineHeight:`${ve}px`},[`${be}-item-group-list ${be}-submenu-title,
|
|
${be}-submenu-title`]:{paddingInlineEnd:Lt}}};var Be=Ee=>{const{componentCls:be,iconCls:ve,itemHeight:ye,colorTextLightSolid:Fe,dropdownWidth:Xe,controlHeightLG:ut,motionDurationMid:Pt,motionEaseOut:Lt,paddingXL:Ot,itemMarginInline:jt,fontSizeLG:wt,motionDurationSlow:bt,paddingXS:Mt,boxShadowSecondary:Yt,collapsedWidth:Vt,collapsedIconSize:tn}=Ee,pe={height:ye,lineHeight:`${ye}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[be]:{"&-inline, &-vertical":Object.assign({[`&${be}-root`]:{boxShadow:"none"}},xt(Ee))},[`${be}-submenu-popup`]:{[`${be}-vertical`]:Object.assign(Object.assign({},xt(Ee)),{boxShadow:Yt})}},{[`${be}-submenu-popup ${be}-vertical${be}-sub`]:{minWidth:Xe,maxHeight:`calc(100vh - ${ut*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 ${bt}`,`background ${bt}`,`padding ${Pt} ${Lt}`].join(","),[`> ${be}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${be}-sub${be}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${be}-submenu > ${be}-submenu-title`]:pe,[`& ${be}-item-group-title`]:{paddingInlineStart:Ot}},[`${be}-item`]:pe}},{[`${be}-inline-collapsed`]:{width:Vt,[`&${be}-root`]:{[`${be}-item, ${be}-submenu ${be}-submenu-title`]:{[`> ${be}-inline-collapsed-noicon`]:{fontSize:wt,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% - ${wt/2}px - ${jt}px)`,textOverflow:"clip",[`
|
|
${be}-submenu-arrow,
|
|
${be}-submenu-expand-icon
|
|
`]:{opacity:0},[`${be}-item-icon, ${ve}`]:{margin:0,fontSize:tn,lineHeight:`${ye}px`,"+ span":{display:"inline-block",opacity:0}}},[`${be}-item-icon, ${ve}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${be}-item-icon, ${ve}`]:{display:"none"},"a, a:hover":{color:Fe}},[`${be}-item-group-title`]:Object.assign(Object.assign({},Ne.vS),{paddingInline:Mt})}}]};const qe=Ee=>{const{componentCls:be,motionDurationSlow:ve,motionDurationMid:ye,motionEaseInOut:Fe,motionEaseOut:Xe,iconCls:ut,iconSize:Pt,iconMarginInlineEnd:Lt}=Ee;return{[`${be}-item, ${be}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ve}`,`background ${ve}`,`padding ${ve} ${Fe}`].join(","),[`${be}-item-icon, ${ut}`]:{minWidth:Pt,fontSize:Pt,transition:[`font-size ${ye} ${Xe}`,`margin ${ve} ${Fe}`,`color ${ve}`].join(","),"+ span":{marginInlineStart:Lt,opacity:1,transition:[`opacity ${ve} ${Fe}`,`margin ${ve}`,`color ${ve}`].join(",")}},[`${be}-item-icon`]:Object.assign({},(0,Ne.Ro)()),[`&${be}-item-only-child`]:{[`> ${ut}, > ${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"}}}},yt=Ee=>{const{componentCls:be,motionDurationSlow:ve,motionEaseInOut:ye,borderRadius:Fe,menuArrowSize:Xe,menuArrowOffset:ut}=Ee;return{[`${be}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ee.margin,width:Xe,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ve} ${ye}, opacity ${ve}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Xe*.6,height:Xe*.15,backgroundColor:"currentcolor",borderRadius:Fe,transition:[`background ${ve} ${ye}`,`transform ${ve} ${ye}`,`top ${ve} ${ye}`,`color ${ve} ${ye}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${ut})`},"&::after":{transform:`rotate(-45deg) translateY(${ut})`}}}}},Ve=Ee=>{const{antCls:be,componentCls:ve,fontSize:ye,motionDurationSlow:Fe,motionDurationMid:Xe,motionEaseInOut:ut,paddingXS:Pt,padding:Lt,colorSplit:Ot,lineWidth:jt,zIndexPopup:wt,borderRadiusLG:bt,subMenuItemBorderRadius:Mt,menuArrowSize:Yt,menuArrowOffset:Vt,lineType:tn,menuPanelMaskInset:pe,groupTitleLineHeight:Oe,groupTitleFontSize:Ye}=Ee;return[{"":{[`${ve}`]:Object.assign(Object.assign({},(0,Ne.dF)()),{"&-hidden":{display:"none"}})},[`${ve}-submenu-hidden`]:{display:"none"}},{[ve]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ne.Wf)(Ee)),(0,Ne.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ye,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Fe} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ve}-item`]:{flex:"none"}},[`${ve}-item, ${ve}-submenu, ${ve}-submenu-title`]:{borderRadius:Ee.itemBorderRadius},[`${ve}-item-group-title`]:{padding:`${Pt}px ${Lt}px`,fontSize:Ye,lineHeight:Oe,transition:`all ${Fe}`},[`&-horizontal ${ve}-submenu`]:{transition:[`border-color ${Fe} ${ut}`,`background ${Fe} ${ut}`].join(",")},[`${ve}-submenu, ${ve}-submenu-inline`]:{transition:[`border-color ${Fe} ${ut}`,`background ${Fe} ${ut}`,`padding ${Xe} ${ut}`].join(",")},[`${ve}-submenu ${ve}-sub`]:{cursor:"initial",transition:[`background ${Fe} ${ut}`,`padding ${Fe} ${ut}`].join(",")},[`${ve}-title-content`]:{transition:`color ${Fe}`},[`${ve}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ve}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Ot,borderStyle:tn,borderWidth:0,borderTopWidth:jt,marginBlock:jt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),qe(Ee)),{[`${ve}-item-group`]:{[`${ve}-item-group-list`]:{margin:0,padding:0,[`${ve}-item, ${ve}-submenu-title`]:{paddingInline:`${ye*2}px ${Lt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:wt,borderRadius:bt,boxShadow:"none",transformOrigin:"0 0",[`&${ve}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${pe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:pe},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:Ee.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ee.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ee.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ee.paddingXS},[`> ${ve}`]:Object.assign(Object.assign(Object.assign({borderRadius:bt},qe(Ee)),yt(Ee)),{[`${ve}-item, ${ve}-submenu > ${ve}-submenu-title`]:{borderRadius:Mt},[`${ve}-submenu-title::after`]:{transition:`transform ${Fe} ${ut}`}})}}),yt(Ee)),{[`&-inline-collapsed ${ve}-submenu-arrow,
|
|
&-inline ${ve}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Vt})`},"&::after":{transform:`rotate(45deg) translateX(-${Vt})`}},[`${ve}-submenu-open${ve}-submenu-inline > ${ve}-submenu-title > ${ve}-submenu-arrow`]:{transform:`translateY(-${Yt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Vt})`},"&::before":{transform:`rotate(45deg) translateX(${Vt})`}}})},{[`${be}-layout-header`]:{[ve]:{lineHeight:"inherit"}}}]};var Qe=(Ee,be)=>(0,kt.Z)("Menu",ye=>{if(be===!1)return[];const{colorBgElevated:Fe,colorPrimary:Xe,colorTextLightSolid:ut,controlHeightLG:Pt,fontSize:Lt,darkItemColor:Ot,darkDangerItemColor:jt,darkItemBg:wt,darkSubMenuItemBg:bt,darkItemSelectedColor:Mt,darkItemSelectedBg:Yt,darkDangerItemSelectedBg:Vt,darkItemHoverBg:tn,darkGroupTitleColor:pe,darkItemHoverColor:Oe,darkItemDisabledColor:Ye,darkDangerItemHoverColor:ct,darkDangerItemSelectedColor:ht,darkDangerItemActiveBg:Tt}=ye,Dt=Lt/7*5,Bt=(0,Le.TS)(ye,{menuArrowSize:Dt,menuHorizontalHeight:Pt*1.15,menuArrowOffset:`${Dt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Fe}),It=(0,Le.TS)(Bt,{itemColor:Ot,itemHoverColor:Oe,groupTitleColor:pe,itemSelectedColor:Mt,itemBg:wt,popupBg:wt,subMenuItemBg:bt,itemActiveBg:"transparent",itemSelectedBg:Yt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:tn,itemDisabledColor:Ye,dangerItemColor:jt,dangerItemHoverColor:ct,dangerItemSelectedColor:ht,dangerItemActiveBg:Tt,dangerItemSelectedBg:Vt,menuSubMenuBg:bt,horizontalItemSelectedColor:ut,horizontalItemSelectedBg:Xe});return[Ve(Bt),Ae(Bt),Be(Bt),at(Bt,"light"),at(It,"dark"),gt(Bt),(0,Ge.Z)(Bt),(0,pt.oN)(Bt,"slide-up"),(0,pt.oN)(Bt,"slide-down"),(0,Gt._y)(Bt,"zoom-big")]},ye=>{const{colorPrimary:Fe,colorError:Xe,colorTextDisabled:ut,colorErrorBg:Pt,colorText:Lt,colorTextDescription:Ot,colorBgContainer:jt,colorFillAlter:wt,colorFillContent:bt,lineWidth:Mt,lineWidthBold:Yt,controlItemBgActive:Vt,colorBgTextHover:tn,controlHeightLG:pe,lineHeight:Oe,colorBgElevated:Ye,marginXXS:ct,padding:ht,fontSize:Tt,controlHeightSM:Dt,fontSizeLG:Bt,colorTextLightSolid:It,colorErrorHover:Jt}=ye,Kt=new se.C(It).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ye.zIndexPopupBase+50,radiusItem:ye.borderRadiusLG,itemBorderRadius:ye.borderRadiusLG,radiusSubMenuItem:ye.borderRadiusSM,subMenuItemBorderRadius:ye.borderRadiusSM,colorItemText:Lt,itemColor:Lt,colorItemTextHover:Lt,itemHoverColor:Lt,colorItemTextHoverHorizontal:Fe,horizontalItemHoverColor:Fe,colorGroupTitle:Ot,groupTitleColor:Ot,colorItemTextSelected:Fe,itemSelectedColor:Fe,colorItemTextSelectedHorizontal:Fe,horizontalItemSelectedColor:Fe,colorItemBg:jt,itemBg:jt,colorItemBgHover:tn,itemHoverBg:tn,colorItemBgActive:bt,itemActiveBg:Vt,colorSubItemBg:wt,subMenuItemBg:wt,colorItemBgSelected:Vt,itemSelectedBg:Vt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Yt,activeBarHeight:Yt,colorActiveBarBorderSize:Mt,activeBarBorderWidth:Mt,colorItemTextDisabled:ut,itemDisabledColor:ut,colorDangerItemText:Xe,dangerItemColor:Xe,colorDangerItemTextHover:Xe,dangerItemHoverColor:Xe,colorDangerItemTextSelected:Xe,dangerItemSelectedColor:Xe,colorDangerItemBgActive:Pt,dangerItemActiveBg:Pt,colorDangerItemBgSelected:Pt,dangerItemSelectedBg:Pt,itemMarginInline:ye.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:pe,groupTitleLineHeight:Oe,collapsedWidth:pe*2,popupBg:Ye,itemMarginBlock:ct,itemPaddingInline:ht,horizontalLineHeight:`${pe*1.15}px`,iconSize:Tt,iconMarginInlineEnd:Dt-Tt,collapsedIconSize:Bt,groupTitleFontSize:Tt,darkItemDisabledColor:new se.C(It).setAlpha(.25).toRgbString(),darkItemColor:Kt,darkDangerItemColor:Xe,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:It,darkItemSelectedBg:Fe,darkDangerItemSelectedBg:Xe,darkItemHoverBg:"transparent",darkGroupTitleColor:Kt,darkItemHoverColor:It,darkDangerItemHoverColor:Jt,darkDangerItemSelectedColor:It,darkDangerItemActiveBg:Xe}},{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"]]})(Ee),de=function(Ee,be){var ve={};for(var ye in Ee)Object.prototype.hasOwnProperty.call(Ee,ye)&&be.indexOf(ye)<0&&(ve[ye]=Ee[ye]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ye=Object.getOwnPropertySymbols(Ee);Fe<ye.length;Fe++)be.indexOf(ye[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Ee,ye[Fe])&&(ve[ye[Fe]]=Ee[ye[Fe]]);return ve},ft=(0,ce.forwardRef)((Ee,be)=>{var ve,ye;const Fe=ce.useContext(re.Z),Xe=Fe||{},{getPrefixCls:ut,getPopupContainer:Pt,direction:Lt,menu:Ot}=ce.useContext(Ce.E_),jt=ut(),{prefixCls:wt,className:bt,style:Mt,theme:Yt="light",expandIcon:Vt,_internalDisableMenuItemTitleTooltip:tn,inlineCollapsed:pe,siderCollapsed:Oe,items:Ye,children:ct,rootClassName:ht,mode:Tt,selectable:Dt,onClick:Bt,overflowedIndicatorPopupClassName:It}=Ee,Jt=de(Ee,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kt=(0,Ue.Z)(Jt,["collapsedWidth"]),gn=me(Ye)||ct;(ve=Xe.validator)===null||ve===void 0||ve.call(Xe,{mode:Tt});const rn=(0,ee.useEvent)(function(){var Cn;Bt==null||Bt.apply(void 0,arguments),(Cn=Xe.onClick)===null||Cn===void 0||Cn.call(Xe)}),hn=Xe.mode||Tt,bn=Dt!=null?Dt:Xe.selectable,on=ce.useMemo(()=>Oe!==void 0?Oe:pe,[pe,Oe]),nn={horizontal:{motionName:`${jt}-slide-up`},inline:(0,te.Z)(jt),other:{motionName:`${jt}-zoom-big`}},un=ut("menu",wt||Xe.prefixCls),[pn,wn]=Qe(un,!Fe),mn=ue()(`${un}-${Yt}`,Ot==null?void 0:Ot.className,bt);let xn;if(typeof Vt=="function")xn=Vt;else if(Vt===null||Vt===!1)xn=null;else if(Xe.expandIcon===null||Xe.expandIcon===!1)xn=null;else{const Cn=Vt!=null?Vt:Xe.expandIcon;xn=(0,je.Tm)(Cn,{className:ue()(`${un}-submenu-expand-icon`,(0,je.l$)(Cn)?(ye=Cn.props)===null||ye===void 0?void 0:ye.className:"")})}const Rn=ce.useMemo(()=>({prefixCls:un,inlineCollapsed:on||!1,direction:Lt,firstLevel:!0,theme:Yt,mode:hn,disableMenuItemTitleTooltip:tn}),[un,on,Lt,tn,Yt]);return pn(ce.createElement(re.Z.Provider,{value:null},ce.createElement(a.Provider,{value:Rn},ce.createElement(ne.ZP,Object.assign({getPopupContainer:Pt,overflowedIndicator:ce.createElement(z.Z,null),overflowedIndicatorPopupClassName:ue()(un,`${un}-${Yt}`,It),mode:hn,selectable:bn,onClick:rn},Kt,{inlineCollapsed:on,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),Mt),className:mn,prefixCls:un,direction:Lt,defaultMotions:nn,expandIcon:xn,ref:be,rootClassName:ue()(ht,wn)}),gn))))});const Ht=(0,ce.forwardRef)((Ee,be)=>{const ve=(0,ce.useRef)(null),ye=ce.useContext(_e.D);return(0,ce.useImperativeHandle)(be,()=>({menu:ve.current,focus:Fe=>{var Xe;(Xe=ve.current)===null||Xe===void 0||Xe.focus(Fe)}})),ce.createElement(ft,Object.assign({ref:ve},Ee,ye))});Ht.Item=E,Ht.SubMenu=x,Ht.Divider=xe,Ht.ItemGroup=ne.BW;var mt=Ht},38703:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return tn}});var ne=oe(67294),ce=oe(87725),_e=oe(18299),ze=oe(16646),ue=oe(73475),Ce=oe(94184),le=oe.n(Ce),He=oe(10366),xe=oe(53124),Te=oe(87462),Ue=oe(1413),ke=oe(45987),je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Oe=(0,ne.useRef)([]),Ye=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var ct=Date.now(),ht=!1;Oe.current.forEach(function(Tt){if(Tt){ht=!0;var Dt=Tt.style;Dt.transitionDuration=".3s, .3s, .3s, .06s",Ye.current&&ct-Ye.current<100&&(Dt.transitionDuration="0s, 0s")}}),ht&&(Ye.current=Date.now())}),Oe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Oe){var Ye=(0,Ue.Z)((0,Ue.Z)({},je),Oe),ct=Ye.className,ht=Ye.percent,Tt=Ye.prefixCls,Dt=Ye.strokeColor,Bt=Ye.strokeLinecap,It=Ye.strokeWidth,Jt=Ye.style,Kt=Ye.trailColor,gn=Ye.trailWidth,rn=Ye.transition,hn=(0,ke.Z)(Ye,a);delete hn.gapPosition;var bn=Array.isArray(ht)?ht:[ht],on=Array.isArray(Dt)?Dt:[Dt],nn=ae(),un=It/2,pn=100-It/2,wn="M ".concat(Bt==="round"?un:0,",").concat(un,`
|
|
L `).concat(Bt==="round"?pn:100,",").concat(un),mn="0 0 100 ".concat(It),xn=0;return ne.createElement("svg",(0,Te.Z)({className:le()("".concat(Tt,"-line"),ct),viewBox:mn,preserveAspectRatio:"none",style:Jt},hn),ne.createElement("path",{className:"".concat(Tt,"-line-trail"),d:wn,strokeLinecap:Bt,stroke:Kt,strokeWidth:gn||It,fillOpacity:"0"}),bn.map(function(Rn,Cn){var An=1;switch(Bt){case"round":An=1-It/100;break;case"square":An=1-It/2/100;break;default:An=1;break}var Un={strokeDasharray:"".concat(Rn*An,"px, 100px"),strokeDashoffset:"-".concat(xn,"px"),transition:rn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},kn=on[Cn]||on[on.length-1];return xn+=Rn,ne.createElement("path",{key:Cn,className:"".concat(Tt,"-line-path"),d:wn,strokeLinecap:Bt,stroke:kn,strokeWidth:It,fillOpacity:"0",ref:function(we){nn[Cn]=we},style:Un})}))},E=y,b=oe(71002),x=oe(97685),z=oe(98924),ee=0,te=(0,z.Z)();function re(){var pe;return te?(pe=ee,ee+=1):pe="TEST_OR_SSR",pe}var ie=function(pe){var Oe=ne.useState(),Ye=(0,x.Z)(Oe,2),ct=Ye[0],ht=Ye[1];return ne.useEffect(function(){ht("rc_progress_".concat(re()))},[]),pe||ct},ge=function(Oe){var Ye=Oe.bg,ct=Oe.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:Ye}},ct)};function me(pe,Oe){return Object.keys(pe).map(function(Ye){var ct=parseFloat(Ye),ht="".concat(Math.floor(ct*Oe),"%");return"".concat(pe[Ye]," ").concat(ht)})}var se=ne.forwardRef(function(pe,Oe){var Ye=pe.prefixCls,ct=pe.color,ht=pe.gradientId,Tt=pe.radius,Dt=pe.style,Bt=pe.ptg,It=pe.strokeLinecap,Jt=pe.strokeWidth,Kt=pe.size,gn=pe.gapDegree,rn=ct&&(0,b.Z)(ct)==="object",hn=rn?"#FFF":void 0,bn=Kt/2,on=ne.createElement("circle",{className:"".concat(Ye,"-circle-path"),r:Tt,cx:bn,cy:bn,stroke:hn,strokeLinecap:It,strokeWidth:Jt,opacity:Bt===0?0:1,style:Dt,ref:Oe});if(!rn)return on;var nn="".concat(ht,"-conic"),un=gn?"".concat(180+gn/2,"deg"):"0deg",pn=me(ct,(360-gn)/360),wn=me(ct,1),mn="conic-gradient(from ".concat(un,", ").concat(pn.join(", "),")"),xn="linear-gradient(to ".concat(gn?"bottom":"top",", ").concat(wn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:nn},on),ne.createElement("foreignObject",{x:0,y:0,width:Kt,height:Kt,mask:"url(#".concat(nn,")")},ne.createElement(ge,{bg:xn},ne.createElement(ge,{bg:mn}))))}),Ne=se,Ge=100,pt=function(Oe,Ye,ct,ht,Tt,Dt,Bt,It,Jt,Kt){var gn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,rn=ct/100*360*((360-Dt)/360),hn=Dt===0?0:{bottom:0,top:180,left:90,right:-90}[Bt],bn=(100-ht)/100*Ye;Jt==="round"&&ht!==100&&(bn+=Kt/2,bn>=Ye&&(bn=Ye-.01));var on=Ge/2;return{stroke:typeof It=="string"?It:void 0,strokeDasharray:"".concat(Ye,"px ").concat(Oe),strokeDashoffset:bn+gn,transform:"rotate(".concat(Tt+rn+hn,"deg)"),transformOrigin:"".concat(on,"px ").concat(on,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Gt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function kt(pe){var Oe=pe!=null?pe:[];return Array.isArray(Oe)?Oe:[Oe]}var Le=function(Oe){var Ye=(0,Ue.Z)((0,Ue.Z)({},je),Oe),ct=Ye.id,ht=Ye.prefixCls,Tt=Ye.steps,Dt=Ye.strokeWidth,Bt=Ye.trailWidth,It=Ye.gapDegree,Jt=It===void 0?0:It,Kt=Ye.gapPosition,gn=Ye.trailColor,rn=Ye.strokeLinecap,hn=Ye.style,bn=Ye.className,on=Ye.strokeColor,nn=Ye.percent,un=(0,ke.Z)(Ye,Gt),pn=Ge/2,wn=ie(ct),mn="".concat(wn,"-gradient"),xn=pn-Dt/2,Rn=Math.PI*2*xn,Cn=Jt>0?90+Jt/2:-90,An=Rn*((360-Jt)/360),Un=(0,b.Z)(Tt)==="object"?Tt:{count:Tt,space:2},kn=Un.count,fe=Un.space,we=kt(nn),Pe=kt(on),dt=Pe.find(function(Hn){return Hn&&(0,b.Z)(Hn)==="object"}),Et=dt&&(0,b.Z)(dt)==="object",Nt=Et?"butt":rn,Sn=pt(Rn,An,0,100,Cn,Jt,Kt,gn,Nt,Dt),en=ae(),ln=function(){var lt=0;return we.map(function(dn,Se){var De=Pe[Se]||Pe[Pe.length-1],$e=pt(Rn,An,lt,dn,Cn,Jt,Kt,De,Nt,Dt);return lt+=dn,ne.createElement(Ne,{key:Se,color:De,ptg:dn,radius:xn,prefixCls:ht,gradientId:mn,style:$e,strokeLinecap:Nt,strokeWidth:Dt,gapDegree:Jt,ref:function(st){en[Se]=st},size:Ge})}).reverse()},Bn=function(){var lt=Math.round(kn*(we[0]/100)),dn=100/kn,Se=0;return new Array(kn).fill(null).map(function(De,$e){var Re=$e<=lt-1?Pe[0]:gn,st=Re&&(0,b.Z)(Re)==="object"?"url(#".concat(mn,")"):void 0,Je=pt(Rn,An,Se,dn,Cn,Jt,Kt,Re,"butt",Dt,fe);return Se+=(An-Je.strokeDashoffset+fe)*100/An,ne.createElement("circle",{key:$e,className:"".concat(ht,"-circle-path"),r:xn,cx:pn,cy:pn,stroke:st,strokeWidth:Dt,opacity:1,style:Je,ref:function(Ze){en[$e]=Ze}})})};return ne.createElement("svg",(0,Te.Z)({className:le()("".concat(ht,"-circle"),bn),viewBox:"0 0 ".concat(Ge," ").concat(Ge),style:hn,id:ct,role:"presentation"},un),!kn&&ne.createElement("circle",{className:"".concat(ht,"-circle-trail"),r:xn,cx:pn,cy:pn,stroke:gn,strokeLinecap:Nt,strokeWidth:Bt||Dt,style:Sn}),kn?Bn():ln())},Ie=Le,Ae={Line:E,Circle:Ie},nt=oe(83062),gt=oe(47448);function We(pe){return!pe||pe<0?0:pe>100?100:pe}function Ke(pe){let{success:Oe,successPercent:Ye}=pe,ct=Ye;return Oe&&"progress"in Oe&&(ct=Oe.progress),Oe&&"percent"in Oe&&(ct=Oe.percent),ct}const at=pe=>{let{percent:Oe,success:Ye,successPercent:ct}=pe;const ht=We(Ke({success:Ye,successPercent:ct}));return[ht,We(We(Oe)-ht)]},xt=pe=>{let{success:Oe={},strokeColor:Ye}=pe;const{strokeColor:ct}=Oe;return[ct||gt.presetPrimaryColors.green,Ye||null]},he=(pe,Oe,Ye)=>{var ct,ht,Tt,Dt;let Bt=-1,It=-1;if(Oe==="step"){const Jt=Ye.steps,Kt=Ye.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?(Bt=pe==="small"?2:14,It=Kt!=null?Kt:8):typeof pe=="number"?[Bt,It]=[pe,pe]:[Bt=14,It=8]=pe,Bt*=Jt}else if(Oe==="line"){const Jt=Ye==null?void 0:Ye.strokeWidth;typeof pe=="string"||typeof pe=="undefined"?It=Jt||(pe==="small"?6:8):typeof pe=="number"?[Bt,It]=[pe,pe]:[Bt=-1,It=8]=pe}else(Oe==="circle"||Oe==="dashboard")&&(typeof pe=="string"||typeof pe=="undefined"?[Bt,It]=pe==="small"?[60,60]:[120,120]:typeof pe=="number"?[Bt,It]=[pe,pe]:(Bt=(ht=(ct=pe[0])!==null&&ct!==void 0?ct:pe[1])!==null&&ht!==void 0?ht:120,It=(Dt=(Tt=pe[0])!==null&&Tt!==void 0?Tt:pe[1])!==null&&Dt!==void 0?Dt:120));return[Bt,It]},Be=3,qe=pe=>Be/pe*100;var Ve=pe=>{const{prefixCls:Oe,trailColor:Ye=null,strokeLinecap:ct="round",gapPosition:ht,gapDegree:Tt,width:Dt=120,type:Bt,children:It,success:Jt,size:Kt=Dt}=pe,[gn,rn]=he(Kt,"circle");let{strokeWidth:hn}=pe;hn===void 0&&(hn=Math.max(qe(gn),6));const bn={width:gn,height:rn,fontSize:gn*.15+6},on=ne.useMemo(()=>{if(Tt||Tt===0)return Tt;if(Bt==="dashboard")return 75},[Tt,Bt]),nn=ht||Bt==="dashboard"&&"bottom"||void 0,un=Object.prototype.toString.call(pe.strokeColor)==="[object Object]",pn=xt({success:Jt,strokeColor:pe.strokeColor}),wn=le()(`${Oe}-inner`,{[`${Oe}-circle-gradient`]:un}),mn=ne.createElement(Ie,{percent:at(pe),strokeWidth:hn,trailWidth:hn,strokeColor:pn,strokeLinecap:ct,trailColor:Ye,prefixCls:Oe,gapDegree:on,gapPosition:nn});return ne.createElement("div",{className:wn,style:bn},gn<=20?ne.createElement(nt.Z,{title:It},ne.createElement("span",null,mn)):ne.createElement(ne.Fragment,null,mn,It))},Qe=function(pe,Oe){var Ye={};for(var ct in pe)Object.prototype.hasOwnProperty.call(pe,ct)&&Oe.indexOf(ct)<0&&(Ye[ct]=pe[ct]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ct=Object.getOwnPropertySymbols(pe);ht<ct.length;ht++)Oe.indexOf(ct[ht])<0&&Object.prototype.propertyIsEnumerable.call(pe,ct[ht])&&(Ye[ct[ht]]=pe[ct[ht]]);return Ye};const de=pe=>{let Oe=[];return Object.keys(pe).forEach(Ye=>{const ct=parseFloat(Ye.replace(/%/g,""));isNaN(ct)||Oe.push({key:ct,value:pe[Ye]})}),Oe=Oe.sort((Ye,ct)=>Ye.key-ct.key),Oe.map(Ye=>{let{key:ct,value:ht}=Ye;return`${ht} ${ct}%`}).join(", ")},tt=(pe,Oe)=>{const{from:Ye=gt.presetPrimaryColors.blue,to:ct=gt.presetPrimaryColors.blue,direction:ht=Oe==="rtl"?"to left":"to right"}=pe,Tt=Qe(pe,["from","to","direction"]);if(Object.keys(Tt).length!==0){const Dt=de(Tt);return{backgroundImage:`linear-gradient(${ht}, ${Dt})`}}return{backgroundImage:`linear-gradient(${ht}, ${Ye}, ${ct})`}};var Ht=pe=>{const{prefixCls:Oe,direction:Ye,percent:ct,size:ht,strokeWidth:Tt,strokeColor:Dt,strokeLinecap:Bt="round",children:It,trailColor:Jt=null,success:Kt}=pe,gn=Dt&&typeof Dt!="string"?tt(Dt,Ye):{backgroundColor:Dt},rn=Bt==="square"||Bt==="butt"?0:void 0,hn={backgroundColor:Jt||void 0,borderRadius:rn},bn=ht!=null?ht:[-1,Tt||(ht==="small"?6:8)],[on,nn]=he(bn,"line",{strokeWidth:Tt}),un=Object.assign({width:`${We(ct)}%`,height:nn,borderRadius:rn},gn),pn=Ke(pe),wn={width:`${We(pn)}%`,height:nn,borderRadius:rn,backgroundColor:Kt==null?void 0:Kt.strokeColor},mn={width:on<0?"100%":on,height:nn};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Oe}-outer`,style:mn},ne.createElement("div",{className:`${Oe}-inner`,style:hn},ne.createElement("div",{className:`${Oe}-bg`,style:un}),pn!==void 0?ne.createElement("div",{className:`${Oe}-success-bg`,style:wn}):null)),It)},Ee=pe=>{const{size:Oe,steps:Ye,percent:ct=0,strokeWidth:ht=8,strokeColor:Tt,trailColor:Dt=null,prefixCls:Bt,children:It}=pe,Jt=Math.round(Ye*(ct/100)),Kt=Oe==="small"?2:14,gn=Oe!=null?Oe:[Kt,ht],[rn,hn]=he(gn,"step",{steps:Ye,strokeWidth:ht}),bn=rn/Ye,on=new Array(Ye);for(let nn=0;nn<Ye;nn++){const un=Array.isArray(Tt)?Tt[nn]:Tt;on[nn]=ne.createElement("div",{key:nn,className:le()(`${Bt}-steps-item`,{[`${Bt}-steps-item-active`]:nn<=Jt-1}),style:{backgroundColor:nn<=Jt-1?un:Dt,width:bn,height:hn}})}return ne.createElement("div",{className:`${Bt}-steps-outer`},on,It)},be=oe(45930),ve=oe(14747),ye=oe(67968),Fe=oe(45503);const Xe=pe=>{const Oe=pe?"100%":"-100%";return new be.Keyframes(`antProgress${pe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},ut=pe=>{const{componentCls:Oe,iconCls:Ye}=pe;return{[Oe]:Object.assign(Object.assign({},(0,ve.Wf)(pe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:pe.fontSize,marginInlineEnd:pe.marginXS,marginBottom:pe.marginXS},[`${Oe}-outer`]:{display:"inline-block",width:"100%"},[`&${Oe}-show-info`]:{[`${Oe}-outer`]:{marginInlineEnd:`calc(-2em - ${pe.marginXS}px)`,paddingInlineEnd:`calc(2em + ${pe.paddingXS}px)`}},[`${Oe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:pe.remainingColor,borderRadius:pe.lineBorderRadius},[`${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:pe.defaultColor}},[`${Oe}-success-bg, ${Oe}-bg`]:{position:"relative",backgroundColor:pe.defaultColor,borderRadius:pe.lineBorderRadius,transition:`all ${pe.motionDurationSlow} ${pe.motionEaseInOutCirc}`},[`${Oe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:pe.colorSuccess},[`${Oe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:pe.marginXS,color:pe.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Ye]:{fontSize:pe.fontSize}},[`&${Oe}-status-active`]:{[`${Oe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:pe.colorBgContainer,borderRadius:pe.lineBorderRadius,opacity:0,animationName:Xe(),animationDuration:pe.progressActiveMotionDuration,animationTimingFunction:pe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Oe}-rtl${Oe}-status-active`]:{[`${Oe}-bg::before`]:{animationName:Xe(!0)}},[`&${Oe}-status-exception`]:{[`${Oe}-bg`]:{backgroundColor:pe.colorError},[`${Oe}-text`]:{color:pe.colorError}},[`&${Oe}-status-exception ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:pe.colorError}},[`&${Oe}-status-success`]:{[`${Oe}-bg`]:{backgroundColor:pe.colorSuccess},[`${Oe}-text`]:{color:pe.colorSuccess}},[`&${Oe}-status-success ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:pe.colorSuccess}}})}},Pt=pe=>{const{componentCls:Oe,iconCls:Ye}=pe;return{[Oe]:{[`${Oe}-circle-trail`]:{stroke:pe.remainingColor},[`&${Oe}-circle ${Oe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Oe}-circle ${Oe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:pe.circleTextColor,fontSize:pe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Ye]:{fontSize:`${pe.fontSize/pe.fontSizeSM}em`}},[`${Oe}-circle&-status-exception`]:{[`${Oe}-text`]:{color:pe.colorError}},[`${Oe}-circle&-status-success`]:{[`${Oe}-text`]:{color:pe.colorSuccess}}},[`${Oe}-inline-circle`]:{lineHeight:1,[`${Oe}-inner`]:{verticalAlign:"bottom"}}}},Lt=pe=>{const{componentCls:Oe}=pe;return{[Oe]:{[`${Oe}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:pe.progressStepMinWidth,marginInlineEnd:pe.progressStepMarginInlineEnd,backgroundColor:pe.remainingColor,transition:`all ${pe.motionDurationSlow}`,"&-active":{backgroundColor:pe.defaultColor}}}}}},Ot=pe=>{const{componentCls:Oe,iconCls:Ye}=pe;return{[Oe]:{[`${Oe}-small&-line, ${Oe}-small&-line ${Oe}-text ${Ye}`]:{fontSize:pe.fontSizeSM}}}};var jt=(0,ye.Z)("Progress",pe=>{const Oe=pe.marginXXS/2,Ye=(0,Fe.TS)(pe,{progressStepMarginInlineEnd:Oe,progressStepMinWidth:Oe,progressActiveMotionDuration:"2.4s"});return[ut(Ye),Pt(Ye),Lt(Ye),Ot(Ye)]},pe=>({circleTextColor:pe.colorText,defaultColor:pe.colorInfo,remainingColor:pe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),wt=function(pe,Oe){var Ye={};for(var ct in pe)Object.prototype.hasOwnProperty.call(pe,ct)&&Oe.indexOf(ct)<0&&(Ye[ct]=pe[ct]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,ct=Object.getOwnPropertySymbols(pe);ht<ct.length;ht++)Oe.indexOf(ct[ht])<0&&Object.prototype.propertyIsEnumerable.call(pe,ct[ht])&&(Ye[ct[ht]]=pe[ct[ht]]);return Ye};const bt=null,Mt=["normal","exception","active","success"];var Vt=ne.forwardRef((pe,Oe)=>{const{prefixCls:Ye,className:ct,rootClassName:ht,steps:Tt,strokeColor:Dt,percent:Bt=0,size:It="default",showInfo:Jt=!0,type:Kt="line",status:gn,format:rn,style:hn}=pe,bn=wt(pe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),on=ne.useMemo(()=>{var we,Pe;const dt=Ke(pe);return parseInt(dt!==void 0?(we=dt!=null?dt:0)===null||we===void 0?void 0:we.toString():(Pe=Bt!=null?Bt:0)===null||Pe===void 0?void 0:Pe.toString(),10)},[Bt,pe.success,pe.successPercent]),nn=ne.useMemo(()=>!Mt.includes(gn)&&on>=100?"success":gn||"normal",[gn,on]),{getPrefixCls:un,direction:pn,progress:wn}=ne.useContext(xe.E_),mn=un("progress",Ye),[xn,Rn]=jt(mn),Cn=ne.useMemo(()=>{if(!Jt)return null;const we=Ke(pe);let Pe;const dt=rn||(Nt=>`${Nt}%`),Et=Kt==="line";return rn||nn!=="exception"&&nn!=="success"?Pe=dt(We(Bt),We(we)):nn==="exception"?Pe=Et?ne.createElement(ze.Z,null):ne.createElement(ue.Z,null):nn==="success"&&(Pe=Et?ne.createElement(ce.Z,null):ne.createElement(_e.Z,null)),ne.createElement("span",{className:`${mn}-text`,title:typeof Pe=="string"?Pe:void 0},Pe)},[Jt,Bt,on,nn,Kt,mn,rn]),An=Array.isArray(Dt)?Dt[0]:Dt,Un=typeof Dt=="string"||Array.isArray(Dt)?Dt:void 0;let kn;Kt==="line"?kn=Tt?ne.createElement(Ee,Object.assign({},pe,{strokeColor:Un,prefixCls:mn,steps:Tt}),Cn):ne.createElement(Ht,Object.assign({},pe,{strokeColor:An,prefixCls:mn,direction:pn}),Cn):(Kt==="circle"||Kt==="dashboard")&&(kn=ne.createElement(Ve,Object.assign({},pe,{strokeColor:An,prefixCls:mn,progressStatus:nn}),Cn));const fe=le()(mn,`${mn}-status-${nn}`,`${mn}-${Kt==="dashboard"&&"circle"||Tt&&"steps"||Kt}`,{[`${mn}-inline-circle`]:Kt==="circle"&&he(It,"circle")[0]<=20,[`${mn}-show-info`]:Jt,[`${mn}-${It}`]:typeof It=="string",[`${mn}-rtl`]:pn==="rtl"},wn==null?void 0:wn.className,ct,ht,Rn);return xn(ne.createElement("div",Object.assign({ref:Oe,style:Object.assign(Object.assign({},wn==null?void 0:wn.style),hn),className:fe,role:"progressbar","aria-valuenow":on},(0,He.Z)(bn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),kn))}),tn=Vt},59810:function(Me,it,oe){"use strict";oe.d(it,{default:function(){return dn}});var ne=oe(67294),ce=oe(74902),_e=oe(94184),ze=oe.n(_e),ue=oe(87462),Ce=oe(15671),le=oe(43144),He=oe(60136),xe=oe(51630),Te=oe(4942),Ue=oe(45987),ke=oe(74165),je=oe(71002),ae=oe(15861),a=oe(64217);function y(Se,De){var $e="cannot ".concat(Se.method," ").concat(Se.action," ").concat(De.status,"'"),Re=new Error($e);return Re.status=De.status,Re.method=Se.method,Re.url=Se.action,Re}function E(Se){var De=Se.responseText||Se.response;if(!De)return De;try{return JSON.parse(De)}catch($e){return De}}function b(Se){var De=new XMLHttpRequest;Se.onProgress&&De.upload&&(De.upload.onprogress=function(Je){Je.total>0&&(Je.percent=Je.loaded/Je.total*100),Se.onProgress(Je)});var $e=new FormData;Se.data&&Object.keys(Se.data).forEach(function(st){var Je=Se.data[st];if(Array.isArray(Je)){Je.forEach(function(rt){$e.append("".concat(st,"[]"),rt)});return}$e.append(st,Je)}),Se.file instanceof Blob?$e.append(Se.filename,Se.file,Se.file.name):$e.append(Se.filename,Se.file),De.onerror=function(Je){Se.onError(Je)},De.onload=function(){return De.status<200||De.status>=300?Se.onError(y(Se,De),E(De)):Se.onSuccess(E(De),De)},De.open(Se.method,Se.action,!0),Se.withCredentials&&"withCredentials"in De&&(De.withCredentials=!0);var Re=Se.headers||{};return Re["X-Requested-With"]!==null&&De.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Re).forEach(function(st){Re[st]!==null&&De.setRequestHeader(st,Re[st])}),De.send($e),{abort:function(){De.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(80334),re=function(Se,De){if(Se&&De){var $e=Array.isArray(De)?De:De.split(","),Re=Se.name||"",st=Se.type||"",Je=st.replace(/\/.*$/,"");return $e.some(function(rt){var Ze=rt.trim();if(/^\*(\/\*)?$/.test(rt))return!0;if(Ze.charAt(0)==="."){var Wt=Re.toLowerCase(),$t=Ze.toLowerCase(),Xt=[$t];return($t===".jpg"||$t===".jpeg")&&(Xt=[".jpg",".jpeg"]),Xt.some(function(an){return Wt.endsWith(an)})}return/\/\*$/.test(Ze)?Je===Ze.replace(/\/.*$/,""):st===Ze?!0:/^\w+$/.test(Ze)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ze,"'.Skip for check.")),!0):!1})}return!0};function ie(Se,De){var $e=Se.createReader(),Re=[];function st(){$e.readEntries(function(Je){var rt=Array.prototype.slice.apply(Je);Re=Re.concat(rt);var Ze=!rt.length;Ze?De(Re):st()})}st()}var ge=function(De,$e,Re){var st=function Je(rt,Ze){rt&&(rt.path=Ze||"",rt.isFile?rt.file(function(Wt){Re(Wt)&&(rt.fullPath&&!Wt.webkitRelativePath&&(Object.defineProperties(Wt,{webkitRelativePath:{writable:!0}}),Wt.webkitRelativePath=rt.fullPath.replace(/^\//,""),Object.defineProperties(Wt,{webkitRelativePath:{writable:!1}})),$e([Wt]))}):rt.isDirectory&&ie(rt,function(Wt){Wt.forEach(function($t){Je($t,"".concat(Ze).concat(rt.name,"/"))})}))};De.forEach(function(Je){st(Je.webkitGetAsEntry())})},me=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Ne=function(Se){(0,He.Z)($e,Se);var De=(0,xe.Z)($e);function $e(){var Re;(0,Ce.Z)(this,$e);for(var st=arguments.length,Je=new Array(st),rt=0;rt<st;rt++)Je[rt]=arguments[rt];return Re=De.call.apply(De,[this].concat(Je)),Re.state={uid:ee()},Re.reqs={},Re.fileInput=void 0,Re._isMounted=void 0,Re.onChange=function(Ze){var Wt=Re.props,$t=Wt.accept,Xt=Wt.directory,an=Ze.target.files,sn=(0,ce.Z)(an).filter(function(fn){return!Xt||re(fn,$t)});Re.uploadFiles(sn),Re.reset()},Re.onClick=function(Ze){var Wt=Re.fileInput;if(Wt){var $t=Re.props,Xt=$t.children,an=$t.onClick;if(Xt&&Xt.type==="button"){var sn=Wt.parentNode;sn.focus(),sn.querySelector("button").blur()}Wt.click(),an&&an(Ze)}},Re.onKeyDown=function(Ze){Ze.key==="Enter"&&Re.onClick(Ze)},Re.onFileDrop=function(Ze){var Wt=Re.props.multiple;if(Ze.preventDefault(),Ze.type!=="dragover")if(Re.props.directory)me(Array.prototype.slice.call(Ze.dataTransfer.items),Re.uploadFiles,function(Xt){return re(Xt,Re.props.accept)});else{var $t=(0,ce.Z)(Ze.dataTransfer.files).filter(function(Xt){return re(Xt,Re.props.accept)});Wt===!1&&($t=$t.slice(0,1)),Re.uploadFiles($t)}},Re.uploadFiles=function(Ze){var Wt=(0,ce.Z)(Ze),$t=Wt.map(function(Xt){return Xt.uid=ee(),Re.processFile(Xt,Wt)});Promise.all($t).then(function(Xt){var an=Re.props.onBatchStart;an==null||an(Xt.map(function(sn){var fn=sn.origin,Tn=sn.parsedFile;return{file:fn,parsedFile:Tn}})),Xt.filter(function(sn){return sn.parsedFile!==null}).forEach(function(sn){Re.post(sn)})})},Re.processFile=function(){var Ze=(0,ae.Z)((0,ke.Z)().mark(function Wt($t,Xt){var an,sn,fn,Tn,et,_n,On,ot,Ft;return(0,ke.Z)().wrap(function(St){for(;;)switch(St.prev=St.next){case 0:if(an=Re.props.beforeUpload,sn=$t,!an){St.next=14;break}return St.prev=3,St.next=6,an($t,Xt);case 6:sn=St.sent,St.next=12;break;case 9:St.prev=9,St.t0=St.catch(3),sn=!1;case 12:if(sn!==!1){St.next=14;break}return St.abrupt("return",{origin:$t,parsedFile:null,action:null,data:null});case 14:if(fn=Re.props.action,typeof fn!="function"){St.next=21;break}return St.next=18,fn($t);case 18:Tn=St.sent,St.next=22;break;case 21:Tn=fn;case 22:if(et=Re.props.data,typeof et!="function"){St.next=29;break}return St.next=26,et($t);case 26:_n=St.sent,St.next=30;break;case 29:_n=et;case 30:return On=((0,je.Z)(sn)==="object"||typeof sn=="string")&&sn?sn:$t,On instanceof File?ot=On:ot=new File([On],$t.name,{type:$t.type}),Ft=ot,Ft.uid=$t.uid,St.abrupt("return",{origin:$t,data:_n,parsedFile:Ft,action:Tn});case 35:case"end":return St.stop()}},Wt,null,[[3,9]])}));return function(Wt,$t){return Ze.apply(this,arguments)}}(),Re.saveFileInput=function(Ze){Re.fileInput=Ze},Re}return(0,le.Z)($e,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(st){var Je=this,rt=st.data,Ze=st.origin,Wt=st.action,$t=st.parsedFile;if(this._isMounted){var Xt=this.props,an=Xt.onStart,sn=Xt.customRequest,fn=Xt.name,Tn=Xt.headers,et=Xt.withCredentials,_n=Xt.method,On=Ze.uid,ot=sn||b,Ft={action:Wt,filename:fn,data:rt,file:$t,headers:Tn,withCredentials:et,method:_n||"post",onProgress:function(St){var cn=Je.props.onProgress;cn==null||cn(St,$t)},onSuccess:function(St,cn){var _t=Je.props.onSuccess;_t==null||_t(St,$t,cn),delete Je.reqs[On]},onError:function(St,cn){var _t=Je.props.onError;_t==null||_t(St,cn,$t),delete Je.reqs[On]}};an(Ze),this.reqs[On]=ot(Ft)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(st){var Je=this.reqs;if(st){var rt=st.uid?st.uid:st;Je[rt]&&Je[rt].abort&&Je[rt].abort(),delete Je[rt]}else Object.keys(Je).forEach(function(Ze){Je[Ze]&&Je[Ze].abort&&Je[Ze].abort(),delete Je[Ze]})}},{key:"render",value:function(){var st,Je=this.props,rt=Je.component,Ze=Je.prefixCls,Wt=Je.className,$t=Je.disabled,Xt=Je.id,an=Je.style,sn=Je.multiple,fn=Je.accept,Tn=Je.capture,et=Je.children,_n=Je.directory,On=Je.openFileDialogOnClick,ot=Je.onMouseEnter,Ft=Je.onMouseLeave,Rt=(0,Ue.Z)(Je,se),St=ze()((st={},(0,Te.Z)(st,Ze,!0),(0,Te.Z)(st,"".concat(Ze,"-disabled"),$t),(0,Te.Z)(st,Wt,Wt),st)),cn=_n?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},_t=$t?{}:{onClick:On?this.onClick:function(){},onKeyDown:On?this.onKeyDown:function(){},onMouseEnter:ot,onMouseLeave:Ft,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(rt,(0,ue.Z)({},_t,{className:St,role:"button",style:an}),ne.createElement("input",(0,ue.Z)({},(0,a.Z)(Rt,{aria:!0,data:!0}),{id:Xt,disabled:$t,type:"file",ref:this.saveFileInput,onClick:function($n){return $n.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:fn},cn,{multiple:sn,onChange:this.onChange},Tn!=null?{capture:Tn}:{})),et)}}]),$e}(ne.Component),Ge=Ne;function pt(){}var Gt=function(Se){(0,He.Z)($e,Se);var De=(0,xe.Z)($e);function $e(){var Re;(0,Ce.Z)(this,$e);for(var st=arguments.length,Je=new Array(st),rt=0;rt<st;rt++)Je[rt]=arguments[rt];return Re=De.call.apply(De,[this].concat(Je)),Re.uploader=void 0,Re.saveUploader=function(Ze){Re.uploader=Ze},Re}return(0,le.Z)($e,[{key:"abort",value:function(st){this.uploader.abort(st)}},{key:"render",value:function(){return ne.createElement(Ge,(0,ue.Z)({},this.props,{ref:this.saveUploader}))}}]),$e}(ne.Component);Gt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:pt,onError:pt,onSuccess:pt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var kt=Gt,Le=kt,Ie=oe(5663),Ae=oe(73935),nt=oe(53124),gt=oe(98866),We=oe(10110),Ke=oe(24457),at={icon:function(De,$e){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:$e}},{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:De}}]}},name:"file",theme:"twotone"},xt=at,he=oe(74643),Be=function(De,$e){return ne.createElement(he.Z,(0,ue.Z)({},De,{ref:$e,icon:xt}))},qe=ne.forwardRef(Be),yt=oe(3407),Ve={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"},Qe=Ve,de=function(De,$e){return ne.createElement(he.Z,(0,ue.Z)({},De,{ref:$e,icon:Qe}))},tt=ne.forwardRef(de),ft={icon:function(De,$e){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:De}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:$e}},{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:$e}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:$e}},{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:De}}]}},name:"picture",theme:"twotone"},Ht=ft,mt=function(De,$e){return ne.createElement(he.Z,(0,ue.Z)({},De,{ref:$e,icon:Ht}))},Ee=ne.forwardRef(mt),be=oe(38379),ve=oe(57838),ye=oe(33603),Fe=oe(96159),Xe=oe(71577);function ut(Se){return Object.assign(Object.assign({},Se),{lastModified:Se.lastModified,lastModifiedDate:Se.lastModifiedDate,name:Se.name,size:Se.size,type:Se.type,uid:Se.uid,percent:0,originFileObj:Se})}function Pt(Se,De){const $e=(0,ce.Z)(De),Re=$e.findIndex(st=>{let{uid:Je}=st;return Je===Se.uid});return Re===-1?$e.push(Se):$e[Re]=Se,$e}function Lt(Se,De){const $e=Se.uid!==void 0?"uid":"name";return De.filter(Re=>Re[$e]===Se[$e])[0]}function Ot(Se,De){const $e=Se.uid!==void 0?"uid":"name",Re=De.filter(st=>st[$e]!==Se[$e]);return Re.length===De.length?null:Re}const jt=function(){const De=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Re=De[De.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Re)||[""])[0]},wt=Se=>Se.indexOf("image/")===0,bt=Se=>{if(Se.type&&!Se.thumbUrl)return wt(Se.type);const De=Se.thumbUrl||Se.url||"",$e=jt(De);return/^data:image\//.test(De)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test($e)?!0:!(/^data:/.test(De)||$e)},Mt=200;function Yt(Se){return new Promise(De=>{if(!Se.type||!wt(Se.type)){De("");return}const $e=document.createElement("canvas");$e.width=Mt,$e.height=Mt,$e.style.cssText=`position: fixed; left: 0; top: 0; width: ${Mt}px; height: ${Mt}px; z-index: 9999; display: none;`,document.body.appendChild($e);const Re=$e.getContext("2d"),st=new Image;if(st.onload=()=>{const{width:Je,height:rt}=st;let Ze=Mt,Wt=Mt,$t=0,Xt=0;Je>rt?(Wt=rt*(Mt/Je),Xt=-(Wt-Ze)/2):(Ze=Je*(Mt/rt),$t=-(Ze-Wt)/2),Re.drawImage(st,$t,Xt,Ze,Wt);const an=$e.toDataURL();document.body.removeChild($e),window.URL.revokeObjectURL(st.src),De(an)},st.crossOrigin="anonymous",Se.type.startsWith("image/svg+xml")){const Je=new FileReader;Je.onload=()=>{Je.result&&(st.src=Je.result)},Je.readAsDataURL(Se)}else if(Se.type.startsWith("image/gif")){const Je=new FileReader;Je.onload=()=>{Je.result&&De(Je.result)},Je.readAsDataURL(Se)}else st.src=window.URL.createObjectURL(Se)})}var Vt=oe(84249),tn=oe(90674),pe=oe(99569),Oe=oe(38703),Ye=oe(83062),ht=ne.forwardRef((Se,De)=>{let{prefixCls:$e,className:Re,style:st,locale:Je,listType:rt,file:Ze,items:Wt,progress:$t,iconRender:Xt,actionIconRender:an,itemRender:sn,isImgUrl:fn,showPreviewIcon:Tn,showRemoveIcon:et,showDownloadIcon:_n,previewIcon:On,removeIcon:ot,downloadIcon:Ft,onPreview:Rt,onDownload:St,onClose:cn}=Se;var _t,vn;const{status:$n}=Ze,[Nn,ea]=ne.useState($n);ne.useEffect(()=>{$n!=="removed"&&ea($n)},[$n]);const[ta,ua]=ne.useState(!1);ne.useEffect(()=>{const zn=setTimeout(()=>{ua(!0)},300);return()=>{clearTimeout(zn)}},[]);const na=Xt(Ze);let Vn=ne.createElement("div",{className:`${$e}-icon`},na);if(rt==="picture"||rt==="picture-card"||rt==="picture-circle")if(Nn==="uploading"||!Ze.thumbUrl&&!Ze.url){const zn=ze()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:Nn!=="uploading"});Vn=ne.createElement("div",{className:zn},na)}else{const zn=fn!=null&&fn(Ze)?ne.createElement("img",{src:Ze.thumbUrl||Ze.url,alt:Ze.name,className:`${$e}-list-item-image`,crossOrigin:Ze.crossOrigin}):na,yn=ze()(`${$e}-list-item-thumbnail`,{[`${$e}-list-item-file`]:fn&&!fn(Ze)});Vn=ne.createElement("a",{className:yn,onClick:ra=>Rt(Ze,ra),href:Ze.url||Ze.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zn)}const Mn=ze()(`${$e}-list-item`,`${$e}-list-item-${Nn}`),da=typeof Ze.linkProps=="string"?JSON.parse(Ze.linkProps):Ze.linkProps,la=et?an((typeof ot=="function"?ot(Ze):ot)||ne.createElement(Vt.Z,null),()=>cn(Ze),$e,Je.removeFile):null,sa=_n&&Nn==="done"?an((typeof Ft=="function"?Ft(Ze):Ft)||ne.createElement(tn.Z,null),()=>St(Ze),$e,Je.downloadFile):null,aa=rt!=="picture-card"&&rt!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:ze()(`${$e}-list-item-actions`,{picture:rt==="picture"})},sa,la),Xn=ze()(`${$e}-list-item-name`),Yn=Ze.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Xn,title:Ze.name},da,{href:Ze.url,onClick:zn=>Rt(Ze,zn)}),Ze.name),aa]:[ne.createElement("span",{key:"view",className:Xn,onClick:zn=>Rt(Ze,zn),title:Ze.name},Ze.name),aa],Qt={pointerEvents:"none",opacity:.5},Gn=Tn?ne.createElement("a",{href:Ze.url||Ze.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ze.url||Ze.thumbUrl?void 0:Qt,onClick:zn=>Rt(Ze,zn),title:Je.previewFile},typeof On=="function"?On(Ze):On||ne.createElement(pe.Z,null)):null,Wn=(rt==="picture-card"||rt==="picture-circle")&&Nn!=="uploading"&&ne.createElement("span",{className:`${$e}-list-item-actions`},Gn,Nn==="done"&&sa,la),{getPrefixCls:Zn}=ne.useContext(nt.E_),oa=Zn(),Jn=ne.createElement("div",{className:Mn},Vn,Yn,Wn,ta&&ne.createElement(be.default,{motionName:`${oa}-fade`,visible:Nn==="uploading",motionDeadline:2e3},zn=>{let{className:yn}=zn;const ra="percent"in Ze?ne.createElement(Oe.Z,Object.assign({},$t,{type:"line",percent:Ze.percent,"aria-label":Ze["aria-label"],"aria-labelledby":Ze["aria-labelledby"]})):null;return ne.createElement("div",{className:ze()(`${$e}-list-item-progress`,yn)},ra)})),ca=Ze.response&&typeof Ze.response=="string"?Ze.response:((_t=Ze.error)===null||_t===void 0?void 0:_t.statusText)||((vn=Ze.error)===null||vn===void 0?void 0:vn.message)||Je.uploadError,Kn=Nn==="error"?ne.createElement(Ye.Z,{title:ca,getPopupContainer:zn=>zn.parentNode},Jn):Jn;return ne.createElement("div",{className:ze()(`${$e}-list-item-container`,Re),style:st,ref:De},sn?sn(Kn,Ze,Wt,{download:St.bind(null,Ze),preview:Rt.bind(null,Ze),remove:cn.bind(null,Ze)}):Kn)});const Tt=(Se,De)=>{const{listType:$e="text",previewFile:Re=Yt,onPreview:st,onDownload:Je,onRemove:rt,locale:Ze,iconRender:Wt,isImageUrl:$t=bt,prefixCls:Xt,items:an=[],showPreviewIcon:sn=!0,showRemoveIcon:fn=!0,showDownloadIcon:Tn=!1,removeIcon:et,previewIcon:_n,downloadIcon:On,progress:ot={size:[-1,2],showInfo:!1},appendAction:Ft,appendActionVisible:Rt=!0,itemRender:St,disabled:cn}=Se,_t=(0,ve.Z)(),[vn,$n]=ne.useState(!1);ne.useEffect(()=>{$e!=="picture"&&$e!=="picture-card"&&$e!=="picture-circle"||(an||[]).forEach(Qt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Qt.originFileObj instanceof File||Qt.originFileObj instanceof Blob)||Qt.thumbUrl!==void 0||(Qt.thumbUrl="",Re&&Re(Qt.originFileObj).then(Gn=>{Qt.thumbUrl=Gn||"",_t()}))})},[$e,an,Re]),ne.useEffect(()=>{$n(!0)},[]);const Nn=(Qt,Gn)=>{if(st)return Gn==null||Gn.preventDefault(),st(Qt)},ea=Qt=>{typeof Je=="function"?Je(Qt):Qt.url&&window.open(Qt.url)},ta=Qt=>{rt==null||rt(Qt)},ua=Qt=>{if(Wt)return Wt(Qt,$e);const Gn=Qt.status==="uploading",Wn=$t&&$t(Qt)?ne.createElement(Ee,null):ne.createElement(qe,null);let Zn=Gn?ne.createElement(yt.Z,null):ne.createElement(tt,null);return $e==="picture"?Zn=Gn?ne.createElement(yt.Z,null):Wn:($e==="picture-card"||$e==="picture-circle")&&(Zn=Gn?Ze.uploading:Wn),Zn},na=(Qt,Gn,Wn,Zn)=>{const oa={type:"text",size:"small",title:Zn,onClick:Jn=>{Gn(),(0,Fe.l$)(Qt)&&Qt.props.onClick&&Qt.props.onClick(Jn)},className:`${Wn}-list-item-action`,disabled:cn};if((0,Fe.l$)(Qt)){const Jn=(0,Fe.Tm)(Qt,Object.assign(Object.assign({},Qt.props),{onClick:()=>{}}));return ne.createElement(Xe.ZP,Object.assign({},oa,{icon:Jn}))}return ne.createElement(Xe.ZP,Object.assign({},oa),ne.createElement("span",null,Qt))};ne.useImperativeHandle(De,()=>({handlePreview:Nn,handleDownload:ea}));const{getPrefixCls:Vn}=ne.useContext(nt.E_),Mn=Vn("upload",Xt),da=Vn(),la=ze()(`${Mn}-list`,`${Mn}-list-${$e}`),sa=(0,ce.Z)(an.map(Qt=>({key:Qt.uid,file:Qt})));let Xn={motionDeadline:2e3,motionName:`${Mn}-${$e==="picture-card"||$e==="picture-circle"?"animate-inline":"animate"}`,keys:sa,motionAppear:vn};const Yn=ne.useMemo(()=>{const Qt=Object.assign({},(0,ye.Z)(da));return delete Qt.onAppearEnd,delete Qt.onEnterEnd,delete Qt.onLeaveEnd,Qt},[da]);return $e!=="picture-card"&&$e!=="picture-circle"&&(Xn=Object.assign(Object.assign({},Yn),Xn)),ne.createElement("div",{className:la},ne.createElement(be.CSSMotionList,Object.assign({},Xn,{component:!1}),Qt=>{let{key:Gn,file:Wn,className:Zn,style:oa}=Qt;return ne.createElement(ht,{key:Gn,locale:Ze,prefixCls:Mn,className:Zn,style:oa,file:Wn,items:an,progress:ot,listType:$e,isImgUrl:$t,showPreviewIcon:sn,showRemoveIcon:fn,showDownloadIcon:Tn,removeIcon:et,previewIcon:_n,downloadIcon:On,iconRender:ua,actionIconRender:na,itemRender:St,onPreview:Nn,onDownload:ea,onClose:ta})}),Ft&&ne.createElement(be.default,Object.assign({},Xn,{visible:Rt,forceRender:!0}),Qt=>{let{className:Gn,style:Wn}=Qt;return(0,Fe.Tm)(Ft,Zn=>({className:ze()(Zn.className,Gn),style:Object.assign(Object.assign(Object.assign({},Wn),{pointerEvents:Gn?"none":void 0}),Zn.style)}))}))};var Bt=ne.forwardRef(Tt),It=oe(14747),Jt=oe(33507),Kt=oe(67968),gn=oe(45503),hn=Se=>{const{componentCls:De,iconCls:$e}=Se;return{[`${De}-wrapper`]:{[`${De}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[De]:{padding:`${Se.padding}px 0`},[`${De}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${De}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${De}-disabled):hover`]:{borderColor:Se.colorPrimaryHover},[`p${De}-drag-icon`]:{marginBottom:Se.margin,[$e]:{color:Se.colorPrimary,fontSize:Se.uploadThumbnailSize}},[`p${De}-text`]:{margin:`0 0 ${Se.marginXXS}px`,color:Se.colorTextHeading,fontSize:Se.fontSizeLG},[`p${De}-hint`]:{color:Se.colorTextDescription,fontSize:Se.fontSize},[`&${De}-disabled`]:{cursor:"not-allowed",[`p${De}-drag-icon ${$e},
|
|
p${De}-text,
|
|
p${De}-hint
|
|
`]:{color:Se.colorTextDisabled}}}}}},on=Se=>{const{componentCls:De,antCls:$e,iconCls:Re,fontSize:st,lineHeight:Je}=Se,rt=`${De}-list-item`,Ze=`${rt}-actions`,Wt=`${rt}-action`,$t=Math.round(st*Je);return{[`${De}-wrapper`]:{[`${De}-list`]:Object.assign(Object.assign({},(0,It.dF)()),{lineHeight:Se.lineHeight,[rt]:{position:"relative",height:Se.lineHeight*st,marginTop:Se.marginXS,fontSize:st,display:"flex",alignItems:"center",transition:`background-color ${Se.motionDurationSlow}`,"&:hover":{backgroundColor:Se.controlItemBgHover},[`${rt}-name`]:Object.assign(Object.assign({},It.vS),{padding:`0 ${Se.paddingXS}px`,lineHeight:Je,flex:"auto",transition:`all ${Se.motionDurationSlow}`}),[Ze]:{[Wt]:{opacity:0},[`${Wt}${$e}-btn-sm`]:{height:$t,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Wt}:focus-visible,
|
|
&.picture ${Wt}
|
|
`]:{opacity:1},[Re]:{color:Se.actionsColor,transition:`all ${Se.motionDurationSlow}`},[`&:hover ${Re}`]:{color:Se.colorText}},[`${De}-icon ${Re}`]:{color:Se.colorTextDescription,fontSize:st},[`${rt}-progress`]:{position:"absolute",bottom:-Se.uploadProgressOffset,width:"100%",paddingInlineStart:st+Se.paddingXS,fontSize:st,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${rt}:hover ${Wt}`]:{opacity:1,color:Se.colorText},[`${rt}-error`]:{color:Se.colorError,[`${rt}-name, ${De}-icon ${Re}`]:{color:Se.colorError},[Ze]:{[`${Re}, ${Re}:hover`]:{color:Se.colorError},[Wt]:{opacity:1}}},[`${De}-list-item-container`]:{transition:`opacity ${Se.motionDurationSlow}, height ${Se.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},nn=oe(45930),un=oe(16932);const pn=new nn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),wn=new nn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var xn=Se=>{const{componentCls:De}=Se,$e=`${De}-animate-inline`;return[{[`${De}-wrapper`]:{[`${$e}-appear, ${$e}-enter, ${$e}-leave`]:{animationDuration:Se.motionDurationSlow,animationTimingFunction:Se.motionEaseInOutCirc,animationFillMode:"forwards"},[`${$e}-appear, ${$e}-enter`]:{animationName:pn},[`${$e}-leave`]:{animationName:wn}}},{[`${De}-wrapper`]:(0,un.J$)(Se)},pn,wn]},Rn=oe(47448),Cn=oe(84780);const An=Se=>{const{componentCls:De,iconCls:$e,uploadThumbnailSize:Re,uploadProgressOffset:st}=Se,Je=`${De}-list`,rt=`${Je}-item`;return{[`${De}-wrapper`]:{[`
|
|
${Je}${Je}-picture,
|
|
${Je}${Je}-picture-card,
|
|
${Je}${Je}-picture-circle
|
|
`]:{[rt]:{position:"relative",height:Re+Se.lineWidth*2+Se.paddingXS*2,padding:Se.paddingXS,border:`${Se.lineWidth}px ${Se.lineType} ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,"&:hover":{background:"transparent"},[`${rt}-thumbnail`]:Object.assign(Object.assign({},It.vS),{width:Re,height:Re,lineHeight:`${Re+Se.paddingSM}px`,textAlign:"center",flex:"none",[$e]:{fontSize:Se.fontSizeHeading2,color:Se.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${rt}-progress`]:{bottom:st,width:`calc(100% - ${Se.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Re+Se.paddingXS}},[`${rt}-error`]:{borderColor:Se.colorError,[`${rt}-thumbnail ${$e}`]:{[`svg path[fill='${Rn.blue[0]}']`]:{fill:Se.colorErrorBg},[`svg path[fill='${Rn.blue.primary}']`]:{fill:Se.colorError}}},[`${rt}-uploading`]:{borderStyle:"dashed",[`${rt}-name`]:{marginBottom:st}}},[`${Je}${Je}-picture-circle ${rt}`]:{[`&, &::before, ${rt}-thumbnail`]:{borderRadius:"50%"}}}}},Un=Se=>{const{componentCls:De,iconCls:$e,fontSizeLG:Re,colorTextLightSolid:st}=Se,Je=`${De}-list`,rt=`${Je}-item`,Ze=Se.uploadPicCardSize;return{[`
|
|
${De}-wrapper${De}-picture-card-wrapper,
|
|
${De}-wrapper${De}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,It.dF)()),{display:"inline-block",width:"100%",[`${De}${De}-select`]:{width:Ze,height:Ze,marginInlineEnd:Se.marginXS,marginBottom:Se.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Se.colorFillAlter,border:`${Se.lineWidth}px dashed ${Se.colorBorder}`,borderRadius:Se.borderRadiusLG,cursor:"pointer",transition:`border-color ${Se.motionDurationSlow}`,[`> ${De}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${De}-disabled):hover`]:{borderColor:Se.colorPrimary}},[`${Je}${Je}-picture-card, ${Je}${Je}-picture-circle`]:{[`${Je}-item-container`]:{display:"inline-block",width:Ze,height:Ze,marginBlock:`0 ${Se.marginXS}px`,marginInline:`0 ${Se.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[rt]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Se.paddingXS*2}px)`,height:`calc(100% - ${Se.paddingXS*2}px)`,backgroundColor:Se.colorBgMask,opacity:0,transition:`all ${Se.motionDurationSlow}`,content:'" "'}},[`${rt}:hover`]:{[`&::before, ${rt}-actions`]:{opacity:1}},[`${rt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Se.motionDurationSlow}`,[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{zIndex:10,width:Re,margin:`0 ${Se.marginXXS}px`,fontSize:Re,cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${rt}-actions, ${rt}-actions:hover`]:{[`${$e}-eye, ${$e}-download, ${$e}-delete`]:{color:new Cn.C(st).setAlpha(.65).toRgbString(),"&:hover":{color:st}}},[`${rt}-thumbnail, ${rt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${rt}-name`]:{display:"none",textAlign:"center"},[`${rt}-file + ${rt}-name`]:{position:"absolute",bottom:Se.margin,display:"block",width:`calc(100% - ${Se.paddingXS*2}px)`},[`${rt}-uploading`]:{[`&${rt}`]:{backgroundColor:Se.colorFillAlter},[`&::before, ${$e}-eye, ${$e}-download, ${$e}-delete`]:{display:"none"}},[`${rt}-progress`]:{bottom:Se.marginXL,width:`calc(100% - ${Se.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${De}-wrapper${De}-picture-circle-wrapper`]:{[`${De}${De}-select`]:{borderRadius:"50%"}}}};var fe=Se=>{const{componentCls:De}=Se;return{[`${De}-rtl`]:{direction:"rtl"}}};const we=Se=>{const{componentCls:De,colorTextDisabled:$e}=Se;return{[`${De}-wrapper`]:Object.assign(Object.assign({},(0,It.Wf)(Se)),{[De]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${De}-select`]:{display:"inline-block"},[`${De}-disabled`]:{color:$e,cursor:"not-allowed"}})}};var Pe=(0,Kt.Z)("Upload",Se=>{const{fontSizeHeading3:De,fontSize:$e,lineHeight:Re,lineWidth:st,controlHeightLG:Je}=Se,rt=Math.round($e*Re),Ze=(0,gn.TS)(Se,{uploadThumbnailSize:De*2,uploadProgressOffset:rt/2+st,uploadPicCardSize:Je*2.55});return[we(Ze),hn(Ze),An(Ze),Un(Ze),on(Ze),xn(Ze),fe(Ze),(0,Jt.Z)(Ze)]},Se=>({actionsColor:Se.colorTextDescription})),dt=function(Se,De,$e,Re){function st(Je){return Je instanceof $e?Je:new $e(function(rt){rt(Je)})}return new($e||($e=Promise))(function(Je,rt){function Ze(Xt){try{$t(Re.next(Xt))}catch(an){rt(an)}}function Wt(Xt){try{$t(Re.throw(Xt))}catch(an){rt(an)}}function $t(Xt){Xt.done?Je(Xt.value):st(Xt.value).then(Ze,Wt)}$t((Re=Re.apply(Se,De||[])).next())})};const Et=`__LIST_IGNORE_${Date.now()}__`,Nt=(Se,De)=>{const{fileList:$e,defaultFileList:Re,onRemove:st,showUploadList:Je=!0,listType:rt="text",onPreview:Ze,onDownload:Wt,onChange:$t,onDrop:Xt,previewFile:an,disabled:sn,locale:fn,iconRender:Tn,isImageUrl:et,progress:_n,prefixCls:On,className:ot,type:Ft="select",children:Rt,style:St,itemRender:cn,maxCount:_t,data:vn={},multiple:$n=!1,action:Nn="",accept:ea="",supportServerRender:ta=!0,rootClassName:ua}=Se,na=ne.useContext(gt.Z),Vn=sn!=null?sn:na,[Mn,da]=(0,Ie.Z)(Re||[],{value:$e,postState:Zt=>Zt!=null?Zt:[]}),[la,sa]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const Zt=Date.now();($e||[]).forEach((qt,Ln)=>{!qt.uid&&!Object.isFrozen(qt)&&(qt.uid=`__AUTO__${Zt}_${Ln}__`)})},[$e]);const Xn=(Zt,qt,Ln)=>{let Ut=(0,ce.Z)(qt),En=!1;_t===1?Ut=Ut.slice(-1):_t&&(En=Ut.length>_t,Ut=Ut.slice(0,_t)),(0,Ae.flushSync)(()=>{da(Ut)});const Fn={file:Zt,fileList:Ut};Ln&&(Fn.event=Ln),(!En||Ut.some(Qn=>Qn.uid===Zt.uid))&&(0,Ae.flushSync)(()=>{$t==null||$t(Fn)})},Yn=(Zt,qt)=>dt(void 0,void 0,void 0,function*(){const{beforeUpload:Ln,transformFile:Ut}=Se;let En=Zt;if(Ln){const Fn=yield Ln(Zt,qt);if(Fn===!1)return!1;if(delete Zt[Et],Fn===Et)return Object.defineProperty(Zt,Et,{value:!0,configurable:!0}),!1;typeof Fn=="object"&&Fn&&(En=Fn)}return Ut&&(En=yield Ut(En)),En}),Qt=Zt=>{const qt=Zt.filter(En=>!En.file[Et]);if(!qt.length)return;const Ln=qt.map(En=>ut(En.file));let Ut=(0,ce.Z)(Mn);Ln.forEach(En=>{Ut=Pt(En,Ut)}),Ln.forEach((En,Fn)=>{let Qn=En;if(qt[Fn].parsedFile)En.status="uploading";else{const{originFileObj:ia}=En;let qn;try{qn=new File([ia],ia.name,{type:ia.type})}catch(ma){qn=new Blob([ia],{type:ia.type}),qn.name=ia.name,qn.lastModifiedDate=new Date,qn.lastModified=new Date().getTime()}qn.uid=En.uid,Qn=qn}Xn(Qn,Ut)})},Gn=(Zt,qt,Ln)=>{try{typeof Zt=="string"&&(Zt=JSON.parse(Zt))}catch(Fn){}if(!Lt(qt,Mn))return;const Ut=ut(qt);Ut.status="done",Ut.percent=100,Ut.response=Zt,Ut.xhr=Ln;const En=Pt(Ut,Mn);Xn(Ut,En)},Wn=(Zt,qt)=>{if(!Lt(qt,Mn))return;const Ln=ut(qt);Ln.status="uploading",Ln.percent=Zt.percent;const Ut=Pt(Ln,Mn);Xn(Ln,Ut,Zt)},Zn=(Zt,qt,Ln)=>{if(!Lt(Ln,Mn))return;const Ut=ut(Ln);Ut.error=Zt,Ut.response=qt,Ut.status="error";const En=Pt(Ut,Mn);Xn(Ut,En)},oa=Zt=>{let qt;Promise.resolve(typeof st=="function"?st(Zt):st).then(Ln=>{var Ut;if(Ln===!1)return;const En=Ot(Zt,Mn);En&&(qt=Object.assign(Object.assign({},Zt),{status:"removed"}),Mn==null||Mn.forEach(Fn=>{const Qn=qt.uid!==void 0?"uid":"name";Fn[Qn]===qt[Qn]&&!Object.isFrozen(Fn)&&(Fn.status="removed")}),(Ut=aa.current)===null||Ut===void 0||Ut.abort(qt),Xn(qt,En))})},Jn=Zt=>{sa(Zt.type),Zt.type==="drop"&&(Xt==null||Xt(Zt))};ne.useImperativeHandle(De,()=>({onBatchStart:Qt,onSuccess:Gn,onProgress:Wn,onError:Zn,fileList:Mn,upload:aa.current}));const{getPrefixCls:ca,direction:Kn,upload:zn}=ne.useContext(nt.E_),yn=ca("upload",On),ra=Object.assign(Object.assign({onBatchStart:Qt,onError:Zn,onProgress:Wn,onSuccess:Gn},Se),{data:vn,multiple:$n,action:Nn,accept:ea,supportServerRender:ta,prefixCls:yn,disabled:Vn,beforeUpload:Yn,onChange:void 0});delete ra.className,delete ra.style,(!Rt||Vn)&&delete ra.id;const[Sa,fa]=Pe(yn),[ya]=(0,We.Z)("Upload",Ke.Z.Upload),{showRemoveIcon:Pa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:At}=typeof Je=="boolean"?{}:Je,vt=(Zt,qt)=>Je?ne.createElement(Bt,{prefixCls:yn,listType:rt,items:Mn,previewFile:an,onPreview:Ze,onDownload:Wt,onRemove:oa,showRemoveIcon:!Vn&&Pa,showPreviewIcon:La,showDownloadIcon:ba,removeIcon:ha,previewIcon:pa,downloadIcon:At,iconRender:Tn,locale:Object.assign(Object.assign({},ya),fn),isImageUrl:et,progress:_n,appendAction:Zt,appendActionVisible:qt,itemRender:cn,disabled:Vn}):Zt,Ct=ze()(`${yn}-wrapper`,ot,ua,fa,zn==null?void 0:zn.className,{[`${yn}-rtl`]:Kn==="rtl",[`${yn}-picture-card-wrapper`]:rt==="picture-card",[`${yn}-picture-circle-wrapper`]:rt==="picture-circle"}),zt=Object.assign(Object.assign({},zn==null?void 0:zn.style),St);if(Ft==="drag"){const Zt=ze()(fa,yn,`${yn}-drag`,{[`${yn}-drag-uploading`]:Mn.some(qt=>qt.status==="uploading"),[`${yn}-drag-hover`]:la==="dragover",[`${yn}-disabled`]:Vn,[`${yn}-rtl`]:Kn==="rtl"});return Sa(ne.createElement("span",{className:Ct},ne.createElement("div",{className:Zt,style:zt,onDrop:Jn,onDragOver:Jn,onDragLeave:Jn},ne.createElement(Le,Object.assign({},ra,{ref:aa,className:`${yn}-btn`}),ne.createElement("div",{className:`${yn}-drag-container`},Rt))),vt()))}const Pn=ze()(yn,`${yn}-select`,{[`${yn}-disabled`]:Vn}),In=(Zt=>ne.createElement("div",{className:Pn,style:Zt},ne.createElement(Le,Object.assign({},ra,{ref:aa}))))(Rt?void 0:{display:"none"});return Sa(rt==="picture-card"||rt==="picture-circle"?ne.createElement("span",{className:Ct},vt(In,!!Rt)):ne.createElement("span",{className:Ct},In,vt()))};var en=ne.forwardRef(Nt),ln=function(Se,De){var $e={};for(var Re in Se)Object.prototype.hasOwnProperty.call(Se,Re)&&De.indexOf(Re)<0&&($e[Re]=Se[Re]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,Re=Object.getOwnPropertySymbols(Se);st<Re.length;st++)De.indexOf(Re[st])<0&&Object.prototype.propertyIsEnumerable.call(Se,Re[st])&&($e[Re[st]]=Se[Re[st]]);return $e},Hn=ne.forwardRef((Se,De)=>{var{style:$e,height:Re}=Se,st=ln(Se,["style","height"]);return ne.createElement(en,Object.assign({ref:De},st,{type:"drag",style:Object.assign(Object.assign({},$e),{height:Re})}))});const lt=en;lt.Dragger=Hn,lt.LIST_IGNORE=Et;var dn=lt},72665:function(Me,it){"use strict";var oe;var ne=typeof Symbol=="function"&&Symbol.for,ce=ne?Symbol.for("react.element"):60103,_e=ne?Symbol.for("react.portal"):60106,ze=ne?Symbol.for("react.fragment"):60107,ue=ne?Symbol.for("react.strict_mode"):60108,Ce=ne?Symbol.for("react.profiler"):60114,le=ne?Symbol.for("react.provider"):60109,He=ne?Symbol.for("react.context"):60110,xe=ne?Symbol.for("react.async_mode"):60111,Te=ne?Symbol.for("react.concurrent_mode"):60111,Ue=ne?Symbol.for("react.forward_ref"):60112,ke=ne?Symbol.for("react.suspense"):60113,je=ne?Symbol.for("react.suspense_list"):60120,ae=ne?Symbol.for("react.memo"):60115,a=ne?Symbol.for("react.lazy"):60116,y=ne?Symbol.for("react.block"):60121,E=ne?Symbol.for("react.fundamental"):60117,b=ne?Symbol.for("react.responder"):60118,x=ne?Symbol.for("react.scope"):60119;function z(te){if(typeof te=="object"&&te!==null){var re=te.$$typeof;switch(re){case ce:switch(te=te.type,te){case xe:case Te:case ze:case Ce:case ue:case ke:return te;default:switch(te=te&&te.$$typeof,te){case He:case Ue:case a:case ae:case le:return te;default:return re}}case _e:return re}}}function ee(te){return z(te)===Te}oe=xe,oe=Te,oe=He,oe=le,oe=ce,oe=Ue,oe=ze,oe=a,oe=ae,oe=_e,oe=Ce,oe=ue,oe=ke,oe=function(te){return ee(te)||z(te)===xe},oe=ee,oe=function(te){return z(te)===He},oe=function(te){return z(te)===le},oe=function(te){return typeof te=="object"&&te!==null&&te.$$typeof===ce},oe=function(te){return z(te)===Ue},oe=function(te){return z(te)===ze},oe=function(te){return z(te)===a},it.isMemo=function(te){return z(te)===ae},oe=function(te){return z(te)===_e},oe=function(te){return z(te)===Ce},oe=function(te){return z(te)===ue},oe=function(te){return z(te)===ke},oe=function(te){return typeof te=="string"||typeof te=="function"||te===ze||te===Te||te===Ce||te===ue||te===ke||te===je||typeof te=="object"&&te!==null&&(te.$$typeof===a||te.$$typeof===ae||te.$$typeof===le||te.$$typeof===He||te.$$typeof===Ue||te.$$typeof===E||te.$$typeof===b||te.$$typeof===x||te.$$typeof===y)},oe=z},12060:function(Me,it,oe){"use strict";Me.exports=oe(72665)},64217:function(Me,it,oe){"use strict";oe.d(it,{Z:function(){return He}});var ne=oe(1413),ce=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
summary tabIndex target title type useMap value width wmode wrap`,_e=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,ze="".concat(ce," ").concat(_e).split(/[\s\n]+/),ue="aria-",Ce="data-";function le(xe,Te){return xe.indexOf(Te)===0}function He(xe){var Te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ue;Te===!1?Ue={aria:!0,data:!0,attr:!0}:Te===!0?Ue={aria:!0}:Ue=(0,ne.Z)({},Te);var ke={};return Object.keys(xe).forEach(function(je){(Ue.aria&&(je==="role"||le(je,ue))||Ue.data&&le(je,Ce)||Ue.attr&&ze.includes(je))&&(ke[je]=xe[je])}),ke}}}]);
|