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.
150 lines
411 KiB
150 lines
411 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[5888],{26227:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return De}});var ae=re(32855),Pe=re(59301),Ue={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"},Ie=Ue,ce=re(7657),Fe=function(Te,je){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:je,icon:Ie}))},se=Pe.forwardRef(Fe),De=se},41464:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return De}});var ae=re(32855),Pe=re(59301),Ue={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"},Ie=Ue,ce=re(7657),Fe=function(Te,je){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:je,icon:Ie}))},se=Pe.forwardRef(Fe),De=se},61481:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return De}});var ae=re(32855),Pe=re(59301),Ue={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"},Ie=Ue,ce=re(7657),Fe=function(Te,je){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:je,icon:Ie}))},se=Pe.forwardRef(Fe),De=se},33853:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return De}});var ae=re(32855),Pe=re(59301),Ue={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"},Ie=Ue,ce=re(7657),Fe=function(Te,je){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:je,icon:Ie}))},se=Pe.forwardRef(Fe),De=se},12893:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return De}});var ae=re(32855),Pe=re(59301),Ue={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"},Ie=Ue,ce=re(7657),Fe=function(Te,je){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:je,icon:Ie}))},se=Pe.forwardRef(Fe),De=se},32134:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return De}});var ae=re(32855),Pe=re(59301),Ue={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"},Ie=Ue,ce=re(7657),Fe=function(Te,je){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:je,icon:Ie}))},se=Pe.forwardRef(Fe),De=se},38819:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return De}});var ae=re(32855),Pe=re(59301),Ue={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"},Ie=Ue,ce=re(7657),Fe=function(Te,je){return Pe.createElement(ce.Z,(0,ae.Z)({},Te,{ref:je,icon:Ie}))},se=Pe.forwardRef(Fe),De=se},21697:function(Ge,ot){"use strict";ot.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},20397:function(){"use strict";function Ge(ne,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ne,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(Ge.prototype,"name",{get:function(){return this._name},set:function(ne){if(typeof ne!="string"||ne==="")throw new Error("Shape name must be a valid string.");this._name=ne}}),Object.defineProperty(Ge.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("The default value must be a real number, not: "+ne);this._defaultValue=ne}}),Object.defineProperty(Ge.prototype,"minimum",{get:function(){return this._minimum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Minimum must be a real number, not: "+ne);this._minimum=ne}}),Object.defineProperty(Ge.prototype,"maximum",{get:function(){return this._maximum},set:function(ne){if(typeof ne!="number"||isNaN(ne))throw new Error("Maximum must be a real number, not: "+ne);this._maximum=ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ne,a){var y=go.Shape._FigureParameters[ne];return y?y[a]:null},go.Shape.setFigureParameter=function(ne,a,y){if(!(y instanceof Ge))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[ne];E||(E=[],go.Shape._FigureParameters[ne]=E),E[a]=y};var ot=[];function re(ne,a){var y=ot.pop();return y===void 0?new go.Point(ne,a):(y.x=ne,y.y=a,y)}function ae(){var ne=ot.pop();return ne===void 0?new go.Point:ne}function Pe(ne){ot.push(ne)}function Ue(ne,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var oe=ne-y,ie=b-z,ge=NaN,me=NaN;if(oe===0)if(ie===0)ne===y&&(ge=ne,me=a);else{var le=(x-ee)/ie,be=x-le*b;ge=ne,me=le*ge+be}else if(ie===0){var Be=(a-E)/oe,it=a-Be*ne;ge=b,me=Be*ge+it}else{var Be=(a-E)/oe,le=(x-ee)/ie,it=a-Be*ne,be=x-le*b;ge=(be-it)/(Be-le),me=Be*ge+it}return te.x=ge,te.y=me,te}function Ie(ne,a,y,E,b,x,z,ee,te,oe,ie,ge,me,le){var be=1-te,Be=te,it=ne*be+y*Be,Gt=a*be+E*Be,jt=y*be+b*Be,ye=E*be+x*Be,Oe=b*be+z*Be,xe=x*be+ee*Be,Ze=it*be+jt*Be,nt=Gt*be+ye*Be,mt=jt*be+Oe*Be,St=ye*be+xe*Be,zt=Ze*be+mt*Be,lt=nt*be+St*Be;oe.x=it,oe.y=Gt,ie.x=Ze,ie.y=nt,ge.x=zt,ge.y=lt,me.x=mt,me.y=St,le.x=Oe,le.y=xe}var ce=new go.Spot(.156,.156),Fe=new go.Spot(.844,.844),se=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Ge("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ne,a,y){var 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(ne,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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ne,a,y){var 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(ne,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=ce,b.spot2=Fe,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ne,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(ne,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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,se*a,0,a,(1-se)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,se*y,(1-se)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,se*y,se*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-se)*a,0,0,(1-se)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Ge("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ne,a,y){var E=ne?ne.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 Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ne,a,y){var E=ne?ne.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 Ge("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ne,a,y){var E=ne?ne.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 Ge("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ne,a,y){var E=ne?ne.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 Ge("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ne,a,y){var E=ne?ne.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 De=[];function ze(){var ne=De.pop();return ne===void 0?[]:ne}function Te(ne){ne.length=0,De.push(ne)}function je(ne){for(var a=ze(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ne;z++)x=2*Math.PI/ne*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function _e(ne){var a=Re(ne),y=ze();y[0]=a[0];for(var E=1,b=1;E<a.length;E+=2,b+=3)y[b]=a[E],y[b+1]=a[E],y[b+2]=a[E+1];return Te(a),y}function Re(ne){for(var a=je(ne),y=ze(),E=Math.floor(a.length/2),b=a.length-1,x=ne%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],oe=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=Ue(ee.x,ee.y,oe.x,oe.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(ne,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<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(ne,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<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(ne,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<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(ne,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<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(ne,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<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(ne,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<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(ne,a,y){var E=je(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(ne,a,y){var E=Re(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(ne,a,y){var E=Re(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(ne,a,y){var E=Re(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(ne,a,y){var E=Re(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(ne,a,y){var E=Re(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(ne,a,y){var E=Re(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(ne,a,y){var E=_e(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(ne,a,y){var E=_e(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(ne,a,y){var E=_e(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(ne,a,y){var E=_e(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(ne,a,y){var E=_e(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(ne,a,y){var E=_e(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 Ge("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Ge("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.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 Ge("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=ce,x.spot2=Fe,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ne,a,y){var 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 Ge("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Ge("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ne,a,y){var E=ne?ne.parameter1:NaN,b=ne?ne.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(ne,a,y){var E=se/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 Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ne,a,y){var E=ne?ne.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 Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ne,a,y){var E=ne?ne.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 Ge("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ne,a,y){var E=ne?ne.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),oe=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,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,oe)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-oe)),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-oe)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,oe).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new Ge("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ne,a,y){var E=ne?ne.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 Ge("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ne,a,y){var E=ne?ne.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 Ge("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ne,a,y){var E=ne?ne.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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,se*a,0,a,(.5-se/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+se/2)*y,se*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ne,a,y){var 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*se;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*se,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*se,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.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=se*.4;var oe=ae(),ie=ae(),ge=ae(),me=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,oe,ie,ge,me,me);var le=ae(),be=ae(),Be=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,me,me,Be,le,be);var it=ae(),Gt=ae(),jt=ae();Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,it,Gt,jt,me,me);var ye=ae(),Oe=ae(),xe=ae();return Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,me,me,xe,ye,Oe),te.add(new go.PathSegment(go.PathSegment.Move,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ye.x*a,ye.y*y,Oe.x*a,Oe.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,oe.x*a,oe.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,xe.x*a,xe.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,jt.x*a,jt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,le.x*a,le.y*y,be.x*a,be.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,jt.x*a,jt.y*y,it.x*a,it.y*y,Gt.x*a,Gt.y*y).close()),Pe(oe),Pe(ie),Pe(ge),Pe(me),Pe(le),Pe(be),Pe(Be),Pe(it),Pe(Gt),Pe(jt),Pe(ye),Pe(Oe),Pe(xe),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Ge("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ne,a,y){var E=ne?ne.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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ne,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ie=ae(),ge=ae(),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)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.44,ie,ge,oe,te,te),me.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var le=re(oe.x,oe.y);Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,oe,ie,ge);var be=re(oe.x,oe.y);me.add(new go.PathSegment(go.PathSegment.Line,(le.x*.1+.95*.9)*a,le.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,le.y*.1*y)),me.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,0)),me.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*a,.15*y)),me.add(new go.PathSegment(go.PathSegment.Line,(be.x*.1+.9)*a,(be.y*.1+.05*.9)*y)),me.add(new go.PathSegment(go.PathSegment.Line,be.x*a,be.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=se*.35;var Be=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Be.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 it=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(it),Pe(te),Pe(oe),Pe(ie),Pe(ge),Pe(le),Pe(be),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(ne,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*se,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*se;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(ne,a,y){var E=ne?ne.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(ne,a,y){var E=ne?ne.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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ne,a,y){var 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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ne,a,y){var 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(ne,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 Ge("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Ge("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=.3);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ue(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ie.x,ie.y),Pe(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new Ge("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Ge("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,oe=new go.PathFigure(0,z,!0);te.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x,z)),oe.add(new go.PathSegment(go.PathSegment.Line,x,0)),oe.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,y)),oe.add(new go.PathSegment(go.PathSegment.Line,x,ee)),oe.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=Ue(0,ee/y,1,ee/y,x/a,1,1,.5,ae());return te.spot2=new go.Spot(ie.x,ie.y),Pe(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ne,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(ne,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 Ge("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ne,a,y){var E=ne?ne.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=Ue(0,.5,.3,0,0,b/y,.1,b/y,ae());return z.spot1=new go.Spot(te.x,te.y),te=Ue(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Ge("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Ge("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);oe.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=Ue(0,.5,.3,ee/y,0,x/y,1,x/y,ae());return oe.spot1=new go.Spot(ge.x,ge.y),ge=Ue(.7,te/y,1,.5,0,z/y,1,z/y,ge),oe.spot2=new go.Spot(ge.x,ge.y),Pe(ge),oe}),go.Shape.setFigureParameter("IBeamArrow",0,new Ge("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ne,a,y){var E=ne?ne.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=Ue(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new Ge("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Ge("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=40);var b=ne?ne.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var oe=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);oe.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()),oe.spot1=new go.Spot(0,x/y);var ge=Ue(.7,te/y,1,.5,0,z/y,1,z/y,ae());return oe.spot2=new go.Spot(ge.x,ge.y),Pe(ge),oe}),go.Shape.setFigureParameter("Pointer",0,new Ge("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ne,a,y){var E=ne?ne.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=Ue(.2,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new Ge("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ne,a,y){var E=ne?ne.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=Ue(0,.65,1,.65,0,1,1,.5,ae());return b.spot2=new go.Spot(z.x,z.y),Pe(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new Ge("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ne,a,y){var E=ne?ne.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=Ue(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Ge("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ne,a,y){var E=ne?ne.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=Ue(.7,1,1,.5,0,x/y,1,x/y,ae());return z.spot2=new go.Spot(te.x,te.y),Pe(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new Ge("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ne,a,y){var E=ne?ne.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(ne,a,y){var E=new go.Geometry,b=se*.5,x=se*.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(ne,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(ne,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(ne,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(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,se*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-se*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-se*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-se*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-se*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=se*.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,se*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,se*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-se*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-se*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-se*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-se*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.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-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*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+se*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+se*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(ne,a,y){var E=ne?ne.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=se*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-se*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-se*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,se*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,se*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-se*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-se*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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.2,x=.1,z=se*b,ee=se*x,te=.5,oe=.1,ie=new go.PathFigure(te*a,(oe+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,oe*y,(te-z)*a,(oe+x)*y,(te-b)*a,(oe+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-x)*y,(te-b)*a,(oe-ee)*y,(te-z)*a,(oe-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,oe*y,(te+z)*a,(oe-x)*y,(te+b)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+x)*y,(te+b)*a,(oe+ee)*y,(te+z)*a,(oe+x)*y));var ge=.05,me=se*ge;te=.05,oe=.25;var le=new go.PathFigure(.5*a,.2*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,oe*y,(te+me)*a,(oe-ge)*y,(te+ge)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,me=se*ge,te=.825,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-me)*y,(te+me)*a,(oe-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-me)*a,(oe-ge)*y,(te-ge)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,me=se*ge,te=.5,oe=.7,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-me)*y,(te+me)*a,(oe-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-me)*a,(oe-ge)*y,(te-ge)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),le.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,me=se*ge,te=.175,oe=.35,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te+ge)*a,(oe-me)*y,(te+me)*a,(oe-ge)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,oe*y,(te-me)*a,(oe-ge)*y,(te-ge)*a,(oe-me)*y)),le.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,me=se*ge,te=.05,oe=.25,le.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ge)*y,(te-ge)*a,(oe-me)*y,(te-me)*a,(oe-ge)*y)),le.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 Ge("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ne,a,y){var E=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=se*.5,x=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.5,x=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=se*.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.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(ne,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=se*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var oe=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),oe.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.parameter1:NaN,x=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,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(ne,a,y){var E=new go.Geometry,b=ne?ne.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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var oe=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ne,a,y){var E=new go.Geometry,b=se*.5,x=se*.4,z=se*.1,ee=.1,te=.9,oe=.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,oe*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y,(te+z)*a,(oe+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,oe*y,(te-z)*a,(oe+ee)*y,(te-ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y,(te-z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,oe*y,(te+z)*a,(oe-ee)*y,(te+ee)*a,(oe-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=se*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=se*.1,z=.9,ee=.5;var oe=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ne,a,y){var E=new go.Geometry,b=.5,x=se*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(ne,a,y){var E=new go.Geometry,b=.5,x=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.8*a,.5*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=se*.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(ne,a,y){var E=new go.Geometry,b=.5,x=se*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var oe=new go.PathFigure(.2*a,0,!0);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,a,y){var E=new go.Geometry,b=se*.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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=se*.8,ee=.8,te=0,oe=.5,ie=(b-a)/2,ge=(x-y)/2,me=new go.PathFigure(te*a+ie,(oe+ee)*y+ge,!0);E.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,oe*y+ge,(te-z)*a+ie,(oe+ee)*y+ge,(te-ee)*a+ie,(oe+z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe-ee)*y+ge,(te-ee)*a+ie,(oe-z)*y+ge,(te-z)*a+ie,(oe-ee)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,oe*y+ge,te*a+ie,(oe-ee)*y+ge,(te-ee+z*.5)*a+ie,(oe-z)*y+ge)),me.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe+ee)*y+ge,(te-ee+z*.5)*a+ie,(oe+z)*y+ge,te*a+ie,(oe+ee)*y+ge).close()),z=se*.4,ee=.4,te=.2,oe=.5;var le=new go.PathFigure(te*a+ie,(oe+ee)*y+ge,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,oe*y+ge,(te-z)*a+ie,(oe+ee)*y+ge,(te-ee)*a+ie,(oe+z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe-ee)*y+ge,(te-ee)*a+ie,(oe-z)*y+ge,(te-z)*a+ie,(oe-ee)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,oe*y+ge,te*a+ie,(oe-ee)*y+ge,(te-ee+z*.5)*a+ie,(oe-z)*y+ge)),le.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe+ee)*y+ge,(te-ee+z*.5)*a+ie,(oe+z)*y+ge,te*a+ie,(oe+ee)*y+ge).close()),z=se*.2,ee=.2,te=.5,oe=.5;var be=new go.PathFigure((te-ee)*a+ie,oe*y+ge,!0);E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe-ee)*y+ge,(te-ee)*a+ie,(oe-z)*y+ge,(te-z)*a+ie,(oe-ee)*y+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,oe*y+ge,(te+z)*a+ie,(oe-ee)*y+ge,(te+ee)*a+ie,(oe-z)*y+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe+ee)*y+ge,(te+ee)*a+ie,(oe+z)*y+ge,(te+z)*a+ie,(oe+ee)*y+ge)),be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,oe*y+ge,(te-z)*a+ie,(oe+ee)*y+ge,(te-ee)*a+ie,(oe+z)*y+ge)),z=se*.4,ee=.4,te=.8,oe=.5;var Be=new go.PathFigure(te*a+ie,(oe-ee)*y+ge,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,oe*y+ge,(te+z)*a+ie,(oe-ee)*y+ge,(te+ee)*a+ie,(oe-z)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe+ee)*y+ge,(te+ee)*a+ie,(oe+z)*y+ge,(te+z)*a+ie,(oe+ee)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,oe*y+ge,te*a+ie,(oe+ee)*y+ge,(te+ee-z*.5)*a+ie,(oe+z)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe-ee)*y+ge,(te+ee-z*.5)*a+ie,(oe-z)*y+ge,te*a+ie,(oe-ee)*y+ge).close()),z=se*.8,ee=.8,te=1,oe=.5;var it=new go.PathFigure(te*a+ie,(oe-ee)*y+ge,!0);return E.add(it),it.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,oe*y+ge,(te+z)*a+ie,(oe-ee)*y+ge,(te+ee)*a+ie,(oe-z)*y+ge)),it.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe+ee)*y+ge,(te+ee)*a+ie,(oe+z)*y+ge,(te+z)*a+ie,(oe+ee)*y+ge)),it.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,oe*y+ge,te*a+ie,(oe+ee)*y+ge,(te+ee-z*.5)*a+ie,(oe+z)*y+ge)),it.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(oe-ee)*y+ge,(te+ee-z*.5)*a+ie,(oe-z)*y+ge,te*a+ie,(oe-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=se*.4,x=.4,z=.5,ee=.5,te=ae(),oe=ae(),ie=ae(),ge=ae();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ie,ge);var me=re(oe.x,oe.y),le=new go.PathFigure(oe.x*a,oe.y*y,!0);E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=se*.3,x=.3,Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,oe,te,te),le.add(new go.PathSegment(go.PathSegment.Line,oe.x*a,oe.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,oe,ie,ge),le.add(new go.PathSegment(go.PathSegment.Bezier,oe.x*a,oe.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var le=new go.PathFigure(.45*a,0,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),le.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Pe(te),Pe(oe),Pe(ie),Pe(ge),Pe(me),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*se,te=.4*Math.SQRT2/2+.5,oe=.5-.5*Math.SQRT2/2,ie=1,ge=.5,me=.5,le=0,be=new go.PathFigure(te*a,(1-oe)*y,!1);return E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,ge*y,ie*a,.7*y,ie*a,ge*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+x)*a,(le+x)*y,(.5+b+x)*a,(.5-ee+x)*y,(.5+ee+x)*a,(.5-b+x)*y)),be.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)),be.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)),be.add(new go.PathSegment(go.PathSegment.Move,(.25+x)*a,.8*y)),be.add(new go.PathSegment(go.PathSegment.Line,(.35+x)*a,.9*y)),be.add(new go.PathSegment(go.PathSegment.Line,(.2+x)*a,.95*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,oe=Math.PI/4,ie=4*(1-Math.cos(oe))/(3*Math.sin(oe)),ge=ie*.5,me=z,le=z,be=ie*me,Be=ie*le;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-me)*a,te*y,(ee-(be+me)/2)*a,(te+(le+Be)/2)*y,(ee-me)*a,(te+Be)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-le)*y,(ee-me)*a,(te-Be)*y,(ee-be)*a,(te-le)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+me)*a,te*y,(ee+be)*a,(te-le)*y,(ee+me)*a,(te-Be)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+me)*a,(te+Be)*y,(ee+(be+me)/2)*a,(te+(le+Be)/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 it=new go.PathFigure(.2*a,y,!1);E.add(it),it.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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=se*.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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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=se*.1,te=.2,oe=.9,ie=new go.PathFigure((te-z)*a,oe*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),z=.1,ee=se*.1,te=.8,oe=.9;var ge=new go.PathFigure((te-z)*a,oe*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe-z)*y,(te-z)*a,(oe-ee)*y,(te-ee)*a,(oe-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,oe*y,(te+ee)*a,(oe-z)*y,(te+z)*a,(oe-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(oe+z)*y,(te+z)*a,(oe+ee)*y,(te+ee)*a,(oe+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,oe*y,(te-ee)*a,(oe+z)*y,(te-z)*a,(oe+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ne,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(ne,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,oe=se*.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-oe)*y,(ie-oe)*a,(ge-te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+oe)*a,(ge-te)*y,(ie+te)*a,(ge-oe)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+oe)*y,(ie+oe)*a,(ge+te)*y)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-oe)*a,(ge+te)*y,(ie-te)*a,(ge+oe)*y)),te=.1,oe=se*.1,ie=.4,ge=.9;var le=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-oe)*y,(ie-oe)*a,(ge-te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+oe)*a,(ge-te)*y,(ie+te)*a,(ge-oe)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+oe)*y,(ie+oe)*a,(ge+te)*y)),le.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-oe)*a,(ge+te)*y,(ie-te)*a,(ge+oe)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ne,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=se*.05,me=.175,le=.95,ee=new go.PathFigure((me-ie)*a,le*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,me=.375,le=.95,te=new go.PathFigure((me-ie)*a,le*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,me=.625,le=.95,oe=new go.PathFigure((me-ie)*a,le*y,!0);E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y));var ie=.05,ge=se*.05,me=.825,le=.95,be=new go.PathFigure((me-ie)*a,le*y,!0);E.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le-ie)*y,(me-ie)*a,(le-ge)*y,(me-ge)*a,(le-ie)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+ie)*a,le*y,(me+ge)*a,(le-ie)*y,(me+ie)*a,(le-ge)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*a,(le+ie)*y,(me+ie)*a,(le+ge)*y,(me+ge)*a,(le+ie)*y)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-ie)*a,le*y,(me-ge)*a,(le+ie)*y,(me-ie)*a,(le+ge)*y).close());var Be=new go.PathFigure(0,y,!1);return E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ne,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=se*.05,oe=.35,ie=.775,ge=new go.PathFigure((oe-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ie-ee)*y,(oe-ee)*a,(ie-te)*y,(oe-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe+ee)*a,ie*y,(oe+te)*a,(ie-ee)*y,(oe+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,oe*a,(ie+ee)*y,(oe+ee)*a,(ie+te)*y,(oe+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(oe-ee)*a,ie*y,(oe-te)*a,(ie+ee)*y,(oe-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.3,x=se*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(0,.7*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=se*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var oe=new go.PathFigure(.15*a,.5*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ne,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(ne,a,y){var E=new go.Geometry,b=.5,x=se*.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=se*.05,z=.5,ee=.8;var oe=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),oe.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),oe.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),oe.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ne,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ne,a,y){var 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(ne,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(ne,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ne,a,y){var 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(ne,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(ne,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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ne,a,y){var 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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,a,y){var E=new go.Geometry,b=8,x=b*se,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var oe=new go.PathFigure(a*.78,y*.05,!1);return E.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),oe.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ne,a,y){var E=ne?ne.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*se,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(ne,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(ne,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ne,a,y){var 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(ne,a,y){var E=new go.Geometry,b=15,x=b*se,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(ne,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(ne,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(ne,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(ne,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(ne,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(ne,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")},11081:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Ge={},ot="5.0",re={},ae=null,Pe=!1,Ue=!1,Ie=null,ce=!1,Fe=null,se=null,De=0;De<arguments.length;De++){var ze=arguments[De];if(ze!==null)switch(typeof ze){case"number":ot=ze.toFixed(1);break;case"string":ze.match(new RegExp("^[0-9]\\.[0-9]+$"))?ot=ze:Ie=ze;break;case"object":typeof ze.is3D!="undefined"?ae=ze:re=ze;break;case"boolean":Pe=ze,Ue=!0;break}}ae===null&&(ae={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},re.material_id!==void 0&&!Ue&&(Pe=!0)),Ie!==null&&re.id===void 0&&(re.id=Ie);var Te="",je="",_e=!1,Re=null,ne=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;re.height!==void 0&&(re.height=Math.round(re.height)),re.width!==void 0&&(re.width=Math.round(re.width));var te=function(fe){return parseFloat(fe)>4?parseFloat(fe):5};Ge.setHTML5Codebase=function(fe,$e){se=fe,St(fe,$e)},Ge.setJavaCodebase=Ge.setJavaCodebaseVersion=Ge.isCompiledInstalled=Ge.setPreCompiledScriptPath=Ge.setPreCompiledResourcePath=function(){},Ge.setHTML5CodebaseVersion=function(fe,$e){var Ye=parseFloat(fe);if(Ye!==NaN&&Ye<5){console.log("The GeoGebra HTML5 codebase version "+Ye+" is deprecated. Using version latest instead.");return}Fe=fe,mt(fe,$e)},Ge.getHTML5CodebaseVersion=function(){return ne},Ge.getParameters=function(){return re},Ge.setFontsCSSURL=function(fe){z=fe},Ge.setGiacJSURL=function(fe){},Ge.setJNLPFile=function(fe){Te=fe},Ge.setJNLPBaseDir=function(fe){},Ge.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var $e="auto",Ye=re.id,vt,et=!1,st=0;st<arguments.length;st++){var de=arguments[st];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?$e=de:Ye=arguments[st]):typeof de=="boolean"?et=de:de instanceof HTMLElement&&(vt=de)}Je();function Je(){if(!ce){setTimeout(Je,200);return}$e=Ze($e);var rt=vt||document.getElementById(Ye);if(!rt){console.log("possibly bug on ajax loading? ");return}if(Ge.removeExistingApplet(rt,!1),re.width===void 0&&rt.clientWidth&&(re.width=rt.clientWidth),re.height===void 0&&rt.clientHeight&&(re.height=rt.clientHeight),!(re.width&&re.height)&&$e==="html5"&&(delete re.width,delete re.height),Re=$e,$e==="screenshot")Gt(rt,re);else{var wt=!1;re.hasOwnProperty("playButton")&&re.playButton||re.hasOwnProperty("clickToLoad")&&re.clickToLoad?wt=!0:re.hasOwnProperty("playButtonAutoDecide")&&re.playButtonAutoDecide&&(wt=(!oe()||fe())&&ie()),wt?(Re="screenshot",ye(rt,re,et,$e)):it(rt,re,et)}}};function oe(){try{return window.self!==window.top}catch(fe){return!0}}function ie(){return re.hasOwnProperty("screenshotGenerator")&&re.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Ge.getViews=function(){return ae},Ge.isJavaInstalled=function(){return!1};var ge=function(fe){var $e=function(st){var de=JSON.parse(st),Je=function(yt){return yt.type=="G"||yt.type=="E"},rt=de.elements?de.elements.filter(Je)[0]:de;if(!rt||!rt.url){Ye();return}re.fileName=rt.url,me(rt.settings||{}),ae.is3D=!0;var wt="https://www.geogebra.org/images/";Ge.setPreviewImage(E||rt.previewUrl,wt+"GeoGebra_loading.png",wt+"applet_play.png"),fe()},Ye=function(){re.onError&&re.onError(),zt("Error: Fetching material (id "+re.material_id+") failed.",re)},vt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",et="/materials/"+re.material_id+"?scope=basic";le("https://"+vt+"/api/proxy.php?path="+encodeURIComponent(et),$e,Ye)};function me(fe){var $e=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ye){fe[Ye]=!!fe[Ye]}),$e.forEach(function(Ye){re[Ye]===void 0&&fe[Ye]!==void 0&&(re[Ye]=fe[Ye])}),re.showToolBarHelp===void 0&&(re.showToolBarHelp=re.showToolBar)}function le(fe,$e,Ye){var vt=new XMLHttpRequest;vt.open("GET",fe),vt.onload=function(){$e(vt.responseText)},vt.onerror=Ye,vt.send()}Ge.isHTML5Installed=function(){return!0},Ge.getLoadedAppletType=function(){return Re},Ge.setPreviewImage=function(fe,$e,Ye){E=fe,b=$e,x=Ye},Ge.removeExistingApplet=function(fe,$e){var Ye;typeof fe=="string"&&(fe=document.getElementById(fe)),Re=null;var vt=null;for(Ye=0;Ye<fe.childNodes.length;Ye++){var et=fe.childNodes[Ye],st=et.className;st==="applet_screenshot"?$e?(et.style.display="block",Re="screenshot"):et.style.display="none":st!=="applet_scaler prerender"&&(fe.removeChild(et),vt=st&&st.indexOf("appletParameters")!=-1?et.id:null,Ye--)}var de=re.id!==void 0?re.id:vt,Je=window[de];Je&&typeof Je.getBase64=="function"&&(Je.remove(),window[de]=null)},Ge.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var fe=Ge.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},Ge.startAnimation=function(){var fe=Ge.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},Ge.stopAnimation=function(){var fe=Ge.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},Ge.getAppletObject=function(){var fe=re.id!==void 0?re.id:"ggbApplet";return window[fe]},Ge.resize=function(){};var be=function(fe,$e,Ye){var vt=document.createElement("param");vt.setAttribute("name",$e),vt.setAttribute("value",Ye),fe.appendChild(vt)},Be=function(fe){return fe&&fe!=="false"},it=function(fe,$e,Ye){te(ne)<=4.2&&(Ye=!0);var vt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ne||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(vt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var et=document.createElement("div");et.classList.add("appletParameters","notranslate");var st=$e.width,de=$e.height;if($e.disableAutoScale=$e.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():$e.disableAutoScale,$e.width!==void 0)if(te(ne)<=4.4)Be($e.showToolBar)&&($e.height-=7),Be($e.showAlgebraInput)&&($e.height-=37),$e.width<605&&Be($e.showToolBar)&&($e.width=605,st=605);else{var Je=100;(Be($e.showToolBar)||Be($e.showMenuBar))&&($e.hasOwnProperty("customToolBar")&&($e.customToolbar=$e.customToolBar),Je=Be($e.showMenuBar)?245:155),st<Je&&($e.width=Je,st=Je)}et.style.border="none",et.style.display="inline-block";for(var rt in $e)$e.hasOwnProperty(rt)&&rt!=="appletOnLoad"&&et.setAttribute("data-param-"+rt,$e[rt]);z&&et.setAttribute("data-param-fontscssurl",z),Ge.resize=function(){GGBAppletUtils.responsiveResize(fe,$e)},window.addEventListener("resize",function(bt){Ge.resize()});var wt=typeof $e.appletOnLoad=="function"?$e.appletOnLoad:function(){};if(!Ye&&$e.width!==void 0){$e.hasOwnProperty("showSplash")||et.setAttribute("data-param-showSplash","false");var yt=fe.querySelector(".applet_scaler.prerender"),Ce=yt!==null;if(Ce)var he=yt.querySelector(".ggb_preview");else{var he=xe(st,de,$e.borderColor,!1);yt=document.createElement("div"),yt.className="applet_scaler",yt.style.position="relative",yt.style.display="block",yt.style.width=st+"px",yt.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(yt,"66%"),te(ne)>=5?($e.appletOnLoad=function(bt){var Ht=fe.querySelector(".ggb_preview");Ht&&Ht.parentNode.removeChild(Ht),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(yt),window.GGBT_wsf_view&&$(window).trigger("resize"),wt(bt)},Ce||yt.appendChild(he)):et.appendChild(he),yt.appendChild(et),Ce||fe.appendChild(yt),setTimeout(function(){Ge.resize()},1)}else{var Se=document.createElement("div");Se.className="applet_scaler",Se.style.position="relative",Se.style.display="block",Se.appendChild(et),fe.appendChild(Se),$e.appletOnLoad=function(bt){Ge.resize(),wt(bt)}}function ke(bt,Ht){Ht&&typeof Ht.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(bt,Ht.appletOnLoad):renderGGBElement(bt),zt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Ht)}function Ve(bt,Ht){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:bt,params:Ht}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Et){ke(Et.article,Et.params)}),html5AppletsToProcess=null)},te(ne)<5&&(bt.className+=" geogebraweb")):ke(bt,Ht)}if(vt){scriptLoadStarted=!0;for(var ut=0;ut<et.childNodes.length;ut++){var $t=et.childNodes[ut].tagName;$t==="TABLE"&&(et.removeChild(et.childNodes[ut]),ut--)}if(ggbHTML5LoadedScript!==null){var Lt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Lt!=null&&Lt.parentNode.removeChild(Lt)}var Dt=document.createElement("script"),kt=function(){Ve(et,$e)};Dt.src=je+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ne,ggbHTML5LoadedScript=Dt.src,zt("GeoGebra HTML5 codebase loaded: '"+je+"'.",$e),!se&&(!Fe||Fe=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),kt()):je.requirejs?__webpack_require__.e(981).then(function(){var bt=[__webpack_require__(60981)];kt.apply(null,bt)}.bind(this)).catch(__webpack_require__.oe):(Dt.onload=kt,fe.appendChild(Dt))}else Ve(et,$e);$e.height=de,$e.width=st},Gt=function(fe,$e,Ye){var vt=xe($e.width,$e.height,$e.borderColor,Ye),et=document.createElement("div");et.style.position="relative",et.style.display="block",et.style.width=$e.width+"px",et.style.height=$e.height+"px",et.className="applet_screenshot applet_scaler"+(Ye?" applet_screenshot_play":""),et.appendChild(vt);var st=GGBAppletUtils.getScale($e,fe,Ye);Ye?(fe.appendChild(Oe()),window.GGBT_wsf_view||(fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(et,"66%"),fe.appendChild(et),st!==1&&!isNaN(st)&&(GGBAppletUtils.scaleElement(et,st),et.style.width=$e.width+"px",et.style.height=$e.height+"px",et.parentNode.style.width=$e.width*st+"px",et.parentNode.style.height=$e.height*st+"px"),Ge.resize=function(){jt(fe,vt,et,Ye)},window.addEventListener("resize",function(de){Ge.resize()}),Ge.resize()};function jt(fe,$e,Ye,vt){if(fe.contains($e)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}var et=GGBAppletUtils.getScale(re,fe,vt);Ye.parentNode!==null&&(!isNaN(et)&&et!==1?(GGBAppletUtils.scaleElement(Ye,et),Ye.parentNode.style.width=re.width*et+"px",Ye.parentNode.style.height=re.height*et+"px"):(GGBAppletUtils.scaleElement(Ye,1),Ye.parentNode.style.width=re.width+"px",Ye.parentNode.style.height=re.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(fe),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Ge.onExitFullscreen=function(fe,$e){$e.appendChild(fe)};var ye=function(fe,$e,Ye,vt){Gt(fe,$e,!0);for(var et=function(){var Je=[];for(de=0;de<fe.childNodes.length;de++)Je.push(fe.childNodes[de]);if(window.GGBT_wsf_view){var rt=window.GGBT_wsf_view.renderFullScreen(fe,$e.id),wt=document.getElementById("fullscreencontainer"),yt=jQuery(fe).find(".fullscreencontent");yt.length>0?(rt.remove(),yt.attr("id","fullscreencontent").show(),jQuery(wt).append(yt),window.dispatchEvent(new Event("resize"))):it(rt,$e,!1),window.GGBT_wsf_view.launchFullScreen(wt)}else Re=vt,it(fe,$e,!1);if(!window.GGBT_wsf_view)for(de=0;de<Je.length;de++)fe.removeChild(Je[de])},st=fe.getElementsByClassName("ggb_preview_play"),de=0;de<st.length;de++)st[de].addEventListener("click",et,!1),st[de].addEventListener("ontouchstart",et,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(fe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Oe=function(){var fe=document.createElement("div");if(fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var $e='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Ye=document.createElement("style");Ye.styleSheet?Ye.styleSheet.cssText=$e:Ye.appendChild(document.createTextNode($e)),document.getElementsByTagName("head")[0].appendChild(Ye)}return fe},xe=function(fe,$e,Ye,vt){var et=document.createElement("div");et.className="ggb_preview",et.style.position="absolute",et.style.zIndex="90",et.style.width=fe-2+"px",et.style.height=$e-2+"px",et.style.top="0px",et.style.left="0px",et.style.overflow="hidden",et.style.backgroundColor="white";var st="lightgrey";Ye!==void 0&&(Ye==="none"?st="transparent":st=Ye),et.style.border="1px solid "+st;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 Je,rt,wt;if(!vt){Je=document.createElement("img"),Je.style.position="absolute",Je.style.zIndex="1001",Je.style.opacity=1,de.style.opacity=.3,rt=360,rt>fe/4*3&&(rt=fe/4*3),wt=rt/5.8,Je.setAttribute("src",b),Je.setAttribute("width",rt),Je.setAttribute("height",wt);var yt=(fe-rt)/2,Ce=($e-wt)/2;Je.style.left=yt+"px",Je.style.top=Ce+"px",et.appendChild(Je)}}return et.appendChild(de),et},Ze=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},nt=["web","webSimple","web3d","tablet","tablet3d","phone"],mt=function(fe,$e){if(ne=fe,$e){St(ne,!0);return}var Ye=!Pe;if(Ye){var vt=te(ne);!isNaN(vt)&&vt<4.4&&(Ye=!1)}var et,st;window.location.protocol.substr(0,4)==="http"?et=window.location.protocol:et="http:";var de=ne.indexOf("//");de>0?st=ne:de===0?st=et+ne:st="https://www.geogebra.org/apps/5.2.814.0/";for(var Je in nt)if(ne.slice(nt[Je].length*-1)===nt[Je]||ne.slice((nt[Je].length+1)*-1)===nt[Je]+"/"){St(st,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ye&&!ae.is3D&&!ae.AV&&!ae.SV&&!ae.CV&&!ae.EV2&&!ae.CP&&!ae.PC&&!ae.DA&&!ae.FI&&!ae.PV&&!Be(re.showToolBar)&&!Be(re.showMenuBar)&&!Be(re.showAlgebraInput)&&!Be(re.enableRightClick)&&(!re.appName||re.appName=="classic")?st+="webSimple/":st+="web3d/",St(st,!1)},St=function(fe,$e){if(fe.requirejs){je=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),je=fe,$e===null&&($e=fe.indexOf("http")===-1),_e=$e,a="web.nocache.js",y=!1;var Ye=je.split("/");Ye.length>1&&(!$e&&Ye[Ye.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):nt.indexOf(Ye[Ye.length-2])>=0&&(a=Ye[Ye.length-2]+".nocache.js")),Ye=fe.split("/"),ne=Ye[Ye.length-3],ne.substr(0,4)==="test"?ne=ne.substr(4,1)+"."+ne.substr(5,1):(ne.substr(0,3)==="war"||ne.substr(0,4)==="beta")&&(ne="5.0");var vt=parseFloat(ne);vt!==NaN&&vt<5&&fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+vt+" is deprecated. Using version latest instead."),mt("5.0",$e))},zt=function(fe,$e){window.console&&window.console.log&&(!$e||typeof $e.showLogging=="undefined"||$e.showLogging&&$e.showLogging!=="false")&&console.log(fe)};re.material_id!==void 0?ge(lt):lt();function lt(){var fe=ot;Fe!==null?fe=Fe:parseFloat(fe)<5&&(fe="5.0"),mt(fe,!1),se!==null&&St(se,_e),ce=!0}return Ge},GGBAppletUtils=function(){"use strict";function Ge(){return window.GGBT_wsf_edit!==void 0}function ot(ce,Fe){Fe!=1?(ce.style.transformOrigin="0% 0% 0px",ce.style.webkitTransformOrigin="0% 0% 0px",ce.style.transform="scale("+Fe+","+Fe+")",ce.style.webkitTransform="scale("+Fe+","+Fe+")",ce.style.maxWidth="initial",ce.querySelector(".ggb_preview")!==null&&(ce.querySelector(".ggb_preview").style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(ce.style.transform="none",ce.style.webkitTransform="none")}function re(ce,Fe,se,De,ze,Te){var je=null;if(Te!=null&&Te!="")for(var _e=ce.parentNode;_e!=null;)if((" "+_e.className+" ").indexOf(" "+Te+" ")>-1){je=_e;break}else _e=_e.parentNode;var Re=0,ne=0,a=0,y=0,E=0,b=0,x=0;if(je)Re=je.offsetWidth,ne=Math.max(De?je.offsetWidth:0,je.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Re=Math.min(window.innerWidth,document.documentElement.clientWidth),ne=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Re):(Re=window.innerWidth,ne=window.innerHeight,a=window.innerWidth),ce){var z=ce.getBoundingClientRect();z.left>0&&z.left<=Re&&(ze===void 0||!ze)&&(document.dir==="rtl"?(E=Re-z.width-z.left,b=a<=480?10:30):(b=z.left,E=a<=480?10:30),y=b+E)}if(ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return ce&&((se===void 0||!se)&&Fe>0&&Fe+y<Re?Re=Fe:Re-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(se===void 0||!se)&&(ne-=x)),{width:Re,height:ne}}function ae(ce,Fe,se,De,ze){if(ce.isScreenshoGenerator)return 1;var Te=De!==void 0&&De,je=ce.noScaleMargin!=null&&ce.noScaleMargin,_e=function(ee){return ee&&ee!=="false"},Re=_e(ce.autoHeight),ne=re(Fe,ce.width,se,Re,Te&&window.GGBT_wsf_view||je,ze),a=parseInt(ne.width),y=ce.width,E=ce.height;if(y===void 0){var b=Fe.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=Te?1:ne.height/E;return se!==void 0&&!se&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Pe(ce,Fe,se){var De=1,ze,Te=!1;if(ce.hasOwnProperty("allowUpscale")&&(Te=ce.allowUpscale),ce.hasOwnProperty("scale")&&(De=parseFloat(ce.scale),(isNaN(De)||De===null||De===0)&&(De=1),De>1&&(Te=!0)),Fe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Te=!0),!(ce.hasOwnProperty("disableAutoScale")&&ce.disableAutoScale))ze=ae(ce,Fe,Te,se,ce.scaleContainerClass);else return De;return Te&&(!ce.hasOwnProperty("scale")||De===1)?ze:Math.min(De,ze)}function Ue(ce){var Fe=Math.min(window.innerWidth,document.documentElement.clientWidth),se=Math.min(window.innerHeight,document.documentElement.clientHeight),De=ce.getBoundingClientRect(),ze=(Fe-De.width)/2,Te=(se-De.height)/2;Te<0&&(Te=0),ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ze<40?ce.style.left="40px":ce.style.left=ze+"px",ce.style.top=Te+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Te<40?ce.style.top="40px":ce.style.top=Te+"px",ce.style.left=ze+"px")}function Ie(ce,Fe){var se=ce.querySelector(".appletParameters");if(se){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Fe.id!==se.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(ce)}if(se.parentElement&&/fullscreen/.test(se.parentElement.className))return;var De=Pe(Fe,ce);Ge()&&se.setAttribute("data-param-scale",De);for(var ze=null,Te=0;Te<ce.childNodes.length;Te++)if(ce.childNodes[Te].className!==void 0&&ce.childNodes[Te].className.match(/^applet_scaler/)){ze=ce.childNodes[Te];break}if(ze!==null&&ze.querySelector(".noscale")!==null)return;var je=Fe.id!==void 0?Fe.id:"ggbApplet",_e=window[je];(_e==null||!_e.recalculateEnvironments)&&ze!==null&&!ze.className.match(/fullscreen/)&&(ze.parentNode.style.transform="",!isNaN(De)&&De!==1?(ze.parentNode.style.width=Fe.width*De+"px",ze.parentNode.style.height=Fe.height*De+"px",ot(ze,De)):(ot(ze,1),ze.parentNode.style.width=Fe.width+"px",ze.parentNode.style.height=Fe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Ue(ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(se).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:Ge,positionCenter:Ue,getScale:Pe,scaleElement:ot}}();__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 Ge=n.location.search;return Ge.indexOf(J)!=-1||Ge.indexOf(K)!=-1}function q(Ge,ot){}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(Ge){var ot=s[L].bindings;s[L].bindings=function(){for(var re=ot?ot():{},ae=Ge[webModule.__softPermutationId],Pe=O;Pe<ae.length;Pe++){var Ue=ae[Pe];re[Ue[O]]=Ue[P]}return re}};var t;function u(){return v(),t}function v(){if(!t){var Ge=o.createElement(Q);if(Ge.id=L,Ge.style.cssText=R+S,Ge.tabIndex=-1,o.body.appendChild(Ge),t=Ge.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var ot=document.compatMode==U?V:W;t.write(ot+X),t.close()}}}function w(Ge){function ot(ae){function Pe(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Ue=Pe();if(Ue){ae();return}function Ie(){if(!Ue){if(!Pe())return;Ue=!0,ae(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),ce&&clearInterval(ce)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var ce=setInterval(function(){Ie()},$)}function re(ae){var Pe=u(),Ue=Pe.body,Ie=Pe.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=ae,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+ae))}),Ue.appendChild(Ie)}ot(function(){re(Ge)})}webModule.__startLoadingFragment=function(Ge){return C(Ge)},webModule.__installRunAsyncCode=function(Ge){var ot=u(),re=ot.body,ae=ot.createElement(_);ae.language=ab,ae.text=Ge,re.appendChild(ae),re.removeChild(ae)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Ge){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Ge){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Ge){var ot=c[Ge];return ot==null?null:ot},r=d,webModule.__errFn=e}function B(){function Ge(ce){var Fe=ce.lastIndexOf(rb);Fe==-1&&(Fe=ce.length);var se=ce.indexOf(sb);se==-1&&(se=ce.length);var De=ce.lastIndexOf(tb,Math.min(se,Fe));return De>=O?ce.substring(O,De+P):W}function ot(ce){if(!ce.match(/^\w+:\/\//)){var Fe=o.createElement(ub);Fe.src=ce+vb,ce=Ge(Fe.src)}return ce}function re(){var ce=__gwt_getMetaProperty(wb);return ce!=null?ce:W}function ae(){for(var ce=o.getElementsByTagName(_),Fe=O;Fe<ce.length;++Fe)if(ce[Fe].src.indexOf(xb)!=-1)return Ge(ce[Fe].src);return W}function Pe(){var ce=o.getElementsByTagName(yb);return ce.length>O?ce[ce.length-P].href:W}function Ue(){var ce=o.location;return ce.href==ce.protocol+zb+ce.host+ce.pathname+ce.search+ce.hash}var Ie=re();return Ie==W&&(Ie=ae()),Ie==W&&(Ie=Pe()),Ie==W&&Ue()&&(Ie=Ge(o.location.href)),Ie=ot(Ie),Ie}function C(Ge){return Ge.match(/^\//)||Ge.match(/^[a-zA-Z]+:\/\//)?Ge:webModule.__moduleBase+Ge}function D(){var Ge=[],ot=O,re=[],ae=[];function Pe(ce){var Fe=ae[ce](),se=re[ce];if(Fe in se)return Fe;var De=[];for(var ze in se)De[se[ze]]=ze;throw r&&r(ce,De,Fe),null}if(__gwt_isKnownPropertyValue=function(ce,Fe){return Fe in re[ce]},webModule.__getPropMap=function(){var ce={};for(var Fe in re)re.hasOwnProperty(Fe)&&(ce[Fe]=Pe(Fe));return ce},webModule.__computePropValue=Pe,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Ue;try{Ue=Cb;var Ie=Ue.indexOf(Db);Ie!=-1&&(ot=parseInt(Ue.substring(Ie+P),$),Ue=Ue.substring(O,Ie))}catch(ce){}return webModule.__softPermutationId=ot,C(Ue+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},67303:function(Ge,ot,re){"use strict";re.d(ot,{Ax:function(){return Ie},Ds:function(){return ce},KI:function(){return se},SI:function(){return Ue},f1:function(){return Pe}});var ae=re(90524);function Pe(De){let ze=!0;if(De.length>0){for(let Te=0;Te<De.length;Te++)if(De[Te].compile_success==0||!De[Te].compile_success){ze=!1;break}}else ze=!1;return ze}function Ue(De,ze=""){let Te=[];for(let je=0;je<De.length;je++){let _e=De[je],Re=ze?`${ze}/${_e.name}`:`${_e.name}`;Te.push({title:_e.name,type:_e.type,isLeaf:_e.type!=="tree",key:Re})}return Te}function Ie(De,ze,Te){for(let je=0;je<De.length;je++){let _e=De[je];if(_e.key===ze){_e.children=Te;break}_e.children&&Ie(_e.children,ze,Te)}return De}function ce(De,ze,Te){let je;return function(){let _e=this,Re=arguments,ne=function(){je=null,Te||De.apply(_e,Re)},a=Te&&!je;clearTimeout(je),je=setTimeout(ne,ze),a&&De.apply(_e,Re)}}const Fe=!0,se=ae.Z.API_SERVER},50111:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return jt}});var ae=re(59301),Pe=re(76560),Ue=re(24905),Ie=re(12893),ce=re(32134),Fe=re(82093),se=re(78241),De=re(57809),ze={},Te=Object.defineProperty,je=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ne=(ye,Oe,xe)=>Oe in ye?Te(ye,Oe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ye[Oe]=xe,a=(ye,Oe)=>{for(var xe in Oe||(Oe={}))_e.call(Oe,xe)&&ne(ye,xe,Oe[xe]);if(je)for(var xe of je(Oe))Re.call(Oe,xe)&&ne(ye,xe,Oe[xe]);return ye},y=(ye,Oe,xe)=>new Promise((Ze,nt)=>{var mt=lt=>{try{zt(xe.next(lt))}catch(fe){nt(fe)}},St=lt=>{try{zt(xe.throw(lt))}catch(fe){nt(fe)}},zt=lt=>lt.done?Ze(lt.value):Promise.resolve(lt.value).then(mt,St);zt((xe=xe.apply(ye,Oe)).next())});const E=Ue.default.Group,b=({classroomList:ye,loading:Oe,user:xe,exercise_id:Ze=null,homework_common_id:nt=null,setitem:mt,item:St,type:zt,rz:lt,dispatch:fe})=>{var $e,Ye,vt,et,st,de,Je,rt;const[wt,yt]=(0,ae.useState)([]);let[Ce,he]=(0,ae.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const Se=(0,Pe.useParams)(),[ke,Ve]=(0,ae.useState)(!1),[ut,$t]=(0,ae.useState)(!1),[Lt]=se.default.useForm();(0,ae.useEffect)(()=>{lt&&(Ce.zydatas=lt,he(a({},Ce)),St!=null&&St.ec_course_id&&Dt())},[St,lt]);function Dt(){return y(this,null,function*(){console.log("----",St),yield kt(St==null?void 0:St.ec_major_school_id),yield bt(St==null?void 0:St.ec_year_id),yield Ht(St==null?void 0:St.ec_course_id),Lt.setFieldsValue({ec_course_id:St==null?void 0:St.ec_course_id,ec_major_school_id:St==null?void 0:St.ec_major_school_id,ec_point_ids:St==null?void 0:St.ec_point_ids,ec_year_id:St==null?void 0:St.ec_year_id})})}function kt(Et){return y(this,null,function*(){const Vt=yield(0,Fe.ZP)(`/api/ec_major_schools/${Et}/ec_years/get_year_list.json`,{method:"get"});Ce.jbdatas=Vt==null?void 0:Vt.data,he(a({},Ce)),Lt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function bt(Et){return y(this,null,function*(){const Vt=yield(0,Fe.ZP)(`/api/ec_years/${Et}/ec_courses/get_courses.json`,{method:"get"});Ce.kcdatas=Vt==null?void 0:Vt.data,he(a({},Ce)),Lt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const Ht=Et=>y(void 0,null,function*(){const Vt=yield(0,Fe.ZP)(`/api/ec_courses/${Et}/ec_points.json`,{method:"get",params:{ec_course_id:Et}});Ce.zsdatas=Vt==null?void 0:Vt.data,he(a({},Ce))});return ae.createElement("div",{className:ze.from},ae.createElement(se.default,{form:Lt,layout:"inline",onValuesChange:Et=>{console.log("----",Et),Et.ec_major_school_id&&(Ce.jbdatas=[],Ce.kcdatas=[],Ce.zsdatas=[],he(a({},Ce)),kt(Et.ec_major_school_id)),Et.ec_year_id&&(Ce.kcdatas=[],Ce.zsdatas=[],he(a({},Ce)),bt(Et.ec_year_id)),Et.ec_course_id&&(Ce.zsdatas=[],he(a({},Ce)),Ht(Et.ec_course_id))},onFinish:Et=>y(void 0,null,function*(){mt(Et)})},ae.createElement(se.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ae.createElement(De.default,{style:{width:150},disabled:(($e=Ce.zydatas)==null?void 0:$e.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Ye=Ce==null?void 0:Ce.zydatas)==null?void 0:Ye.map((Et,Vt)=>ae.createElement(De.default.Option,{key:Vt,value:Et==null?void 0:Et.ec_major_school_id},Et==null?void 0:Et.name)))),ae.createElement(se.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ae.createElement(De.default,{style:{width:150},disabled:((vt=Ce.jbdatas)==null?void 0:vt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(et=Ce==null?void 0:Ce.jbdatas)==null?void 0:et.map((Et,Vt)=>ae.createElement(De.default.Option,{key:Vt,value:Et==null?void 0:Et.ec_year_id},Et==null?void 0:Et.year)))),ae.createElement(se.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ae.createElement(De.default,{style:{width:150},disabled:((st=Ce.kcdatas)==null?void 0:st.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=Ce==null?void 0:Ce.kcdatas)==null?void 0:de.map((Et,Vt)=>ae.createElement(De.default.Option,{key:Vt,value:Et==null?void 0:Et.id},Et==null?void 0:Et.name)))),ae.createElement(se.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ae.createElement(De.default,{onChange:()=>{Lt.submit()},style:{width:150},mode:"multiple",disabled:((Je=Ce.zsdatas)==null?void 0:Je.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(rt=Ce==null?void 0:Ce.zsdatas)==null?void 0:rt.map((Et,Vt)=>ae.createElement(De.default.Option,{key:Vt,value:Et==null?void 0:Et.id},Et==null?void 0:Et.name))))))};var x=(0,Pe.connect)(({classroomList:ye,loading:Oe,globalSetting:xe,user:Ze})=>({classroomList:ye,globalSetting:xe,loading:Oe.effects,user:Ze}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,oe=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(ye,Oe,xe)=>Oe in ye?z(ye,Oe,{enumerable:!0,configurable:!0,writable:!0,value:xe}):ye[Oe]=xe,le=(ye,Oe)=>{for(var xe in Oe||(Oe={}))ie.call(Oe,xe)&&me(ye,xe,Oe[xe]);if(oe)for(var xe of oe(Oe))ge.call(Oe,xe)&&me(ye,xe,Oe[xe]);return ye},be=(ye,Oe)=>ee(ye,te(Oe)),Be=(ye,Oe,xe)=>new Promise((Ze,nt)=>{var mt=lt=>{try{zt(xe.next(lt))}catch(fe){nt(fe)}},St=lt=>{try{zt(xe.throw(lt))}catch(fe){nt(fe)}},zt=lt=>lt.done?Ze(lt.value):Promise.resolve(lt.value).then(mt,St);zt((xe=xe.apply(ye,Oe)).next())});const it=Ue.default.Group,Gt=({classroomList:ye,loading:Oe,user:xe,exercise_id:Ze=null,homework_common_id:nt=null,setitem:mt,type:St,dispatch:zt})=>{var lt,fe;let[$e,Ye]=(0,ae.useState)([{}]),[vt,et]=(0,ae.useState)([]);function st(){return Be(this,null,function*(){var Je,rt,wt;let yt=yield(0,Fe.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Ze,homework_common_id:nt}});if(((Je=yt==null?void 0:yt.data)==null?void 0:Je.length)>0){let Ce=[];(rt=yt==null?void 0:yt.data)==null||rt.map(he=>{var Se;(Se=he==null?void 0:he.ec_point_ids)==null||Se.map(ke=>{Ce.push(ke)})}),mt(be(le({},(wt=yt==null?void 0:yt.data)==null?void 0:wt[0]),{ec_point_ids:Ce})),Ye(yt==null?void 0:yt.data)}})}(0,ae.useEffect)(()=>{var Je,rt;(rt=(Je=xe==null?void 0:xe.userInfo)==null?void 0:Je.course)!=null&&rt.course_school_id&&de()},[(fe=(lt=xe==null?void 0:xe.userInfo)==null?void 0:lt.course)==null?void 0:fe.course_school_id]);function de(){return Be(this,null,function*(){var Je,rt;const wt=yield(0,Fe.ZP)(`/api/schools/${(rt=(Je=xe==null?void 0:xe.userInfo)==null?void 0:Je.course)==null?void 0:rt.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});et(wt==null?void 0:wt.data),(nt||Ze)&&st()})}return ae.createElement("div",null,ae.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),$e==null?void 0:$e.map((Je,rt)=>ae.createElement("div",{key:rt,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ae.createElement(x,{rz:vt,item:Je,type:rt,setitem:wt=>{$e.splice(rt,1,wt),Ye([...$e]);let yt=[];$e==null||$e.map(Ce=>{var he;(he=Ce==null?void 0:Ce.ec_point_ids)==null||he.map(Se=>{yt.push(Se)})}),mt(be(le({},wt),{ec_point_ids:yt}))}}),rt!=0&&ae.createElement(Ie.Z,{onClick:()=>{$e.splice(rt,1),Ye([...$e])},style:{marginLeft:10,fontSize:"20px"}}),ae.createElement(ce.Z,{onClick:()=>{$e.push({}),Ye([...$e])},style:{marginLeft:10,fontSize:"20px"}}))))};var jt=(0,Pe.connect)(({classroomList:ye,loading:Oe,globalSetting:xe,user:Ze})=>({classroomList:ye,globalSetting:xe,loading:Oe.effects,user:Ze}))(Gt)},6077:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return je}});var ae=re(59301),Pe={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Ue=re(92310),Ie=re.n(Ue),ce=re(71418),Fe=re(2859),se=re(82093),De=re(49661),ze=(_e,Re,ne)=>new Promise((a,y)=>{var E=z=>{try{x(ne.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ne.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ne=ne.apply(_e,Re)).next())}),je=({data:_e,className:Re,fullWidth:ne,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ae.useRef)(null),ee=(0,ae.useRef)(null),te=(0,ae.useRef)(null),oe=(0,ae.useRef)(null),[ie,ge]=(0,ae.useState)(!1),[me,le]=(0,ae.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ae.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),_e!=null&&_e.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",_e!=null&&_e.src&&be()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[_e==null?void 0:_e.visible]);const be=()=>ze(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ye=yield(0,De.ZJ)(_e==null?void 0:_e.src);z.current.src="",z.current.src=ye,z.current.onload=function(){jt()},ge(!1),le("")}),Be=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},it=ye=>ze(void 0,null,function*(){ge(!0),le("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Oe=yield(0,se.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:_e.title,file:ye.dataUrl}});Oe!=null&&Oe.id&&!x?(yield(0,se.ZP)(`/api/attachments/${_e.id}/add_subitem.json`,{method:"post",body:{subitem_id:Oe==null?void 0:Oe.id,settings:JSON.stringify(ye.state)}})).status===0&&E():Oe!=null&&Oe.id&&E(Oe),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),le("")}),Gt=()=>{const ye=document.querySelector('a[href="https://markerjs.com/"]');ye&&ye.parentNode&&(ye.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(xe=>{const Ze=document.querySelector(xe.name);Ze&&Ze.setAttribute("title",xe.title)})},jt=()=>{ee.current=new Fe.hP(z.current),ee.current.targetRoot=oe.current,ee.current.addEventListener("render",it),ee.current.addEventListener("beforeclose",Be),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(),_e!=null&&_e.snapshotData&&ee.current.restoreState(_e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Gt()},300)};return ae.createElement(ae.Fragment,null,(_e==null?void 0:_e.visible)&&ae.createElement(ce.Z,{spinning:ie,tip:me,style:{position:"absolute"}},ae.createElement("div",{ref:oe,className:Ie()(Pe.imageDimensions,Re,ne?Pe.fullWidth:""),style:a},ae.createElement("img",{className:Pe.img,ref:z}))))}},88615:function(Ge,ot,re){"use strict";var ae=re(59301),Pe=re(95237),Ue=re(43604),Ie=re(99313),ce=re(3113),Fe=re(7664),se=re(21697),De=re(48136),ze=re(59301);const Te=(0,ae.forwardRef)(({callback:je,showSaveButton:_e,value:Re=""},ne)=>{const a=(0,ae.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:ze.createElement(Pe.Z,{className:se.Z.lists,gutter:[10,10]},y.map((ee,te)=>ze.createElement(Ue.Z,{flex:"110px",className:se.Z.item},ze.createElement("div",null,ze.createElement(Fe.Z,{value:`$$${ee.value}$$`}),ee.name),ze.createElement("div",{className:se.Z.children},ee.children.map((oe,ie)=>ze.createElement("div",{key:ie},ze.createElement("h1",null,oe.name),ze.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ge,me)=>ze.createElement(Ue.Z,{key:me,onClick:()=>b(ge),className:se.Z.diamond},ze.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:ze.createElement(Pe.Z,{className:se.Z.lists,gutter:[10,10]},E.map((ee,te)=>ze.createElement(Ue.Z,{flex:"110px",className:se.Z.item},ze.createElement("div",null,ze.createElement(Fe.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),ze.createElement("div",{className:se.Z.children},ee.children.map((oe,ie)=>ze.createElement("div",{key:ie},oe.name&&ze.createElement("h1",null,oe.name),ze.createElement(Pe.Z,{gutter:[10,10]},oe.data.map((ge,me)=>ze.createElement(Ue.Z,{key:me,onClick:()=>b(ge),className:se.Z.diamond},ze.createElement(Fe.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return je&&je(te),te};return(0,ae.useImperativeHandle)(ne,()=>({getData:z})),ze.createElement("div",{className:se.Z.mathWrap},ze.createElement(Ie.default,{defaultActiveKey:"1",items:x}),ze.createElement("math-field",{locale:"zh_cn",className:se.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Re||""),_e&&ze.createElement("div",{className:se.Z.button},ze.createElement(ce.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});ot.Z=Te},42525:function(Ge,ot,re){"use strict";re.d(ot,{z:function(){return x},Z:function(){return z}});var ae=re(59301),Pe=re(54580),Ue=re(8591),Ie=re(43418),ce=re(3113),Fe=re(90524),se=re(92725),De=re(67131),ze=re(61481),Te=re(89392),je=Object.defineProperty,_e=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(ee,te,oe)=>te in ee?je(ee,te,{enumerable:!0,configurable:!0,writable:!0,value:oe}):ee[te]=oe,y=(ee,te)=>{for(var oe in te||(te={}))Re.call(te,oe)&&a(ee,oe,te[oe]);if(_e)for(var oe of _e(te))ne.call(te,oe)&&a(ee,oe,te[oe]);return ee},E=(ee,te,oe)=>new Promise((ie,ge)=>{var me=Be=>{try{be(oe.next(Be))}catch(it){ge(it)}},le=Be=>{try{be(oe.throw(Be))}catch(it){ge(it)}},be=Be=>Be.done?ie(Be.value):Promise.resolve(Be.value).then(me,le);be((oe=oe.apply(ee,te)).next())});const{Dragger:b}=Pe.default;function x(ee){let te=[];return ee&&ee.length>0&&(te=ee.map(oe=>({uid:oe.id,id:oe.id,name:oe.title+De.sX+oe.filesize,url:oe.url,filesize:oe.filesize,status:"done",response:{id:oe.id}}))),te}var z=({value:ee,onChange:te,action:oe,data:ie,className:ge,maxSize:me=150,title:le="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:be=!1,accept:Be="",additionalText:it,isDragger:Gt,number:jt=1e3,aloneClear:ye=!1,realTimeRemove:Oe=!0,uploadText:xe,setFileProgress:Ze,showFileProgress:nt,setIsUpload:mt=()=>{}})=>{const[St,zt]=(0,ae.useState)(!1);let[lt,fe]=(0,ae.useState)(ee||[]),[$e,Ye]=(0,ae.useState)(1);const[vt,et]=(0,ae.useState)(0);(0,ae.useEffect)(()=>{ee&&($e===1&&fe([...ee]),Ye(2),jt===(ee==null?void 0:ee.length)&&zt(!0))},[ee]);const st=()=>{setTimeout(()=>{lt.pop(),fe([...lt])},500)};(0,ae.useEffect)(()=>{(lt==null?void 0:lt.length)==0&&zt(!1)},[lt==null?void 0:lt.length]),nt&&Ze(lt.some(rt=>rt.status==="uploading"));const de={multiple:!0,disabled:St,accept:Be,withCredentials:!0,fileList:lt,beforeUpload:(rt,wt)=>{const yt=rt.size/1024/1024;return lt.concat(wt).length>jt?(lt.pop(),fe([...lt]),Ue.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${jt}\u4E2A\u6587\u4EF6`),ye?Promise.reject():(st(),!1)):yt<me?!0:(Ue.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${me}MB).`),ye?Promise.reject():(st(),!1))},data:ie,action:oe||`${Fe.Z.API_SERVER}/api/attachments.json`,onChange(rt){var wt,yt,Ce,he;if(rt.file.status==="removed"?lt=rt.fileList:lt=(0,Te.uniqBy)([...rt.fileList,...lt],"uid"),rt.file.status==="done"&&((yt=(wt=rt.file)==null?void 0:wt.response)==null?void 0:yt.status)===-1){Ue.ZP.error((he=(Ce=rt.file)==null?void 0:Ce.response)==null?void 0:he.message);return}rt.file.status==="uploading"?mt(!0):mt(!1),lt.length>=jt?zt(!0):zt(!1),fe([...lt]),lt=lt.map(Se=>{var ke,Ve;return(ke=Se==null?void 0:Se.response)!=null&&ke.id&&(Se.url=(Ve=Se==null?void 0:Se.response)==null?void 0:Ve.url),Se.name.indexOf(De.sX)===-1&&(Se.name=`${Se.name}${De.sX}${(0,De.RD)(Se.size)}`),y({},Se)}),console.log("info:",rt,lt),te(lt)},onRemove:rt=>E(void 0,null,function*(){if(!Oe)return!0;const wt=()=>E(void 0,null,function*(){if(rt.response?rt.response.id:rt.id){let Ce=yield(0,se.JZ)(rt.response?rt.response.id:rt.uid);return Promise.resolve(Ce)}else return!0});return be?new Promise((yt,Ce)=>{Ie.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ae.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>E(void 0,null,function*(){const he=yield wt();Ue.ZP.success("\u5220\u9664\u6210\u529F"),yt(!0)}),onCancel:()=>yt(!1)})}):yield wt()})};function Je(rt){rt.preventDefault(),rt.stopPropagation()}return ae.createElement("div",{className:`multi-upload ${ge||""}`},Gt&&ae.createElement(b,y({},de),ae.createElement("p",{className:"ant-upload-drag-icon"},ae.createElement(ze.Z,null)),ae.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ae.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",me,"MB)"," "),it),!Gt&&ae.createElement(Pe.default,y({},de),ae.createElement(ce.ZP,{disabled:St,key:vt,className:"upload_button"},ae.createElement("i",{className:"iconfont icon-shangchuanfujian mr5 font14"}),le),ae.createElement("span",{onClick:Je,className:"upload_text"},xe||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${me}MB)`)))}},67131:function(Ge,ot,re){"use strict";re.d(ot,{RD:function(){return _e},sX:function(){return je}});var ae=re(59301),Pe=re(90524),Ue=re(92725),Ie=Object.defineProperty,ce=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,De=(ne,a,y)=>a in ne?Ie(ne,a,{enumerable:!0,configurable:!0,writable:!0,value:y}):ne[a]=y,ze=(ne,a)=>{for(var y in a||(a={}))Fe.call(a,y)&&De(ne,y,a[y]);if(ce)for(var y of ce(a))se.call(a,y)&&De(ne,y,a[y]);return ne},Te=(ne,a,y)=>new Promise((E,b)=>{var x=te=>{try{ee(y.next(te))}catch(oe){b(oe)}},z=te=>{try{ee(y.throw(te))}catch(oe){b(oe)}},ee=te=>te.done?E(te.value):Promise.resolve(te.value).then(x,z);ee((y=y.apply(ne,a)).next())});const je="\u3000\u3000";function _e(ne){var a=["Bytes","KB","MB","GB","TB"];if(ne==0)return"0 Byte";var y=parseInt(""+Math.floor(Math.log(ne)/Math.log(1024)),10);return(ne/Math.pow(1024,y)).toFixed(1)+" "+a[y]}var Re=({value:ne=[],action:a,onChange:y,className:E,maxSize:b=150,title:x="\u6587\u4EF6\u4E0A\u4F20",accept:z=null})=>{const ee={multiple:!1,fileList:ne,accept:z,withCredentials:!0,beforeUpload:oe=>oe.size/1024/1024<b?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${b}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(oe){var ie,ge,me,le;let be=[...oe.fileList];if(be=be.map(Be=>(Be.name.indexOf(je)===-1&&(Be.name=`${Be.name}${je}${_e(Be.size)}`),ze({},Be))),oe.file.status==="done"&&((ge=(ie=oe.file)==null?void 0:ie.response)==null?void 0:ge.status)===-1){message.error((le=(me=oe.file)==null?void 0:me.response)==null?void 0:le.message),y([]);return}y(be)},onRemove:oe=>Te(void 0,null,function*(){const ie=oe.size/1024/1024;return oe.status==="uploading"?!0:ie<b&&(oe.response?oe.response.id:oe.uid)?yield removeAttachment(oe.response?oe.response.id:oe.id):!0})};function te(oe){oe.preventDefault(),oe.stopPropagation()}return React.createElement("div",{className:`single-upload ${E||""}`},React.createElement(Upload,ze({},ee),React.createElement(Button,{type:"primary",title:ne.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:ne.length>0,ghost:!0},x),React.createElement("span",{onClick:te,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",b,"M)"," ")))}},44905:function(Ge,ot,re){"use strict";re.d(ot,{h:function(){return ee}});var ae=re(59301),Pe=re(57809),Ue=re(78241),Ie=re(3113),ce=re(89780),Fe=re.n(ce),se=re(66543),De=re(59598),ze=Object.defineProperty,Te=Object.defineProperties,je=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,a=(te,oe,ie)=>oe in te?ze(te,oe,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[oe]=ie,y=(te,oe)=>{for(var ie in oe||(oe={}))Re.call(oe,ie)&&a(te,ie,oe[ie]);if(_e)for(var ie of _e(oe))ne.call(oe,ie)&&a(te,ie,oe[ie]);return te},E=(te,oe)=>Te(te,je(oe));const b=Pe.default.Option,x={labelCol:{span:4},wrapperCol:{span:20}},z={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};ot.Z=({callback:te,onCancel:oe})=>{const[ie,ge]=(0,ae.useState)("python");function me(be){ge(z[be][1])}function le(be){te(be)}return ae.createElement(Ue.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:le,style:{width:500}}),ae.createElement(Ue.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ae.createElement(Pe.default,{getPopupContainer:be=>be.parentNode,onChange:me},Object.keys(z).map(be=>ae.createElement(b,{key:be,value:be},z[be][0])))),ae.createElement(Ue.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ae.createElement(ee,{mode:ie})),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Ie.ZP,{type:"ghost",onClick:oe},"\u53D6\u6D88")))};function ee({value:te,onChange:oe,mode:ie,options:ge={}}){const me=(0,ae.useRef)(),[le,be]=(0,ae.useState)();return(0,ae.useEffect)(()=>{if(le){let Be=function(it){const Gt=it.getValue();oe&&oe(Gt)};return le.on("change",Be),()=>{le.off("change",Be)}}},[le,oe]),(0,ae.useEffect)(()=>{le&&le.setOption("mode",ie)},[le,ie]),(0,ae.useEffect)(()=>{le&&(te!==le.getValue()||te==="")&&setTimeout(()=>{le.setValue(te||"")},300)},[le,te]),(0,ae.useEffect)(()=>{if(me.current&&!le){const Be=Fe().fromTextArea(me.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));be(Be)}},[me.current,le]),ae.createElement("div",{className:"my-codemirror-container"},ae.createElement("textarea",{ref:me}))}},89389:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Jn}});var ae=re(59301),Pe=re(89780),Ue=re.n(Pe),Ie=re(76374),ce=re(66543),Fe=re(6313),se=re(25717),De=re(99498),ze=re(25419),Te=re(67549),je=re(7664),_e=({value:Le="",className:we,showTextOnly:pe,showLines:gt,style:Ot={}})=>{const Ft=(0,ae.useMemo)(()=>"",[Le]);return ae.createElement(ae.Fragment,null,ae.createElement("div",{dangerouslySetInnerHTML:{__html:Ft}}))},Re=re(59301),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(Le,we,pe)=>we in Le?ne(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Le[we]=pe,ee=(Le,we)=>{for(var pe in we||(we={}))b.call(we,pe)&&z(Le,pe,we[pe]);if(E)for(var pe of E(we))x.call(we,pe)&&z(Le,pe,we[pe]);return Le},te=(Le,we)=>a(Le,y(we));let oe=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ie({onActionCallback:Le,title:we,icon:pe,actionName:gt,className:Ot="",children:Ft}){function ln(){Le(gt)}return Re.createElement("a",{title:we,className:Ot,onClick:ln},Re.createElement("i",{className:`${pe}`}),Ft)}var ge=({watch:Le,showNullButton:we,showNullProgramButton:pe,onActionCallback:gt,fullScreen:Ot,insertTemp:Ft,hidetoolBar:ln,extraUse:Wt})=>{const Qt=[...oe,{title:`${Le?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Le?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Re.createElement("ul",{className:"markdown-toolbar-container"},!ln&&Qt.map((yn,_n)=>Re.createElement("li",{key:_n},yn.actionName?Re.createElement(ie,te(ee({},yn),{onActionCallback:gt})):Re.createElement("span",{className:"v-line"}))),we?Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:gt},Re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,pe?Re.createElement(Re.Fragment,null,Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:gt},Re.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:gt},Re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ft&&Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ft}`,onActionCallback:gt},Re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Wt&&Re.createElement("li",null,Wt),Re.createElement("li",{className:"btn-full-screen"},Re.createElement(ie,{icon:`${Ot?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Ot?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:gt})))},me=re(75790),le=re(78241),be=re(92832),Be=re(3113),it=Object.defineProperty,Gt=Object.defineProperties,jt=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Ze=(Le,we,pe)=>we in Le?it(Le,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):Le[we]=pe,nt=(Le,we)=>{for(var pe in we||(we={}))Oe.call(we,pe)&&Ze(Le,pe,we[pe]);if(ye)for(var pe of ye(we))xe.call(we,pe)&&Ze(Le,pe,we[pe]);return Le},mt=(Le,we)=>Gt(Le,jt(we));const St={labelCol:{span:4},wrapperCol:{span:20}};var zt=({callback:Le,onCancel:we})=>{function pe(gt){Le(gt)}return ae.createElement(le.default,mt(nt({},St),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pe,style:{width:500}}),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ae.createElement(be.default,null)),ae.createElement(le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ae.createElement(be.default,null)),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Be.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},lt=re(44905),fe=re(45596),$e=re(43418),Ye=re(95237),vt=re(6077),et=re(59301),st=({callback:Le,onCancel:we})=>{const pe=document.createElement("canvas"),gt=pe.getContext("2d");pe.width=1e3,pe.height=800,gt.fillStyle="#ffffff",gt.fillRect(0,0,pe.width,pe.height);const Ot=pe.toDataURL("image/png");return et.createElement($e.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},et.createElement(Ye.Z,{style:{height:"100vh"}},et.createElement(vt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Ot,visible:!0,title:String(Date.now())},onOk:Ft=>{Le({src:Ft.url})},onClose:we})))},de=re(12378);function Je(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Je,go.CommandHandler),Je.prototype.canAlignSelection=function(){var Le=this.diagram;return!(Le===null||Le.isReadOnly||Le.isModelReadOnly||Le.selection.count<2)},Je.prototype.alignLeft=function(){var Le=this.diagram;Le.startTransaction("aligning left");var we=1/0;Le.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.x,we))}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we,pe.position.y))}),Le.commitTransaction("aligning left")},Je.prototype.alignRight=function(){var Le=this.diagram;Le.startTransaction("aligning right");var we=-1/0;Le.selection.each(function(pe){if(!(pe instanceof go.Link)){var gt=pe.actualBounds.x+pe.actualBounds.width;we=Math.max(gt,we)}}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we-pe.actualBounds.width,pe.position.y))}),Le.commitTransaction("aligning right")},Je.prototype.alignTop=function(){var Le=this.diagram;Le.startTransaction("alignTop");var we=1/0;Le.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.y,we))}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.position.x,we))}),Le.commitTransaction("alignTop")},Je.prototype.alignBottom=function(){var Le=this.diagram;Le.startTransaction("aligning bottom");var we=-1/0;Le.selection.each(function(pe){if(!(pe instanceof go.Link)){var gt=pe.actualBounds.y+pe.actualBounds.height;we=Math.max(gt,we)}}),Le.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.actualBounds.x,we-pe.actualBounds.height))}),Le.commitTransaction("aligning bottom")},Je.prototype.alignCenterX=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center X");var pe=we.actualBounds.x+we.actualBounds.width/2;Le.selection.each(function(gt){gt instanceof go.Link||gt.move(new go.Point(pe-gt.actualBounds.width/2,gt.actualBounds.y))}),Le.commitTransaction("aligning Center X")}},Je.prototype.alignCenterY=function(){var Le=this.diagram,we=Le.selection.first();if(we){Le.startTransaction("aligning Center Y");var pe=we.actualBounds.y+we.actualBounds.height/2;Le.selection.each(function(gt){gt instanceof go.Link||gt.move(new go.Point(gt.actualBounds.x,pe-gt.actualBounds.height/2))}),Le.commitTransaction("aligning Center Y")}},Je.prototype.alignColumn=function(Le){var we=this.diagram;we.startTransaction("align Column"),Le===void 0&&(Le=0),Le=parseFloat(Le);var pe=new Array;we.selection.each(function(Wt){Wt instanceof go.Link||pe.push(Wt)});for(var gt=0;gt<pe.length-1;gt++){var Ot=pe[gt],Ft=Ot.actualBounds.y+Ot.actualBounds.height+Le,ln=pe[gt+1];ln.move(new go.Point(Ot.actualBounds.x,Ft))}we.commitTransaction("align Column")},Je.prototype.alignRow=function(Le){Le===void 0&&(Le=0),Le=parseFloat(Le);var we=this.diagram;we.startTransaction("align Row");var pe=new Array;we.selection.each(function(Wt){Wt instanceof go.Link||pe.push(Wt)});for(var gt=0;gt<pe.length-1;gt++){var Ot=pe[gt],Ft=Ot.actualBounds.x+Ot.actualBounds.width+Le,ln=pe[gt+1];ln.move(new go.Point(Ft,Ot.actualBounds.y))}we.commitTransaction("align Row")},Je.prototype.canRotate=function(Le){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},Je.prototype.rotate=function(Le){Le===void 0&&(Le=90);var we=this.diagram;we.startTransaction("rotate "+Le.toString());var we=this.diagram;we.selection.each(function(pe){pe instanceof go.Link||pe instanceof go.Group||(pe.angle+=Le)}),we.commitTransaction("rotate "+Le.toString())},Je.prototype.pullToFront=function(){var Le=this.diagram;Le.startTransaction("pullToFront");var we=new go.Map;Le.selection.each(function(pe){we.set(pe.layer,0)}),we.iteratorKeys.each(function(pe){var gt=0;pe.parts.each(function(Ot){if(!Ot.isSelected){var Ft=Ot.zOrder;isNaN(Ft)?Ot.zOrder=0:gt=Math.max(gt,Ft)}}),we.set(pe,gt)}),Le.selection.each(function(pe){Je._assignZOrder(pe,we.get(pe.layer)+1)}),Le.commitTransaction("pullToFront")},Je.prototype.pushToBack=function(){var Le=this.diagram;Le.startTransaction("pushToBack");var we=new go.Map;Le.selection.each(function(pe){we.set(pe.layer,0)}),we.iteratorKeys.each(function(pe){var gt=0;pe.parts.each(function(Ot){if(!Ot.isSelected){var Ft=Ot.zOrder;isNaN(Ft)?Ot.zOrder=0:gt=Math.min(gt,Ft)}}),we.set(pe,gt)}),Le.selection.each(function(pe){Je._assignZOrder(pe,we.get(pe.layer)-1-Je._findGroupDepth(pe))}),Le.commitTransaction("pushToBack")},Je._assignZOrder=function(Le,we,pe){pe===void 0&&(pe=Le),Le.layer===pe.layer&&(Le.zOrder=we),Le instanceof go.Group&&Le.memberParts.each(function(gt){Je._assignZOrder(gt,we+1,pe)})},Je._findGroupDepth=function(Le){if(Le instanceof go.Group){var we=0;return Le.memberParts.each(function(pe){we=Math.max(we,Je._findGroupDepth(pe))}),we+1}else return 0},Je.prototype.doKeyDown=function(){var Le=this.diagram;if(Le!==null){var we=Le.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)}},Je.prototype._getAllParts=function(){var Le=new Array;return this.diagram.nodes.each(function(we){Le.push(we)}),this.diagram.parts.each(function(we){Le.push(we)}),Le},Je.prototype._arrowKeyMove=function(){var Le=this.diagram,we=Le.lastInput,pe=0,gt=0;if(we.control||we.meta)pe=1,gt=1;else if(Le.grid!==null){var Ot=Le.grid.gridCellSize;gt=Ot.width,pe=Ot.height}Le.startTransaction("arrowKeyMove"),Le.selection.each(function(Ft){we.key==="Up"?Ft.move(new go.Point(Ft.actualBounds.x,Ft.actualBounds.y-pe)):we.key==="Down"?Ft.move(new go.Point(Ft.actualBounds.x,Ft.actualBounds.y+pe)):we.key==="Left"?Ft.move(new go.Point(Ft.actualBounds.x-gt,Ft.actualBounds.y)):we.key==="Right"&&Ft.move(new go.Point(Ft.actualBounds.x+gt,Ft.actualBounds.y))}),Le.commitTransaction("arrowKeyMove")},Je.prototype._arrowKeySelect=function(){var Le=this.diagram,we=Le.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:Le.select(pe))},Je.prototype._findNearestPartTowards=function(Le){var we=this.diagram.selection.first();if(we===null)return null;for(var pe=we.actualBounds.center,gt=this._getAllParts(),Ot=1/0,Ft=we,ln=0;ln<gt.length;ln++){var Wt=gt[ln];if(Wt!==we&&Wt.canSelect()){var Qt=Wt.actualBounds.center,yn=pe.directionPoint(Qt),_n=this._angleCloseness(yn,Le);if(_n<=45){var at=pe.distanceSquaredPoint(Qt);at*=1+Math.sin(_n*Math.PI/180),at<Ot&&(Ot=at,Ft=Wt)}}}return Ft},Je.prototype._angleCloseness=function(Le,we){return Math.min(Math.abs(we-Le),Math.min(Math.abs(we+360-Le),Math.abs(we-360-Le)))},Je.prototype._arrowKeyTree=function(){var Le=this.diagram,we=Le.selection.first();if(we instanceof go.Node){var pe=Le.lastInput;if(pe.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)Le.commandHandler.canExpandTree(we)&&Le.commandHandler.expandTree(we);else{var gt=this._sortTreeChildrenByY(we).first();gt!==null&&Le.select(gt)}}else if(pe.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)Le.commandHandler.canCollapseTree(we)&&Le.commandHandler.collapseTree(we);else{var Ot=we.findTreeParentNode();Ot!==null&&Le.select(Ot)}else if(pe.key==="Up"){var Ot=we.findTreeParentNode();if(Ot!==null){var Ft=this._sortTreeChildrenByY(Ot),ln=Ft.indexOf(we);if(ln>0){for(var Wt=Ft.elt(ln-1);Wt!==null&&Wt.isTreeExpanded&&!Wt.isTreeLeaf;){var Qt=this._sortTreeChildrenByY(Wt);Wt=Qt.last()}Wt!==null&&Le.select(Wt)}else Le.select(Ot)}}else if(pe.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var gt=this._sortTreeChildrenByY(we).first();gt!==null&&Le.select(gt)}else for(;we!==null;){var Ot=we.findTreeParentNode();if(Ot===null)break;var Ft=this._sortTreeChildrenByY(Ot),ln=Ft.indexOf(we);if(ln<Ft.length-1){Le.select(Ft.elt(ln+1));break}else we=Ot}var yn=Le.selection.first();yn!==null&&Le.scrollToRect(yn.actualBounds)}},Je.prototype._sortTreeChildrenByY=function(Le){var we=new go.List().addAll(Le.findTreeChildrenNodes());return we.sort(function(pe,gt){var Ot=pe.location,Ft=gt.location;return Ot.y<Ft.y?-1:Ot.y>Ft.y?1:Ot.x<Ft.x?-1:Ot.x>Ft.x?1:0}),we},Je.prototype.copyToClipboard=function(Le){go.CommandHandler.prototype.copyToClipboard.call(this,Le),this._lastPasteOffset.set(this.pasteOffset)},Je.prototype.pasteFromClipboard=function(){var Le=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(Le,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),Le},Object.defineProperty(Je.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(Le){if(Le!=="move"&&Le!=="select"&&Le!=="scroll"&&Le!=="tree"&&Le!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+Le);this._arrowKeyBehavior=Le}}),Object.defineProperty(Je.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(Le){if(!(Le instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+Le);this._pasteOffset.set(Le)}});var rt=Je,wt=re(20397),yt=re(43604),Ce=re(82093),he={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Se=re(59301),ke=(Le,we,pe)=>new Promise((gt,Ot)=>{var Ft=Qt=>{try{Wt(pe.next(Qt))}catch(yn){Ot(yn)}},ln=Qt=>{try{Wt(pe.throw(Qt))}catch(yn){Ot(yn)}},Wt=Qt=>Qt.done?gt(Qt.value):Promise.resolve(Qt.value).then(Ft,ln);Wt((pe=pe.apply(Le,we)).next())});function Ve({onCancel:Le,callback:we}){let pe=(0,ae.useRef)(),gt=(0,ae.useRef)(),Ot=(0,ae.useRef)(),Ft=(0,ae.useRef)(!1);const ln=(0,ae.useRef)(!1),[Wt,Qt]=(0,ae.useState)(0);function yn(){const at=de.bx.make,qt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};pe.current=new de.S0(gt.current,{padding:20,grid:at(de.s_,"Grid",at(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:qe=>{var ht=qe.diagram.commandHandler.addTopLevelParts(qe.diagram.selection,!0);ht||qe.diagram.currentTool.doCancel()},commandHandler:at(rt),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:qe=>{var ht=qe.subject;ht.location=ht.location.copy().snapToGridPoint(qe.diagram.grid.gridOrigin,qe.diagram.grid.gridCellSize),setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:qe=>{var ht=qe.subject;setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()})},LinkRelinked:qe=>{var ht=qe.parameter.part;ht.invalidateConnectedLinks();var Nt=qe.subject;qe.diagram.toolManager.linkingTool.isForwards?Nt.toNode.invalidateConnectedLinks():Nt.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pe.current.nodeTemplate=at(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),at(de.bn,{name:"SHAPE",fill:qt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("figure"),new de.KX("fill"),new de.KX("stroke","borderColor"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),at(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),at(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=at("ToolTip",at(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},at(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),at(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Tn(qe,ht){var Nt=(ft,Kt)=>{ft.handled=!0,ft.diagram.model.commit(Jt=>{var _t=Kt.part.adornedPart,Sn=new de.E9().setRectSpot(_t.actualBounds,qe);Sn.subtract(_t.location),Sn.scale(2,2),Sn.x+=Math.sign(Sn.x)*130,Sn.y+=Math.sign(Sn.y)*130,Sn.add(_t.location),Sn.snapToGridPoint(ft.diagram.grid.gridOrigin,ft.diagram.grid.gridCellSize);var Pn=Jt.copyNodeData(_t.data);Jt.setGroupKeyForNodeData(Pn,Jt.getGroupKeyForNodeData(_t.data)),Jt.addNodeData(Pn);var oa={from:_t.key,to:Jt.getKeyForNodeData(Pn)};Jt.addLinkData(oa);var Qn=ft.diagram.findNodeForData(Pn);Qn.location=Sn,ft.diagram.select(Qn),setTimeout(()=>{ft.diagram.commandHandler.editTextBlock()},20)})};return at(de.bn,{figure:ht,alignment:qe,alignmentFocus:qe.opposite(),width:qe.equals(de.z6.Top)||qe.equals(de.z6.Bottom)?25:18,height:qe.equals(de.z6.Top)||qe.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:qt.white,strokeWidth:4,mouseEnter:(ft,Kt)=>Kt.fill="dodgerblue",mouseLeave:(ft,Kt)=>Kt.fill="orange",isActionable:!0,click:Nt,contextClick:Nt})}function Zn(qe){return at(de.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(ht,Nt)=>Nt.fill="dodgerblue",mouseLeave:(ht,Nt)=>Nt.fill="orange",click:(ht,Nt)=>{ht.diagram.commandHandler.showContextMenu(Nt.part.adornedPart)}},qe||{})}pe.current.nodeTemplate.selectionAdornmentTemplate=at(de.uz,"Spot",at(de.Vm,{padding:10}),Tn(de.z6.Top,"TriangleUp"),Tn(de.z6.Left,"TriangleLeft"),Tn(de.z6.Right,"TriangleRight"),Tn(de.z6.Bottom,"TriangleDown"),Zn({alignment:new de.z6(.75,0)}));function Cn(qe,ht){return(Nt,ft)=>{Nt.handled=!0,Nt.diagram.model.commit(Kt=>{Kt.set(ft.part.adornedPart.data,qe,ht)})}}function ue(qe,ht){return ht||(ht="color"),at(de.bn,{width:16,height:16,stroke:"lightgray",fill:qe,margin:1,background:"transparent",mouseEnter:(Nt,ft)=>ft.stroke="dodgerblue",mouseLeave:(Nt,ft)=>ft.stroke="lightgray",click:Cn(ht,qe),contextClick:Cn(ht,qe)})}function Ae(){return[at("ContextMenuButton",at(de.s_,"Horizontal",ue(qt.white,"fill"),ue(qt.beige,"fill"),ue(qt.extralightblue,"fill"),ue(qt.extralightred,"fill"))),at("ContextMenuButton",at(de.s_,"Horizontal",ue(qt.lightgray,"fill"),ue(qt.lightgreen,"fill"),ue(qt.lightblue,"fill"),ue(qt.lightred,"fill")))]}function Me(){return[at("ContextMenuButton",at(de.s_,"Horizontal",ue(qt.black),ue(qt.green),ue(qt.blue),ue(qt.red))),at("ContextMenuButton",at(de.s_,"Horizontal",ue(qt.white),ue(qt.magenta),ue(qt.purple),ue(qt.orange)))]}function He(qe,ht){return ht||(ht="thickness"),at(de.bn,"LineH",{width:16,height:16,strokeWidth:qe,margin:1,background:"transparent",mouseEnter:(Nt,ft)=>ft.background="dodgerblue",mouseLeave:(Nt,ft)=>ft.background="transparent",click:Cn(ht,qe),contextClick:Cn(ht,qe)})}function Qe(qe,ht){return ht||(ht="dash"),at(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:qe,margin:1,background:"transparent",mouseEnter:(Nt,ft)=>ft.background="dodgerblue",mouseLeave:(Nt,ft)=>ft.background="transparent",click:Cn(ht,qe),contextClick:Cn(ht,qe)})}function tt(){return[at("ContextMenuButton",at(de.s_,"Horizontal",He(1),He(2),He(3),He(4))),at("ContextMenuButton",at(de.s_,"Horizontal",Qe(null),Qe([2,4]),Qe([4,4])))]}function Ke(qe,ht){return ht||(ht="figure"),at(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:qe,margin:1,background:"transparent",mouseEnter:(Nt,ft)=>ft.fill="dodgerblue",mouseLeave:(Nt,ft)=>ft.fill="lightgray",click:Cn(ht,qe),contextClick:Cn(ht,qe)})}pe.current.nodeTemplate.contextMenu=at("ContextMenu",at("ContextMenuButton",at(de.s_,"Horizontal",Ke("Rectangle"),Ke("RoundedRectangle"),Ke("Ellipse"),Ke("Diamond"))),at("ContextMenuButton",at(de.s_,"Horizontal",Ke("Parallelogram2"),Ke("ManualOperation"),Ke("Procedure"),Ke("Cylinder1"))),at("ContextMenuButton",at(de.s_,"Horizontal",Ke("Terminator"),Ke("CreateRequest"),Ke("Document"),Ke("TriangleDown"))),Ae(),Me(),tt()),pe.current.groupTemplate=at(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(qe,ht)=>{var Nt=ht.addMembers(ht.diagram.selection,!0);Nt||ht.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),at(de.s_,"Auto",{name:"BODY"},at(de.bn,{parameter1:10,fill:qt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:de.z6.AllSides,toSpot:de.z6.AllSides},new de.KX("fill"),new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),at(de.Vm,{background:"transparent",margin:20})),at(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=at(de.uz,"Spot",at(de.s_,"Auto",at(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),at(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),pe.current.groupTemplate.contextMenu=at("ContextMenu",Ae(),Me(),tt()),pe.current.linkTemplate=at(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",qe=>qe>=1?10:0),new de.KX("toShortLength","dir",qe=>qe>=1?10:0),new de.KX("points").makeTwoWay(),at(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),at(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",qe=>qe===1)),at(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",qe=>qe>=1),new de.KX("width","thickness",qe=>7+3*qe),new de.KX("height","thickness",qe=>7+3*qe),new de.KX("segmentOffset","thickness",qe=>new de.E9(-15,4+1.5*qe))),at(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",qe=>qe===2),new de.KX("width","thickness",qe=>7+3*qe),new de.KX("height","thickness",qe=>7+3*qe),new de.KX("segmentOffset","thickness",qe=>new de.E9(-15,4+1.5*qe))),at(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=at(de.uz,at(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:We(2)},new de.KX("pathPattern","thickness",We)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function We(qe){return at(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(qe+4).toString()+" H3"})}function It(qe){var ht="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return qe===0?ht="M0 0 M16 16 M0 8 L16 8":qe===2&&(ht="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),at(de.bn,{geometryString:ht,margin:2,background:"transparent",mouseEnter:(Nt,ft)=>ft.background="dodgerblue",mouseLeave:(Nt,ft)=>ft.background="transparent",click:Cn("dir",qe),contextClick:Cn("dir",qe)})}function Mt(qe){var ht=(Nt,ft)=>{Nt.handled=!0,Nt.diagram.model.commit(Kt=>{var Jt=ft.part.adornedPart;Kt.set(Jt.data,qe?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(qe?Jt.toNode:Jt.fromNode).invalidateConnectedLinks()})};return at(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Nt,ft)=>ft.background="dodgerblue",mouseLeave:(Nt,ft)=>ft.background="transparent",click:ht,contextClick:ht})}function Ee(qe,ht){var Nt=0,ft=de.z6.RightSide;qe.equals(de.z6.Top)?(Nt=270,ft=de.z6.TopSide):qe.equals(de.z6.Left)?(Nt=180,ft=de.z6.LeftSide):qe.equals(de.z6.Bottom)&&(Nt=90,ft=de.z6.BottomSide),ht||(Nt-=180);var Kt=(Jt,_t)=>{Jt.handled=!0,Jt.diagram.model.commit(Sn=>{var Pn=_t.part.adornedPart;Sn.set(Pn.data,ht?"toSpot":"fromSpot",de.z6.stringify(ft)),(ht?Pn.toNode:Pn.fromNode).invalidateConnectedLinks()})};return at(de.bn,{alignment:qe,alignmentFocus:qe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Nt,background:"transparent",mouseEnter:(Jt,_t)=>_t.background="dodgerblue",mouseLeave:(Jt,_t)=>_t.background="transparent",click:Kt,contextClick:Kt})}pe.current.linkTemplate.contextMenu=at("ContextMenu",Me(),tt(),at("ContextMenuButton",at(de.s_,"Horizontal",It(0),It(1),It(2))),at("ContextMenuButton",at(de.s_,"Horizontal",at(de.s_,"Spot",Mt(!1),Ee(de.z6.Top,!1),Ee(de.z6.Left,!1),Ee(de.z6.Right,!1),Ee(de.z6.Bottom,!1)),at(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Mt(!0),Ee(de.z6.Top,!0),Ee(de.z6.Left,!0),Ee(de.z6.Right,!0),Ee(de.z6.Bottom,!0)))));const on=`{ "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 tn=["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 hn(qe){return console.log("shapeName:",qe),tn.indexOf(qe)>=0}var Bn=new de.YI(Ot.current,{maxSelectionCount:1,linkTemplate:at(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:at(de.uz,"Link",{locationSpot:de.z6.Center},at(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),at(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),at(de.bn,{isPanelMain:!0,strokeWidth:2}),at(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(qe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:qe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pe.current.addDiagramListener("TextEdited",function(qe){var ht;const Nt=qe.subject.part;var ft=(ht=document.activeElement)==null?void 0:ht.value;typeof ft=="string"&&ft.trim()===""&&pe.current.model.commit(function(Kt){Kt.set(Nt.data,"text","\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}),Bn.nodeTemplate=at(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),at(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")),at(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=at(de.s_,"Grid",at(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),at(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 _n=()=>ke(this,null,function*(){var at=pe.current.makeImage();const qt=yield(0,Ce.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:at.src}});we({src:qt.url})});return(0,ae.useEffect)(()=>(setTimeout(()=>{yn()},500),Qt(Wt+1),()=>{pe.current=null}),[]),Se.createElement("div",{ref:ln,className:Ft.current?`${he.maxH60} body-overflow-initial`:"body-overflow-initial"},Se.createElement($e.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Wt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Se.createElement(Ye.Z,null,Se.createElement(yt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Se.createElement(yt.Z,{onClick:()=>{var at,qt,Tn=pe.current.selection.first();if(Ft.current=!Ft.current,document.activeElement&&Tn){let Zn=(qt=(at=document.activeElement)==null?void 0:at.value)==null?void 0:qt.trim();typeof Zn=="string"&&pe.current.model.commit(function(Cn){Cn.set(Tn.data,"text",Zn||"\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}Qt(Wt+1)}},Se.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:Le},Se.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:he.flowChartWrp},Se.createElement("div",{style:{display:"flex",height:"100%"}},Se.createElement("div",{style:{width:"300px",height:"100%"}},Se.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Se.createElement("div",{style:{height:"calc(100% - 50px)"},className:he.myPaletteDiv,ref:Ot})),Se.createElement("div",{style:{flex:1,position:"relative"}},Se.createElement("div",{ref:gt,style:{height:"80vh"}}))),Se.createElement("div",{className:"tr"},Se.createElement(Be.ZP,{size:"large",onClick:_n,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var ut=Ve,$t=re(5112),Lt=re(5871);const Dt=$t.ZP.Group,kt={margin:"0 8px"};var bt=({callback:Le,onCancel:we})=>{function pe(gt){Le(gt)}return ae.createElement(le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pe},ae.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ae.createElement("span",{style:kt},"\u5355\u5143\u683C\u6570\uFF1A"),ae.createElement("span",{style:kt},"\u884C\u6570"),ae.createElement(le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ae.createElement(Lt.Z,null)),ae.createElement("span",{style:kt},"\u5217\u6570"),ae.createElement(le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ae.createElement(Lt.Z,null))),ae.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ae.createElement("span",{style:kt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ae.createElement(le.default.Item,{name:"align"},ae.createElement(Dt,null,ae.createElement($t.ZP,{value:"default"},ae.createElement("i",{className:"fa fa-align-justify"})),ae.createElement($t.ZP,{value:"left"},ae.createElement("i",{className:"fa fa-align-left"})),ae.createElement($t.ZP,{value:"center"},ae.createElement("i",{className:"fa fa-align-center"})),ae.createElement($t.ZP,{value:"right"},ae.createElement("i",{className:"fa fa-align-right"}))))),ae.createElement("div",{className:"flex-container flex-end"},ae.createElement(Be.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ae.createElement(Be.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},Ht=re(78673),Et=re(11081),Vt=re.n(Et),gn=(0,ae.forwardRef)(({use3d:Le,width:we,height:pe,callback:gt,showSaveButton:Ot},Ft)=>{const ln=(0,ae.useRef)(),Wt=(0,ae.useRef)(),[Qt,yn]=(0,ae.useState)(!1),_n=(0,ae.useRef)({id:ln,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,ae.useEffect)(()=>{Wt.current=new(Vt())(_n.current,!0),window.onload=function(){Wt.current.inject("applet_container")}},[]);const at=()=>{var qt=window.ggbApplet.getPNGBase64(1,!0,72);return gt&>(qt),qt};return(0,ae.useEffect)(()=>{_n.current.appName=Qt?"3D":"graphing",Wt.current.inject("applet_container")},[Qt]),(0,ae.useEffect)(()=>{yn(Le)},[Le]),(0,ae.useImperativeHandle)(Ft,()=>({getImgData:at})),ae.createElement(ae.Fragment,null,ae.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ln}),ae.createElement(Ye.Z,{align:"middle"},ae.createElement(yt.Z,{flex:1},ae.createElement(Ht.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Qt,onChange:qt=>yn(qt)})),ae.createElement(yt.Z,null,ae.createElement(Be.ZP,{size:"large",onClick:at,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),nn=re(88615),ve=re(1012),Ne=re(8591);const Xe="link",dt="upload-image",Pt="add-flowchart",At="draw-image",Rt="add-flowchart",Bt="code-block",Tt="add-table",Yt="------------",Xt={default:Yt,left:`:${Yt}`,center:`:${Yt}:`,right:`${Yt}:`};var en=re(17904),fn=(Le,we,pe)=>new Promise((gt,Ot)=>{var Ft=Qt=>{try{Wt(pe.next(Qt))}catch(yn){Ot(yn)}},ln=Qt=>{try{Wt(pe.throw(Qt))}catch(yn){Ot(yn)}},Wt=Qt=>Qt.done?gt(Qt.value):Promise.resolve(Qt.value).then(Ft,ln);Wt((pe=pe.apply(Le,we)).next())});function pn(){}let Fn=0;const dn=1e4,an="\u2581",vn="@\u2581\u2581@",En="@\u2581@",xn=`
|
|
**\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`,un=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Nn(Le){return/^\d+$/.test(Le)?`${Le}px`:Le}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[In+"-B"]:"bold",[In+"-I"]:"italic"},na={[Xe]:"\u6DFB\u52A0\u94FE\u63A5",[Bt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[dt]:"\u6DFB\u52A0\u56FE\u7247",[At]:"\u6DFB\u52A0\u753B\u56FE",[Pt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Tt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:Le="",onChange:we,width:pe="100%",height:gt=400,miniToolbar:Ot=!1,isFocus:Ft=!1,watch:ln,insertTemp:Wt,mode:Qt="markdown",id:yn="markdown-editor-id",showResizeBar:_n=!1,noStorage:at=!1,showNullButton:qt=!1,showNullProgramButton:Tn=!1,hidetoolBar:Zn=!1,fullScreen:Cn=!1,onBlur:ue,onCMBeforeChange:Ae,onFullScreen:Me,className:He="",disablePaste:Qe=!1,disabled:tt=!1,disabledFill:Ke=!1,placeholder:We="",values:It="",extraUse:Mt})=>{const[Ee,on]=(0,ae.useState)(null),[tn,hn]=(0,ae.useState)(Le),[Bn,qe]=(0,ae.useState)(ln),[ht,Nt]=(0,ae.useState)(Cn),[ft,Kt]=(0,ae.useState)(""),[Jt,_t]=(0,ae.useState)(0),[Sn,Pn]=(0,ae.useState)(gt),[oa,Qn]=(0,ae.useState)(!1),qn=(0,ae.useRef)((0,ve.Z)()),ca=(0,ae.useRef)(!1),Sa=(0,ae.useRef)(),[Pa,da]=(0,ae.useState)(0),[Kn,$n]=(0,ae.useState)(0),ta=(0,ae.useRef)(),ia=(0,ae.useRef)(),ga=(0,ae.useRef)(),aa=(0,ae.useRef)(),ea=()=>fn(void 0,null,function*(){var xt;const ct=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(xt=ct==null?void 0:ct.attachments)!=null&&xt.length&&(console.log("cm:",Ee,ta),ct.attachments.map(pt=>{pt.content_type.indexOf("image")>-1?Ee.replaceSelection(``):pt.content_type.indexOf("video")>-1?Ee.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):pt.content_type.indexOf("pdf")>-1?Ee.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${pt.id}?type=${pt.content_type}&disposition=inline" target="_blank">${pt.name}</a>`):Ee.replaceSelection(`[${pt.name}](${ENV.API_SERVER}/api/attachments/${pt.id}?type=${pt.content_type})`)}))});(0,ae.useEffect)(()=>{const xt=window.scrollY||window.pageYOffset;hn(It),Ee==null||Ee.setValue(It),window.scrollTo(0,xt)},[It]),(0,ae.useEffect)(()=>{Me==null||Me(ht)},[ht]),(0,ae.useEffect)(()=>{if(ta.current){let xt=function(pt,Ct){var mn;if(Qe){Ct.preventDefault();return}const zn=Ct.clipboardData;if(zn){const Rn=zn.types.toString(),Dn=zn.items;if(Rn==="Files"||zn.types.indexOf("Files")>-1){if(Ct.preventDefault(),Qt=="stex")return;try{let jn=Dn[1];((mn=Dn[0])==null?void 0:mn.kind)==="file"&&(jn=Dn[0]);const kn=jn.getAsFile(),sa=kn.name.split(".").pop();(0,fe.I)(kn,Vn=>{var Ut,sn,bn;Vn.id?((Ut=kn==null?void 0:kn.type)==null?void 0:Ut.indexOf("image"))>-1?ct.replaceSelection(`<img width="100%" src="/api/attachments/${Vn.id}?type=${Vn.content_type})" alt="" />`):((sn=kn==null?void 0:kn.type)==null?void 0:sn.indexOf("video"))>-1?ct.replaceSelection(`<video width="100%" controls src="/api/attachments/${Vn.id}"></video>`):((bn=kn==null?void 0:kn.type)==null?void 0:bn.indexOf("pdf"))>-1?ct.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):un.includes(sa)?ct.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):ct.replaceSelection(`[${kn.name}](/api/attachments/${Vn.id}?type=${Vn.content_type})`):(Vn==null?void 0:Vn.status)===401&&(Ne.ZP.warning((Vn==null?void 0:Vn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Ne.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ct=Ue().fromTextArea(ta.current,{mode:Qt,lineNumbers:!Ot,lineWrapping:!0,value:Le,autoCloseTags:!Tn,autoCloseBrackets:!0});return ct.on("keyup",function(pt,Ct){Ct.keyCode===8&&(pt.getValue()==""?ct.setOption("placeholder",We):ct.setOption("placeholder",null))}),ct.on("keydown",function(pt,Ct){if(Ct.keyCode===8){var mn=Zt(pt);mn&&Ct.preventDefault()}}),Ft&&ct.focus(),ct.on("paste",xt),ct.on("dragleave",function(pt,Ct){ia.current.classList.remove("mouse-hover-md")}),tt&&ct.on("beforeChange",function(pt,Ct){(Ct.origin==="paste"||Ct.origin==="+input")&&Ct.cancel()}),on(ct),()=>{ct.off("paste",xt)}}},[]);const fa=(0,ae.useCallback)(()=>{if(ia.current)try{}catch(xt){console.log(xt,"---- to set md editor body height")}},[Sn,ia,ht]);(0,ae.useEffect)(()=>{function xt(){let ct=new Ie.Z(pt=>{for(let Ct of pt)(Ct.target.offsetHeight>0||Ct.target.offsetWidth>0)&&(fa(),Ee.setSize("100%","100%"),Ee.refresh())});return ct.observe(ta.current.parentElement),ct}if(Ee){const ct=xt();return()=>{var pt,Ct;(pt=ta.current)!=null&&pt.parentElement&&ct.unobserve((Ct=ta.current)==null?void 0:Ct.parentElement)}}},[Ee,fa]),(0,ae.useEffect)(()=>{if(Ee){let xt=[];for(const[ct,pt]of Object.entries(Wn)){let Ct={[ct]:()=>{On(pt)}};xt.push(Ct),Ee.addKeyMap(Ct)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let ct of xt)Ee.removeKeyMap(ct)}}},[Ee]),(0,ae.useEffect)(()=>{Cn!==ht&&Nt(Cn)},[Cn]),(0,en.Z)(()=>{if(!at&&Jt>0){let xt=new Date().getTime(),ct=window.sessionStorage.getItem(yn);xt>=Jt+dn&&(!ct||ct!==tn)&&(window.sessionStorage.setItem(yn,tn),Qn(!0))}},dn),(0,ae.useEffect)(()=>{qe(ln)},[Ee,ln]),(0,ae.useEffect)(()=>{Ee&&Ft&&Ee.focus()},[Ee,Ft]),(0,ae.useEffect)(()=>{if(Bn&&Ee){let xt=function(pt){let Ct=pt.target;if(aa.current){let mn=Ct.scrollTop/Ct.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*mn}};const ct=Ee.getScrollerElement();return ct.addEventListener("scroll",xt),()=>{ct.removeEventListener("scroll",xt)}}},[Ee,Bn]),(0,ae.useEffect)(()=>{if(Ee&&Ae){let xt=function(ct,pt){Ae(ct,pt)};return Ee.on("beforeChange",xt),()=>{Ee.off("beforeChange",xt)}}},[Ee,Ae]),(0,ae.useEffect)(()=>{if(Ee&&ue){let xt=function(){ue(Ee.getValue())};return Ee.on("blur",xt),()=>{Ee.off("blur",xt)}}},[Ee,ue]);function Zt(xt,ct){var pt=xt.getDoc(),Ct=pt.getCursor(),mn=pt.getLine(Ct.line),zn=mn.charAt(Ct.ch-1),Rn=mn.lastIndexOf("@\u2581@",Ct.ch),Dn=mn.lastIndexOf("@\u2581\u2581@",Ct.ch),jn=Rn>Dn?Rn:Dn,kn=Rn>Dn?3:4;if(vn.indexOf(zn)===-1)return null;if(console.log("change1:",ct,xt,mn,Ct,jn,Rn,Dn,zn),jn>=0&&Ct.ch-jn<5){var sa=jn+kn;return pt.replaceRange("",{line:Ct.line,ch:jn},{line:Ct.line,ch:sa}),{line:Ct.line,ch:sa}}return null}(0,ae.useEffect)(()=>{if(Ee){let xt=function(ct,pt){const Ct=ct.getValue();hn(Ct),_t(new Date().getTime()),ct.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Tn?we(Ct,Gn(Ct)):we(Ct))};return Ee.on("change",xt),()=>{Ee.off("change",xt)}}},[Ee,we]),(0,ae.useEffect)(()=>{if(Ee)if(Le==null)Ee.setValue(""),hn("");else{const xt=window.scrollY||window.pageYOffset;Le!==Ee.getValue()&&(Ee.setValue(Le),hn(Le),Ee.setCursor(tt?1:Ee.lineCount(),0),window.scrollTo(0,xt))}},[Ee,Le]);const On=(0,ae.useCallback)(xt=>{const ct=Ee.getCursor(),pt=Ee.getSelection();let Ct=pt.split(`
|
|
`);switch(xt){case"bold":return Ee.replaceSelection("**"+pt+"**"),pt===""&&Ee.setCursor(ct.line,ct.ch+2),Ee.focus();case"italic":return Ee.replaceSelection("*"+pt+"*"),pt===""&&Ee.setCursor(ct.line,ct.ch+1),Ee.focus();case"code":return Ee.replaceSelection("`"+pt+"`"),pt===""&&Ee.setCursor(ct.line,ct.ch+1),Ee.focus();case"inline-latex":return Kt("inline-latex"),Ee.focus();case"latex":return Ee.replaceSelection("```latex\n"+pt+"\n```"),Ee.setCursor(ct.line+1,pt.length+1),Ee.focus();case"line-break":return Ee.replaceSelection(`<br/>
|
|
`),Ee.focus();case"list-ul":return pt===""?Ee.replaceSelection("- "+pt):Ee.replaceSelection(Ct.map(mn=>mn===""?"":`- ${mn}`).join(`
|
|
`)),Ee.focus();case"list-ol":return pt===""?Ee.replaceSelection("1. "+pt):Ee.replaceSelection(Ct.map((mn,zn)=>mn===""?"":`${zn+1}. ${mn}`).join(`
|
|
`)),Ee.focus();case"add-null-ch":return pt===""&&Ee.setCursor(ct.line,ct.ch),Ee.replaceSelection(an),Ee.focus();case"add-signal":return pt===""&&Ee.setCursor(ct.line,ct.ch),Ee.replaceSelection(En),Ee.focus();case"add-multiple":return pt===""&&Ee.setCursor(ct.line,ct.ch),Ee.replaceSelection(vn),Ee.focus();case"inster-template-1":return pt===""&&Ee.setCursor(ct.line,ct.ch),Ee.replaceSelection(xn),Ee.focus();case"eraser":return Ee.setValue(""),Ee.focus();case"trigger-watch":return qe(!Bn),Ee.focus();case"trigger-full-screen":return Nt(!ht),Ee.focus();case Xe:Kt(Xe);return;case Bt:Kt(Bt);return;case dt:Kt(dt);return;case At:Kt(At);return;case"maths-latex":Kt("maths-latex");return;case Pt:Kt(Pt);return;case Tt:Kt(Tt);return;default:throw new Error}},[Ee,Bn,ht]),Mn=(0,ae.useCallback)((xt,ct)=>{var pt,Ct,mn,zn,Rn,Dn;switch(Kt(""),ft){case Xe:const{title:Ut,link:sn}=xt;return Ee.replaceSelection(`[${Ut}](${sn})`),Ee.focus();case Bt:const{language:bn,content:rn}=xt;return Ee.replaceSelection(["```"+bn,rn,"```"].join(`
|
|
`)),Ee.focus();case"maths-latex":for(var jn=atob(xt),kn=new Uint8Array(jn.length),sa=0;sa<jn.length;sa++)kn[sa]=jn.charCodeAt(sa);var Vn=new Blob([kn],{type:"image/png"});(0,fe.I)(Vn,ma=>{ma.id?Ee.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":Ee.replaceSelection("`$$"+xt+"$$`");break;case dt:case At:case Rt:const{src:cn,alt:Hn}=xt,wn=ct,ha=(mn=(Ct=(pt=wn==null?void 0:wn.name)==null?void 0:pt.split("."))==null?void 0:Ct.pop)==null?void 0:mn.call(Ct);return((zn=wn==null?void 0:wn.type)==null?void 0:zn.indexOf("image"))>-1||!(wn!=null&&wn.type)?wn.align||wn.width?Ee.replaceSelection(`<p style="text-align:${wn.align||"initial"}"><img width="${wn.width?wn.width+"%":"initial"}" src="${cn}" alt="${Hn||""}" /></p>`):Ee.replaceSelection(`<img width="100%" src="${cn}" alt="${Hn||""}" />`):((Rn=wn==null?void 0:wn.type)==null?void 0:Rn.indexOf("video"))>-1?Ee.replaceSelection(`<video width="100%" controls src="${cn}"></video>`):((Dn=wn==null?void 0:wn.type)==null?void 0:Dn.indexOf("pdf"))>-1?Ee.replaceSelection(`<a href="${cn}?type=${wn.type}&disposition=inline" target="_blank">${wn.name}</a>`):un.includes(ha)?Ee.replaceSelection(`<a href="${cn}?type=office&disposition=inline" target="_blank">${wn.name}</a>`):Ee.replaceSelection(`[${wn.name}](${cn})`),Ee.focus();case Tt:const{row:ua,col:wa,align:xa}=xt;let Fa=`
|
|
`;for(let ma=0;ma<ua;ma++){let Ca=[],Ba=[];for(let Ea=0;Ea<wa;Ea++)ma===1&&Ba.push(Xt[xa]),Ca.push(" ");ma===1&&(Fa+=`| ${Ba.join(" | ")} |
|
|
`),Fa+=`| ${Ca.join(wa===1?"":" | ")} |
|
|
`}return Ee.replaceSelection(Fa+`
|
|
`),Ee.focus();default:throw new Error}},[Ee,ft]),Un=(0,ae.useMemo)(()=>{switch(ft){case Xe:return ae.createElement(zt,{callback:Mn,onCancel:Xn});case Bt:return ae.createElement(lt.Z,{callback:Mn,onCancel:Xn});case dt:return ae.createElement(fe.Z,{callback:Mn,onCancel:Xn});case Pt:return ae.createElement(ut,{callback:Mn,onCancel:Xn});case Tt:return ae.createElement(bt,{callback:Mn,onCancel:Xn});case"maths-latex":return ae.createElement(gn,{showSaveButton:!0,callback:Mn});case"inline-latex":return ae.createElement(nn.Z,{showSaveButton:!0,callback:Mn});default:return null}},[ft]);function Xn(){Kt("")}(0,ae.useEffect)(()=>{if(ga.current){let xt=function(Rn){mn=!0,zn=Rn.pageY},ct=function(){mn=!1},pt=function(Rn){if(mn){let Dn=Rn.pageY-zn;Dn<0&&(Dn=0),Dn>300&&(Dn=300);let jn=gt+Dn+"px";Pn(jn)}},Ct=ga.current,mn=!1,zn=0;return Ct.addEventListener("mousedown",xt),document.addEventListener("mousemove",pt),document.addEventListener("mouseup",ct),()=>{Ct.removeEventListener("mousedown",xt),document.removeEventListener("mousemove",pt),document.removeEventListener("mouseup",ct)}}},[Ee,ga]),(0,ae.useEffect)(()=>{Pn(gt)},[gt]);const ra=Nn(pe),va=Nn(Sn),pa={width:ra,height:va},An=(0,ae.useMemo)(()=>{if(Jt){let xt=new Date(Jt),ct=xt.getHours(),pt=xt.getMinutes(),Ct=xt.getSeconds();return ct=ct<10?"0"+ct:ct,pt=pt<10?"0"+pt:pt,Ct=Ct<10?"0"+Ct:Ct,`${ct}:${pt}:${Ct}`}return 0},[Jt]),Gn=xt=>{const ct=[];if(Tn){let pt=-1;xt=xt.replace(/(@▁▁@|@▁@)/g,function(Ct,mn,zn){ct.push({multiLine:Ct!==En})})}return ct};function la(){window.sessionStorage.removeItem(yn),Qn(!1),_t(0)}function ya(){Qn(!1),_t(0),Ee.setValue(window.sessionStorage.getItem(yn))}(0,ae.useEffect)(()=>{na[ft]&&ft!==At&&ft!==Pt&&setTimeout(()=>{const xt=document.getElementsByClassName("markdown-popup-form")[0],ct=window.innerWidth/2-xt.offsetWidth/2,pt=window.innerHeight/2-xt.offsetHeight/2;da(ct),$n(pt)},0)},[ft]);const La=xt=>{xt.preventDefault();const ct=xt.clientX-Pa,pt=xt.clientY-Kn;document.body.onmousemove=Ct=>{let mn=Ct.clientX-ct,zn=Ct.clientY-pt;const Rn=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;mn=Math.max(0,Math.min(mn,Dn)),zn=Math.max(0,Math.min(zn,jn)),ba(Ct.clientX,Ct.clientY,ct,pt)&&(da(mn),$n(zn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(xt,ct,pt,Ct)=>{const mn=document.body.clientHeight,zn=document.body.clientWidth;return xt<20&&pt>xt||xt>zn-20&&pt<xt||ct<20&&Ct>ct||ct>mn-20&&Ct<ct?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:"markdown-editor-wrapper",ref:ia},ae.createElement("div",{className:`markdown-editor-container ${He} ${Bn?"on-preview":""} ${Ot?"mini":""} ${ht?"full-screen":""}`,style:pa},ae.createElement(ge,{insertTemp:Wt,watch:Bn,fullScreen:ht,showNullButton:qt,showNullProgramButton:Tn,onActionCallback:On,hidetoolBar:Zn,extraUse:Mt}),ae.createElement("div",{className:"markdown-editor-body"},ae.createElement("div",{className:"codemirror-container"},ae.createElement("textarea",{ref:ta,placeholder:We})),Bn?ae.createElement("div",{ref:aa,className:"preview-container"},Qt==="stex"&&ae.createElement(_e,{value:tn}),Qt!=="stex"&&ae.createElement(je.Z,{disabledFill:Ke,showProgramFill:Tn,value:tn})):null))),_n?ae.createElement("a",{ref:ga,className:"editor-resize"}):null,ft===At&&ae.createElement(st,{callback:Mn,onCancel:Xn}),ft===Pt&&ae.createElement(ut,{callback:Mn,onCancel:Xn}),ae.createElement(me.Z,null,na[ft]&&ft!==At&&ft!==Pt?ae.createElement($e.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Kn},title:ae.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[ft]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:ft===Pt?"1200px":null,height:ft===Pt?"80vh":null,className:"markdown-popup-form"},Un):null))}},45596:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return ie},I:function(){return me}});var ae=re(78241),Pe=re(8591),Ue=re(92832),Ie=re(81327),ce=re(5871),Fe=re(5112),se=re(3113),De=re(67303),ze=re(59301),Te=re(34055),je=re(59301),_e=Object.defineProperty,Re=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(le,be,Be)=>be in le?_e(le,be,{enumerable:!0,configurable:!0,writable:!0,value:Be}):le[be]=Be,x=(le,be)=>{for(var Be in be||(be={}))y.call(be,Be)&&b(le,Be,be[Be]);if(a)for(var Be of a(be))E.call(be,Be)&&b(le,Be,be[Be]);return le},z=(le,be)=>Re(le,ne(be));const{useForm:ee}=ae.default,te={width:280,marginRight:10},oe={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:le,onCancel:be})=>{const[Be]=ee();let it=(0,ze.useRef)();function Gt(Oe){it.current.width=Be.getFieldValue("width"),it.current.align=Be.getFieldValue("align"),le(Oe,it.current)}function jt(Oe,xe){if(Oe.status===-1){Pe.ZP.error(Oe.message);return}Be.setFieldsValue({src:`/api/attachments/${Oe.id}`,type:xe.type})}function ye(Oe){let xe=Oe.target.files[0];it.current=xe,me(xe,jt)}return je.createElement(ae.default,z(x({form:Be},oe),{className:"upload-image-panel",onFinish:Gt,style:{width:470,overflow:"hidden"}}),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},je.createElement("div",{className:"flex-container"},je.createElement(ae.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},je.createElement(Ue.default,{style:te})),je.createElement(ge,{onFileChange:ye}))),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},je.createElement(Ue.default,{style:{width:264}})),je.createElement(ae.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},je.createElement(Ie.Z,null,je.createElement(ae.default.Item,{name:"width",style:{margin:0}},je.createElement(ce.Z,{style:{width:264}})),je.createElement("span",{className:"ml8"},"%"))),je.createElement(ae.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},je.createElement(Fe.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),je.createElement("aside",null,je.createElement(ae.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},je.createElement(se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),je.createElement(se.ZP,{type:"default",onClick:be},"\u53D6\u6D88"))))};function ge({onFileChange:le}){return je.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",je.createElement("input",{type:"file",onChange:le}))}function me(le,be){if(!le)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,Te.bg)())throw Pe.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Be=new FormData;Be.append("editormd-image-file",le),Be.append("file_param_name","editormd-image-file"),Be.append("byxhr","true");var it=new window.XMLHttpRequest;it.withCredentials=!0,it.addEventListener("load",function(Gt){be(JSON.parse(Gt.target.responseText),le)},!1),it.addEventListener("error",function(Gt){console.error(Gt)},!1),it.open("POST",`${De.KI}/api/attachments.json`),it.send(Be)}},75790:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Ue}});var ae=re(59301),Pe=re(4676);class Ue extends ae.Component{constructor(ce){super(ce);const Fe=window.document;this.node=Fe.createElement("div"),Fe.body.appendChild(this.node)}render(){const{children:ce}=this.props;return(0,Pe.createPortal)(ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},17904:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Pe}});var ae=re(59301);function Pe(Ue,Ie){const ce=(0,ae.useRef)();(0,ae.useEffect)(()=>{ce.current=Ue}),(0,ae.useEffect)(()=>{function Fe(){ce.current()}if(Ie!==null){let se=setInterval(Fe,Ie);return()=>clearInterval(se)}},[Ie])}},18647:function(Ge,ot,re){"use strict";re.r(ot),re.d(ot,{default:function(){return ge}});var ae=re(59301),Pe=re(76560),Ue=re(78241),Ie=re(66104),ce=re(92832),Fe=re(3113),se=re(89389),De=re(45278),ze={bg:"bg___mk00l",flexRow:"flexRow___cF86d",flexJustifyCenter:"flexJustifyCenter___xffJH",flexAlignEnd:"flexAlignEnd___XZNbd",flexAlignCenter:"flexAlignCenter___rBycD",flexColumn:"flexColumn___bvZmC",formWrap:"formWrap___IeMB8",titleWrap:"titleWrap___jBULn",fieldWrap:"fieldWrap___mRoj3",mdWrap:"mdWrap___XC6AD",backgroundFa:"backgroundFa___dCgV1",button:"button___ga1Ue"},Te=re(42525),je=re(49661),_e=re(50111),Re=re(82093),ne=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(me,le,be)=>le in me?ne(me,le,{enumerable:!0,configurable:!0,writable:!0,value:be}):me[le]=be,ee=(me,le)=>{for(var be in le||(le={}))b.call(le,be)&&z(me,be,le[be]);if(E)for(var be of E(le))x.call(le,be)&&z(me,be,le[be]);return me},te=(me,le)=>a(me,y(le)),oe=(me,le,be)=>new Promise((Be,it)=>{var Gt=Oe=>{try{ye(be.next(Oe))}catch(xe){it(xe)}},jt=Oe=>{try{ye(be.throw(Oe))}catch(xe){it(xe)}},ye=Oe=>Oe.done?Be(Oe.value):Promise.resolve(Oe.value).then(Gt,jt);ye((be=be.apply(me,le)).next())});const ie=({shixunHomeworks:me,newCourse:le,globalSetting:be,user:Be,loading:it,dispatch:Gt})=>{var jt,ye,Oe;const xe=(0,Pe.useParams)(),[Ze]=Ue.default.useForm(),[nt,mt]=(0,ae.useState)({}),[St,zt]=(0,ae.useState)(),lt=(0,ae.useRef)(),{commonHomeWorkAddDefaultData:fe}=me;let[$e,Ye]=(0,ae.useState)({});(0,ae.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:de,categoryId:Je}=xe;lt.current=xe==null?void 0:xe.courseId,zt(!!lt.current),lt.current&&vt(),Gt({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:Je,coursesId:de,type:1}})},[]);const vt=()=>oe(void 0,null,function*(){const de=yield Gt({type:"newCourse/getEditCourseData",payload:{id:lt.current}});de&&(Ze.setFieldsValue({name:de.name}),Ze.setFieldsValue({intro:de.description}),Ze.setFieldsValue({notice:de.learning_notes}),mt({name:de.name,intro:de.description,notice:de.learning_notes}))}),et=de=>oe(void 0,null,function*(){var Je,rt;const wt=ee({},nt);wt.attachment_ids&&(wt.attachment_ids=(Je=wt==null?void 0:wt.attachment_ids)==null?void 0:Je.map(Se=>Se.response.id)),wt.reference_attachment_ids&&(wt.reference_attachment_ids=(rt=wt==null?void 0:wt.reference_attachment_ids)==null?void 0:rt.map(Se=>Se.response.id));const{coursesId:yt,categoryId:Ce}=xe,he=yield(0,De.H1)(te(ee({coursesId:yt,category:Ce},wt),{base_on_project:!0,type:1}));(he==null?void 0:he.status)===0&&(st(he.homework_id),(0,je.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"]),Pe.history.push(`/classrooms/${xe.coursesId}/common_homework/${he.homework_id}/detail`))});function st(de){return oe(this,null,function*(){if(!($e!=null&&$e.ec_point_ids))return;let Je=yield(0,Re.ZP)(`/api/ec_courses/${$e==null?void 0:$e.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ee({homework_common_id:de},$e)})})}return ae.createElement("section",{className:ze.bg},fe.course_name&&ae.createElement("section",{className:"animated fadeIn"},ae.createElement("aside",{className:"mt10"},fe.category&&ae.createElement(Ie.Z,{separator:">"},ae.createElement(Ie.Z.Item,null,ae.createElement(Pe.Link,{to:`/classrooms/${fe.course_id}/common_homework`},fe.course_name)),ae.createElement(Ie.Z.Item,null,ae.createElement(Pe.Link,{to:`/classrooms/${fe.course_id}/common_homework`},fe.category.category_name)),ae.createElement(Ie.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),ae.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u56FE\u6587\u4F5C\u4E1A"),ae.createElement(Ue.default,{form:Ze,className:ze.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{console.log("onchange: ",Ze.getFieldsValue()),mt(ee({},Ze.getFieldsValue()))},onFinish:et},ae.createElement("div",{className:ze.fieldWrap},ae.createElement(Ue.default.Item,{name:"name",label:"\u6807\u9898:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ae.createElement(ce.default,{maxLength:60,suffix:`${((jt=nt.name)==null?void 0:jt.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ae.createElement("div",{className:ze.mdWrap},ae.createElement(Ue.default.Item,{name:"description",label:"\u7B80\u4ECB:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ae.createElement(se.Z,{watch:!0,defaultValue:nt.intro})),ae.createElement("div",null,ae.createElement(Ue.default.Item,{name:"attachment_ids"},ae.createElement(Te.Z,null)))),ae.createElement("div",{className:ze.mdWrap},ae.createElement(Ue.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ae.createElement(se.Z,{watch:!0,defaultValue:nt.notice})),ae.createElement("div",null,ae.createElement(Ue.default.Item,{name:"reference_attachment_ids"},ae.createElement(Te.Z,null))))),ae.createElement("div",{className:ze.mdWrap,style:{display:(ye=be==null?void 0:be.setting)!=null&&ye.hide_ec?"none":(Oe=Be.userInfo.course)!=null&&Oe.is_openengineering?"":"none"}},ae.createElement(_e.Z,{setitem:de=>Ye(ee({},de))})),ae.createElement("div",{className:ze.backgroundFa},ae.createElement("div",{className:"pt40 mb30"},ae.createElement(Ue.default.Item,null,ae.createElement(Fe.ZP,{size:"middle",type:"primary",className:`${ze.button} mr20`,htmlType:"submit",onClick:()=>{Ze.submit()},loading:it["newCourse/editCourse"]||it["newCourse/submitCourse"]},"\u63D0\u4EA4"),ae.createElement(Fe.ZP,{size:"middle",type:"primary",ghost:!0,className:ze.button,onClick:()=>Pe.history.push(`/classrooms/${xe.coursesId}/common_homework`)},"\u53D6\u6D88")))))};var ge=(0,Pe.connect)(({shixunHomeworks:me,newCourse:le,loading:be,user:Be,globalSetting:it})=>({shixunHomeworks:me,newCourse:le,user:Be,globalSetting:it,loading:be.effects}))(ie)},92725:function(Ge,ot,re){"use strict";re.d(ot,{$J:function(){return Ue},JZ:function(){return ce},bN:function(){return se},jP:function(){return Fe},rO:function(){return Ie}});var ae=re(82093),Pe=(De,ze,Te)=>new Promise((je,_e)=>{var Re=y=>{try{a(Te.next(y))}catch(E){_e(E)}},ne=y=>{try{a(Te.throw(y))}catch(E){_e(E)}},a=y=>y.done?je(y.value):Promise.resolve(y.value).then(Re,ne);a((Te=Te.apply(De,ze)).next())});function Ue(De){return(0,ae.U2)(`libraries/${De}.json`)}function Ie(De){return(0,ae.U2)("library_tags.json",De)}function ce(De){return Pe(this,null,function*(){return(yield(0,ae.IV)(`attachments/${De}.json`)).status===0})}function Fe(De){return(0,ae.v_)("libraries.json",De)}function se(De,ze){return(0,ae.gz)(`libraries/${De}.json`,ze)}},56762:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return Pe}});var ae=re(59301);function Pe(){const[,Ue]=ae.useReducer(Ie=>Ie+1,0);return Ue}},66104:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return jt}});var ae=re(92310),Pe=re.n(ae),Ue=re(11592),Ie=re(26112),ce=re(59301),Fe=re(92343),se=re(36355),De=re(84105),ze=re(91857);const Te=ye=>{let{children:Oe}=ye;const{getPrefixCls:xe}=ce.useContext(se.E_),Ze=xe("breadcrumb");return ce.createElement("li",{className:`${Ze}-separator`,"aria-hidden":"true"},Oe===""?Oe:Oe||"/")};Te.__ANT_BREADCRUMB_SEPARATOR=!0;var je=Te,_e=function(ye,Oe){var xe={};for(var Ze in ye)Object.prototype.hasOwnProperty.call(ye,Ze)&&Oe.indexOf(Ze)<0&&(xe[Ze]=ye[Ze]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ze=Object.getOwnPropertySymbols(ye);nt<Ze.length;nt++)Oe.indexOf(Ze[nt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ze[nt])&&(xe[Ze[nt]]=ye[Ze[nt]]);return xe};function Re(ye,Oe){if(ye.title===void 0||ye.title===null)return null;const xe=Object.keys(Oe).join("|");return typeof ye.title=="object"?ye.title:String(ye.title).replace(new RegExp(`:(${xe})`,"g"),(Ze,nt)=>Oe[nt]||Ze)}function ne(ye,Oe,xe,Ze){if(xe==null)return null;const{className:nt,onClick:mt}=Oe,St=_e(Oe,["className","onClick"]),zt=Object.assign(Object.assign({},(0,Ie.Z)(St,{data:!0,aria:!0})),{onClick:mt});return Ze!==void 0?ce.createElement("a",Object.assign({},zt,{className:Pe()(`${ye}-link`,nt),href:Ze}),xe):ce.createElement("span",Object.assign({},zt,{className:Pe()(`${ye}-link`,nt)}),xe)}function a(ye,Oe){return(Ze,nt,mt,St,zt)=>{if(Oe)return Oe(Ze,nt,mt,St);const lt=Re(Ze,nt);return ne(ye,Ze,lt,zt)}}var y=function(ye,Oe){var xe={};for(var Ze in ye)Object.prototype.hasOwnProperty.call(ye,Ze)&&Oe.indexOf(Ze)<0&&(xe[Ze]=ye[Ze]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ze=Object.getOwnPropertySymbols(ye);nt<Ze.length;nt++)Oe.indexOf(Ze[nt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ze[nt])&&(xe[Ze[nt]]=ye[Ze[nt]]);return xe};const E=ye=>{const{prefixCls:Oe,separator:xe="/",children:Ze,menu:nt,overlay:mt,dropdownProps:St,href:zt}=ye,fe=($e=>{if(nt||mt){const Ye=Object.assign({},St);if(nt){const vt=nt||{},{items:et}=vt,st=y(vt,["items"]);Ye.menu=Object.assign(Object.assign({},st),{items:et==null?void 0:et.map((de,Je)=>{var{key:rt,title:wt,label:yt,path:Ce}=de,he=y(de,["key","title","label","path"]);let Se=yt!=null?yt:wt;return Ce&&(Se=ce.createElement("a",{href:`${zt}${Ce}`},Se)),Object.assign(Object.assign({},he),{key:rt!=null?rt:Je,label:Se})})})}else mt&&(Ye.overlay=mt);return ce.createElement(ze.Z,Object.assign({placement:"bottom"},Ye),ce.createElement("span",{className:`${Oe}-overlay-link`},$e,ce.createElement(De.Z,null)))}return $e})(Ze);return fe!=null?ce.createElement(ce.Fragment,null,ce.createElement("li",null,fe),xe&&ce.createElement(je,null,xe)):null},b=ye=>{const{prefixCls:Oe,children:xe,href:Ze}=ye,nt=y(ye,["prefixCls","children","href"]),{getPrefixCls:mt}=ce.useContext(se.E_),St=mt("breadcrumb",Oe);return ce.createElement(E,Object.assign({},nt,{prefixCls:St}),ne(St,nt,xe,Ze))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=re(17313),ee=re(83116),te=re(37613);const oe=ye=>{const{componentCls:Oe,iconCls:xe}=ye;return{[Oe]:Object.assign(Object.assign({},(0,z.Wf)(ye)),{color:ye.itemColor,fontSize:ye.fontSize,[xe]:{fontSize:ye.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:ye.linkColor,transition:`color ${ye.motionDurationMid}`,padding:`0 ${ye.paddingXXS}px`,borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",marginInline:-ye.marginXXS,"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover}},(0,z.Qy)(ye)),"li:last-child":{color:ye.lastItemColor},[`${Oe}-separator`]:{marginInline:ye.separatorMargin,color:ye.separatorColor},[`${Oe}-link`]:{[`
|
|
> ${xe} + span,
|
|
> ${xe} + a
|
|
`]:{marginInlineStart:ye.marginXXS}},[`${Oe}-overlay-link`]:{borderRadius:ye.borderRadiusSM,height:ye.lineHeight*ye.fontSize,display:"inline-block",padding:`0 ${ye.paddingXXS}px`,marginInline:-ye.marginXXS,[`> ${xe}`]:{marginInlineStart:ye.marginXXS,fontSize:ye.fontSizeIcon},"&:hover":{color:ye.linkHoverColor,backgroundColor:ye.colorBgTextHover,a:{color:ye.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${ye.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",ye=>{const Oe=(0,te.TS)(ye,{});return[oe(Oe)]},ye=>({itemColor:ye.colorTextDescription,lastItemColor:ye.colorText,iconFontSize:ye.fontSize,linkColor:ye.colorTextDescription,linkHoverColor:ye.colorText,separatorColor:ye.colorTextDescription,separatorMargin:ye.marginXS})),ge=function(ye,Oe){var xe={};for(var Ze in ye)Object.prototype.hasOwnProperty.call(ye,Ze)&&Oe.indexOf(Ze)<0&&(xe[Ze]=ye[Ze]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ze=Object.getOwnPropertySymbols(ye);nt<Ze.length;nt++)Oe.indexOf(Ze[nt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ze[nt])&&(xe[Ze[nt]]=ye[Ze[nt]]);return xe};function me(ye){const{breadcrumbName:Oe,children:xe}=ye,Ze=ge(ye,["breadcrumbName","children"]),nt=Object.assign({title:Oe},Ze);return xe&&(nt.menu={items:xe.map(mt=>{var{breadcrumbName:St}=mt,zt=ge(mt,["breadcrumbName"]);return Object.assign(Object.assign({},zt),{title:St})})}),nt}function le(ye,Oe){return(0,ce.useMemo)(()=>ye||(Oe?Oe.map(me):null),[ye,Oe])}var be=function(ye,Oe){var xe={};for(var Ze in ye)Object.prototype.hasOwnProperty.call(ye,Ze)&&Oe.indexOf(Ze)<0&&(xe[Ze]=ye[Ze]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Ze=Object.getOwnPropertySymbols(ye);nt<Ze.length;nt++)Oe.indexOf(Ze[nt])<0&&Object.prototype.propertyIsEnumerable.call(ye,Ze[nt])&&(xe[Ze[nt]]=ye[Ze[nt]]);return xe};const Be=(ye,Oe)=>{if(Oe===void 0)return Oe;let xe=(Oe||"").replace(/^\//,"");return Object.keys(ye).forEach(Ze=>{xe=xe.replace(`:${Ze}`,ye[Ze])}),xe},it=ye=>{const{prefixCls:Oe,separator:xe="/",style:Ze,className:nt,rootClassName:mt,routes:St,items:zt,children:lt,itemRender:fe,params:$e={}}=ye,Ye=be(ye,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:vt,direction:et,breadcrumb:st}=ce.useContext(se.E_);let de;const Je=vt("breadcrumb",Oe),[rt,wt]=ie(Je),yt=le(zt,St),Ce=a(Je,fe);if(yt&&yt.length>0){const ke=[],Ve=zt||St;de=yt.map((ut,$t)=>{const{path:Lt,key:Dt,type:kt,menu:bt,overlay:Ht,onClick:Et,className:Vt,separator:Ln,dropdownProps:gn}=ut,nn=Be($e,Lt);nn!==void 0&&ke.push(nn);const ve=Dt!=null?Dt:$t;if(kt==="separator")return ce.createElement(je,{key:ve},Ln);const Ne={},Xe=$t===yt.length-1;bt?Ne.menu=bt:Ht&&(Ne.overlay=Ht);let{href:dt}=ut;return ke.length&&nn!==void 0&&(dt=`#/${ke.join("/")}`),ce.createElement(E,Object.assign({key:ve},Ne,(0,Ie.Z)(ut,{data:!0,aria:!0}),{className:Vt,dropdownProps:gn,href:dt,separator:Xe?"":xe,onClick:Et,prefixCls:Je}),Ce(ut,$e,Ve,ke,dt))})}else if(lt){const ke=(0,Ue.Z)(lt).length;de=(0,Ue.Z)(lt).map((Ve,ut)=>{if(!Ve)return Ve;const $t=ut===ke-1;return(0,Fe.Tm)(Ve,{separator:$t?"":xe,key:ut})})}const he=Pe()(Je,st==null?void 0:st.className,{[`${Je}-rtl`]:et==="rtl"},nt,mt,wt),Se=Object.assign(Object.assign({},st==null?void 0:st.style),Ze);return rt(ce.createElement("nav",Object.assign({className:he,style:Se},Ye),ce.createElement("ol",null,de)))};it.Item=x,it.Separator=je;var Gt=it,jt=Gt},24905:function(Ge,ot,re){"use strict";re.d(ot,{default:function(){return ie}});var ae=re(92310),Pe=re.n(ae),Ue=re(5630),Ie=re(59301),ce=re(36355),Fe=re(1684),se=re(32441),ze=Ie.createContext(null),Te=re(98447),je=re(14088),_e=re(4572),Re=function(ge,me){var le={};for(var be in ge)Object.prototype.hasOwnProperty.call(ge,be)&&me.indexOf(be)<0&&(le[be]=ge[be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,be=Object.getOwnPropertySymbols(ge);Be<be.length;Be++)me.indexOf(be[Be])<0&&Object.prototype.propertyIsEnumerable.call(ge,be[Be])&&(le[be[Be]]=ge[be[Be]]);return le};const ne=(ge,me)=>{var le;const{prefixCls:be,className:Be,rootClassName:it,children:Gt,indeterminate:jt=!1,style:ye,onMouseEnter:Oe,onMouseLeave:xe,skipGroup:Ze=!1,disabled:nt}=ge,mt=Re(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:St,direction:zt,checkbox:lt}=Ie.useContext(ce.E_),fe=Ie.useContext(ze),{isFormItemInput:$e}=Ie.useContext(se.aM),Ye=Ie.useContext(Fe.Z),vt=(le=(fe==null?void 0:fe.disabled)||nt)!==null&&le!==void 0?le:Ye,et=Ie.useRef(mt.value);Ie.useEffect(()=>{fe==null||fe.registerValue(mt.value)},[]),Ie.useEffect(()=>{if(!Ze)return mt.value!==et.current&&(fe==null||fe.cancelValue(et.current),fe==null||fe.registerValue(mt.value),et.current=mt.value),()=>fe==null?void 0:fe.cancelValue(mt.value)},[mt.value]);const st=St("checkbox",be),[de,Je]=(0,Te.ZP)(st),rt=Object.assign({},mt);fe&&!Ze&&(rt.onChange=function(){mt.onChange&&mt.onChange.apply(mt,arguments),fe.toggleOption&&fe.toggleOption({label:Gt,value:mt.value})},rt.name=fe.name,rt.checked=fe.value.includes(mt.value));const wt=Pe()(`${st}-wrapper`,{[`${st}-rtl`]:zt==="rtl",[`${st}-wrapper-checked`]:rt.checked,[`${st}-wrapper-disabled`]:vt,[`${st}-wrapper-in-form-item`]:$e},lt==null?void 0:lt.className,Be,it,Je),yt=Pe()({[`${st}-indeterminate`]:jt},_e.A,Je),Ce=jt?"mixed":void 0;return de(Ie.createElement(je.Z,{component:"Checkbox",disabled:vt},Ie.createElement("label",{className:wt,style:Object.assign(Object.assign({},lt==null?void 0:lt.style),ye),onMouseEnter:Oe,onMouseLeave:xe},Ie.createElement(Ue.Z,Object.assign({"aria-checked":Ce},rt,{prefixCls:st,className:yt,disabled:vt,ref:me})),Gt!==void 0&&Ie.createElement("span",null,Gt))))};var y=Ie.forwardRef(ne),E=re(3300),b=re(2738),x=function(ge,me){var le={};for(var be in ge)Object.prototype.hasOwnProperty.call(ge,be)&&me.indexOf(be)<0&&(le[be]=ge[be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,be=Object.getOwnPropertySymbols(ge);Be<be.length;Be++)me.indexOf(be[Be])<0&&Object.prototype.propertyIsEnumerable.call(ge,be[Be])&&(le[be[Be]]=ge[be[Be]]);return le};const z=(ge,me)=>{const{defaultValue:le,children:be,options:Be=[],prefixCls:it,className:Gt,rootClassName:jt,style:ye,onChange:Oe}=ge,xe=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ze,direction:nt}=Ie.useContext(ce.E_),[mt,St]=Ie.useState(xe.value||le||[]),[zt,lt]=Ie.useState([]);Ie.useEffect(()=>{"value"in xe&&St(xe.value||[])},[xe.value]);const fe=Ie.useMemo(()=>Be.map(he=>typeof he=="string"||typeof he=="number"?{label:he,value:he}:he),[Be]),$e=he=>{lt(Se=>Se.filter(ke=>ke!==he))},Ye=he=>{lt(Se=>[].concat((0,E.Z)(Se),[he]))},vt=he=>{const Se=mt.indexOf(he.value),ke=(0,E.Z)(mt);Se===-1?ke.push(he.value):ke.splice(Se,1),"value"in xe||St(ke),Oe==null||Oe(ke.filter(Ve=>zt.includes(Ve)).sort((Ve,ut)=>{const $t=fe.findIndex(Dt=>Dt.value===Ve),Lt=fe.findIndex(Dt=>Dt.value===ut);return $t-Lt}))},et=Ze("checkbox",it),st=`${et}-group`,[de,Je]=(0,Te.ZP)(et),rt=(0,b.Z)(xe,["value","disabled"]),wt=Be.length?fe.map(he=>Ie.createElement(y,{prefixCls:et,key:he.value.toString(),disabled:"disabled"in he?he.disabled:xe.disabled,value:he.value,checked:mt.includes(he.value),onChange:he.onChange,className:`${st}-item`,style:he.style,title:he.title},he.label)):be,yt={toggleOption:vt,value:mt,disabled:xe.disabled,name:xe.name,registerValue:Ye,cancelValue:$e},Ce=Pe()(st,{[`${st}-rtl`]:nt==="rtl"},Gt,jt,Je);return de(Ie.createElement("div",Object.assign({className:Ce,style:ye},rt,{ref:me}),Ie.createElement(ze.Provider,{value:yt},wt)))},ee=Ie.forwardRef(z);var te=Ie.memo(ee);const oe=y;oe.Group=te,oe.__ANT_CHECKBOX=!0;var ie=oe},98447:function(Ge,ot,re){"use strict";re.d(ot,{C2:function(){return ce}});var ae=re(17313),Pe=re(37613),Ue=re(83116);const Ie=Fe=>{const{checkboxCls:se}=Fe,De=`${se}-wrapper`;return[{[`${se}-group`]:Object.assign(Object.assign({},(0,ae.Wf)(Fe)),{display:"inline-flex",flexWrap:"wrap",columnGap:Fe.marginXS,[`> ${Fe.antCls}-row`]:{flex:1}}),[De]:Object.assign(Object.assign({},(0,ae.Wf)(Fe)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${De}`]:{marginInlineStart:0},[`&${De}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[se]:Object.assign(Object.assign({},(0,ae.Wf)(Fe)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Fe.borderRadiusSM,alignSelf:"center",[`${se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${se}-inner`]:Object.assign({},(0,ae.oN)(Fe))},[`${se}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Fe.checkboxSize,height:Fe.checkboxSize,direction:"ltr",backgroundColor:Fe.colorBgContainer,border:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,borderCollapse:"separate",transition:`all ${Fe.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Fe.checkboxSize/14*5,height:Fe.checkboxSize/14*8,border:`${Fe.lineWidthBold}px solid ${Fe.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Fe.motionDurationFast} ${Fe.motionEaseInBack}, opacity ${Fe.motionDurationFast}`}},"& + span":{paddingInlineStart:Fe.paddingXS,paddingInlineEnd:Fe.paddingXS}})},{[`
|
|
${De}:not(${De}-disabled),
|
|
${se}:not(${se}-disabled)
|
|
`]:{[`&:hover ${se}-inner`]:{borderColor:Fe.colorPrimary}},[`${De}:not(${De}-disabled)`]:{[`&:hover ${se}-checked:not(${se}-disabled) ${se}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${se}-checked:not(${se}-disabled):after`]:{borderColor:Fe.colorPrimaryHover}}},{[`${se}-checked`]:{[`${se}-inner`]:{backgroundColor:Fe.colorPrimary,borderColor:Fe.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseOutBack} ${Fe.motionDurationFast}`}}},[`
|
|
${De}-checked:not(${De}-disabled),
|
|
${se}-checked:not(${se}-disabled)
|
|
`]:{[`&:hover ${se}-inner`]:{backgroundColor:Fe.colorPrimaryHover,borderColor:"transparent"}}},{[se]:{"&-indeterminate":{[`${se}-inner`]:{backgroundColor:Fe.colorBgContainer,borderColor:Fe.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Fe.fontSizeLG/2,height:Fe.fontSizeLG/2,backgroundColor:Fe.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${De}-disabled`]:{cursor:"not-allowed"},[`${se}-disabled`]:{[`&, ${se}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${se}-inner`]:{background:Fe.colorBgContainerDisabled,borderColor:Fe.colorBorder,"&:after":{borderColor:Fe.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Fe.colorTextDisabled},[`&${se}-indeterminate ${se}-inner::after`]:{background:Fe.colorTextDisabled}}}]};function ce(Fe,se){const De=(0,Pe.TS)(se,{checkboxCls:`.${Fe}`,checkboxSize:se.controlInteractiveSize});return[Ie(De)]}ot.ZP=(0,Ue.Z)("Checkbox",(Fe,se)=>{let{prefixCls:De}=se;return[ce(De,Fe)]})},91857:function(Ge,ot,re){"use strict";var ae=re(59301),Pe=re(38819),Ue=re(92310),Ie=re.n(Ue),ce=re(31561),Fe=re(70425),se=re(18929),De=re(2738),ze=re(79676),Te=re(53487),je=re(92343),_e=re(36355),Re=re(20834),ne=re(40875),a=re(88088),y=re(47211);const E=null,b=te=>{const{menu:oe,arrow:ie,prefixCls:ge,children:me,trigger:le,disabled:be,dropdownRender:Be,getPopupContainer:it,overlayClassName:Gt,rootClassName:jt,open:ye,onOpenChange:Oe,visible:xe,onVisibleChange:Ze,mouseEnterDelay:nt=.15,mouseLeaveDelay:mt=.1,autoAdjustOverflow:St=!0,placement:zt="",overlay:lt,transitionName:fe}=te,{getPopupContainer:$e,getPrefixCls:Ye,direction:vt}=ae.useContext(_e.E_),et=ae.useMemo(()=>{const bt=Ye();return fe!==void 0?fe:zt.includes("top")?`${bt}-slide-down`:`${bt}-slide-up`},[Ye,zt,fe]),st=ae.useMemo(()=>zt?zt.includes("Center")?zt.slice(0,zt.indexOf("Center")):zt:vt==="rtl"?"bottomRight":"bottomLeft",[zt,vt]),de=Ye("dropdown",ge),[Je,rt]=(0,y.Z)(de),[,wt]=(0,a.Z)(),yt=ae.Children.only(me),Ce=(0,je.Tm)(yt,{className:Ie()(`${de}-trigger`,{[`${de}-rtl`]:vt==="rtl"},yt.props.className),disabled:be}),he=be?[]:le;let Se;he&&he.includes("contextMenu")&&(Se=!0);const[ke,Ve]=(0,se.Z)(!1,{value:ye!=null?ye:xe}),ut=(0,Fe.useEvent)(bt=>{Oe==null||Oe(bt),Ze==null||Ze(bt),Ve(bt)}),$t=Ie()(Gt,jt,rt,{[`${de}-rtl`]:vt==="rtl"}),Lt=(0,ze.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:St,offset:wt.marginXXS,arrowWidth:ie?wt.sizePopupArrow:0,borderRadius:wt.borderRadius}),Dt=ae.useCallback(()=>{Ve(!1)},[]),kt=()=>{let bt;return oe!=null&&oe.items?bt=ae.createElement(Re.default,Object.assign({},oe)):typeof lt=="function"?bt=lt():bt=lt,Be&&(bt=Be(bt)),bt=ae.Children.only(typeof bt=="string"?ae.createElement("span",null,bt):bt),ae.createElement(ne.J,{prefixCls:`${de}-menu`,expandIcon:ae.createElement("span",{className:`${de}-menu-submenu-arrow`},ae.createElement(Pe.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Dt,validator:Ht=>{let{mode:Et}=Ht}},bt)};return Je(ae.createElement(ce.Z,Object.assign({alignPoint:Se},(0,De.Z)(te,["rootClassName"]),{mouseEnterDelay:nt,mouseLeaveDelay:mt,visible:ke,builtinPlacements:Lt,arrow:!!ie,overlayClassName:$t,prefixCls:de,getPopupContainer:it||$e,transitionName:et,trigger:he,overlay:kt,placement:st,onVisibleChange:ut}),Ce))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,Te.Z)(b,"dropdown",te=>te,x),ee=te=>ae.createElement(z,Object.assign({},te),ae.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,ot.Z=b},47211:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return je}});var ae=re(17313),Pe=re(13826),Ue=re(92899),Ie=re(29878),ce=re(19447),Fe=re(83116),se=re(37613),ze=_e=>{const{componentCls:Re,menuCls:ne,colorError:a,colorTextLightSolid:y}=_e,E=`${ne}-item`;return{[`${Re}, ${Re}-menu-submenu`]:{[`${ne} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const Te=_e=>{const{componentCls:Re,menuCls:ne,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:oe,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:me,colorBgElevated:le}=_e;return[{[Re]:Object.assign(Object.assign({},(0,ae.Wf)(_e)),{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}},[`${Re}-wrap`]:{position:"relative",[`${b}-btn > ${x}-down`]:{fontSize:ge},[`${x}-down::before`]:{transition:`transform ${z}`}},[`${Re}-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${Re}-placement-bottomLeft,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottomLeft,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottom,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottom,
|
|
&${b}-slide-down-enter${b}-slide-down-enter-active${Re}-placement-bottomRight,
|
|
&${b}-slide-down-appear${b}-slide-down-appear-active${Re}-placement-bottomRight`]:{animationName:Pe.fJ},[`&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-topLeft,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-topLeft,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-top,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-top,
|
|
&${b}-slide-up-enter${b}-slide-up-enter-active${Re}-placement-topRight,
|
|
&${b}-slide-up-appear${b}-slide-up-appear-active${Re}-placement-topRight`]:{animationName:Pe.Qt},[`&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottomLeft,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottom,
|
|
&${b}-slide-down-leave${b}-slide-down-leave-active${Re}-placement-bottomRight`]:{animationName:Pe.Uw},[`&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topLeft,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-top,
|
|
&${b}-slide-up-leave${b}-slide-up-leave-active${Re}-placement-topRight`]:{animationName:Pe.ly}})},(0,ce.ZP)(_e,{colorBg:le,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Re} ${ne}`]:{position:"relative",margin:0},[`${ne}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Re}, ${Re}-menu-submenu`]:{[ne]:Object.assign(Object.assign({padding:oe,listStyleType:"none",backgroundColor:le,backgroundClip:"padding-box",borderRadius:_e.borderRadiusLG,outline:"none",boxShadow:_e.boxShadowSecondary},(0,ae.Qy)(_e)),{[`${ne}-item-group-title`]:{padding:`${ee}px ${me}px`,color:_e.colorTextDescription,transition:`all ${z}`},[`${ne}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ne}-item-icon`]:{minWidth:te,marginInlineEnd:_e.marginXS,fontSize:_e.fontSizeSM},[`${ne}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ne}-item, ${ne}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${me}px`,color:_e.colorText,fontWeight:"normal",fontSize:te,lineHeight:_e.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:_e.borderRadiusSM,"&:hover, &-active":{backgroundColor:_e.controlItemBgHover}},(0,ae.Qy)(_e)),{"&-selected":{color:_e.colorPrimary,backgroundColor:_e.controlItemBgActive,"&:hover, &-active":{backgroundColor:_e.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:le,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:_e.colorSplit},[`${Re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:_e.paddingXS,[`${Re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:_e.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ne}-item-group-list`]:{margin:`0 ${_e.marginXS}px`,padding:0,listStyle:"none"},[`${ne}-submenu-title`]:{paddingInlineEnd:me+_e.fontSizeSM},[`${ne}-submenu-vertical`]:{position:"relative"},[`${ne}-submenu${ne}-submenu-disabled ${Re}-menu-submenu-title`]:{[`&, ${Re}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:le,cursor:"not-allowed"}},[`${ne}-submenu-selected ${Re}-menu-submenu-title`]:{color:_e.colorPrimary}})}},[(0,Pe.oN)(_e,"slide-up"),(0,Pe.oN)(_e,"slide-down"),(0,Ue.Fm)(_e,"move-up"),(0,Ue.Fm)(_e,"move-down"),(0,Ie._y)(_e,"zoom-big")]]};var je=(0,Fe.Z)("Dropdown",(_e,Re)=>{let{rootPrefixCls:ne}=Re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=_e,oe=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,ce.fS)({contentRadius:te}),ge=(0,se.TS)(_e,{menuCls:`${ee}-menu`,rootPrefixCls:ne,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:oe,dropdownEdgeChildPadding:z});return[Te(ge),ze(ge)]},_e=>({zIndexPopup:_e.zIndexPopupBase+50}))},45818:function(Ge,ot,re){"use strict";re.d(ot,{D:function(){return z},Z:function(){return oe}});var ae=re(32855),Pe=re(59301),Ue={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"},Ie=Ue,ce=re(7657),Fe=function(ge,me){return Pe.createElement(ce.Z,(0,ae.Z)({},ge,{ref:me,icon:Ie}))},se=Pe.forwardRef(Fe),De=se,ze=re(33853),Te=re(38819),je=re(92310),_e=re.n(je),Re=re(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=re(36355),E=re(84966),b=function(ie,ge){var me={};for(var le in ie)Object.prototype.hasOwnProperty.call(ie,le)&&ge.indexOf(le)<0&&(me[le]=ie[le]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,le=Object.getOwnPropertySymbols(ie);be<le.length;be++)ge.indexOf(le[be])<0&&Object.prototype.propertyIsEnumerable.call(ie,le[be])&&(me[le[be]]=ie[le[be]]);return me};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Pe.createContext({}),ee=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var oe=Pe.forwardRef((ie,ge)=>{const{prefixCls:me,className:le,trigger:be,children:Be,defaultCollapsed:it=!1,theme:Gt="dark",style:jt={},collapsible:ye=!1,reverseArrow:Oe=!1,width:xe=200,collapsedWidth:Ze=80,zeroWidthTriggerStyle:nt,breakpoint:mt,onCollapse:St,onBreakpoint:zt}=ie,lt=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:fe}=(0,Pe.useContext)(E.Gs),[$e,Ye]=(0,Pe.useState)("collapsed"in ie?ie.collapsed:it),[vt,et]=(0,Pe.useState)(!1);(0,Pe.useEffect)(()=>{"collapsed"in ie&&Ye(ie.collapsed)},[ie.collapsed]);const st=(Ce,he)=>{"collapsed"in ie||Ye(Ce),St==null||St(Ce,he)},de=(0,Pe.useRef)();de.current=Ce=>{et(Ce.matches),zt==null||zt(Ce.matches),$e!==Ce.matches&&st(Ce.matches,"responsive")},(0,Pe.useEffect)(()=>{function Ce(Se){return de.current(Se)}let he;if(typeof window!="undefined"){const{matchMedia:Se}=window;if(Se&&mt&&mt in x){he=Se(`(max-width: ${x[mt]})`);try{he.addEventListener("change",Ce)}catch(ke){he.addListener(Ce)}Ce(he)}}return()=>{try{he==null||he.removeEventListener("change",Ce)}catch(Se){he==null||he.removeListener(Ce)}}},[mt]),(0,Pe.useEffect)(()=>{const Ce=ee("ant-sider-");return fe.addSider(Ce),()=>fe.removeSider(Ce)},[]);const Je=()=>{st(!$e,"clickTrigger")},{getPrefixCls:rt}=(0,Pe.useContext)(y.E_),wt=()=>{const Ce=rt("layout-sider",me),he=(0,Re.Z)(lt,["collapsed"]),Se=$e?Ze:xe,ke=a(Se)?`${Se}px`:String(Se),Ve=parseFloat(String(Ze||0))===0?Pe.createElement("span",{onClick:Je,className:_e()(`${Ce}-zero-width-trigger`,`${Ce}-zero-width-trigger-${Oe?"right":"left"}`),style:nt},be||Pe.createElement(De,null)):null,Lt={expanded:Oe?Pe.createElement(Te.Z,null):Pe.createElement(ze.Z,null),collapsed:Oe?Pe.createElement(ze.Z,null):Pe.createElement(Te.Z,null)}[$e?"collapsed":"expanded"],Dt=be!==null?Ve||Pe.createElement("div",{className:`${Ce}-trigger`,onClick:Je,style:{width:ke}},be||Lt):null,kt=Object.assign(Object.assign({},jt),{flex:`0 0 ${ke}`,maxWidth:ke,minWidth:ke,width:ke}),bt=_e()(Ce,`${Ce}-${Gt}`,{[`${Ce}-collapsed`]:!!$e,[`${Ce}-has-trigger`]:ye&&be!==null&&!Ve,[`${Ce}-below`]:!!vt,[`${Ce}-zero-width`]:parseFloat(ke)===0},le);return Pe.createElement("aside",Object.assign({className:bt},he,{style:kt,ref:ge}),Pe.createElement("div",{className:`${Ce}-children`},Be),ye||vt&&Ve?Dt:null)},yt=Pe.useMemo(()=>({siderCollapsed:$e}),[$e]);return Pe.createElement(z.Provider,{value:yt},wt())})},84966:function(Ge,ot,re){"use strict";re.d(ot,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Re},ZP:function(){return ee}});var ae=re(3300),Pe=re(92310),Ue=re.n(Pe),Ie=re(2738),ce=re(59301),Fe=re(36355),se=re(83116),ze=te=>{const{componentCls:oe,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:me,lightTriggerColor:le}=te;return{[`${oe}-sider-light`]:{background:ge,[`${oe}-sider-trigger`]:{color:le,background:me},[`${oe}-sider-zero-width-trigger`]:{color:le,background:me,border:`1px solid ${ie}`,borderInlineStart:0}}}};const Te=te=>{const{antCls:oe,componentCls:ie,colorText:ge,triggerColor:me,footerBg:le,triggerBg:be,headerHeight:Be,headerPadding:it,headerColor:Gt,footerPadding:jt,triggerHeight:ye,zeroTriggerHeight:Oe,zeroTriggerWidth:xe,motionDurationMid:Ze,motionDurationSlow:nt,fontSize:mt,borderRadius:St,bodyBg:zt,headerBg:lt,siderBg:fe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:zt,"&, *":{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:fe,transition:`all ${Ze}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${oe}-menu${oe}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ye},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ye,color:me,lineHeight:`${ye}px`,textAlign:"center",background:be,cursor:"pointer",transition:`all ${Ze}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Be,insetInlineEnd:-xe,zIndex:1,width:xe,height:Oe,color:me,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:fe,borderStartStartRadius:0,borderStartEndRadius:St,borderEndEndRadius:St,borderEndStartRadius:0,cursor:"pointer",transition:`background ${nt} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${nt}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-xe,borderStartStartRadius:St,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:St}}}}},ze(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Be,padding:it,color:Gt,lineHeight:`${Be}px`,background:lt,[`${oe}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:jt,color:ge,fontSize:mt,background:le},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var je=(0,se.Z)("Layout",te=>[Te(te)],te=>{const{colorBgLayout:oe,controlHeight:ie,controlHeightLG:ge,colorText:me,controlHeightSM:le,marginXXS:be,colorTextLightSolid:Be,colorBgContainer:it}=te,Gt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:oe,colorBgTrigger:"#002140",bodyBg:oe,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Gt}px`,headerColor:me,footerPadding:`${le}px ${Gt}px`,footerBg:oe,siderBg:"#001529",triggerHeight:ge+be*2,triggerBg:"#002140",triggerColor:Be,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:it,lightTriggerBg:it,lightTriggerColor:me}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),_e=function(te,oe){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&oe.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++)oe.indexOf(ge[me])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[me])&&(ie[ge[me]]=te[ge[me]]);return ie};const Re=ce.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ne(te){let{suffixCls:oe,tagName:ie,displayName:ge}=te;return me=>ce.forwardRef((be,Be)=>ce.createElement(me,Object.assign({ref:Be,suffixCls:oe,tagName:ie},be)))}const a=ce.forwardRef((te,oe)=>{const{prefixCls:ie,suffixCls:ge,className:me,tagName:le}=te,be=_e(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Be}=ce.useContext(Fe.E_),it=Be("layout",ie),[Gt,jt]=je(it),ye=ge?`${it}-${ge}`:it;return Gt(ce.createElement(le,Object.assign({className:Ue()(ie||ye,me,jt),ref:oe},be)))}),y=ce.forwardRef((te,oe)=>{const{direction:ie}=ce.useContext(Fe.E_),[ge,me]=ce.useState([]),{prefixCls:le,className:be,rootClassName:Be,children:it,hasSider:Gt,tagName:jt,style:ye}=te,Oe=_e(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),xe=(0,Ie.Z)(Oe,["suffixCls"]),{getPrefixCls:Ze,layout:nt}=ce.useContext(Fe.E_),mt=Ze("layout",le),[St,zt]=je(mt),lt=Ue()(mt,{[`${mt}-has-sider`]:typeof Gt=="boolean"?Gt:ge.length>0,[`${mt}-rtl`]:ie==="rtl"},nt==null?void 0:nt.className,be,Be,zt),fe=ce.useMemo(()=>({siderHook:{addSider:$e=>{me(Ye=>[].concat((0,ae.Z)(Ye),[$e]))},removeSider:$e=>{me(Ye=>Ye.filter(vt=>vt!==$e))}}}),[]);return St(ce.createElement(Re.Provider,{value:fe},ce.createElement(jt,Object.assign({ref:oe,className:lt,style:Object.assign(Object.assign({},nt==null?void 0:nt.style),ye)},xe),it)))}),E=ne({tagName:"div",displayName:"Layout"})(y),b=ne({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ne({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ne({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(Ge,ot,re){"use strict";re.d(ot,{J:function(){return Fe}});var ae=re(59301),Pe=re(33234),Ue=re(70425),Ie=function(se,De){var ze={};for(var Te in se)Object.prototype.hasOwnProperty.call(se,Te)&&De.indexOf(Te)<0&&(ze[Te]=se[Te]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Te=Object.getOwnPropertySymbols(se);je<Te.length;je++)De.indexOf(Te[je])<0&&Object.prototype.propertyIsEnumerable.call(se,Te[je])&&(ze[Te[je]]=se[Te[je]]);return ze};const ce=ae.createContext(null),Fe=ae.forwardRef((se,De)=>{const{children:ze}=se,Te=Ie(se,["children"]),je=ae.useContext(ce),_e=ae.useMemo(()=>Object.assign(Object.assign({},je),Te),[je,Te.prefixCls,Te.mode,Te.selectable]);return ae.createElement(ce.Provider,{value:_e},ae.createElement(Pe.BR,null,(0,Ue.supportNodeRef)(ze)?ae.cloneElement(ze,{ref:De}):ze))});ot.Z=ce},20834:function(Ge,ot,re){"use strict";re.d(ot,{default:function(){return yt}});var ae=re(15285),Pe=re(59301),Ue=re(45818),Ie=re(92310),ce=re.n(Ie),Fe=re(36355),se=function(Ce,he){var Se={};for(var ke in Ce)Object.prototype.hasOwnProperty.call(Ce,ke)&&he.indexOf(ke)<0&&(Se[ke]=Ce[ke]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,ke=Object.getOwnPropertySymbols(Ce);Ve<ke.length;Ve++)he.indexOf(ke[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,ke[Ve])&&(Se[ke[Ve]]=Ce[ke[Ve]]);return Se},ze=Ce=>{const{prefixCls:he,className:Se,dashed:ke}=Ce,Ve=se(Ce,["prefixCls","className","dashed"]),{getPrefixCls:ut}=Pe.useContext(Fe.E_),$t=ut("menu",he),Lt=ce()({[`${$t}-item-divider-dashed`]:!!ke},Se);return Pe.createElement(ae.iz,Object.assign({className:Lt},Ve))},Te=re(11592),je=re(2738),_e=re(6848),Re=re(92343),a=(0,Pe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Ce=>{var he;const{className:Se,children:ke,icon:Ve,title:ut,danger:$t}=Ce,{prefixCls:Lt,firstLevel:Dt,direction:kt,disableMenuItemTitleTooltip:bt,inlineCollapsed:Ht}=Pe.useContext(a),Et=Ne=>{const Xe=Pe.createElement("span",{className:`${Lt}-title-content`},ke);return(!Ve||(0,Re.l$)(ke)&&ke.type==="span")&&ke&&Ne&&Dt&&typeof ke=="string"?Pe.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},ke.charAt(0)):Xe},{siderCollapsed:Vt}=Pe.useContext(Ue.D);let Ln=ut;typeof ut=="undefined"?Ln=Dt?ke:"":ut===!1&&(Ln="");const gn={title:Ln};!Vt&&!Ht&&(gn.title=null,gn.open=!1);const nn=(0,Te.Z)(ke).length;let ve=Pe.createElement(ae.ck,Object.assign({},(0,je.Z)(Ce,["title","icon","danger"]),{className:ce()({[`${Lt}-item-danger`]:$t,[`${Lt}-item-only-child`]:(Ve?nn+1:nn)===1},Se),title:typeof ut=="string"?ut:void 0}),(0,Re.Tm)(Ve,{className:ce()((0,Re.l$)(Ve)?(he=Ve.props)===null||he===void 0?void 0:he.className:"",`${Lt}-item-icon`)}),Et(Ht));return bt||(ve=Pe.createElement(_e.Z,Object.assign({},gn,{placement:kt==="rtl"?"left":"right",overlayClassName:`${Lt}-inline-collapsed-tooltip`}),ve)),ve},x=Ce=>{var he;const{popupClassName:Se,icon:ke,title:Ve,theme:ut}=Ce,$t=Pe.useContext(a),{prefixCls:Lt,inlineCollapsed:Dt,theme:kt}=$t,bt=(0,ae.Xl)();let Ht;if(!ke)Ht=Dt&&!bt.length&&Ve&&typeof Ve=="string"?Pe.createElement("div",{className:`${Lt}-inline-collapsed-noicon`},Ve.charAt(0)):Pe.createElement("span",{className:`${Lt}-title-content`},Ve);else{const Vt=(0,Re.l$)(Ve)&&Ve.type==="span";Ht=Pe.createElement(Pe.Fragment,null,(0,Re.Tm)(ke,{className:ce()((0,Re.l$)(ke)?(he=ke.props)===null||he===void 0?void 0:he.className:"",`${Lt}-item-icon`)}),Vt?Ve:Pe.createElement("span",{className:`${Lt}-title-content`},Ve))}const Et=Pe.useMemo(()=>Object.assign(Object.assign({},$t),{firstLevel:!1}),[$t]);return Pe.createElement(a.Provider,{value:Et},Pe.createElement(ae.Wd,Object.assign({},(0,je.Z)(Ce,["icon"]),{title:Ht,popupClassName:ce()(Lt,Se,`${Lt}-${ut||kt}`)})))},z=re(18785),ee=re(70425),te=re(62892),oe=re(40875),ie=function(Ce,he){var Se={};for(var ke in Ce)Object.prototype.hasOwnProperty.call(Ce,ke)&&he.indexOf(ke)<0&&(Se[ke]=Ce[ke]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,ke=Object.getOwnPropertySymbols(Ce);Ve<ke.length;Ve++)he.indexOf(ke[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,ke[Ve])&&(Se[ke[Ve]]=Ce[ke[Ve]]);return Se};function ge(Ce){return(Ce||[]).map((he,Se)=>{if(he&&typeof he=="object"){const ke=he,{label:Ve,children:ut,key:$t,type:Lt}=ke,Dt=ie(ke,["label","children","key","type"]),kt=$t!=null?$t:`tmp-${Se}`;return ut||Lt==="group"?Lt==="group"?Pe.createElement(ae.BW,Object.assign({key:kt},Dt,{title:Ve}),ge(ut)):Pe.createElement(x,Object.assign({key:kt},Dt,{title:Ve}),ge(ut)):Lt==="divider"?Pe.createElement(ze,Object.assign({key:kt},Dt)):Pe.createElement(E,Object.assign({key:kt},Dt),Ve)}return null}).filter(he=>he)}function me(Ce){return Pe.useMemo(()=>Ce&&ge(Ce),[Ce])}var le=re(64993),be=re(17313),Be=re(8378),it=re(13826),Gt=re(29878),jt=re(83116),ye=re(37613),xe=Ce=>{const{componentCls:he,motionDurationSlow:Se,horizontalLineHeight:ke,colorSplit:Ve,lineWidth:ut,lineType:$t,itemPaddingInline:Lt}=Ce;return{[`${he}-horizontal`]:{lineHeight:ke,border:0,borderBottom:`${ut}px ${$t} ${Ve}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Lt},[`> ${he}-item:hover,
|
|
> ${he}-item-active,
|
|
> ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${Se}`,`background ${Se}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},nt=Ce=>{let{componentCls:he,menuArrowOffset:Se}=Ce;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical,
|
|
${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Se})`},"&::after":{transform:`rotate(45deg) translateY(${Se})`}}}}};const mt=Ce=>Object.assign({},(0,be.oN)(Ce));var zt=(Ce,he)=>{const{componentCls:Se,itemColor:ke,itemSelectedColor:Ve,groupTitleColor:ut,itemBg:$t,subMenuItemBg:Lt,itemSelectedBg:Dt,activeBarHeight:kt,activeBarWidth:bt,activeBarBorderWidth:Ht,motionDurationSlow:Et,motionEaseInOut:Vt,motionEaseOut:Ln,itemPaddingInline:gn,motionDurationMid:nn,itemHoverColor:ve,lineType:Ne,colorSplit:Xe,itemDisabledColor:dt,dangerItemColor:Pt,dangerItemHoverColor:At,dangerItemSelectedColor:Rt,dangerItemActiveBg:Bt,dangerItemSelectedBg:Tt,itemHoverBg:Yt,itemActiveBg:Xt,menuSubMenuBg:en,horizontalItemSelectedColor:fn,horizontalItemSelectedBg:pn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:dn,popupBg:an}=Ce;return{[`${Se}-${he}, ${Se}-${he} > ${Se}`]:{color:ke,background:$t,[`&${Se}-root:focus-visible`]:Object.assign({},mt(Ce)),[`${Se}-item-group-title`]:{color:ut},[`${Se}-submenu-selected`]:{[`> ${Se}-submenu-title`]:{color:Ve}},[`${Se}-item-disabled, ${Se}-submenu-disabled`]:{color:`${dt} !important`},[`${Se}-item:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{[`&:hover, > ${Se}-submenu-title:hover`]:{color:ve}},[`&:not(${Se}-horizontal)`]:{[`${Se}-item:not(${Se}-item-selected)`]:{"&:hover":{backgroundColor:Yt},"&:active":{backgroundColor:Xt}},[`${Se}-submenu-title`]:{"&:hover":{backgroundColor:Yt},"&:active":{backgroundColor:Xt}}},[`${Se}-item-danger`]:{color:Pt,[`&${Se}-item:hover`]:{[`&:not(${Se}-item-selected):not(${Se}-submenu-selected)`]:{color:At}},[`&${Se}-item:active`]:{background:Bt}},[`${Se}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Se}-item-selected`]:{color:Ve,[`&${Se}-item-danger`]:{color:Rt},"a, a:hover":{color:"inherit"}},[`& ${Se}-item-selected`]:{backgroundColor:Dt,[`&${Se}-item-danger`]:{backgroundColor:Tt}},[`${Se}-item, ${Se}-submenu-title`]:{[`&:not(${Se}-item-disabled):focus-visible`]:Object.assign({},mt(Ce))},[`&${Se}-submenu > ${Se}`]:{backgroundColor:en},[`&${Se}-popup > ${Se}`]:{backgroundColor:an},[`&${Se}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${Se}-item, > ${Se}-submenu`]:{top:Ht,marginTop:-Ht,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:gn,bottom:0,borderBottom:`${kt}px solid transparent`,transition:`border-color ${Et} ${Vt}`,content:'""'},"&:hover, &-active, &-open":{background:dn,"&::after":{borderBottomWidth:kt,borderBottomColor:fn}},"&-selected":{color:fn,backgroundColor:pn,"&:hover":{backgroundColor:pn},"&::after":{borderBottomWidth:kt,borderBottomColor:fn}}}}),[`&${Se}-root`]:{[`&${Se}-inline, &${Se}-vertical`]:{borderInlineEnd:`${Ht}px ${Ne} ${Xe}`}},[`&${Se}-inline`]:{[`${Se}-sub${Se}-inline`]:{background:Lt},[`${Se}-item, ${Se}-submenu-title`]:Ht&&bt?{width:`calc(100% + ${Ht}px)`}:{},[`${Se}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${bt}px solid ${Ve}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${nn} ${Ln}`,`opacity ${nn} ${Ln}`].join(","),content:'""'},[`&${Se}-item-danger`]:{"&::after":{borderInlineEndColor:Rt}}},[`${Se}-selected, ${Se}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${nn} ${Vt}`,`opacity ${nn} ${Vt}`].join(",")}}}}}};const lt=Ce=>{const{componentCls:he,itemHeight:Se,itemMarginInline:ke,padding:Ve,menuArrowSize:ut,marginXS:$t,itemMarginBlock:Lt}=Ce,Dt=Ve+ut+$t;return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:Se,lineHeight:`${Se}px`,paddingInline:Ve,overflow:"hidden",textOverflow:"ellipsis",marginInline:ke,marginBlock:Lt,width:`calc(100% - ${ke*2}px)`},[`> ${he}-item,
|
|
> ${he}-submenu > ${he}-submenu-title`]:{height:Se,lineHeight:`${Se}px`},[`${he}-item-group-list ${he}-submenu-title,
|
|
${he}-submenu-title`]:{paddingInlineEnd:Dt}}};var $e=Ce=>{const{componentCls:he,iconCls:Se,itemHeight:ke,colorTextLightSolid:Ve,dropdownWidth:ut,controlHeightLG:$t,motionDurationMid:Lt,motionEaseOut:Dt,paddingXL:kt,itemMarginInline:bt,fontSizeLG:Ht,motionDurationSlow:Et,paddingXS:Vt,boxShadowSecondary:Ln,collapsedWidth:gn,collapsedIconSize:nn}=Ce,ve={height:ke,lineHeight:`${ke}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},lt(Ce))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},lt(Ce)),{boxShadow:Ln})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:ut,maxHeight:`calc(100vh - ${$t*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Et}`,`background ${Et}`,`padding ${Lt} ${Dt}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:ve,[`& ${he}-item-group-title`]:{paddingInlineStart:kt}},[`${he}-item`]:ve}},{[`${he}-inline-collapsed`]:{width:gn,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:Ht,textAlign:"center"}}},[`> ${he}-item,
|
|
> ${he}-item-group > ${he}-item-group-list > ${he}-item,
|
|
> ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title,
|
|
> ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Ht/2}px - ${bt}px)`,textOverflow:"clip",[`
|
|
${he}-submenu-arrow,
|
|
${he}-submenu-expand-icon
|
|
`]:{opacity:0},[`${he}-item-icon, ${Se}`]:{margin:0,fontSize:nn,lineHeight:`${ke}px`,"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${Se}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${Se}`]:{display:"none"},"a, a:hover":{color:Ve}},[`${he}-item-group-title`]:Object.assign(Object.assign({},be.vS),{paddingInline:Vt})}}]};const Ye=Ce=>{const{componentCls:he,motionDurationSlow:Se,motionDurationMid:ke,motionEaseInOut:Ve,motionEaseOut:ut,iconCls:$t,iconSize:Lt,iconMarginInlineEnd:Dt}=Ce;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Se}`,`background ${Se}`,`padding ${Se} ${Ve}`].join(","),[`${he}-item-icon, ${$t}`]:{minWidth:Lt,fontSize:Lt,transition:[`font-size ${ke} ${ut}`,`margin ${Se} ${Ve}`,`color ${Se}`].join(","),"+ span":{marginInlineStart:Dt,opacity:1,transition:[`opacity ${Se} ${Ve}`,`margin ${Se}`,`color ${Se}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,be.Ro)()),[`&${he}-item-only-child`]:{[`> ${$t}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},vt=Ce=>{const{componentCls:he,motionDurationSlow:Se,motionEaseInOut:ke,borderRadius:Ve,menuArrowSize:ut,menuArrowOffset:$t}=Ce;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Ce.margin,width:ut,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Se} ${ke}, opacity ${Se}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:ut*.6,height:ut*.15,backgroundColor:"currentcolor",borderRadius:Ve,transition:[`background ${Se} ${ke}`,`transform ${Se} ${ke}`,`top ${Se} ${ke}`,`color ${Se} ${ke}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${$t})`},"&::after":{transform:`rotate(-45deg) translateY(${$t})`}}}}},et=Ce=>{const{antCls:he,componentCls:Se,fontSize:ke,motionDurationSlow:Ve,motionDurationMid:ut,motionEaseInOut:$t,paddingXS:Lt,padding:Dt,colorSplit:kt,lineWidth:bt,zIndexPopup:Ht,borderRadiusLG:Et,subMenuItemBorderRadius:Vt,menuArrowSize:Ln,menuArrowOffset:gn,lineType:nn,menuPanelMaskInset:ve,groupTitleLineHeight:Ne,groupTitleFontSize:Xe}=Ce;return[{"":{[`${Se}`]:Object.assign(Object.assign({},(0,be.dF)()),{"&-hidden":{display:"none"}})},[`${Se}-submenu-hidden`]:{display:"none"}},{[Se]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,be.Wf)(Ce)),(0,be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ke,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ve} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Se}-item`]:{flex:"none"}},[`${Se}-item, ${Se}-submenu, ${Se}-submenu-title`]:{borderRadius:Ce.itemBorderRadius},[`${Se}-item-group-title`]:{padding:`${Lt}px ${Dt}px`,fontSize:Xe,lineHeight:Ne,transition:`all ${Ve}`},[`&-horizontal ${Se}-submenu`]:{transition:[`border-color ${Ve} ${$t}`,`background ${Ve} ${$t}`].join(",")},[`${Se}-submenu, ${Se}-submenu-inline`]:{transition:[`border-color ${Ve} ${$t}`,`background ${Ve} ${$t}`,`padding ${ut} ${$t}`].join(",")},[`${Se}-submenu ${Se}-sub`]:{cursor:"initial",transition:[`background ${Ve} ${$t}`,`padding ${Ve} ${$t}`].join(",")},[`${Se}-title-content`]:{transition:`color ${Ve}`},[`${Se}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Se}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:kt,borderStyle:nn,borderWidth:0,borderTopWidth:bt,marginBlock:bt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ye(Ce)),{[`${Se}-item-group`]:{[`${Se}-item-group-list`]:{margin:0,padding:0,[`${Se}-item, ${Se}-submenu-title`]:{paddingInline:`${ke*2}px ${Dt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Ht,borderRadius:Et,boxShadow:"none",transformOrigin:"0 0",[`&${Se}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ve}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ve},"\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:Ce.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Ce.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Ce.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Ce.paddingXS},[`> ${Se}`]:Object.assign(Object.assign(Object.assign({borderRadius:Et},Ye(Ce)),vt(Ce)),{[`${Se}-item, ${Se}-submenu > ${Se}-submenu-title`]:{borderRadius:Vt},[`${Se}-submenu-title::after`]:{transition:`transform ${Ve} ${$t}`}})}}),vt(Ce)),{[`&-inline-collapsed ${Se}-submenu-arrow,
|
|
&-inline ${Se}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${gn})`},"&::after":{transform:`rotate(45deg) translateX(-${gn})`}},[`${Se}-submenu-open${Se}-submenu-inline > ${Se}-submenu-title > ${Se}-submenu-arrow`]:{transform:`translateY(-${Ln*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${gn})`},"&::before":{transform:`rotate(45deg) translateX(${gn})`}}})},{[`${he}-layout-header`]:{[Se]:{lineHeight:"inherit"}}}]};var st=(Ce,he)=>(0,jt.Z)("Menu",ke=>{if(he===!1)return[];const{colorBgElevated:Ve,colorPrimary:ut,colorTextLightSolid:$t,controlHeightLG:Lt,fontSize:Dt,darkItemColor:kt,darkDangerItemColor:bt,darkItemBg:Ht,darkSubMenuItemBg:Et,darkItemSelectedColor:Vt,darkItemSelectedBg:Ln,darkDangerItemSelectedBg:gn,darkItemHoverBg:nn,darkGroupTitleColor:ve,darkItemHoverColor:Ne,darkItemDisabledColor:Xe,darkDangerItemHoverColor:dt,darkDangerItemSelectedColor:Pt,darkDangerItemActiveBg:At}=ke,Rt=Dt/7*5,Bt=(0,ye.TS)(ke,{menuArrowSize:Rt,menuHorizontalHeight:Lt*1.15,menuArrowOffset:`${Rt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ve}),Tt=(0,ye.TS)(Bt,{itemColor:kt,itemHoverColor:Ne,groupTitleColor:ve,itemSelectedColor:Vt,itemBg:Ht,popupBg:Ht,subMenuItemBg:Et,itemActiveBg:"transparent",itemSelectedBg:Ln,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:nn,itemDisabledColor:Xe,dangerItemColor:bt,dangerItemHoverColor:dt,dangerItemSelectedColor:Pt,dangerItemActiveBg:At,dangerItemSelectedBg:gn,menuSubMenuBg:Et,horizontalItemSelectedColor:$t,horizontalItemSelectedBg:ut});return[et(Bt),xe(Bt),$e(Bt),zt(Bt,"light"),zt(Tt,"dark"),nt(Bt),(0,Be.Z)(Bt),(0,it.oN)(Bt,"slide-up"),(0,it.oN)(Bt,"slide-down"),(0,Gt._y)(Bt,"zoom-big")]},ke=>{const{colorPrimary:Ve,colorError:ut,colorTextDisabled:$t,colorErrorBg:Lt,colorText:Dt,colorTextDescription:kt,colorBgContainer:bt,colorFillAlter:Ht,colorFillContent:Et,lineWidth:Vt,lineWidthBold:Ln,controlItemBgActive:gn,colorBgTextHover:nn,controlHeightLG:ve,lineHeight:Ne,colorBgElevated:Xe,marginXXS:dt,padding:Pt,fontSize:At,controlHeightSM:Rt,fontSizeLG:Bt,colorTextLightSolid:Tt,colorErrorHover:Yt}=ke,Xt=new le.C(Tt).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:ke.zIndexPopupBase+50,radiusItem:ke.borderRadiusLG,itemBorderRadius:ke.borderRadiusLG,radiusSubMenuItem:ke.borderRadiusSM,subMenuItemBorderRadius:ke.borderRadiusSM,colorItemText:Dt,itemColor:Dt,colorItemTextHover:Dt,itemHoverColor:Dt,colorItemTextHoverHorizontal:Ve,horizontalItemHoverColor:Ve,colorGroupTitle:kt,groupTitleColor:kt,colorItemTextSelected:Ve,itemSelectedColor:Ve,colorItemTextSelectedHorizontal:Ve,horizontalItemSelectedColor:Ve,colorItemBg:bt,itemBg:bt,colorItemBgHover:nn,itemHoverBg:nn,colorItemBgActive:Et,itemActiveBg:gn,colorSubItemBg:Ht,subMenuItemBg:Ht,colorItemBgSelected:gn,itemSelectedBg:gn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ln,activeBarHeight:Ln,colorActiveBarBorderSize:Vt,activeBarBorderWidth:Vt,colorItemTextDisabled:$t,itemDisabledColor:$t,colorDangerItemText:ut,dangerItemColor:ut,colorDangerItemTextHover:ut,dangerItemHoverColor:ut,colorDangerItemTextSelected:ut,dangerItemSelectedColor:ut,colorDangerItemBgActive:Lt,dangerItemActiveBg:Lt,colorDangerItemBgSelected:Lt,dangerItemSelectedBg:Lt,itemMarginInline:ke.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ve,groupTitleLineHeight:Ne,collapsedWidth:ve*2,popupBg:Xe,itemMarginBlock:dt,itemPaddingInline:Pt,horizontalLineHeight:`${ve*1.15}px`,iconSize:At,iconMarginInlineEnd:Rt-At,collapsedIconSize:Bt,groupTitleFontSize:At,darkItemDisabledColor:new le.C(Tt).setAlpha(.25).toRgbString(),darkItemColor:Xt,darkDangerItemColor:ut,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Tt,darkItemSelectedBg:Ve,darkDangerItemSelectedBg:ut,darkItemHoverBg:"transparent",darkGroupTitleColor:Xt,darkItemHoverColor:Tt,darkDangerItemHoverColor:Yt,darkDangerItemSelectedColor:Tt,darkDangerItemActiveBg:ut}},{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"]]})(Ce),de=function(Ce,he){var Se={};for(var ke in Ce)Object.prototype.hasOwnProperty.call(Ce,ke)&&he.indexOf(ke)<0&&(Se[ke]=Ce[ke]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,ke=Object.getOwnPropertySymbols(Ce);Ve<ke.length;Ve++)he.indexOf(ke[Ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,ke[Ve])&&(Se[ke[Ve]]=Ce[ke[Ve]]);return Se},rt=(0,Pe.forwardRef)((Ce,he)=>{var Se,ke;const Ve=Pe.useContext(oe.Z),ut=Ve||{},{getPrefixCls:$t,getPopupContainer:Lt,direction:Dt,menu:kt}=Pe.useContext(Fe.E_),bt=$t(),{prefixCls:Ht,className:Et,style:Vt,theme:Ln="light",expandIcon:gn,_internalDisableMenuItemTitleTooltip:nn,inlineCollapsed:ve,siderCollapsed:Ne,items:Xe,children:dt,rootClassName:Pt,mode:At,selectable:Rt,onClick:Bt,overflowedIndicatorPopupClassName:Tt}=Ce,Yt=de(Ce,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Xt=(0,je.Z)(Yt,["collapsedWidth"]),en=me(Xe)||dt;(Se=ut.validator)===null||Se===void 0||Se.call(ut,{mode:At});const fn=(0,ee.useEvent)(function(){var In;Bt==null||Bt.apply(void 0,arguments),(In=ut.onClick)===null||In===void 0||In.call(ut)}),pn=ut.mode||At,Fn=Rt!=null?Rt:ut.selectable,dn=Pe.useMemo(()=>Ne!==void 0?Ne:ve,[ve,Ne]),an={horizontal:{motionName:`${bt}-slide-up`},inline:(0,te.Z)(bt),other:{motionName:`${bt}-zoom-big`}},vn=$t("menu",Ht||ut.prefixCls),[En,xn]=st(vn,!Ve),un=ce()(`${vn}-${Ln}`,kt==null?void 0:kt.className,Et);let Nn;if(typeof gn=="function")Nn=gn;else if(gn===null||gn===!1)Nn=null;else if(ut.expandIcon===null||ut.expandIcon===!1)Nn=null;else{const In=gn!=null?gn:ut.expandIcon;Nn=(0,Re.Tm)(In,{className:ce()(`${vn}-submenu-expand-icon`,(0,Re.l$)(In)?(ke=In.props)===null||ke===void 0?void 0:ke.className:"")})}const Yn=Pe.useMemo(()=>({prefixCls:vn,inlineCollapsed:dn||!1,direction:Dt,firstLevel:!0,theme:Ln,mode:pn,disableMenuItemTitleTooltip:nn}),[vn,dn,Dt,nn,Ln]);return En(Pe.createElement(oe.Z.Provider,{value:null},Pe.createElement(a.Provider,{value:Yn},Pe.createElement(ae.ZP,Object.assign({getPopupContainer:Lt,overflowedIndicator:Pe.createElement(z.Z,null),overflowedIndicatorPopupClassName:ce()(vn,`${vn}-${Ln}`,Tt),mode:pn,selectable:Fn,onClick:fn},Xt,{inlineCollapsed:dn,style:Object.assign(Object.assign({},kt==null?void 0:kt.style),Vt),className:un,prefixCls:vn,direction:Dt,defaultMotions:an,expandIcon:Nn,ref:he,rootClassName:ce()(Pt,xn)}),en))))});const wt=(0,Pe.forwardRef)((Ce,he)=>{const Se=(0,Pe.useRef)(null),ke=Pe.useContext(Ue.D);return(0,Pe.useImperativeHandle)(he,()=>({menu:Se.current,focus:Ve=>{var ut;(ut=Se.current)===null||ut===void 0||ut.focus(Ve)}})),Pe.createElement(rt,Object.assign({ref:Se},Ce,ke))});wt.Item=E,wt.SubMenu=x,wt.Divider=ze,wt.ItemGroup=ae.BW;var yt=wt},93948:function(Ge,ot,re){"use strict";re.d(ot,{Z:function(){return nn}});var ae=re(59301),Pe=re(29679),Ue=re(40001),Ie=re(19248),ce=re(99267),Fe=re(92310),se=re.n(Fe),De=re(2738),ze=re(36355),Te=re(32855),je=re(27247),_e=re(43079),Re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var Ne=(0,ae.useRef)([]),Xe=(0,ae.useRef)(null);return(0,ae.useEffect)(function(){var dt=Date.now(),Pt=!1;Ne.current.forEach(function(At){if(At){Pt=!0;var Rt=At.style;Rt.transitionDuration=".3s, .3s, .3s, .06s",Xe.current&&dt-Xe.current<100&&(Rt.transitionDuration="0s, 0s")}}),Pt&&(Xe.current=Date.now())}),Ne.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Ne){var Xe=(0,je.Z)((0,je.Z)({},Re),Ne),dt=Xe.className,Pt=Xe.percent,At=Xe.prefixCls,Rt=Xe.strokeColor,Bt=Xe.strokeLinecap,Tt=Xe.strokeWidth,Yt=Xe.style,Xt=Xe.trailColor,en=Xe.trailWidth,fn=Xe.transition,pn=(0,_e.Z)(Xe,a);delete pn.gapPosition;var Fn=Array.isArray(Pt)?Pt:[Pt],dn=Array.isArray(Rt)?Rt:[Rt],an=ne(),vn=Tt/2,En=100-Tt/2,xn="M ".concat(Bt==="round"?vn:0,",").concat(vn,`
|
|
L `).concat(Bt==="round"?En:100,",").concat(vn),un="0 0 100 ".concat(Tt),Nn=0;return ae.createElement("svg",(0,Te.Z)({className:se()("".concat(At,"-line"),dt),viewBox:un,preserveAspectRatio:"none",style:Yt},pn),ae.createElement("path",{className:"".concat(At,"-line-trail"),d:xn,strokeLinecap:Bt,stroke:Xt,strokeWidth:en||Tt,fillOpacity:"0"}),Fn.map(function(Yn,In){var Wn=1;switch(Bt){case"round":Wn=1-Tt/100;break;case"square":Wn=1-Tt/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:fn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Jn=dn[In]||dn[dn.length-1];return Nn+=Yn,ae.createElement("path",{key:In,className:"".concat(At,"-line-path"),d:xn,strokeLinecap:Bt,stroke:Jn,strokeWidth:Tt,fillOpacity:"0",ref:function(we){an[In]=we},style:na})}))},E=y,b=re(34666),x=re(11913),z=re(47273),ee=0,te=(0,z.Z)();function oe(){var ve;return te?(ve=ee,ee+=1):ve="TEST_OR_SSR",ve}var ie=function(ve){var Ne=ae.useState(),Xe=(0,x.Z)(Ne,2),dt=Xe[0],Pt=Xe[1];return ae.useEffect(function(){Pt("rc_progress_".concat(oe()))},[]),ve||dt},ge=function(Ne){var Xe=Ne.bg,dt=Ne.children;return ae.createElement("div",{style:{width:"100%",height:"100%",background:Xe}},dt)};function me(ve,Ne){return Object.keys(ve).map(function(Xe){var dt=parseFloat(Xe),Pt="".concat(Math.floor(dt*Ne),"%");return"".concat(ve[Xe]," ").concat(Pt)})}var le=ae.forwardRef(function(ve,Ne){var Xe=ve.prefixCls,dt=ve.color,Pt=ve.gradientId,At=ve.radius,Rt=ve.style,Bt=ve.ptg,Tt=ve.strokeLinecap,Yt=ve.strokeWidth,Xt=ve.size,en=ve.gapDegree,fn=dt&&(0,b.Z)(dt)==="object",pn=fn?"#FFF":void 0,Fn=Xt/2,dn=ae.createElement("circle",{className:"".concat(Xe,"-circle-path"),r:At,cx:Fn,cy:Fn,stroke:pn,strokeLinecap:Tt,strokeWidth:Yt,opacity:Bt===0?0:1,style:Rt,ref:Ne});if(!fn)return dn;var an="".concat(Pt,"-conic"),vn=en?"".concat(180+en/2,"deg"):"0deg",En=me(dt,(360-en)/360),xn=me(dt,1),un="conic-gradient(from ".concat(vn,", ").concat(En.join(", "),")"),Nn="linear-gradient(to ".concat(en?"bottom":"top",", ").concat(xn.join(", "),")");return ae.createElement(ae.Fragment,null,ae.createElement("mask",{id:an},dn),ae.createElement("foreignObject",{x:0,y:0,width:Xt,height:Xt,mask:"url(#".concat(an,")")},ae.createElement(ge,{bg:Nn},ae.createElement(ge,{bg:un}))))}),be=le,Be=100,it=function(Ne,Xe,dt,Pt,At,Rt,Bt,Tt,Yt,Xt){var en=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,fn=dt/100*360*((360-Rt)/360),pn=Rt===0?0:{bottom:0,top:180,left:90,right:-90}[Bt],Fn=(100-Pt)/100*Xe;Yt==="round"&&Pt!==100&&(Fn+=Xt/2,Fn>=Xe&&(Fn=Xe-.01));var dn=Be/2;return{stroke:typeof Tt=="string"?Tt:void 0,strokeDasharray:"".concat(Xe,"px ").concat(Ne),strokeDashoffset:Fn+en,transform:"rotate(".concat(At+fn+pn,"deg)"),transformOrigin:"".concat(dn,"px ").concat(dn,"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 jt(ve){var Ne=ve!=null?ve:[];return Array.isArray(Ne)?Ne:[Ne]}var ye=function(Ne){var Xe=(0,je.Z)((0,je.Z)({},Re),Ne),dt=Xe.id,Pt=Xe.prefixCls,At=Xe.steps,Rt=Xe.strokeWidth,Bt=Xe.trailWidth,Tt=Xe.gapDegree,Yt=Tt===void 0?0:Tt,Xt=Xe.gapPosition,en=Xe.trailColor,fn=Xe.strokeLinecap,pn=Xe.style,Fn=Xe.className,dn=Xe.strokeColor,an=Xe.percent,vn=(0,_e.Z)(Xe,Gt),En=Be/2,xn=ie(dt),un="".concat(xn,"-gradient"),Nn=En-Rt/2,Yn=Math.PI*2*Nn,In=Yt>0?90+Yt/2:-90,Wn=Yn*((360-Yt)/360),na=(0,b.Z)(At)==="object"?At:{count:At,space:2},Jn=na.count,Le=na.space,we=jt(an),pe=jt(dn),gt=pe.find(function(_n){return _n&&(0,b.Z)(_n)==="object"}),Ot=gt&&(0,b.Z)(gt)==="object",Ft=Ot?"butt":fn,ln=it(Yn,Wn,0,100,In,Yt,Xt,en,Ft,Rt),Wt=ne(),Qt=function(){var at=0;return we.map(function(qt,Tn){var Zn=pe[Tn]||pe[pe.length-1],Cn=it(Yn,Wn,at,qt,In,Yt,Xt,Zn,Ft,Rt);return at+=qt,ae.createElement(be,{key:Tn,color:Zn,ptg:qt,radius:Nn,prefixCls:Pt,gradientId:un,style:Cn,strokeLinecap:Ft,strokeWidth:Rt,gapDegree:Yt,ref:function(Ae){Wt[Tn]=Ae},size:Be})}).reverse()},yn=function(){var at=Math.round(Jn*(we[0]/100)),qt=100/Jn,Tn=0;return new Array(Jn).fill(null).map(function(Zn,Cn){var ue=Cn<=at-1?pe[0]:en,Ae=ue&&(0,b.Z)(ue)==="object"?"url(#".concat(un,")"):void 0,Me=it(Yn,Wn,Tn,qt,In,Yt,Xt,ue,"butt",Rt,Le);return Tn+=(Wn-Me.strokeDashoffset+Le)*100/Wn,ae.createElement("circle",{key:Cn,className:"".concat(Pt,"-circle-path"),r:Nn,cx:En,cy:En,stroke:Ae,strokeWidth:Rt,opacity:1,style:Me,ref:function(Qe){Wt[Cn]=Qe}})})};return ae.createElement("svg",(0,Te.Z)({className:se()("".concat(Pt,"-circle"),Fn),viewBox:"0 0 ".concat(Be," ").concat(Be),style:pn,id:dt,role:"presentation"},vn),!Jn&&ae.createElement("circle",{className:"".concat(Pt,"-circle-trail"),r:Nn,cx:En,cy:En,stroke:en,strokeLinecap:Ft,strokeWidth:Bt||Rt,style:ln}),Jn?yn():Qt())},Oe=ye,xe={Line:E,Circle:Oe},Ze=re(6848),nt=re(30071);function mt(ve){return!ve||ve<0?0:ve>100?100:ve}function St(ve){let{success:Ne,successPercent:Xe}=ve,dt=Xe;return Ne&&"progress"in Ne&&(dt=Ne.progress),Ne&&"percent"in Ne&&(dt=Ne.percent),dt}const zt=ve=>{let{percent:Ne,success:Xe,successPercent:dt}=ve;const Pt=mt(St({success:Xe,successPercent:dt}));return[Pt,mt(mt(Ne)-Pt)]},lt=ve=>{let{success:Ne={},strokeColor:Xe}=ve;const{strokeColor:dt}=Ne;return[dt||nt.presetPrimaryColors.green,Xe||null]},fe=(ve,Ne,Xe)=>{var dt,Pt,At,Rt;let Bt=-1,Tt=-1;if(Ne==="step"){const Yt=Xe.steps,Xt=Xe.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?(Bt=ve==="small"?2:14,Tt=Xt!=null?Xt:8):typeof ve=="number"?[Bt,Tt]=[ve,ve]:[Bt=14,Tt=8]=ve,Bt*=Yt}else if(Ne==="line"){const Yt=Xe==null?void 0:Xe.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?Tt=Yt||(ve==="small"?6:8):typeof ve=="number"?[Bt,Tt]=[ve,ve]:[Bt=-1,Tt=8]=ve}else(Ne==="circle"||Ne==="dashboard")&&(typeof ve=="string"||typeof ve=="undefined"?[Bt,Tt]=ve==="small"?[60,60]:[120,120]:typeof ve=="number"?[Bt,Tt]=[ve,ve]:(Bt=(Pt=(dt=ve[0])!==null&&dt!==void 0?dt:ve[1])!==null&&Pt!==void 0?Pt:120,Tt=(Rt=(At=ve[0])!==null&&At!==void 0?At:ve[1])!==null&&Rt!==void 0?Rt:120));return[Bt,Tt]},$e=3,Ye=ve=>$e/ve*100;var et=ve=>{const{prefixCls:Ne,trailColor:Xe=null,strokeLinecap:dt="round",gapPosition:Pt,gapDegree:At,width:Rt=120,type:Bt,children:Tt,success:Yt,size:Xt=Rt}=ve,[en,fn]=fe(Xt,"circle");let{strokeWidth:pn}=ve;pn===void 0&&(pn=Math.max(Ye(en),6));const Fn={width:en,height:fn,fontSize:en*.15+6},dn=ae.useMemo(()=>{if(At||At===0)return At;if(Bt==="dashboard")return 75},[At,Bt]),an=Pt||Bt==="dashboard"&&"bottom"||void 0,vn=Object.prototype.toString.call(ve.strokeColor)==="[object Object]",En=lt({success:Yt,strokeColor:ve.strokeColor}),xn=se()(`${Ne}-inner`,{[`${Ne}-circle-gradient`]:vn}),un=ae.createElement(Oe,{percent:zt(ve),strokeWidth:pn,trailWidth:pn,strokeColor:En,strokeLinecap:dt,trailColor:Xe,prefixCls:Ne,gapDegree:dn,gapPosition:an});return ae.createElement("div",{className:xn,style:Fn},en<=20?ae.createElement(Ze.Z,{title:Tt},ae.createElement("span",null,un)):ae.createElement(ae.Fragment,null,un,Tt))},st=function(ve,Ne){var Xe={};for(var dt in ve)Object.prototype.hasOwnProperty.call(ve,dt)&&Ne.indexOf(dt)<0&&(Xe[dt]=ve[dt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,dt=Object.getOwnPropertySymbols(ve);Pt<dt.length;Pt++)Ne.indexOf(dt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ve,dt[Pt])&&(Xe[dt[Pt]]=ve[dt[Pt]]);return Xe};const de=ve=>{let Ne=[];return Object.keys(ve).forEach(Xe=>{const dt=parseFloat(Xe.replace(/%/g,""));isNaN(dt)||Ne.push({key:dt,value:ve[Xe]})}),Ne=Ne.sort((Xe,dt)=>Xe.key-dt.key),Ne.map(Xe=>{let{key:dt,value:Pt}=Xe;return`${Pt} ${dt}%`}).join(", ")},Je=(ve,Ne)=>{const{from:Xe=nt.presetPrimaryColors.blue,to:dt=nt.presetPrimaryColors.blue,direction:Pt=Ne==="rtl"?"to left":"to right"}=ve,At=st(ve,["from","to","direction"]);if(Object.keys(At).length!==0){const Rt=de(At);return{backgroundImage:`linear-gradient(${Pt}, ${Rt})`}}return{backgroundImage:`linear-gradient(${Pt}, ${Xe}, ${dt})`}};var wt=ve=>{const{prefixCls:Ne,direction:Xe,percent:dt,size:Pt,strokeWidth:At,strokeColor:Rt,strokeLinecap:Bt="round",children:Tt,trailColor:Yt=null,success:Xt}=ve,en=Rt&&typeof Rt!="string"?Je(Rt,Xe):{backgroundColor:Rt},fn=Bt==="square"||Bt==="butt"?0:void 0,pn={backgroundColor:Yt||void 0,borderRadius:fn},Fn=Pt!=null?Pt:[-1,At||(Pt==="small"?6:8)],[dn,an]=fe(Fn,"line",{strokeWidth:At}),vn=Object.assign({width:`${mt(dt)}%`,height:an,borderRadius:fn},en),En=St(ve),xn={width:`${mt(En)}%`,height:an,borderRadius:fn,backgroundColor:Xt==null?void 0:Xt.strokeColor},un={width:dn<0?"100%":dn,height:an};return ae.createElement(ae.Fragment,null,ae.createElement("div",{className:`${Ne}-outer`,style:un},ae.createElement("div",{className:`${Ne}-inner`,style:pn},ae.createElement("div",{className:`${Ne}-bg`,style:vn}),En!==void 0?ae.createElement("div",{className:`${Ne}-success-bg`,style:xn}):null)),Tt)},Ce=ve=>{const{size:Ne,steps:Xe,percent:dt=0,strokeWidth:Pt=8,strokeColor:At,trailColor:Rt=null,prefixCls:Bt,children:Tt}=ve,Yt=Math.round(Xe*(dt/100)),Xt=Ne==="small"?2:14,en=Ne!=null?Ne:[Xt,Pt],[fn,pn]=fe(en,"step",{steps:Xe,strokeWidth:Pt}),Fn=fn/Xe,dn=new Array(Xe);for(let an=0;an<Xe;an++){const vn=Array.isArray(At)?At[an]:At;dn[an]=ae.createElement("div",{key:an,className:se()(`${Bt}-steps-item`,{[`${Bt}-steps-item-active`]:an<=Yt-1}),style:{backgroundColor:an<=Yt-1?vn:Rt,width:Fn,height:pn}})}return ae.createElement("div",{className:`${Bt}-steps-outer`},dn,Tt)},he=re(36237),Se=re(17313),ke=re(83116),Ve=re(37613);const ut=ve=>{const Ne=ve?"100%":"-100%";return new he.Keyframes(`antProgress${ve?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ne}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ne}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},$t=ve=>{const{componentCls:Ne,iconCls:Xe}=ve;return{[Ne]:Object.assign(Object.assign({},(0,Se.Wf)(ve)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ve.fontSize,marginInlineEnd:ve.marginXS,marginBottom:ve.marginXS},[`${Ne}-outer`]:{display:"inline-block",width:"100%"},[`&${Ne}-show-info`]:{[`${Ne}-outer`]:{marginInlineEnd:`calc(-2em - ${ve.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ve.paddingXS}px)`}},[`${Ne}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ve.remainingColor,borderRadius:ve.lineBorderRadius},[`${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:ve.defaultColor}},[`${Ne}-success-bg, ${Ne}-bg`]:{position:"relative",backgroundColor:ve.defaultColor,borderRadius:ve.lineBorderRadius,transition:`all ${ve.motionDurationSlow} ${ve.motionEaseInOutCirc}`},[`${Ne}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ve.colorSuccess},[`${Ne}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ve.marginXS,color:ve.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Xe]:{fontSize:ve.fontSize}},[`&${Ne}-status-active`]:{[`${Ne}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ve.colorBgContainer,borderRadius:ve.lineBorderRadius,opacity:0,animationName:ut(),animationDuration:ve.progressActiveMotionDuration,animationTimingFunction:ve.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ne}-rtl${Ne}-status-active`]:{[`${Ne}-bg::before`]:{animationName:ut(!0)}},[`&${Ne}-status-exception`]:{[`${Ne}-bg`]:{backgroundColor:ve.colorError},[`${Ne}-text`]:{color:ve.colorError}},[`&${Ne}-status-exception ${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:ve.colorError}},[`&${Ne}-status-success`]:{[`${Ne}-bg`]:{backgroundColor:ve.colorSuccess},[`${Ne}-text`]:{color:ve.colorSuccess}},[`&${Ne}-status-success ${Ne}-inner:not(${Ne}-circle-gradient)`]:{[`${Ne}-circle-path`]:{stroke:ve.colorSuccess}}})}},Lt=ve=>{const{componentCls:Ne,iconCls:Xe}=ve;return{[Ne]:{[`${Ne}-circle-trail`]:{stroke:ve.remainingColor},[`&${Ne}-circle ${Ne}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ne}-circle ${Ne}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ve.circleTextColor,fontSize:ve.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Xe]:{fontSize:`${ve.fontSize/ve.fontSizeSM}em`}},[`${Ne}-circle&-status-exception`]:{[`${Ne}-text`]:{color:ve.colorError}},[`${Ne}-circle&-status-success`]:{[`${Ne}-text`]:{color:ve.colorSuccess}}},[`${Ne}-inline-circle`]:{lineHeight:1,[`${Ne}-inner`]:{verticalAlign:"bottom"}}}},Dt=ve=>{const{componentCls:Ne}=ve;return{[Ne]:{[`${Ne}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ve.progressStepMinWidth,marginInlineEnd:ve.progressStepMarginInlineEnd,backgroundColor:ve.remainingColor,transition:`all ${ve.motionDurationSlow}`,"&-active":{backgroundColor:ve.defaultColor}}}}}},kt=ve=>{const{componentCls:Ne,iconCls:Xe}=ve;return{[Ne]:{[`${Ne}-small&-line, ${Ne}-small&-line ${Ne}-text ${Xe}`]:{fontSize:ve.fontSizeSM}}}};var bt=(0,ke.Z)("Progress",ve=>{const Ne=ve.marginXXS/2,Xe=(0,Ve.TS)(ve,{progressStepMarginInlineEnd:Ne,progressStepMinWidth:Ne,progressActiveMotionDuration:"2.4s"});return[$t(Xe),Lt(Xe),Dt(Xe),kt(Xe)]},ve=>({circleTextColor:ve.colorText,defaultColor:ve.colorInfo,remainingColor:ve.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Ht=function(ve,Ne){var Xe={};for(var dt in ve)Object.prototype.hasOwnProperty.call(ve,dt)&&Ne.indexOf(dt)<0&&(Xe[dt]=ve[dt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,dt=Object.getOwnPropertySymbols(ve);Pt<dt.length;Pt++)Ne.indexOf(dt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ve,dt[Pt])&&(Xe[dt[Pt]]=ve[dt[Pt]]);return Xe};const Et=null,Vt=["normal","exception","active","success"];var gn=ae.forwardRef((ve,Ne)=>{const{prefixCls:Xe,className:dt,rootClassName:Pt,steps:At,strokeColor:Rt,percent:Bt=0,size:Tt="default",showInfo:Yt=!0,type:Xt="line",status:en,format:fn,style:pn}=ve,Fn=Ht(ve,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),dn=ae.useMemo(()=>{var we,pe;const gt=St(ve);return parseInt(gt!==void 0?(we=gt!=null?gt:0)===null||we===void 0?void 0:we.toString():(pe=Bt!=null?Bt:0)===null||pe===void 0?void 0:pe.toString(),10)},[Bt,ve.success,ve.successPercent]),an=ae.useMemo(()=>!Vt.includes(en)&&dn>=100?"success":en||"normal",[en,dn]),{getPrefixCls:vn,direction:En,progress:xn}=ae.useContext(ze.E_),un=vn("progress",Xe),[Nn,Yn]=bt(un),In=ae.useMemo(()=>{if(!Yt)return null;const we=St(ve);let pe;const gt=fn||(Ft=>`${Ft}%`),Ot=Xt==="line";return fn||an!=="exception"&&an!=="success"?pe=gt(mt(Bt),mt(we)):an==="exception"?pe=Ot?ae.createElement(Ie.Z,null):ae.createElement(ce.Z,null):an==="success"&&(pe=Ot?ae.createElement(Pe.Z,null):ae.createElement(Ue.Z,null)),ae.createElement("span",{className:`${un}-text`,title:typeof pe=="string"?pe:void 0},pe)},[Yt,Bt,dn,an,Xt,un,fn]),Wn=Array.isArray(Rt)?Rt[0]:Rt,na=typeof Rt=="string"||Array.isArray(Rt)?Rt:void 0;let Jn;Xt==="line"?Jn=At?ae.createElement(Ce,Object.assign({},ve,{strokeColor:na,prefixCls:un,steps:At}),In):ae.createElement(wt,Object.assign({},ve,{strokeColor:Wn,prefixCls:un,direction:En}),In):(Xt==="circle"||Xt==="dashboard")&&(Jn=ae.createElement(et,Object.assign({},ve,{strokeColor:Wn,prefixCls:un,progressStatus:an}),In));const Le=se()(un,`${un}-status-${an}`,`${un}-${Xt==="dashboard"&&"circle"||At&&"steps"||Xt}`,{[`${un}-inline-circle`]:Xt==="circle"&&fe(Tt,"circle")[0]<=20,[`${un}-show-info`]:Yt,[`${un}-${Tt}`]:typeof Tt=="string",[`${un}-rtl`]:En==="rtl"},xn==null?void 0:xn.className,dt,Pt,Yn);return Nn(ae.createElement("div",Object.assign({ref:Ne,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),pn),className:Le,role:"progressbar","aria-valuenow":dn},(0,De.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),nn=gn},54580:function(Ge,ot,re){"use strict";re.d(ot,{default:function(){return Cn}});var ae=re(59301),Pe=re(3300),Ue=re(92310),Ie=re.n(Ue),ce=re(32855),Fe=re(33377),se=re(93912),De=re(18881),ze=re(85461),Te=re(74430),je=re(43079),_e=re(13932),Re=re(34666),ne=re(68702),a=re(26112);function y(ue,Ae){var Me="cannot ".concat(ue.method," ").concat(ue.action," ").concat(Ae.status,"'"),He=new Error(Me);return He.status=Ae.status,He.method=ue.method,He.url=ue.action,He}function E(ue){var Ae=ue.responseText||ue.response;if(!Ae)return Ae;try{return JSON.parse(Ae)}catch(Me){return Ae}}function b(ue){var Ae=new XMLHttpRequest;ue.onProgress&&Ae.upload&&(Ae.upload.onprogress=function(tt){tt.total>0&&(tt.percent=tt.loaded/tt.total*100),ue.onProgress(tt)});var Me=new FormData;ue.data&&Object.keys(ue.data).forEach(function(Qe){var tt=ue.data[Qe];if(Array.isArray(tt)){tt.forEach(function(Ke){Me.append("".concat(Qe,"[]"),Ke)});return}Me.append(Qe,tt)}),ue.file instanceof Blob?Me.append(ue.filename,ue.file,ue.file.name):Me.append(ue.filename,ue.file),Ae.onerror=function(tt){ue.onError(tt)},Ae.onload=function(){return Ae.status<200||Ae.status>=300?ue.onError(y(ue,Ae),E(Ae)):ue.onSuccess(E(Ae),Ae)},Ae.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in Ae&&(Ae.withCredentials=!0);var He=ue.headers||{};return He["X-Requested-With"]!==null&&Ae.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(He).forEach(function(Qe){He[Qe]!==null&&Ae.setRequestHeader(Qe,He[Qe])}),Ae.send(Me),{abort:function(){Ae.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=re(48736),oe=function(ue,Ae){if(ue&&Ae){var Me=Array.isArray(Ae)?Ae:Ae.split(","),He=ue.name||"",Qe=ue.type||"",tt=Qe.replace(/\/.*$/,"");return Me.some(function(Ke){var We=Ke.trim();if(/^\*(\/\*)?$/.test(Ke))return!0;if(We.charAt(0)==="."){var It=He.toLowerCase(),Mt=We.toLowerCase(),Ee=[Mt];return(Mt===".jpg"||Mt===".jpeg")&&(Ee=[".jpg",".jpeg"]),Ee.some(function(on){return It.endsWith(on)})}return/\/\*$/.test(We)?tt===We.replace(/\/.*$/,""):Qe===We?!0:/^\w+$/.test(We)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(We,"'.Skip for check.")),!0):!1})}return!0};function ie(ue,Ae){var Me=ue.createReader(),He=[];function Qe(){Me.readEntries(function(tt){var Ke=Array.prototype.slice.apply(tt);He=He.concat(Ke);var We=!Ke.length;We?Ae(He):Qe()})}Qe()}var ge=function(Ae,Me,He){var Qe=function tt(Ke,We){Ke&&(Ke.path=We||"",Ke.isFile?Ke.file(function(It){He(It)&&(Ke.fullPath&&!It.webkitRelativePath&&(Object.defineProperties(It,{webkitRelativePath:{writable:!0}}),It.webkitRelativePath=Ke.fullPath.replace(/^\//,""),Object.defineProperties(It,{webkitRelativePath:{writable:!1}})),Me([It]))}):Ke.isDirectory&&ie(Ke,function(It){It.forEach(function(Mt){tt(Mt,"".concat(We).concat(Ke.name,"/"))})}))};Ae.forEach(function(tt){Qe(tt.webkitGetAsEntry())})},me=ge,le=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],be=function(ue){(0,De.Z)(Me,ue);var Ae=(0,ze.Z)(Me);function Me(){var He;(0,Fe.Z)(this,Me);for(var Qe=arguments.length,tt=new Array(Qe),Ke=0;Ke<Qe;Ke++)tt[Ke]=arguments[Ke];return He=Ae.call.apply(Ae,[this].concat(tt)),He.state={uid:ee()},He.reqs={},He.fileInput=void 0,He._isMounted=void 0,He.onChange=function(We){var It=He.props,Mt=It.accept,Ee=It.directory,on=We.target.files,tn=(0,Pe.Z)(on).filter(function(hn){return!Ee||oe(hn,Mt)});He.uploadFiles(tn),He.reset()},He.onClick=function(We){var It=He.fileInput;if(It){var Mt=We.target,Ee=He.props.onClick;if(Mt&&Mt.tagName==="BUTTON"){var on=It.parentNode;on.focus(),Mt.blur()}It.click(),Ee&&Ee(We)}},He.onKeyDown=function(We){We.key==="Enter"&&He.onClick(We)},He.onFileDrop=function(We){var It=He.props.multiple;if(We.preventDefault(),We.type!=="dragover")if(He.props.directory)me(Array.prototype.slice.call(We.dataTransfer.items),He.uploadFiles,function(Ee){return oe(Ee,He.props.accept)});else{var Mt=(0,Pe.Z)(We.dataTransfer.files).filter(function(Ee){return oe(Ee,He.props.accept)});It===!1&&(Mt=Mt.slice(0,1)),He.uploadFiles(Mt)}},He.uploadFiles=function(We){var It=(0,Pe.Z)(We),Mt=It.map(function(Ee){return Ee.uid=ee(),He.processFile(Ee,It)});Promise.all(Mt).then(function(Ee){var on=He.props.onBatchStart;on==null||on(Ee.map(function(tn){var hn=tn.origin,Bn=tn.parsedFile;return{file:hn,parsedFile:Bn}})),Ee.filter(function(tn){return tn.parsedFile!==null}).forEach(function(tn){He.post(tn)})})},He.processFile=function(){var We=(0,ne.Z)((0,_e.Z)().mark(function It(Mt,Ee){var on,tn,hn,Bn,qe,ht,Nt,ft,Kt;return(0,_e.Z)().wrap(function(_t){for(;;)switch(_t.prev=_t.next){case 0:if(on=He.props.beforeUpload,tn=Mt,!on){_t.next=14;break}return _t.prev=3,_t.next=6,on(Mt,Ee);case 6:tn=_t.sent,_t.next=12;break;case 9:_t.prev=9,_t.t0=_t.catch(3),tn=!1;case 12:if(tn!==!1){_t.next=14;break}return _t.abrupt("return",{origin:Mt,parsedFile:null,action:null,data:null});case 14:if(hn=He.props.action,typeof hn!="function"){_t.next=21;break}return _t.next=18,hn(Mt);case 18:Bn=_t.sent,_t.next=22;break;case 21:Bn=hn;case 22:if(qe=He.props.data,typeof qe!="function"){_t.next=29;break}return _t.next=26,qe(Mt);case 26:ht=_t.sent,_t.next=30;break;case 29:ht=qe;case 30:return Nt=((0,Re.Z)(tn)==="object"||typeof tn=="string")&&tn?tn:Mt,Nt instanceof File?ft=Nt:ft=new File([Nt],Mt.name,{type:Mt.type}),Kt=ft,Kt.uid=Mt.uid,_t.abrupt("return",{origin:Mt,data:ht,parsedFile:Kt,action:Bn});case 35:case"end":return _t.stop()}},It,null,[[3,9]])}));return function(It,Mt){return We.apply(this,arguments)}}(),He.saveFileInput=function(We){He.fileInput=We},He}return(0,se.Z)(Me,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Qe){var tt=this,Ke=Qe.data,We=Qe.origin,It=Qe.action,Mt=Qe.parsedFile;if(this._isMounted){var Ee=this.props,on=Ee.onStart,tn=Ee.customRequest,hn=Ee.name,Bn=Ee.headers,qe=Ee.withCredentials,ht=Ee.method,Nt=We.uid,ft=tn||b,Kt={action:It,filename:hn,data:Ke,file:Mt,headers:Bn,withCredentials:qe,method:ht||"post",onProgress:function(_t){var Sn=tt.props.onProgress;Sn==null||Sn(_t,Mt)},onSuccess:function(_t,Sn){var Pn=tt.props.onSuccess;Pn==null||Pn(_t,Mt,Sn),delete tt.reqs[Nt]},onError:function(_t,Sn){var Pn=tt.props.onError;Pn==null||Pn(_t,Sn,Mt),delete tt.reqs[Nt]}};on(We),this.reqs[Nt]=ft(Kt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(Qe){var tt=this.reqs;if(Qe){var Ke=Qe.uid?Qe.uid:Qe;tt[Ke]&&tt[Ke].abort&&tt[Ke].abort(),delete tt[Ke]}else Object.keys(tt).forEach(function(We){tt[We]&&tt[We].abort&&tt[We].abort(),delete tt[We]})}},{key:"render",value:function(){var Qe=this.props,tt=Qe.component,Ke=Qe.prefixCls,We=Qe.className,It=Qe.disabled,Mt=Qe.id,Ee=Qe.style,on=Qe.multiple,tn=Qe.accept,hn=Qe.capture,Bn=Qe.children,qe=Qe.directory,ht=Qe.openFileDialogOnClick,Nt=Qe.onMouseEnter,ft=Qe.onMouseLeave,Kt=(0,je.Z)(Qe,le),Jt=Ie()((0,Te.Z)((0,Te.Z)((0,Te.Z)({},Ke,!0),"".concat(Ke,"-disabled"),It),We,We)),_t=qe?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Sn=It?{}:{onClick:ht?this.onClick:function(){},onKeyDown:ht?this.onKeyDown:function(){},onMouseEnter:Nt,onMouseLeave:ft,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ae.createElement(tt,(0,ce.Z)({},Sn,{className:Jt,role:"button",style:Ee}),ae.createElement("input",(0,ce.Z)({},(0,a.Z)(Kt,{aria:!0,data:!0}),{id:Mt,disabled:It,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:tn},_t,{multiple:on,onChange:this.onChange},hn!=null?{capture:hn}:{})),Bn)}}]),Me}(ae.Component),Be=be;function it(){}var Gt=function(ue){(0,De.Z)(Me,ue);var Ae=(0,ze.Z)(Me);function Me(){var He;(0,Fe.Z)(this,Me);for(var Qe=arguments.length,tt=new Array(Qe),Ke=0;Ke<Qe;Ke++)tt[Ke]=arguments[Ke];return He=Ae.call.apply(Ae,[this].concat(tt)),He.uploader=void 0,He.saveUploader=function(We){He.uploader=We},He}return(0,se.Z)(Me,[{key:"abort",value:function(Qe){this.uploader.abort(Qe)}},{key:"render",value:function(){return ae.createElement(Be,(0,ce.Z)({},this.props,{ref:this.saveUploader}))}}]),Me}(ae.Component);Gt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:it,onError:it,onSuccess:it,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var jt=Gt,ye=jt,Oe=re(18929),xe=re(4676),Ze=re(36355),nt=re(1684),mt=re(9763),St=re(31724),zt={icon:function(Ae,Me){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Me}},{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:Ae}}]}},name:"file",theme:"twotone"},lt=zt,fe=re(7657),$e=function(Ae,Me){return ae.createElement(fe.Z,(0,ce.Z)({},Ae,{ref:Me,icon:lt}))},Ye=ae.forwardRef($e),vt=Ye,et=re(58617),st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},de=st,Je=function(Ae,Me){return ae.createElement(fe.Z,(0,ce.Z)({},Ae,{ref:Me,icon:de}))},rt=ae.forwardRef(Je),wt=rt,yt={icon:function(Ae,Me){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:Ae}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Me}},{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:Me}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Me}},{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:Ae}}]}},name:"picture",theme:"twotone"},Ce=yt,he=function(Ae,Me){return ae.createElement(fe.Z,(0,ce.Z)({},Ae,{ref:Me,icon:Ce}))},Se=ae.forwardRef(he),ke=Se,Ve=re(77900),ut=re(56762),$t=re(62892),Lt=re(92343),Dt=re(3113);function kt(ue){return Object.assign(Object.assign({},ue),{lastModified:ue.lastModified,lastModifiedDate:ue.lastModifiedDate,name:ue.name,size:ue.size,type:ue.type,uid:ue.uid,percent:0,originFileObj:ue})}function bt(ue,Ae){const Me=(0,Pe.Z)(Ae),He=Me.findIndex(Qe=>{let{uid:tt}=Qe;return tt===ue.uid});return He===-1?Me.push(ue):Me[He]=ue,Me}function Ht(ue,Ae){const Me=ue.uid!==void 0?"uid":"name";return Ae.filter(He=>He[Me]===ue[Me])[0]}function Et(ue,Ae){const Me=ue.uid!==void 0?"uid":"name",He=Ae.filter(Qe=>Qe[Me]!==ue[Me]);return He.length===Ae.length?null:He}const Vt=function(){const Ae=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),He=Ae[Ae.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(He)||[""])[0]},Ln=ue=>ue.indexOf("image/")===0,gn=ue=>{if(ue.type&&!ue.thumbUrl)return Ln(ue.type);const Ae=ue.thumbUrl||ue.url||"",Me=Vt(Ae);return/^data:image\//.test(Ae)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Me)?!0:!(/^data:/.test(Ae)||Me)},nn=200;function ve(ue){return new Promise(Ae=>{if(!ue.type||!Ln(ue.type)){Ae("");return}const Me=document.createElement("canvas");Me.width=nn,Me.height=nn,Me.style.cssText=`position: fixed; left: 0; top: 0; width: ${nn}px; height: ${nn}px; z-index: 9999; display: none;`,document.body.appendChild(Me);const He=Me.getContext("2d"),Qe=new Image;if(Qe.onload=()=>{const{width:tt,height:Ke}=Qe;let We=nn,It=nn,Mt=0,Ee=0;tt>Ke?(It=Ke*(nn/tt),Ee=-(It-We)/2):(We=tt*(nn/Ke),Mt=-(We-It)/2),He.drawImage(Qe,Mt,Ee,We,It);const on=Me.toDataURL();document.body.removeChild(Me),window.URL.revokeObjectURL(Qe.src),Ae(on)},Qe.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const tt=new FileReader;tt.onload=()=>{tt.result&&(Qe.src=tt.result)},tt.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const tt=new FileReader;tt.onload=()=>{tt.result&&Ae(tt.result)},tt.readAsDataURL(ue)}else Qe.src=window.URL.createObjectURL(ue)})}var Ne=re(26227),Xe=re(41464),dt=re(15277),Pt=re(93948),At=re(6848),Bt=ae.forwardRef((ue,Ae)=>{let{prefixCls:Me,className:He,style:Qe,locale:tt,listType:Ke,file:We,items:It,progress:Mt,iconRender:Ee,actionIconRender:on,itemRender:tn,isImgUrl:hn,showPreviewIcon:Bn,showRemoveIcon:qe,showDownloadIcon:ht,previewIcon:Nt,removeIcon:ft,downloadIcon:Kt,onPreview:Jt,onDownload:_t,onClose:Sn}=ue;var Pn,oa;const{status:Qn}=We,[qn,ca]=ae.useState(Qn);ae.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ae.useState(!1);ae.useEffect(()=>{const An=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(An)}},[]);const da=Ee(We);let Kn=ae.createElement("div",{className:`${Me}-icon`},da);if(Ke==="picture"||Ke==="picture-card"||Ke==="picture-circle")if(qn==="uploading"||!We.thumbUrl&&!We.url){const An=Ie()(`${Me}-list-item-thumbnail`,{[`${Me}-list-item-file`]:qn!=="uploading"});Kn=ae.createElement("div",{className:An},da)}else{const An=hn!=null&&hn(We)?ae.createElement("img",{src:We.thumbUrl||We.url,alt:We.name,className:`${Me}-list-item-image`,crossOrigin:We.crossOrigin}):da,Gn=Ie()(`${Me}-list-item-thumbnail`,{[`${Me}-list-item-file`]:hn&&!hn(We)});Kn=ae.createElement("a",{className:Gn,onClick:la=>Jt(We,la),href:We.url||We.thumbUrl,target:"_blank",rel:"noopener noreferrer"},An)}const $n=Ie()(`${Me}-list-item`,`${Me}-list-item-${qn}`),ta=typeof We.linkProps=="string"?JSON.parse(We.linkProps):We.linkProps,ia=qe?on((typeof ft=="function"?ft(We):ft)||ae.createElement(Ne.Z,null),()=>Sn(We),Me,tt.removeFile):null,ga=ht&&qn==="done"?on((typeof Kt=="function"?Kt(We):Kt)||ae.createElement(Xe.Z,null),()=>_t(We),Me,tt.downloadFile):null,aa=Ke!=="picture-card"&&Ke!=="picture-circle"&&ae.createElement("span",{key:"download-delete",className:Ie()(`${Me}-list-item-actions`,{picture:Ke==="picture"})},ga,ia),ea=Ie()(`${Me}-list-item-name`),fa=We.url?[ae.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:We.name},ta,{href:We.url,onClick:An=>Jt(We,An)}),We.name),aa]:[ae.createElement("span",{key:"view",className:ea,onClick:An=>Jt(We,An),title:We.name},We.name),aa],Zt={pointerEvents:"none",opacity:.5},On=Bn?ae.createElement("a",{href:We.url||We.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:We.url||We.thumbUrl?void 0:Zt,onClick:An=>Jt(We,An),title:tt.previewFile},typeof Nt=="function"?Nt(We):Nt||ae.createElement(dt.Z,null)):null,Mn=(Ke==="picture-card"||Ke==="picture-circle")&&qn!=="uploading"&&ae.createElement("span",{className:`${Me}-list-item-actions`},On,qn==="done"&&ga,ia),{getPrefixCls:Un}=ae.useContext(Ze.E_),Xn=Un(),ra=ae.createElement("div",{className:$n},Kn,fa,Mn,Sa&&ae.createElement(Ve.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},An=>{let{className:Gn}=An;const la="percent"in We?ae.createElement(Pt.Z,Object.assign({},Mt,{type:"line",percent:We.percent,"aria-label":We["aria-label"],"aria-labelledby":We["aria-labelledby"]})):null;return ae.createElement("div",{className:Ie()(`${Me}-list-item-progress`,Gn)},la)})),va=We.response&&typeof We.response=="string"?We.response:((Pn=We.error)===null||Pn===void 0?void 0:Pn.statusText)||((oa=We.error)===null||oa===void 0?void 0:oa.message)||tt.uploadError,pa=qn==="error"?ae.createElement(At.Z,{title:va,getPopupContainer:An=>An.parentNode},ra):ra;return ae.createElement("div",{className:Ie()(`${Me}-list-item-container`,He),style:Qe,ref:Ae},tn?tn(pa,We,It,{download:_t.bind(null,We),preview:Jt.bind(null,We),remove:Sn.bind(null,We)}):pa)});const Tt=(ue,Ae)=>{const{listType:Me="text",previewFile:He=ve,onPreview:Qe,onDownload:tt,onRemove:Ke,locale:We,iconRender:It,isImageUrl:Mt=gn,prefixCls:Ee,items:on=[],showPreviewIcon:tn=!0,showRemoveIcon:hn=!0,showDownloadIcon:Bn=!1,removeIcon:qe,previewIcon:ht,downloadIcon:Nt,progress:ft={size:[-1,2],showInfo:!1},appendAction:Kt,appendActionVisible:Jt=!0,itemRender:_t,disabled:Sn}=ue,Pn=(0,ut.Z)(),[oa,Qn]=ae.useState(!1);ae.useEffect(()=>{Me!=="picture"&&Me!=="picture-card"&&Me!=="picture-circle"||(on||[]).forEach(Zt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Zt.originFileObj instanceof File||Zt.originFileObj instanceof Blob)||Zt.thumbUrl!==void 0||(Zt.thumbUrl="",He&&He(Zt.originFileObj).then(On=>{Zt.thumbUrl=On||"",Pn()}))})},[Me,on,He]),ae.useEffect(()=>{Qn(!0)},[]);const qn=(Zt,On)=>{if(Qe)return On==null||On.preventDefault(),Qe(Zt)},ca=Zt=>{typeof tt=="function"?tt(Zt):Zt.url&&window.open(Zt.url)},Sa=Zt=>{Ke==null||Ke(Zt)},Pa=Zt=>{if(It)return It(Zt,Me);const On=Zt.status==="uploading",Mn=Mt&&Mt(Zt)?ae.createElement(ke,null):ae.createElement(vt,null);let Un=On?ae.createElement(et.Z,null):ae.createElement(wt,null);return Me==="picture"?Un=On?ae.createElement(et.Z,null):Mn:(Me==="picture-card"||Me==="picture-circle")&&(Un=On?We.uploading:Mn),Un},da=(Zt,On,Mn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{On(),(0,Lt.l$)(Zt)&&Zt.props.onClick&&Zt.props.onClick(ra)},className:`${Mn}-list-item-action`,disabled:Sn};if((0,Lt.l$)(Zt)){const ra=(0,Lt.Tm)(Zt,Object.assign(Object.assign({},Zt.props),{onClick:()=>{}}));return ae.createElement(Dt.ZP,Object.assign({},Xn,{icon:ra}))}return ae.createElement(Dt.ZP,Object.assign({},Xn),ae.createElement("span",null,Zt))};ae.useImperativeHandle(Ae,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Kn}=ae.useContext(Ze.E_),$n=Kn("upload",Ee),ta=Kn(),ia=Ie()(`${$n}-list`,`${$n}-list-${Me}`),ga=(0,Pe.Z)(on.map(Zt=>({key:Zt.uid,file:Zt})));let ea={motionDeadline:2e3,motionName:`${$n}-${Me==="picture-card"||Me==="picture-circle"?"animate-inline":"animate"}`,keys:ga,motionAppear:oa};const fa=ae.useMemo(()=>{const Zt=Object.assign({},(0,$t.Z)(ta));return delete Zt.onAppearEnd,delete Zt.onEnterEnd,delete Zt.onLeaveEnd,Zt},[ta]);return Me!=="picture-card"&&Me!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ae.createElement("div",{className:ia},ae.createElement(Ve.CSSMotionList,Object.assign({},ea,{component:!1}),Zt=>{let{key:On,file:Mn,className:Un,style:Xn}=Zt;return ae.createElement(Bt,{key:On,locale:We,prefixCls:$n,className:Un,style:Xn,file:Mn,items:on,progress:ft,listType:Me,isImgUrl:Mt,showPreviewIcon:tn,showRemoveIcon:hn,showDownloadIcon:Bn,removeIcon:qe,previewIcon:ht,downloadIcon:Nt,iconRender:Pa,actionIconRender:da,itemRender:_t,onPreview:qn,onDownload:ca,onClose:Sa})}),Kt&&ae.createElement(Ve.default,Object.assign({},ea,{visible:Jt,forceRender:!0}),Zt=>{let{className:On,style:Mn}=Zt;return(0,Lt.Tm)(Kt,Un=>({className:Ie()(Un.className,On),style:Object.assign(Object.assign(Object.assign({},Mn),{pointerEvents:On?"none":void 0}),Un.style)}))}))};var Xt=ae.forwardRef(Tt),en=re(17313),fn=re(8378),pn=re(83116),Fn=re(37613),an=ue=>{const{componentCls:Ae,iconCls:Me}=ue;return{[`${Ae}-wrapper`]:{[`${Ae}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[Ae]:{padding:`${ue.padding}px 0`},[`${Ae}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Ae}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Ae}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${Ae}-drag-icon`]:{marginBottom:ue.margin,[Me]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${Ae}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${Ae}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${Ae}-disabled`]:{cursor:"not-allowed",[`p${Ae}-drag-icon ${Me},
|
|
p${Ae}-text,
|
|
p${Ae}-hint
|
|
`]:{color:ue.colorTextDisabled}}}}}},En=ue=>{const{componentCls:Ae,antCls:Me,iconCls:He,fontSize:Qe,lineHeight:tt}=ue,Ke=`${Ae}-list-item`,We=`${Ke}-actions`,It=`${Ke}-action`,Mt=Math.round(Qe*tt);return{[`${Ae}-wrapper`]:{[`${Ae}-list`]:Object.assign(Object.assign({},(0,en.dF)()),{lineHeight:ue.lineHeight,[Ke]:{position:"relative",height:ue.lineHeight*Qe,marginTop:ue.marginXS,fontSize:Qe,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${Ke}-name`]:Object.assign(Object.assign({},en.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:tt,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[We]:{[It]:{opacity:0},[`${It}${Me}-btn-sm`]:{height:Mt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${It}:focus-visible,
|
|
&.picture ${It}
|
|
`]:{opacity:1},[He]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${He}`]:{color:ue.colorText}},[`${Ae}-icon ${He}`]:{color:ue.colorTextDescription,fontSize:Qe},[`${Ke}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:Qe+ue.paddingXS,fontSize:Qe,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ke}:hover ${It}`]:{opacity:1,color:ue.colorText},[`${Ke}-error`]:{color:ue.colorError,[`${Ke}-name, ${Ae}-icon ${He}`]:{color:ue.colorError},[We]:{[`${He}, ${He}:hover`]:{color:ue.colorError},[It]:{opacity:1}}},[`${Ae}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},xn=re(36237),un=re(1950);const Nn=new xn.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yn=new xn.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Wn=ue=>{const{componentCls:Ae}=ue,Me=`${Ae}-animate-inline`;return[{[`${Ae}-wrapper`]:{[`${Me}-appear, ${Me}-enter, ${Me}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Me}-appear, ${Me}-enter`]:{animationName:Nn},[`${Me}-leave`]:{animationName:Yn}}},{[`${Ae}-wrapper`]:(0,un.J$)(ue)},Nn,Yn]},na=re(30071),Jn=re(64993);const Le=ue=>{const{componentCls:Ae,iconCls:Me,uploadThumbnailSize:He,uploadProgressOffset:Qe}=ue,tt=`${Ae}-list`,Ke=`${tt}-item`;return{[`${Ae}-wrapper`]:{[`
|
|
${tt}${tt}-picture,
|
|
${tt}${tt}-picture-card,
|
|
${tt}${tt}-picture-circle
|
|
`]:{[Ke]:{position:"relative",height:He+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ke}-thumbnail`]:Object.assign(Object.assign({},en.vS),{width:He,height:He,lineHeight:`${He+ue.paddingSM}px`,textAlign:"center",flex:"none",[Me]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ke}-progress`]:{bottom:Qe,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:He+ue.paddingXS}},[`${Ke}-error`]:{borderColor:ue.colorError,[`${Ke}-thumbnail ${Me}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:ue.colorError}}},[`${Ke}-uploading`]:{borderStyle:"dashed",[`${Ke}-name`]:{marginBottom:Qe}}},[`${tt}${tt}-picture-circle ${Ke}`]:{[`&, &::before, ${Ke}-thumbnail`]:{borderRadius:"50%"}}}}},we=ue=>{const{componentCls:Ae,iconCls:Me,fontSizeLG:He,colorTextLightSolid:Qe}=ue,tt=`${Ae}-list`,Ke=`${tt}-item`,We=ue.uploadPicCardSize;return{[`
|
|
${Ae}-wrapper${Ae}-picture-card-wrapper,
|
|
${Ae}-wrapper${Ae}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,en.dF)()),{display:"inline-block",width:"100%",[`${Ae}${Ae}-select`]:{width:We,height:We,marginInlineEnd:ue.marginXS,marginBottom:ue.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:ue.colorFillAlter,border:`${ue.lineWidth}px dashed ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,cursor:"pointer",transition:`border-color ${ue.motionDurationSlow}`,[`> ${Ae}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ae}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${tt}${tt}-picture-card, ${tt}${tt}-picture-circle`]:{[`${tt}-item-container`]:{display:"inline-block",width:We,height:We,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ke]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${ue.paddingXS*2}px)`,height:`calc(100% - ${ue.paddingXS*2}px)`,backgroundColor:ue.colorBgMask,opacity:0,transition:`all ${ue.motionDurationSlow}`,content:'" "'}},[`${Ke}:hover`]:{[`&::before, ${Ke}-actions`]:{opacity:1}},[`${Ke}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${Me}-eye, ${Me}-download, ${Me}-delete`]:{zIndex:10,width:He,margin:`0 ${ue.marginXXS}px`,fontSize:He,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ke}-actions, ${Ke}-actions:hover`]:{[`${Me}-eye, ${Me}-download, ${Me}-delete`]:{color:new Jn.C(Qe).setAlpha(.65).toRgbString(),"&:hover":{color:Qe}}},[`${Ke}-thumbnail, ${Ke}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ke}-name`]:{display:"none",textAlign:"center"},[`${Ke}-file + ${Ke}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${Ke}-uploading`]:{[`&${Ke}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${Me}-eye, ${Me}-download, ${Me}-delete`]:{display:"none"}},[`${Ke}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Ae}-wrapper${Ae}-picture-circle-wrapper`]:{[`${Ae}${Ae}-select`]:{borderRadius:"50%"}}}};var gt=ue=>{const{componentCls:Ae}=ue;return{[`${Ae}-rtl`]:{direction:"rtl"}}};const Ot=ue=>{const{componentCls:Ae,colorTextDisabled:Me}=ue;return{[`${Ae}-wrapper`]:Object.assign(Object.assign({},(0,en.Wf)(ue)),{[Ae]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ae}-select`]:{display:"inline-block"},[`${Ae}-disabled`]:{color:Me,cursor:"not-allowed"}})}};var Ft=(0,pn.Z)("Upload",ue=>{const{fontSizeHeading3:Ae,fontSize:Me,lineHeight:He,lineWidth:Qe,controlHeightLG:tt}=ue,Ke=Math.round(Me*He),We=(0,Fn.TS)(ue,{uploadThumbnailSize:Ae*2,uploadProgressOffset:Ke/2+Qe,uploadPicCardSize:tt*2.55});return[Ot(We),an(We),Le(We),we(We),En(We),Wn(We),gt(We),(0,fn.Z)(We)]},ue=>({actionsColor:ue.colorTextDescription})),ln=function(ue,Ae,Me,He){function Qe(tt){return tt instanceof Me?tt:new Me(function(Ke){Ke(tt)})}return new(Me||(Me=Promise))(function(tt,Ke){function We(Ee){try{Mt(He.next(Ee))}catch(on){Ke(on)}}function It(Ee){try{Mt(He.throw(Ee))}catch(on){Ke(on)}}function Mt(Ee){Ee.done?tt(Ee.value):Qe(Ee.value).then(We,It)}Mt((He=He.apply(ue,Ae||[])).next())})};const Wt=`__LIST_IGNORE_${Date.now()}__`,Qt=(ue,Ae)=>{const{fileList:Me,defaultFileList:He,onRemove:Qe,showUploadList:tt=!0,listType:Ke="text",onPreview:We,onDownload:It,onChange:Mt,onDrop:Ee,previewFile:on,disabled:tn,locale:hn,iconRender:Bn,isImageUrl:qe,progress:ht,prefixCls:Nt,className:ft,type:Kt="select",children:Jt,style:_t,itemRender:Sn,maxCount:Pn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=ue,da=ae.useContext(nt.Z),Kn=tn!=null?tn:da,[$n,ta]=(0,Oe.Z)(He||[],{value:Me,postState:Ut=>Ut!=null?Ut:[]}),[ia,ga]=ae.useState("drop"),aa=ae.useRef(null);ae.useMemo(()=>{const Ut=Date.now();(Me||[]).forEach((sn,bn)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Ut}_${bn}__`)})},[Me]);const ea=(Ut,sn,bn)=>{let rn=(0,Pe.Z)(sn),cn=!1;Pn===1?rn=rn.slice(-1):Pn&&(cn=rn.length>Pn,rn=rn.slice(0,Pn)),(0,xe.flushSync)(()=>{ta(rn)});const Hn={file:Ut,fileList:rn};bn&&(Hn.event=bn),(!cn||rn.some(wn=>wn.uid===Ut.uid))&&(0,xe.flushSync)(()=>{Mt==null||Mt(Hn)})},fa=(Ut,sn)=>ln(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:rn}=ue;let cn=Ut;if(bn){const Hn=yield bn(Ut,sn);if(Hn===!1)return!1;if(delete Ut[Wt],Hn===Wt)return Object.defineProperty(Ut,Wt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(cn=Hn)}return rn&&(cn=yield rn(cn)),cn}),Zt=Ut=>{const sn=Ut.filter(cn=>!cn.file[Wt]);if(!sn.length)return;const bn=sn.map(cn=>kt(cn.file));let rn=(0,Pe.Z)($n);bn.forEach(cn=>{rn=bt(cn,rn)}),bn.forEach((cn,Hn)=>{let wn=cn;if(sn[Hn].parsedFile)cn.status="uploading";else{const{originFileObj:ha}=cn;let ua;try{ua=new File([ha],ha.name,{type:ha.type})}catch(wa){ua=new Blob([ha],{type:ha.type}),ua.name=ha.name,ua.lastModifiedDate=new Date,ua.lastModified=new Date().getTime()}ua.uid=cn.uid,wn=ua}ea(wn,rn)})},On=(Ut,sn,bn)=>{try{typeof Ut=="string"&&(Ut=JSON.parse(Ut))}catch(Hn){}if(!Ht(sn,$n))return;const rn=kt(sn);rn.status="done",rn.percent=100,rn.response=Ut,rn.xhr=bn;const cn=bt(rn,$n);ea(rn,cn)},Mn=(Ut,sn)=>{if(!Ht(sn,$n))return;const bn=kt(sn);bn.status="uploading",bn.percent=Ut.percent;const rn=bt(bn,$n);ea(bn,rn,Ut)},Un=(Ut,sn,bn)=>{if(!Ht(bn,$n))return;const rn=kt(bn);rn.error=Ut,rn.response=sn,rn.status="error";const cn=bt(rn,$n);ea(rn,cn)},Xn=Ut=>{let sn;Promise.resolve(typeof Qe=="function"?Qe(Ut):Qe).then(bn=>{var rn;if(bn===!1)return;const cn=Et(Ut,$n);cn&&(sn=Object.assign(Object.assign({},Ut),{status:"removed"}),$n==null||$n.forEach(Hn=>{const wn=sn.uid!==void 0?"uid":"name";Hn[wn]===sn[wn]&&!Object.isFrozen(Hn)&&(Hn.status="removed")}),(rn=aa.current)===null||rn===void 0||rn.abort(sn),ea(sn,cn))})},ra=Ut=>{ga(Ut.type),Ut.type==="drop"&&(Ee==null||Ee(Ut))};ae.useImperativeHandle(Ae,()=>({onBatchStart:Zt,onSuccess:On,onProgress:Mn,onError:Un,fileList:$n,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:An}=ae.useContext(Ze.E_),Gn=va("upload",Nt),la=Object.assign(Object.assign({onBatchStart:Zt,onError:Un,onProgress:Mn,onSuccess:On},ue),{data:oa,multiple:Qn,action:qn,accept:ca,supportServerRender:Sa,prefixCls:Gn,disabled:Kn,beforeUpload:fa,onChange:void 0});delete la.className,delete la.style,(!Jt||Kn)&&delete la.id;const[ya,La]=Ft(Gn),[ba]=(0,mt.Z)("Upload",St.Z.Upload),{showRemoveIcon:xt,showPreviewIcon:ct,showDownloadIcon:pt,removeIcon:Ct,previewIcon:mn,downloadIcon:zn}=typeof tt=="boolean"?{}:tt,Rn=(Ut,sn)=>tt?ae.createElement(Xt,{prefixCls:Gn,listType:Ke,items:$n,previewFile:on,onPreview:We,onDownload:It,onRemove:Xn,showRemoveIcon:!Kn&&xt,showPreviewIcon:ct,showDownloadIcon:pt,removeIcon:Ct,previewIcon:mn,downloadIcon:zn,iconRender:Bn,locale:Object.assign(Object.assign({},ba),hn),isImageUrl:qe,progress:ht,appendAction:Ut,appendActionVisible:sn,itemRender:Sn,disabled:Kn}):Ut,Dn=Ie()(`${Gn}-wrapper`,ft,Pa,La,An==null?void 0:An.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:Ke==="picture-card",[`${Gn}-picture-circle-wrapper`]:Ke==="picture-circle"}),jn=Object.assign(Object.assign({},An==null?void 0:An.style),_t);if(Kt==="drag"){const Ut=Ie()(La,Gn,`${Gn}-drag`,{[`${Gn}-drag-uploading`]:$n.some(sn=>sn.status==="uploading"),[`${Gn}-drag-hover`]:ia==="dragover",[`${Gn}-disabled`]:Kn,[`${Gn}-rtl`]:pa==="rtl"});return ya(ae.createElement("span",{className:Dn},ae.createElement("div",{className:Ut,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ae.createElement(ye,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ae.createElement("div",{className:`${Gn}-drag-container`},Jt))),Rn()))}const kn=Ie()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Kn}),Vn=(Ut=>ae.createElement("div",{className:kn,style:Ut},ae.createElement(ye,Object.assign({},la,{ref:aa}))))(Jt?void 0:{display:"none"});return ya(Ke==="picture-card"||Ke==="picture-circle"?ae.createElement("span",{className:Dn},Rn(Vn,!!Jt)):ae.createElement("span",{className:Dn},Vn,Rn()))};var _n=ae.forwardRef(Qt),at=function(ue,Ae){var Me={};for(var He in ue)Object.prototype.hasOwnProperty.call(ue,He)&&Ae.indexOf(He)<0&&(Me[He]=ue[He]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,He=Object.getOwnPropertySymbols(ue);Qe<He.length;Qe++)Ae.indexOf(He[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ue,He[Qe])&&(Me[He[Qe]]=ue[He[Qe]]);return Me},Tn=ae.forwardRef((ue,Ae)=>{var{style:Me,height:He}=ue,Qe=at(ue,["style","height"]);return ae.createElement(_n,Object.assign({ref:Ae},Qe,{type:"drag",style:Object.assign(Object.assign({},Me),{height:He})}))});const Zn=_n;Zn.Dragger=Tn,Zn.LIST_IGNORE=Wt;var Cn=Zn}}]);
|