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
415 KiB
150 lines
415 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[1582],{26227:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ie=We,me=oe(7657),ye=function(De,Ze){return Se.createElement(me.Z,(0,ne.Z)({},De,{ref:Ze,icon:Ie}))},le=Se.forwardRef(ye),_e=le},41464:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ie=We,me=oe(7657),ye=function(De,Ze){return Se.createElement(me.Z,(0,ne.Z)({},De,{ref:Ze,icon:Ie}))},le=Se.forwardRef(ye),_e=le},61481:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Ie=We,me=oe(7657),ye=function(De,Ze){return Se.createElement(me.Z,(0,ne.Z)({},De,{ref:Ze,icon:Ie}))},le=Se.forwardRef(ye),_e=le},33853:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ie=We,me=oe(7657),ye=function(De,Ze){return Se.createElement(me.Z,(0,ne.Z)({},De,{ref:Ze,icon:Ie}))},le=Se.forwardRef(ye),_e=le},12893:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),We={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=We,me=oe(7657),ye=function(De,Ze){return Se.createElement(me.Z,(0,ne.Z)({},De,{ref:Ze,icon:Ie}))},le=Se.forwardRef(ye),_e=le},32134:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),We={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=We,me=oe(7657),ye=function(De,Ze){return Se.createElement(me.Z,(0,ne.Z)({},De,{ref:Ze,icon:Ie}))},le=Se.forwardRef(ye),_e=le},38819:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return _e}});var ne=oe(54476),Se=oe(59301),We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Ie=We,me=oe(7657),ye=function(De,Ze){return Se.createElement(me.Z,(0,ne.Z)({},De,{ref:Ze,icon:Ie}))},le=Se.forwardRef(ye),_e=le},27431:function(ze,dt){"use strict";dt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},87851:function(){"use strict";function ze(ae,a,y,E){y===void 0&&(y=0),E===void 0&&(E=1/0),this._name=ae,this._defaultValue=a,this._minimum=y,this._maximum=E}Object.defineProperty(ze.prototype,"name",{get:function(){return this._name},set:function(ae){if(typeof ae!="string"||ae==="")throw new Error("Shape name must be a valid string.");this._name=ae}}),Object.defineProperty(ze.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("The default value must be a real number, not: "+ae);this._defaultValue=ae}}),Object.defineProperty(ze.prototype,"minimum",{get:function(){return this._minimum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Minimum must be a real number, not: "+ae);this._minimum=ae}}),Object.defineProperty(ze.prototype,"maximum",{get:function(){return this._maximum},set:function(ae){if(typeof ae!="number"||isNaN(ae))throw new Error("Maximum must be a real number, not: "+ae);this._maximum=ae}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(ae,a){var y=go.Shape._FigureParameters[ae];return y?y[a]:null},go.Shape.setFigureParameter=function(ae,a,y){if(!(y instanceof ze))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+y);if(y.defaultValue<y.minimum||y.defaultValue>y.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+y.defaultValue);var E=go.Shape._FigureParameters[ae];E||(E=[],go.Shape._FigureParameters[ae]=E),E[a]=y};var dt=[];function oe(ae,a){var y=dt.pop();return y===void 0?new go.Point(ae,a):(y.x=ae,y.y=a,y)}function ne(){var ae=dt.pop();return ae===void 0?new go.Point:ae}function Se(ae){dt.push(ae)}function We(ae,a,y,E,b,x,z,ee,te){te||(te=new go.Point);var re=ae-y,ie=b-z,ge=NaN,ce=NaN;if(re===0)if(ie===0)ae===y&&(ge=ae,ce=a);else{var se=(x-ee)/ie,Be=x-se*b;ge=ae,ce=se*ge+Be}else if(ie===0){var Ge=(a-E)/re,St=a-Ge*ae;ge=b,ce=Ge*ge+St}else{var Ge=(a-E)/re,se=(x-ee)/ie,St=a-Ge*ae,Be=x-se*b;ge=(Be-St)/(Ge-se),ce=Ge*ge+St}return te.x=ge,te.y=ce,te}function Ie(ae,a,y,E,b,x,z,ee,te,re,ie,ge,ce,se){var Be=1-te,Ge=te,St=ae*Be+y*Ge,Mt=a*Be+E*Ge,Wt=y*Be+b*Ge,he=E*Be+x*Ge,xe=b*Be+z*Ge,Ee=x*Be+ee*Ge,Qe=St*Be+Wt*Ge,it=Mt*Be+he*Ge,He=Wt*Be+xe*Ge,Xe=he*Be+Ee*Ge,Ye=Qe*Be+He*Ge,Pt=it*Be+Xe*Ge;re.x=St,re.y=Mt,ie.x=Qe,ie.y=it,ge.x=Ye,ge.y=Pt,ce.x=He,ce.y=Xe,se.x=xe,se.y=Ee}var me=new go.Spot(.156,.156),ye=new go.Spot(.844,.844),le=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new ze("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=5),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=new go.Geometry().add(new go.PathFigure(E,0,!0).add(new go.PathSegment(go.PathSegment.Line,a-E,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)).add(new go.PathSegment(go.PathSegment.Line,a,y-E)).add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,y-b,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,E,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,b,y,0,y-b)).add(new go.PathSegment(go.PathSegment.Line,0,E)).add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()));return b>1&&(x.spot1=new go.Spot(0,0,b,b),x.spot2=new go.Spot(1,1,-b,-b)),x}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,y).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=y/2,E.endX=a,E.endY=y/2,E}),go.Shape.defineFigureGenerator("LineV",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a/2,E.startY=0,E.endX=a/2,E.endY=y,E}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y/2,!1).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("XLine",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LineRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.25*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)))}),go.Shape.defineFigureGenerator("LineDown",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.25*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Line,a,.25*y)))}),go.Shape.defineFigureGenerator("LineLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.75*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,y)))}),go.Shape.defineFigureGenerator("LineUp",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.75*y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,a,.75*y)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(ae,a,y){var E=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(E*a,(1-E)*y,!1).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Move,0,y/2)).add(new go.PathSegment(go.PathSegment.Line,a,y/2)).add(new go.PathSegment(go.PathSegment.Move,a/2,0)).add(new go.PathSegment(go.PathSegment.Line,a/2,y)))}),go.Shape.defineFigureGenerator("CircleLine",function(ae,a,y){var E=a/2,b=new go.Geometry().add(new go.PathFigure(a,a/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,E,E,E,E).close()));return b.spot1=me,b.spot2=ye,b.defaultStretch=go.GraphObject.Uniform,b}),go.Shape.defineFigureGenerator("Line1",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=0,E.startY=0,E.endX=a,E.endY=y,E}),go.Shape.defineFigureGenerator("Line2",function(ae,a,y){var E=new go.Geometry(go.Geometry.Line);return E.startX=a,E.startY=0,E.endX=0,E.endY=y,E}),go.Shape.defineFigureGenerator("Curve1",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,le*a,0,a,(1-le)*y)))}),go.Shape.defineFigureGenerator("Curve2",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,a,y,0,le*y,(1-le)*a,y)))}),go.Shape.defineFigureGenerator("Curve3",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,le*y,le*a,y)))}),go.Shape.defineFigureGenerator("Curve4",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,y,(1-le)*a,0,0,(1-le)*y)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(a,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new ze("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.1:E<-1?E=-1:E>1&&(E=1);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a:E>a&&(E=a);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("Trapezoid1",0,new ze("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=.2:E<.5?E=-.5:E>.5&&(E=.5);var b=Math.abs(E)*a;if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new ze("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=20:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())):x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}}),go.Shape.setFigureParameter("ManualOperation",0,new ze("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)?E=10:E<-a?E=-a/2:E>a&&(E=a/2);var b=Math.abs(E);if(E===0){var x=new go.Geometry(go.Geometry.Rectangle);return x.startX=0,x.startY=0,x.endX=a,x.endY=y,x}else{var x=new go.Geometry;return E>0?x.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a-b,y)).add(new go.PathSegment(go.PathSegment.Line,b,y).close())):x.add(new go.PathFigure(b,0).add(new go.PathSegment(go.PathSegment.Line,a-b,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close())),b<a/2&&x.setSpots(b/a,0,(a-b)/a,1),x}});var _e=[];function Ae(){var ae=_e.pop();return ae===void 0?[]:ae}function De(ae){ae.length=0,_e.push(ae)}function Ze(ae){for(var a=Ae(),y=.5,E=.5,b=Math.PI*1.5,x=0,z=0;z<ae;z++)x=2*Math.PI/ae*z+b,a[z]=new go.Point(E+y*Math.cos(x),E+y*Math.sin(x));return a.push(a[0]),a}function ke(ae){var a=Re(ae),y=Ae();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 De(a),y}function Re(ae){for(var a=Ze(ae),y=Ae(),E=Math.floor(a.length/2),b=a.length-1,x=ae%2===0?2:1,z=0;z<b;z++){var ee=a[z],te=a[z+1],re=a[(E+z-1)%b],ie=a[(E+z+x)%b];y[z*2]=ee,y[z*2+1]=We(ee.x,ee.y,re.x,re.y,te.x,te.y,ie.x,ie.y,new go.Point)}return y[y.length]=y[0],De(a),y}go.Shape.defineFigureGenerator("Pentagon",function(ae,a,y){var E=Ze(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()),De(E),b.spot1=new go.Spot(.2,.22),b.spot2=new go.Spot(.8,.9),b}),go.Shape.defineFigureGenerator("Hexagon",function(ae,a,y){var E=Ze(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()),De(E),b.spot1=new go.Spot(.07,.25),b.spot2=new go.Spot(.93,.75),b}),go.Shape.defineFigureGenerator("Heptagon",function(ae,a,y){var E=Ze(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()),De(E),b.spot1=new go.Spot(.2,.15),b.spot2=new go.Spot(.8,.85),b}),go.Shape.defineFigureGenerator("Octagon",function(ae,a,y){var E=Ze(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()),De(E),b.spot1=new go.Spot(.15,.15),b.spot2=new go.Spot(.85,.85),b}),go.Shape.defineFigureGenerator("Nonagon",function(ae,a,y){var E=Ze(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()),De(E),b.spot1=new go.Spot(.17,.13),b.spot2=new go.Spot(.82,.82),b}),go.Shape.defineFigureGenerator("Decagon",function(ae,a,y){var E=Ze(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()),De(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("Dodecagon",function(ae,a,y){var E=Ze(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()),De(E),b.spot1=new go.Spot(.16,.16),b.spot2=new go.Spot(.84,.84),b}),go.Shape.defineFigureGenerator("FivePointedStar",function(ae,a,y){var E=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()),De(E),b.spot1=new go.Spot(.266,.333),b.spot2=new go.Spot(.733,.733),b}),go.Shape.defineFigureGenerator("SixPointedStar",function(ae,a,y){var E=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()),De(E),b.spot1=new go.Spot(.17,.25),b.spot2=new go.Spot(.83,.75),b}),go.Shape.defineFigureGenerator("SevenPointedStar",function(ae,a,y){var E=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()),De(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("EightPointedStar",function(ae,a,y){var E=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()),De(E),b.spot1=new go.Spot(.25,.25),b.spot2=new go.Spot(.75,.75),b}),go.Shape.defineFigureGenerator("NinePointedStar",function(ae,a,y){var E=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()),De(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.666),b}),go.Shape.defineFigureGenerator("TenPointedStar",function(ae,a,y){var E=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()),De(E),b.spot1=new go.Spot(.281,.261),b.spot2=new go.Spot(.723,.748),b}),go.Shape.defineFigureGenerator("FivePointedBurst",function(ae,a,y){var E=ke(5),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.222,.277),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("SixPointedBurst",function(ae,a,y){var E=ke(6),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.17,.222),b.spot2=new go.Spot(.833,.777),b}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(ae,a,y){var E=ke(7),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("EightPointedBurst",function(ae,a,y){var E=ke(8),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("NinePointedBurst",function(ae,a,y){var E=ke(9),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.defineFigureGenerator("TenPointedBurst",function(ae,a,y){var E=ke(10),b=new go.Geometry,x=new go.PathFigure(E[0].x*a,E[0].y*y,!0);b.add(x);for(var z=1;z<E.length;z+=3)x.add(new go.PathSegment(go.PathSegment.Bezier,E[z+2].x*a,E[z+2].y*y,E[z].x*a,E[z].y*y,E[z+1].x*a,E[z+1].y*y));return x.segments.last().close(),De(E),b.spot1=new go.Spot(.222,.222),b.spot2=new go.Spot(.777,.777),b}),go.Shape.setFigureParameter("FramedRectangle",0,new ze("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new ze("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=8),isNaN(b)&&(b=8);var x=new go.Geometry,z=new go.PathFigure(0,0,!0);return x.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E<a/2&&b<y/2&&(z.add(new go.PathSegment(go.PathSegment.Move,E,b)),z.add(new go.PathSegment(go.PathSegment.Line,E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,y-b)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,b).close())),x.setSpots(0,0,1,1,E,b,-E,-b),x}),go.Shape.setFigureParameter("Ring",0,new ze("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=8);var b=a/2,x=new go.Geometry,z=new go.PathFigure(a,a/2,!0);x.add(z),z.add(new go.PathSegment(go.PathSegment.Arc,0,360,b,b,b,b).close());var ee=Math.max(b-E,0);return ee>0&&(z.add(new go.PathSegment(go.PathSegment.Move,a/2+ee,a/2)),z.add(new go.PathSegment(go.PathSegment.Arc,0,-360,b,b,ee,ee).close())),x.spot1=me,x.spot2=ye,x.defaultStretch=go.GraphObject.Uniform,x}),go.Shape.defineFigureGenerator("Cloud",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.08034461*a,.1944299*y,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*a,.05349299*y,-.09239631*a,.07836421*y,.1406031*a,-.0542823*y)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*a,.074219*y,.2450511*a,-.00697547*y,.3776197*a,-.01112067*y)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*a,.07004196*y,.4539471*a,0,.6066018*a,-.02526587*y)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*a,.08370865*y,.6914277*a,-.01904177*y,.8921095*a,-.01220843*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*a,.3194596*y,1.036446*a,.04105738*y,1.020377*a,.3022052*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*a,.562044*y,1.04448*a,.360238*y,.992256*a,.5219009*y)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*a,.8217117*y,1.032337*a,.5771781*y,1.018411*a,.8120651*y)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*a,.9156953*y,1.028411*a,.9571472*y,.8556702*a,1.052487*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*a,.9310455*y,.7431877*a,1.009325*y,.5624123*a,1.021761*y)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*a,.9344623*y,.4820677*a,1.031761*y,.3030112*a,1.002796*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.870098*y,.2329994*a,1.01518*y,.03213784*a,1.01518*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*a,.6545475*y,-.02812061*a,.9032597*y,-.01205169*a,.6835638*y)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*a,.4265613*y,-.01812061*a,.6089503*y,-.00606892*a,.4555777*y)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*a,.1944299*y,-.01606892*a,.3892545*y,-.01205169*a,.1944299*y))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(ae,a,y){var E=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(E*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y)).add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,E*y).close())).setSpots(E/2,E/2,1-E/2,1-E/2)}),go.Shape.setFigureParameter("Pie",0,new ze("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new ze("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(ae,a,y){var E=ae?ae.parameter1:NaN,b=ae?ae.parameter2:NaN;isNaN(E)&&(E=0),isNaN(b)&&(b=315);var x=E%360;x<0&&(x+=360);var z=b%360,ee=Math.min(a,y)/2;return new go.Geometry().add(new go.PathFigure(ee,ee).add(new go.PathSegment(go.PathSegment.Arc,x,z,ee,ee,ee,ee).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(ae,a,y){var E=le/Math.SQRT2*.5,b=Math.SQRT2/2,x=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,b*a,x*y,a,(1-E)*y,(b+E)*a,(x+E)*y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()))}),go.Shape.setFigureParameter("ThickCross",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThinCross",0,new ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=Math.min(E,a)/2,x=a/2,z=y/2;return new go.Geometry().add(new go.PathFigure(x-b,0,!0).add(new go.PathSegment(go.PathSegment.Line,x+b,0)).add(new go.PathSegment(go.PathSegment.Line,x+b,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z-b)).add(new go.PathSegment(go.PathSegment.Line,a,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,z+b)).add(new go.PathSegment(go.PathSegment.Line,x+b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,y)).add(new go.PathSegment(go.PathSegment.Line,x-b,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z+b)).add(new go.PathSegment(go.PathSegment.Line,0,z-b)).add(new go.PathSegment(go.PathSegment.Line,x-b,z-b).close()))}),go.Shape.setFigureParameter("ThickX",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(ae,a,y){var E=ae?ae.parameter1:NaN;if((isNaN(E)||E<0)&&(E=30),a===0||y===0){var b=new go.Geometry(go.Geometry.Rectangle);return b.startX=0,b.startY=0,b.endX=a,b.endY=y,b}else{var x=a/2,z=y/2,ee=Math.atan2(y,a),te=E-Math.min(Math.cos(ee)*E/2,x),re=E-Math.min(Math.sin(ee)*E/2,z),b=new go.Geometry,ie=new go.PathFigure(te,0,!0);return b.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,x,.2*y)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,0)),ie.add(new go.PathSegment(go.PathSegment.Line,a,re)),ie.add(new go.PathSegment(go.PathSegment.Line,.8*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,a,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,a-te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,x,.8*y)),ie.add(new go.PathSegment(go.PathSegment.Line,te,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y-re)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,0,re).close()),b}}),go.Shape.setFigureParameter("ThinX",0,new ze("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=10);var b=new go.Geometry,x=new go.PathFigure(.1*a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.1*y).close()),b}),go.Shape.setFigureParameter("SquareIBeam",0,new ze("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5+E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,(1-E)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(.5-E/2)*a,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y).close()),b}),go.Shape.setFigureParameter("RoundedIBeam",0,new ze("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.5);var b=new go.Geometry,x=new go.PathFigure(0,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,y,Math.abs(1-E)*a,.25*y,Math.abs(1-E)*a,.75*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b}),go.Shape.defineFigureGenerator("HalfEllipse",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,le*a,0,a,(.5-le/2)*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,(.5+le/2)*y,le*a,y).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,y,a,0,a,y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*a,.75*y,.5*a,.25*y).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,.1*a,.8*y,0,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,0,0,.45*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.55*a,0,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.5*y,.9*a,.8*y).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*a,.01*y)).add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.6*a,.2*y,a,.25*y)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.7*y,a,.8*y,.6*a,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,.5*a,.75*y,.55*a,.95*y)).add(new go.PathSegment(go.PathSegment.Line,.25*a,y)).add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.7*y,.45*a,.95*y,.5*a,.75*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.4*a,.8*y,0,.8*y)).add(new go.PathSegment(go.PathSegment.Bezier,.49*a,.01*y,0,.25*y,.4*a,.2*y).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.4*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.15*a,y,.5*a,.75*y,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.6*y,.55*a,.95*y,.5*a,.75*y));var x=.2,z=.3,ee=0,te=x*le;return b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.65*a,.36771243*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z+.05)*a,(.5-te+ee-.02)*y)),x=.2,z=0,ee=-.3,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+x+z)*a,(.5+ee)*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z)*a,(.5-te+ee)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-te+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),x=.2,z=-.3,ee=0,te=x*le,b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5-x+ee)*y,(1-.5+x+z-.05)*a,(.5-te+ee-.02)*y,(.5+te+z)*a,(.5-x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5-x+z)*a,(.5+ee)*y,(.5-te+z)*a,(.5-x+ee)*y,(.5-x+z)*a,(.5-te+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,(.5+z)*a,(.5+x+ee)*y,(.5-x+z)*a,(.5+te+ee)*y,(.5-te+z)*a,(.5+x+ee)*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.6*y,(.5+te+z)*a,(.5+x+ee)*y,(.5+x+z)*a,(.5+te+ee)*y).close()),E.setSpots(.06,.33,.93,.68),E}),go.Shape.defineFigureGenerator("YinYang",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*.5,a*.5,a*.5,a*.5)),b.add(new go.PathSegment(go.PathSegment.Arc,90,-180,a*.5,a*.75,a*.25,a*.25)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,a*.5,a*.25,a*.25,a*.25));var x=.1,z=.5,ee=.25;return b.add(new go.PathSegment(go.PathSegment.Move,(z+x)*a,ee*y)),b.add(new go.PathSegment(go.PathSegment.Arc,0,-360,a*z,y*ee,x*a,x*a).close()),b=new go.PathFigure(a*.5,0,!1),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*.5,a*.5,a*.5,a*.5)),ee=.75,b=new go.PathFigure((z+x)*a,ee*y,!0),E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,0,360,a*z,y*ee,x*a,x*a).close()),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Peace",function(ae,a,y){var E=.8535533905932737,b=.5*a,x=.5*y;return new go.Geometry().add(new go.PathFigure(b,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,b,x,b,x)).add(new go.PathSegment(go.PathSegment.Line,b,y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,E*y)).add(new go.PathSegment(go.PathSegment.Move,b,x)).add(new go.PathSegment(go.PathSegment.Line,E*a,E*y)))}),go.Shape.defineFigureGenerator("NotAllowed",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure(z*a,(ee-x)*y);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),x=.4,b=le*.4;var re=ne(),ie=ne(),ge=ne(),ce=ne();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.42,re,ie,ge,ce,ce);var se=ne(),Be=ne(),Ge=ne();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.58,ce,ce,Ge,se,Be);var St=ne(),Mt=ne(),Wt=ne();Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.42,St,Mt,Wt,ce,ce);var he=ne(),xe=ne(),Ee=ne();return Ie(z,ee+x,z-b,ee+x,z-x,ee+b,z-x,ee,.58,ce,ce,Ee,he,xe),te.add(new go.PathSegment(go.PathSegment.Move,Ee.x*a,Ee.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,he.x*a,he.y*y,xe.x*a,xe.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ge.x*a,ge.y*y,re.x*a,re.y*y,ie.x*a,ie.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ee.x*a,Ee.y*y).close()),te.add(new go.PathSegment(go.PathSegment.Move,Wt.x*a,Wt.y*y)),te.add(new go.PathSegment(go.PathSegment.Line,Ge.x*a,Ge.y*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,se.x*a,se.y*y,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,Wt.x*a,Wt.y*y,St.x*a,St.y*y,Mt.x*a,Mt.y*y).close()),Se(re),Se(ie),Se(ge),Se(ce),Se(se),Se(Be),Se(Ge),Se(St),Se(Mt),Se(Wt),Se(he),Se(xe),Se(Ee),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("Fragile",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*a,0)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.29*a,.33*y)).add(new go.PathSegment(go.PathSegment.Line,.35*a,.25*y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.15*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.5*y,a,.25*y,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,y)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.5*y,0,.25*y).close()))}),go.Shape.setFigureParameter("HourGlass",0,new ze("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=30),E>a&&(E=a);var b=(a-E)/2,x=b+E;return new go.Geometry().add(new go.PathFigure(x,.5*y).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)).add(new go.PathSegment(go.PathSegment.Line,b,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,a,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,.55*y).add(new go.PathSegment(go.PathSegment.Line,.6*a,0)).add(new go.PathSegment(go.PathSegment.Line,.3*a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,a,.45*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.55*y).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne(),ce=new go.PathFigure((z-x)*a,ee*y,!1);E.add(ce),ce.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,re,te,te),ce.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y));var se=oe(re.x,re.y);Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.56,te,te,re,ie,ge);var Be=oe(re.x,re.y);ce.add(new go.PathSegment(go.PathSegment.Line,(se.x*.1+.95*.9)*a,se.y*.1*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,se.y*.1*y)),ce.add(new go.PathSegment(go.PathSegment.Line,.85*a,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,0)),ce.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,.15*y)),ce.add(new go.PathSegment(go.PathSegment.Line,(Be.x*.1+.9)*a,(Be.y*.1+.05*.9)*y)),ce.add(new go.PathSegment(go.PathSegment.Line,Be.x*a,Be.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),x=.35,b=le*.35;var Ge=new go.PathFigure(z*a,(ee-x)*y,!1);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y));var St=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(St),Se(te),Se(re),Se(ie),Se(ge),Se(se),Se(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(ae,a,y){var E=new go.Geometry,b=.375,x=0,z=-.125,ee=b*le,te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y,(.5+ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.475+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y,(.5-ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.425*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.475*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.9*y)),te.add(new go.PathSegment(go.PathSegment.Line,.575*a,.85*y)),te.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y).close()),b=.325,x=0,z=-.125,ee=b*le;var te=new go.PathFigure((1-.5+b+x)*a,(.5+z)*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5+b+z)*y,(.5+b+x)*a,(.5+ee+z)*y,(.5+ee+x)*a,(.5+b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-b+x)*a,(.5+z)*y,(.5-ee+x)*a,(.5+b+z)*y,(.5-b+x)*a,(.5+ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5+x)*a,(.5-b+z)*y,(.5-b+x)*a,(.5-ee+z)*y,(.5-ee+x)*a,(.5-b+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+b+x)*a,(.5+z)*y,(.5+ee+x)*a,(.5-b+z)*y,(1-.5+b+x)*a,(.5-ee+z)*y));var te=new go.PathFigure((.525+x)*a,(.5+b+z)*y,!1);return E.add(te),E.spot1=new go.Spot(.232,.136),E.spot2=new go.Spot(.682,.611),E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicImplies",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(ae,a,y){var E=ae?ae.parameter1:NaN;return isNaN(E)&&(E=.2),new go.Geometry().add(new go.PathFigure((1-E)*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,(1-E)*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,E*a,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,E*a,y))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)))}),go.Shape.defineFigureGenerator("LogicAnd",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(ae,a,y){var E=new go.Geometry().add(new go.PathFigure(.5*a,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*a,.5*y,.5*a,.5*y)));return E.defaultStretch=go.GraphObject.Uniform,E}),go.Shape.defineFigureGenerator("LogicTruth",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.5*a,0)).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Move,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,0,.5*y)).add(new go.PathSegment(go.PathSegment.Move,a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y)))}),go.Shape.defineFigureGenerator("LogicForAll",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*a,y)).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*y)).add(new go.PathSegment(go.PathSegment.Line,a,.5*y)).add(new go.PathSegment(go.PathSegment.Move,0,y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(0,y,!1).add(new go.PathSegment(go.PathSegment.Line,0,E*y)).add(new go.PathSegment(go.PathSegment.Arc,180,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,a,y))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(ae,a,y){var E=.5;return new go.Geometry().add(new go.PathFigure(a,0,!1).add(new go.PathSegment(go.PathSegment.Line,a,E*y)).add(new go.PathSegment(go.PathSegment.Arc,0,180,E*a,E*y,E*a,E*y)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new ze("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new ze("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=.3);var x=(1-E)*a,z=(.5-b/2)*y,ee=(.5+b/2)*y,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=We(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.setFigureParameter("Arrow2",0,new ze("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new ze("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=30),E>a&&(E=a);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=30),b=Math.min(b,y/2);var x=a-E,z=(y-b)/2,ee=z+b,te=new go.Geometry,re=new go.PathFigure(0,z,!0);te.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x,z)),re.add(new go.PathSegment(go.PathSegment.Line,x,0)),re.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Line,x,y)),re.add(new go.PathSegment(go.PathSegment.Line,x,ee)),re.add(new go.PathSegment(go.PathSegment.Line,0,ee).close()),te.spot1=new go.Spot(0,z/y);var ie=We(0,ee/y,1,ee/y,x/a,1,1,.5,ne());return te.spot2=new go.Spot(ie.x,ie.y),Se(ie),te}),go.Shape.defineFigureGenerator("Chevron",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("DoubleArrow",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.214*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.786*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,1*y).close()),E}),go.Shape.setFigureParameter("DoubleEndArrow",0,new ze("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.3*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close());var te=We(0,.5,.3,0,0,b/y,.1,b/y,ne());return z.spot1=new go.Spot(te.x,te.y),te=We(.7,1,1,.5,0,x/y,1,x/y,te),z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new ze("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new ze("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.3*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close());var ge=We(0,.5,.3,ee/y,0,x/y,1,x/y,ne());return re.spot1=new go.Spot(ge.x,ge.y),ge=We(.7,te/y,1,.5,0,z/y,1,z/y,ge),re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("IBeamArrow",0,new ze("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(0,b/y);var te=We(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("IBeamArrow2",0,new ze("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new ze("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=40);var b=ae?ae.parameter2:NaN;isNaN(b)&&(b=100);var x=(y-E)/2,z=x+E,ee=(y-b)/2,te=ee+b;(E>y||b>y)&&(b>E?(E=E*y/b,x=(y-E)/2,z=x+E,ee=0,te=y):(x=0,z=y,ee=0,te=y));var re=new go.Geometry,ie=new go.PathFigure(a,.5*y,!0);re.add(ie),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,z)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,te)),ie.add(new go.PathSegment(go.PathSegment.Line,0,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,ee)),ie.add(new go.PathSegment(go.PathSegment.Line,.2*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ie.add(new go.PathSegment(go.PathSegment.Line,.7*a,ee).close()),re.spot1=new go.Spot(0,x/y);var ge=We(.7,te/y,1,.5,0,z/y,1,z/y,ne());return re.spot2=new go.Spot(ge.x,ge.y),Se(ge),re}),go.Shape.setFigureParameter("Pointer",0,new ze("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.1);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),b.spot1=new go.Spot(E,.35);var z=We(.2,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("RoundedPointer",0,new ze("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.3);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Bezier,0,0,E*a,.75*y,E*a,.25*y).close()),b.spot1=new go.Spot(E,.35);var z=We(0,.65,1,.65,0,1,1,.5,ne());return b.spot2=new go.Spot(z.x,z.y),Se(z),b}),go.Shape.setFigureParameter("SplitEndArrow",0,new ze("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.4);var b=(.5-E/2)*y,x=(.5+E/2)*y,z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,.3);var te=We(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SplitEndArrow2",0,new ze("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=50);var b=(y-E)/2,x=b+E;E>y&&(b=0,x=y);var z=new go.Geometry,ee=new go.PathFigure(a,.5*y,!0);z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,x)),ee.add(new go.PathSegment(go.PathSegment.Line,0,x)),ee.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,0,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,.7*a,0).close()),z.spot1=new go.Spot(.2,b/y);var te=We(.7,1,1,.5,0,x/y,1,x/y,ne());return z.spot2=new go.Spot(te.x,te.y),Se(te),z}),go.Shape.setFigureParameter("SquareArrow",0,new ze("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.7);var b=new go.Geometry,x=new go.PathFigure(a,.5*y,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,E*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=go.Spot.TopLeft,b.spot2=new go.Spot(E,1),b}),go.Shape.defineFigureGenerator("Cone1",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(0,.9*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y).close()),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.97),E}),go.Shape.defineFigureGenerator("Cone2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.9*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,y,.85/.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.9*y).close());var x=new go.PathFigure(0,.9*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.9*y,(1-.85/.9)*a,.8*y,.85/.9*a,.8*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.82),E}),go.Shape.defineFigureGenerator("Cube1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.15*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.5,.85),E}),go.Shape.defineFigureGenerator("Cube2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.3*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0).close());var x=new go.PathFigure(0,.3*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,.7*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(.7,1),E}),go.Shape.defineFigureGenerator("Cylinder1",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,1*a,E,(.5+x)*a,0,1*a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,1*y,1*a,y-le*E,(.5+x)*a,1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,1*y,0,y-le*E)),z.add(new go.PathSegment(go.PathSegment.Line,0,E));var ee=new go.PathFigure(a,E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,2*E,1*a,2*E-le*E,(.5+x)*a,2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,E,(.5-x)*a,2*E,0,2*E-le*E)),b.spot1=new go.Spot(0,0,0,2*E),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder2",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,y/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(0,y-E,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,le*E,(.5-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,E,(.5+x)*a,0,a,le*E)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-E)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,y-le*E,(.5+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-E,(.5-x)*a,y,0,y-le*E));var ee=new go.PathFigure(0,y-E,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y-2*E,0,y-E-le*E,(.5-x)*a,y-2*E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,y-E,(.5+x)*a,y-2*E,a,y-E-le*E)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,0,-2*E),b}),go.Shape.defineFigureGenerator("Cylinder3",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0));var ee=new go.PathFigure(E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,2*E,.5*y,E+le*E,0,2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,y,2*E,(.5+x)*y,E+le*E,y)),b.spot1=new go.Spot(0,0,2*E,0),b.spot2=new go.Spot(1,1),b}),go.Shape.defineFigureGenerator("Cylinder4",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=5),E=Math.min(E,a/3);var b=new go.Geometry,x=le*.5,z=new go.PathFigure(a-E,0,!0);b.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,a-le*E,0,a,(.5-x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a,(.5+x)*y,a-le*E,y)),z.add(new go.PathSegment(go.PathSegment.Line,E,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,le*E,y,0,(.5+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,(.5-x)*y,le*E,0)),z.add(new go.PathSegment(go.PathSegment.Line,a-E,0));var ee=new go.PathFigure(a-E,0,!1);return b.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-2*E,.5*y,a-E-le*E,0,a-2*E,(.5-x)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,y,a-2*E,(.5+x)*y,a-E-le*E,y)),b.spot1=new go.Spot(0,0),b.spot2=new go.Spot(1,1,-2*E,0),b}),go.Shape.defineFigureGenerator("Prism1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.25*a,.25*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.408,.172),E.spot2=new go.Spot(.833,.662),E}),go.Shape.defineFigureGenerator("Prism2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,.25*a,.5*y)),E.spot1=new go.Spot(.25,.5),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("Pyramid1",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Pyramid2",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.85*y).close());var x=new go.PathFigure(.5*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.85*y)),x.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),E.spot1=new go.Spot(.25,.367),E.spot2=new go.Spot(.75,.875),E}),go.Shape.defineFigureGenerator("Actor",function(ae,a,y){var E=new go.Geometry,b=.2,x=.1,z=le*b,ee=le*x,te=.5,re=.1,ie=new go.PathFigure(te*a,(re+x)*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-b)*a,re*y,(te-z)*a,(re+x)*y,(te-b)*a,(re+ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-x)*y,(te-b)*a,(re-ee)*y,(te-z)*a,(re-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+b)*a,re*y,(te+z)*a,(re-x)*y,(te+b)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+x)*y,(te+b)*a,(re+ee)*y,(te+z)*a,(re+x)*y));var ge=.05,ce=le*ge;te=.05,re=.25;var se=new go.PathFigure(.5*a,.2*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.95*a,.2*y)),te=.95,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,(te+ge)*a,re*y,(te+ce)*a,(re-ge)*y,(te+ge)*a,(re-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,.85*a,.35*y)),ge=.025,ce=le*ge,te=.825,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ce)*y,(te+ce)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ce)*a,(re-ge)*y,(te-ge)*a,(re-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y)),ge=.05,ce=le*ge,te=.5,re=.7,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ce)*y,(te+ce)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ce)*a,(re-ge)*y,(te-ge)*a,(re-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),se.add(new go.PathSegment(go.PathSegment.Line,.2*a,.35*y)),ge=.025,ce=le*ge,te=.175,re=.35,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te+ge)*a,(re-ce)*y,(te+ce)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ge)*a,re*y,(te-ce)*a,(re-ge)*y,(te-ge)*a,(re-ce)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),se.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),ge=.05,ce=le*ge,te=.05,re=.25,se.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ge)*y,(te-ge)*a,(re-ce)*y,(te-ce)*a,(re-ge)*y)),se.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),E.spot1=new go.Spot(.2,.2),E.spot2=new go.Spot(.8,.65),E}),go.Shape.setFigureParameter("Card",0,new ze("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(ae,a,y){var E=ae?ae.parameter1:NaN;isNaN(E)&&(E=.2);var b=new go.Geometry,x=new go.PathFigure(a,0,!0);return b.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,E*y)),x.add(new go.PathSegment(go.PathSegment.Line,E*a,0).close()),b.spot1=new go.Spot(0,E),b.spot2=go.Spot.BottomRight,b}),go.Shape.defineFigureGenerator("Collate",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y));var x=new go.PathFigure(.5*a,.5*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,.25),E}),go.Shape.defineFigureGenerator("CreateRequest",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("Database",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.4*y,a,(.3+x)*y,(.5+b)*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*y,(.5-b)*a,.4*y,0,(.3+x)*y)),E.spot1=new go.Spot(0,.4),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("DataStorage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.9*y,.25*a,.1*y).close()),E.spot1=new go.Spot(.226,0),E.spot2=new go.Spot(.81,1),E}),go.Shape.defineFigureGenerator("DiskStorage",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.1,z=new go.PathFigure(a,.1*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.9+x)*y,(.5+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,(.5-b)*a,y,0,(.9+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,(.1-x)*y,(.5-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,(.5+b)*a,0,a,(.1-x)*y));var ee=new go.PathFigure(a,.1*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,a,(.1+x)*y,(.5+b)*a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*y,(.5-b)*a,.2*y,0,(.1+x)*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,.2*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.3*y,a,(.2+x)*y,(.5+b)*a,.3*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*y,(.5-b)*a,.3*y,0,(.2+x)*y)),E.spot1=new go.Spot(0,.3),E.spot2=new go.Spot(1,.9),E}),go.Shape.defineFigureGenerator("Display",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,y,a,0,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close()),E.spot1=new go.Spot(.25,0),E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("DividedEvent",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)?b=.2:b<.15&&(b=.15);var x=le*.2,z=new go.PathFigure(0,.2*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,0,(.2-x)*y,(.2-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.2*y,(.8+x)*a,0,a,(.2-x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,y,a,(.8+x)*y,(.8+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*y,(.2-x)*a,y,0,(.8+x)*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.2*y));var ee=new go.PathFigure(0,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("DividedProcess",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.1)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(0,b*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,b*y)),E}),go.Shape.defineFigureGenerator("Document",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("ExternalOrganization",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;(isNaN(b)||b<.2)&&(b=.2);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,0,b*y)),z.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Move,0,(1-b)*y)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,a,(1-b)*y)),E}),go.Shape.defineFigureGenerator("ExternalProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(.1*a,.4*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.9*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.6*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Move,.4*a,.9*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.9*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("File",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(.75*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Interrupt",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y));var x=new go.PathFigure(a,.5*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,y));var z=new go.PathFigure(a,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("InternalStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.1);var z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,x*y)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y)),E}),go.Shape.defineFigureGenerator("Junction",function(ae,a,y){var E=new go.Geometry,b=1/Math.SQRT2,x=(1-1/Math.SQRT2)/2,z=le*.5,ee=.5,te=new go.PathFigure(a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,y,a,(ee+z)*y,(ee+z)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,ee*y,(ee-z)*a,y,0,(ee+z)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,0,0,(ee-z)*y,(ee-z)*a,0)),te.add(new go.PathSegment(go.PathSegment.Bezier,a,ee*y,(ee+z)*a,0,a,(ee-z)*y));var re=new go.PathFigure((x+b)*a,(x+b)*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,x*a,x*y)),re.add(new go.PathSegment(go.PathSegment.Move,x*a,(x+b)*y)),re.add(new go.PathSegment(go.PathSegment.Line,(x+b)*a,x*y)),E}),go.Shape.defineFigureGenerator("LinedDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close());var x=new go.PathFigure(.1*a,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.75*y)),E.spot1=new go.Spot(.1,0),E.spot2=new go.Spot(1,.6),E}),go.Shape.defineFigureGenerator("LoopLimit",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MagneticTape",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(.5*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,(x+.1)*a,.9*y,a,(x+b)*y,(x+b)*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),E.spot1=new go.Spot(.15,.15),E.spot2=new go.Spot(.85,.8),E}),go.Shape.defineFigureGenerator("ManualInput",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y).close()),E.spot1=new go.Spot(0,.25),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("MessageFromUser",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.7);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,b*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("MicroformProcessing",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,b*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("MicroformRecording",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("MultiDocument",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.44*y,.96*a,.47*y,.93*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.54*y,.86*a,.57*y,.83*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.4*a,.4*y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0).close());var x=new go.PathFigure(.1*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.44*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.8,.77),E}),go.Shape.defineFigureGenerator("MultiProcess",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.1*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close());var x=new go.PathFigure(.2*a,.1*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.1*y)),x.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Move,.1*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.9*y)),E.spot1=new go.Spot(0,.2),E.spot2=new go.Spot(.8,1),E}),go.Shape.defineFigureGenerator("OfflineStorage",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=1-b,z=new go.PathFigure(0,0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close());var ee=new go.PathFigure(.5*b*a,b*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,(1-.5*b)*a,b*y)),E}),go.Shape.defineFigureGenerator("OffPageConnector",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.75,1),E}),go.Shape.defineFigureGenerator("Or",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),E}),go.Shape.defineFigureGenerator("PaperTape",function(ae,a,y){var E=new go.Geometry;y=y/.8;var b=new go.PathFigure(0,.7*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.3*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.3*y,.5*a,.6*y,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*y,.5*a,.4*y,.5*a,y).close()),E.spot1=new go.Spot(0,.49),E.spot2=new go.Spot(1,.75),E}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN,x=ae?ae.parameter2:NaN;isNaN(b)&&(b=.1),isNaN(x)&&(x=.3);var z=new go.PathFigure(0,0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,(1-x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Procedure",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure((1-b)*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,b*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E}),go.Shape.defineFigureGenerator("Process",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),E.spot2=go.Spot.BottomRight,E}),go.Shape.defineFigureGenerator("Sort",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y).close());var x=new go.PathFigure(0,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),E.spot1=new go.Spot(.25,.25),E.spot2=new go.Spot(.75,.5),E}),go.Shape.defineFigureGenerator("Start",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.25);var x=new go.PathFigure(b*a,0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y));var z=new go.PathFigure(b*a,0,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,b*a,y)),z.add(new go.PathSegment(go.PathSegment.Move,(1-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,(1-b)*a,y)),E.spot1=new go.Spot(b,0),E.spot2=new go.Spot(1-b,1),E}),go.Shape.defineFigureGenerator("Terminator",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.25*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*a,.5*y,.25*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*a,.5*y,.25*a,.5*y)),E.spot1=new go.Spot(.23,0),E.spot2=new go.Spot(.77,1),E}),go.Shape.defineFigureGenerator("TransmittalTape",function(ae,a,y){var E=new go.Geometry,b=ae?ae.parameter1:NaN;isNaN(b)&&(b=.1);var x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,(1-b)*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,(1-b)*y).close()),E.spot1=go.Spot.TopLeft,E}),go.Shape.defineFigureGenerator("AndGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=new go.PathFigure(0,0,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(.5+b)*a,0,a,(.5-b)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,(.5+b)*y,(.5+b)*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=go.Spot.TopLeft,E.spot2=new go.Spot(.55,1),E}),go.Shape.defineFigureGenerator("Buffer",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Clock",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=new go.PathFigure(a,x*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,y,a,(x+b)*y,(x+b)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,x*y,(x-b)*a,y,0,(x+b)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,x*a,0,0,(x-b)*y,(x-b)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,x*y,(x+b)*a,0,a,(x-b)*y));var ee=new go.PathFigure(a,x*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,x*y));var te=new go.PathFigure(.8*a,.75*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.6*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.75*y)),te.add(new go.PathSegment(go.PathSegment.Line,.4*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Line,.2*a,.75*y)),E}),go.Shape.defineFigureGenerator("Ground",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Move,.3*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),E}),go.Shape.defineFigureGenerator("Inverter",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.9,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,0,y)),te.add(new go.PathSegment(go.PathSegment.Line,0,0)),te.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y));var re=new go.PathFigure((z+x)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.4,.75),E}),go.Shape.defineFigureGenerator("NandGate",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=le*.4,z=le*.1,ee=.1,te=.9,re=.5,ie=new go.PathFigure(.8*a,.5*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,.8*a,(.5+x)*y,(.4+b)*a,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,y)),ie.add(new go.PathSegment(go.PathSegment.Line,0,0)),ie.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(.4+b)*a,0,.8*a,(.5-x)*y));var ge=new go.PathFigure((te+ee)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+ee)*y,(te+ee)*a,(re+z)*y,(te+z)*a,(re+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a,re*y,(te-z)*a,(re+ee)*y,(te-ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-ee)*y,(te-ee)*a,(re-z)*y,(te-z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a,re*y,(te+z)*a,(re-ee)*y,(te+ee)*a,(re-z)*y)),E.spot1=new go.Spot(0,.05),E.spot2=new go.Spot(.55,.95),E}),go.Shape.defineFigureGenerator("NorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(.8*a,.5*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var re=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.6,.75),E}),go.Shape.defineFigureGenerator("OrGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=0,ee=.5,te=new go.PathFigure(0,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x+x)*a,(ee-b)*y,.8*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.8*a,(ee+x)*y,(z+x+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*a,.75*y,.25*a,.25*y).close()),E.spot1=new go.Spot(.2,.25),E.spot2=new go.Spot(.75,.75),E}),go.Shape.defineFigureGenerator("XnorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.8*a,.5*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.7*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.5*y,(z+x)*a,(ee-b)*y,.7*a,(ee-x)*y)),b=.1,x=le*.1,z=.9,ee=.5;var ie=new go.PathFigure((z-b)*a,ee*y,!0);return E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.65,.75),E}),go.Shape.defineFigureGenerator("XorGate",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*b,z=.2,ee=.5,te=new go.PathFigure(.1*a,0,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,y,.35*a,.25*y,.35*a,.75*y));var re=new go.PathFigure(.2*a,0,!0);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,(z+x)*a,(ee-b)*y,.9*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,y,.9*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.2*a,0,.45*a,.75*y,.45*a,.25*y).close()),E.spot1=new go.Spot(.4,.25),E.spot2=new go.Spot(.8,.75),E}),go.Shape.defineFigureGenerator("Capacitor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Resistor",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),E}),go.Shape.defineFigureGenerator("Inductor",function(ae,a,y){var E=new go.Geometry,b=le*.1,x=.1,z=.1,ee=.5,te=new go.PathFigure((z-b*.5)*a,y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.3,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.5,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.7,te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,y,(z+x)*a,0,(z+b)*a,y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,0,(z-b)*a,y,(z-x)*a,0)),z=.9,te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b*.5)*a,y,(z+x)*a,0,(z+b)*a,y)),E}),go.Shape.defineFigureGenerator("ACvoltageSource",function(ae,a,y){var E=new go.Geometry,b=le*.5,x=.5,z=.5,ee=.5,te=new go.PathFigure((z-x)*a,ee*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-x)*y,(z-x)*a,(ee-b)*y,(z-b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee-x)*y,(z+x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Move,(z-x+.1)*a,ee*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+x-.1)*a,ee*y,z*a,(ee-x)*y,z*a,(ee+x)*y)),E}),go.Shape.defineFigureGenerator("DCvoltageSource",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("Diode",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E.spot1=new go.Spot(0,.25),E.spot2=new go.Spot(.5,.75),E}),go.Shape.defineFigureGenerator("Wifi",function(ae,a,y){var E=new go.Geometry,b=a,x=y;a=a*.38,y=y*.6;var z=le*.8,ee=.8,te=0,re=.5,ie=(b-a)/2,ge=(x-y)/2,ce=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),ce.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.4,ee=.4,te=.2,re=.5;var se=new go.PathFigure(te*a+ie,(re+ee)*y+ge,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee+z*.5)*a+ie,re*y+ge,te*a+ie,(re-ee)*y+ge,(te-ee+z*.5)*a+ie,(re-z)*y+ge)),se.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te-ee+z*.5)*a+ie,(re+z)*y+ge,te*a+ie,(re+ee)*y+ge).close()),z=le*.2,ee=.2,te=.5,re=.5;var Be=new go.PathFigure((te-ee)*a+ie,re*y+ge,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te-ee)*a+ie,(re-z)*y+ge,(te-z)*a+ie,(re-ee)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(te-ee)*a+ie,re*y+ge,(te-z)*a+ie,(re+ee)*y+ge,(te-ee)*a+ie,(re+z)*y+ge)),z=le*.4,ee=.4,te=.8,re=.5;var Ge=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),Ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),z=le*.8,ee=.8,te=1,re=.5;var St=new go.PathFigure(te*a+ie,(re-ee)*y+ge,!0);return E.add(St),St.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee)*a+ie,re*y+ge,(te+z)*a+ie,(re-ee)*y+ge,(te+ee)*a+ie,(re-z)*y+ge)),St.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re+ee)*y+ge,(te+ee)*a+ie,(re+z)*y+ge,(te+z)*a+ie,(re+ee)*y+ge)),St.add(new go.PathSegment(go.PathSegment.Bezier,(te+ee-z*.5)*a+ie,re*y+ge,te*a+ie,(re+ee)*y+ge,(te+ee-z*.5)*a+ie,(re+z)*y+ge)),St.add(new go.PathSegment(go.PathSegment.Bezier,te*a+ie,(re-ee)*y+ge,(te+ee-z*.5)*a+ie,(re-z)*y+ge,te*a+ie,(re-ee)*y+ge).close()),E}),go.Shape.defineFigureGenerator("Email",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,0,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,0)),x.add(new go.PathSegment(go.PathSegment.Move,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Move,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.54*y)),E}),go.Shape.defineFigureGenerator("Ethernet",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.35*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,0).close());var x=new go.PathFigure(.1*a,y,!0,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var z=new go.PathFigure(.6*a,y,!0,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.6*a,y).close());var ee=new go.PathFigure(0,.5*y,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.5*a,.4*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.75*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.75*a,.6*y)),ee.add(new go.PathSegment(go.PathSegment.Move,.25*a,.5*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.25*a,.6*y)),E}),go.Shape.defineFigureGenerator("Power",function(ae,a,y){var E=new go.Geometry,b=le*.4,x=.4,z=.5,ee=.5,te=ne(),re=ne(),ie=ne(),ge=ne();Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge);var ce=oe(re.x,re.y),se=new go.PathFigure(re.x*a,re.y*y,!0);E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z+x)*a,(ee+b)*y,(z+b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,(z-b)*a,(ee+x)*y,(z-x)*a,(ee+b)*y)),Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ie.x*a,ie.y*y,ge.x*a,ge.y*y)),b=le*.3,x=.3,Ie(z-x,ee,z-x,ee-b,z-b,ee-x,z,ee-x,.5,ie,ge,re,te,te),se.add(new go.PathSegment(go.PathSegment.Line,re.x*a,re.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z-x)*a,ee*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+x)*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(z+x)*a,ee*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),Ie(z,ee-x,z+b,ee-x,z+x,ee-b,z+x,ee,.5,te,te,re,ie,ge),se.add(new go.PathSegment(go.PathSegment.Bezier,re.x*a,re.y*y,ge.x*a,ge.y*y,ie.x*a,ie.y*y).close());var se=new go.PathFigure(.45*a,0,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Line,.45*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,.5*y)),se.add(new go.PathSegment(go.PathSegment.Line,.55*a,0).close()),Se(te),Se(re),Se(ie),Se(ge),Se(ce),E.spot1=new go.Spot(.25,.45),E.spot2=new go.Spot(.75,.8),E}),go.Shape.defineFigureGenerator("Fallout",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y/2,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,180,360,a/2,y/2,a/2,y/2));function x(z,ee,te){z.add(new go.PathSegment(go.PathSegment.Move,(.3+ee)*a,(.8+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.5+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.1+ee)*a,(.5+te)*y)),z.add(new go.PathSegment(go.PathSegment.Line,(.3+ee)*a,(.8+te)*y).close())}return x(b,0,0),x(b,.4,0),x(b,.2,-.3),E}),go.Shape.defineFigureGenerator("IrritationHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close()),E.spot1=new go.Spot(.3,.3),E.spot2=new go.Spot(.7,.7),E}),go.Shape.defineFigureGenerator("ElectricalHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.37*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.11*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.04*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.49*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.37*y)),b.add(new go.PathSegment(go.PathSegment.Line,.63*a,.86*y)),b.add(new go.PathSegment(go.PathSegment.Line,.77*a,.91*y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.34*a,.78*y)),b.add(new go.PathSegment(go.PathSegment.Line,.44*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.56*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.68*y).close()),E}),go.Shape.defineFigureGenerator("FireHazard",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.29*a,0,-.25*a,.63*y,.45*a,.44*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.51*a,.42*y,.48*a,.17*y,.54*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.59*a,.18*y,.59*a,.29*y,.58*a,.28*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.75*a,.6*y,.8*a,.34*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.88*a,.31*y,.87*a,.48*y,.88*a,.43*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,1.17*a,.76*y,.82*a,.8*y).close()),E.spot1=new go.Spot(.07,.445),E.spot2=new go.Spot(.884,.958),E}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(ae,a,y){var E=new go.Geometry,b=.5,x=0,z=0,ee=b*le,te=.4*Math.SQRT2/2+.5,re=.5-.5*Math.SQRT2/2,ie=1,ge=.5,ce=.5,se=0,Be=new go.PathFigure(te*a,(1-re)*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,(ce+x)*a,(se+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(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),E}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.2*a,.35*y,.3*a,.35*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.7*a,.65*y,.8*a,.65*y)),E}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y).close()),E}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y).close());var b=new go.PathFigure(0,.2*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.7*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,0,.6*a,.5*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,y,.4*a,.5*y,a,.5*y).close());var x=new go.PathFigure(.45*a,.73*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.7*a,.73*y)),x.add(new go.PathSegment(go.PathSegment.Move,.38*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.63*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Move,.31*a,.27*y)),x.add(new go.PathSegment(go.PathSegment.Line,.56*a,.27*y)),E}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(.335*a,(1-.555)*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,a,.68*y,(1-.12)*a,.46*y,(1-.02)*a,.54*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.68*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.335*a,(1-.555)*y,.02*a,.54*y,.12*a,.46*y)),x.add(new go.PathSegment(go.PathSegment.Line,.365*a,(1-.595)*y));var z=.5-.285,ee=.5,te=z,re=Math.PI/4,ie=4*(1-Math.cos(re))/(3*Math.sin(re)),ge=ie*.5,ce=z,se=z,Be=ie*ce,Ge=ie*se;x.add(new go.PathSegment(go.PathSegment.Bezier,(ee-ce)*a,te*y,(ee-(Be+ce)/2)*a,(te+(se+Ge)/2)*y,(ee-ce)*a,(te+Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,ee*a,(te-se)*y,(ee-ce)*a,(te-Ge)*y,(ee-Be)*a,(te-se)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(ee+ce)*a,te*y,(ee+Be)*a,(te-se)*y,(ee+ce)*a,(te-Ge)*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*a,(1-.595)*y,(ee+ce)*a,(te+Ge)*y,(ee+(Be+ce)/2)*a,(te+(se+Ge)/2)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*a,(1-.595)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.555)*y)),x.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*a,(1-.405)*y)),x.add(new go.PathSegment(go.PathSegment.Line,.335*a,(1-.405)*y));var St=new go.PathFigure(.2*a,y,!1);E.add(St),St.add(new go.PathSegment(go.PathSegment.Line,.2*a,.8*y));var Mt=new go.PathFigure(.8*a,y,!1);return E.add(Mt),Mt.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,y).close());var x=new go.PathFigure(.2*a,.2*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.8*y)),E}),go.Shape.defineFigureGenerator("BpmnEventError",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b);var x=new go.PathFigure(a,y,!1);E.add(x);var z=new go.PathFigure(.1*a,y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Caution",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.05*a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.8*y,0,y,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.55*a,.1*y,.5*a,0,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.95*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,y,a,y,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,y));var x=.05;return b.add(new go.PathSegment(go.PathSegment.Move,(.5-x)*a,.875*y)),b.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*a,.875*y,x*a,x*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.325*y,.575*a,.725*y,.625*a,.375*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.75*y,.375*a,.375*y,.425*a,.725*y)),E}),go.Shape.defineFigureGenerator("Recycle",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.45*a,.95*y,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.185*a,.85*y,.17*a,.95*y,.15*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.235*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,.3*a,.625*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,.275*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.05*a,.575*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.1875*a,.95*y,0,.675*y,0,.7*y)),b.add(new go.PathSegment(go.PathSegment.Move,.45*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.775*y)),b.add(new go.PathSegment(go.PathSegment.Line,.22*a,.775*y));var x=new go.PathFigure(.475*a,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.4*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.225*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Line,.275*a,.175*y)),x.add(new go.PathSegment(go.PathSegment.Line,.325*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,.05*y,.35*a,0,.375*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.575*a,.375*y)),x.add(new go.PathSegment(go.PathSegment.Line,.525*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.75*a,.475*y)),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.315*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.32*y)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.05*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,0,.65*a,.05*y,.625*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.38*a,.0105*y));var z=new go.PathFigure(.675*a,.575*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.875*a,.525*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,.85*a,.95*y,a,.8*y,a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.95*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.85*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.725*y)),z.add(new go.PathSegment(go.PathSegment.Line,.65*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,.7*a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Line,a,.775*y)),z.add(new go.PathSegment(go.PathSegment.Move,.675*a,.575*y)),z.add(new go.PathSegment(go.PathSegment.Line,.775*a,.775*y)),E}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=new go.PathFigure(a,b*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,y,a,(b+x)*y,(b+x)*a,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,b*y,(b-x)*a,y,0,(b+x)*y)),z.add(new go.PathSegment(go.PathSegment.Bezier,b*a,0,0,(b-x)*y,(b-x)*a,0)),z.add(new go.PathSegment(go.PathSegment.Bezier,a,b*y,(b+x)*a,0,a,(b-x)*y));var ee=new go.PathFigure(b*a,0,!1);return E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.15*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,y)),ee.add(new go.PathSegment(go.PathSegment.Line,b*a,.85*y)),ee.add(new go.PathSegment(go.PathSegment.Move,0,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.15*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.85*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.58*a,.1*y)),ee.add(new go.PathSegment(go.PathSegment.Move,b*a,b*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.78*a,.54*y)),E}),go.Shape.defineFigureGenerator("Package",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.15*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close());var x=new go.PathFigure(0,.15*y,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,0)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.65*a,.15*y).close()),E.spot1=new go.Spot(0,.1),E.spot2=new go.Spot(1,1),E}),go.Shape.defineFigureGenerator("Class",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(0,.5*y,!1);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,.5*y).close()),E}),go.Shape.defineFigureGenerator("Component",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close());var x=new go.PathFigure(0,.2*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.2*y)),x.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.2*y).close());var z=new go.PathFigure(0,.6*y,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.6*y)),z.add(new go.PathSegment(go.PathSegment.Line,.45*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,0,.6*y).close()),E}),go.Shape.defineFigureGenerator("Boat Shipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.15*a,.6*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.6*y));var x=new go.PathFigure(.15*a,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.85*a,.6*y)),E}),go.Shape.defineFigureGenerator("Customer/Supplier",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.66*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,.33*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Workcell",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.65*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.35*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),E}),go.Shape.defineFigureGenerator("Supermarket",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.33*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.33*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.66*y)),b.add(new go.PathSegment(go.PathSegment.Move,a,.66*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),E}),go.Shape.defineFigureGenerator("TruckShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(a,.8*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,.6*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.8*y).close());var z=.1,ee=le*.1,te=.2,re=.9,ie=new go.PathFigure((te-z)*a,re*y,!0);E.add(ie),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ie.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),z=.1,ee=le*.1,te=.8,re=.9;var ge=new go.PathFigure((te-z)*a,re*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re-z)*y,(te-z)*a,(re-ee)*y,(te-ee)*a,(re-z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te+z)*a,re*y,(te+ee)*a,(re-z)*y,(te+z)*a,(re-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,te*a,(re+z)*y,(te+z)*a,(re+ee)*y,(te+ee)*a,(re+z)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(te-z)*a,re*y,(te-ee)*a,(re+z)*y,(te-z)*a,(re+ee)*y).close()),E}),go.Shape.defineFigureGenerator("KanbanPost",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.2*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,0)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,y)),E}),go.Shape.defineFigureGenerator("Forklift",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0));var x=new go.PathFigure(0,.5*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var z=new go.PathFigure(.5*a,.8*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.1*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.8*y)),z.add(new go.PathSegment(go.PathSegment.Line,.5*a,.8*y));var ee=new go.PathFigure(.5*a,.7*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a,.7*y));var te=.1,re=le*.1,ie=.1,ge=.9,ce=new go.PathFigure((ie-te)*a,ge*y,!0);E.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),te=.1,re=le*.1,ie=.4,ge=.9;var se=new go.PathFigure((ie-te)*a,ge*y,!0);return E.add(se),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge-te)*y,(ie-te)*a,(ge-re)*y,(ie-re)*a,(ge-te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie+te)*a,ge*y,(ie+re)*a,(ge-te)*y,(ie+te)*a,(ge-re)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,ie*a,(ge+te)*y,(ie+te)*a,(ge+re)*y,(ie+re)*a,(ge+te)*y)),se.add(new go.PathSegment(go.PathSegment.Bezier,(ie-te)*a,ge*y,(ie-re)*a,(ge+te)*y,(ie-te)*a,(ge+re)*y)),E}),go.Shape.defineFigureGenerator("RailShipment",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.1*a,.4*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.45*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.4*y).close());var x=new go.PathFigure(.45*a,.7*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.55*a,.7*y));var z=new go.PathFigure(.55*a,.4*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),z.add(new go.PathSegment(go.PathSegment.Line,.9*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.9*y)),z.add(new go.PathSegment(go.PathSegment.Line,.55*a,.4*y).close());var ie=.05,ge=le*.05,ce=.175,se=.95,ee=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),ee.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ce=.375,se=.95,te=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ce=.625,se=.95,re=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y));var ie=.05,ge=le*.05,ce=.825,se=.95,Be=new go.PathFigure((ce-ie)*a,se*y,!0);E.add(Be),Be.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se-ie)*y,(ce-ie)*a,(se-ge)*y,(ce-ge)*a,(se-ie)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ce+ie)*a,se*y,(ce+ge)*a,(se-ie)*y,(ce+ie)*a,(se-ge)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,ce*a,(se+ie)*y,(ce+ie)*a,(se+ge)*y,(ce+ge)*a,(se+ie)*y)),Be.add(new go.PathSegment(go.PathSegment.Bezier,(ce-ie)*a,se*y,(ce-ge)*a,(se+ie)*y,(ce-ie)*a,(se+ge)*y).close());var Ge=new go.PathFigure(0,y,!1);return E.add(Ge),Ge.add(new go.PathSegment(go.PathSegment.Line,a,y).close()),E}),go.Shape.defineFigureGenerator("Warehouse",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var x=new go.PathFigure(0,.2*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.2*y).close());var z=new go.PathFigure(.15*a,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,.5*y)),z.add(new go.PathSegment(go.PathSegment.Line,.4*a,y)),z.add(new go.PathSegment(go.PathSegment.Line,.15*a,y).close());var ee=.05,te=le*.05,re=.35,ie=.775,ge=new go.PathFigure((re-ee)*a,ie*y,!0);return E.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie-ee)*y,(re-ee)*a,(ie-te)*y,(re-te)*a,(ie-ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re+ee)*a,ie*y,(re+te)*a,(ie-ee)*y,(re+ee)*a,(ie-te)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,re*a,(ie+ee)*y,(re+ee)*a,(ie+te)*y,(re+te)*a,(ie+ee)*y)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(re-ee)*a,ie*y,(re-te)*a,(ie+ee)*y,(re-ee)*a,(ie+te)*y).close()),E}),go.Shape.defineFigureGenerator("ControlCenter",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y).close()),E}),go.Shape.defineFigureGenerator("Bluetooth",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.75*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.25*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Bookmark",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),b.add(new go.PathSegment(go.PathSegment.Line,0,0)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Move,.2*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,.8*a,.4*y)),E}),go.Shape.defineFigureGenerator("Globe",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.5*y,.75*a,0,a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,a,.75*y,.75*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.25*a,y,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,0,.25*y,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,y,.15*a,.25*y,.15*a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.85*a,.75*y,.85*a,.25*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.15*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.15*y,.35*a,.3*y,.65*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.1675*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8325*a,.85*y,.35*a,.7*y,.65*a,.7*y)),E}),go.Shape.defineFigureGenerator("Wave",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.25*y,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.25*y,.1*a,0,.2*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.25*y,.425*a,.5*y,.575*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.25*y,.8*a,0,.9*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.75*y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.25*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.75*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.75*y,.1*a,.5*y,.2*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.7*a,.75*y,.425*a,y,.575*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.75*y,.8*a,.5*y,.9*a,.5*y)),E}),go.Shape.defineFigureGenerator("Operator",function(ae,a,y){var E=new go.Geometry,b=.3,x=le*.3,z=.5,ee=.7,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(0,.7*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,a,.7*y,0,0,a,0)),E}),go.Shape.defineFigureGenerator("TripleFanBlades",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.5*a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.65*a,.3*y,.65*a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.35*a,.5*y,.35*a,.3*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,y,.3*a,.6*y,.1*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.2*a,y,.35*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.65*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,y,.7*a,.6*y,.9*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.65*y,.8*a,y,.65*a,.95*y)),E}),go.Shape.defineFigureGenerator("CentrifugalPump",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a,0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,0,.075*y,0,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.4*a,y,0,y,.4*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.4*y,.8*a,y,.85*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,0)),E}),go.Shape.defineFigureGenerator("Battery",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,.4*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.1*y));var x=new go.PathFigure(0,.6*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,0,.4*y)),x.add(new go.PathSegment(go.PathSegment.Line,a,.4*y)),E}),go.Shape.defineFigureGenerator("Delete",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!0);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y));var re=new go.PathFigure(.15*a,.5*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,.85*a,.5*y)),E}),go.Shape.defineFigureGenerator("Flag",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.1*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Move,0,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.1*y,.15*a,0,.35*a,0)),b.add(new go.PathSegment(go.PathSegment.Bezier,a,.1*y,.65*a,.2*y,.85*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.5*y,.85*a,.6*y,.65*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*y,.35*a,.4*y,.15*a,.4*y).close()),E}),go.Shape.defineFigureGenerator("Help",function(ae,a,y){var E=new go.Geometry,b=.5,x=le*.5,z=.5,ee=.5,te=new go.PathFigure((z-b)*a,ee*y,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),te.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),b=.05,x=le*.05,z=.5,ee=.8;var re=new go.PathFigure((z-b)*a,ee*y,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee-b)*y,(z-b)*a,(ee-x)*y,(z-x)*a,(ee-b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z+b)*a,ee*y,(z+x)*a,(ee-b)*y,(z+b)*a,(ee-x)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,z*a,(ee+b)*y,(z+b)*a,(ee+x)*y,(z+x)*a,(ee+b)*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,(z-b)*a,ee*y,(z-x)*a,(ee+b)*y,(z-b)*a,(ee+x)*y).close()),re.add(new go.PathSegment(go.PathSegment.Move,.5*a,.7*y)),re.add(new go.PathSegment(go.PathSegment.Line,.5*a,.5*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.5*a,.2*y,.75*a,.475*y,.75*a,.225*y)),re.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.35*y,.4*a,.2*y,.3*a,.25*y)),E}),go.Shape.defineFigureGenerator("Location",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.5*a,y,!0).add(new go.PathSegment(go.PathSegment.Line,.75*a,.5*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5*a,0,.975*a,.025*y,.5*a,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*a,.5*y,.5*a,0,.025*a,.025*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*a,.3*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Lock",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.3*y)),E}),go.Shape.defineFigureGenerator("Unlocked",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,.5*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.5*y));var x=new go.PathFigure(.2*a,.5*y,!1);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Move,.2*a,.5*y)),x.add(new go.PathSegment(go.PathSegment.Line,.2*a,.3*y)),x.add(new go.PathSegment(go.PathSegment.Bezier,.8*a,.3*y,.25*a,0,.75*a,0)),x.add(new go.PathSegment(go.PathSegment.Line,.8*a,.35*y)),E}),go.Shape.defineFigureGenerator("Gear",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(.9375*a,.56246875*y,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.80621875*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.763*a,.3316875*y,.79840625*a,.39915625*y,.7834375*a,.3635*y)).add(new go.PathSegment(go.PathSegment.Line,.8566875*a,.23796875*y)).add(new go.PathSegment(go.PathSegment.Line,.76825*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.67596875*a,.24184375*y)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*a,.19378125*y,.64228125*a,.2188125*y,.603875*a,.2021875*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.0625*y)).add(new go.PathSegment(go.PathSegment.Line,.4375*a,.19378125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*a,.239375*y,.39759375*a,.20190625*y,.36053125*a,.2176875*y)).add(new go.PathSegment(go.PathSegment.Line,.2379375*a,.14959375*y)).add(new go.PathSegment(go.PathSegment.Line,.14953125*a,.2379375*y)).add(new go.PathSegment(go.PathSegment.Line,.23934375*a,.3278125*y)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*a,.4375*y,.21765625*a,.36059375*y,.201875*a,.397625*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.4375*y)).add(new go.PathSegment(go.PathSegment.Line,.0625*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Line,.1938125*a,.5625*y)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*a,.67596875*y,.20221875*a,.603875*y,.21884375*a,.64228125*y)).add(new go.PathSegment(go.PathSegment.Line,.1495625*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.238*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.3316875*a,.76296875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*a,.80621875*y,.36353125*a,.78340625*y,.3991875*a,.79840625*y)).add(new go.PathSegment(go.PathSegment.Line,.43753125*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.9375*y)).add(new go.PathSegment(go.PathSegment.Line,.5625*a,.80621875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*a,.760625*y,.602375*a,.79809375*y,.63946875*a,.78234375*y)).add(new go.PathSegment(go.PathSegment.Line,.76828125*a,.8566875*y)).add(new go.PathSegment(go.PathSegment.Line,.85671875*a,.76825*y)).add(new go.PathSegment(go.PathSegment.Line,.76065625*a,.67221875*y)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*a,.56246875*y,.78234375*a,.63940625*y,.798125*a,.602375*y)).add(new go.PathSegment(go.PathSegment.Line,.9375*a,.56246875*y).close()).add(new go.PathSegment(go.PathSegment.Move,.5*a,.6*y)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*a,.5*y,.1*a,.1*y).close()))}),go.Shape.defineFigureGenerator("Hand",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.5*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Bezier,.1*a,.3*y,0,.375*y,.05*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.45*a,.075*y,.3*a,.225*y,.4*a,.175*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.525*a,.075*y,.46*a,.05*y,.525*a,.05*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.3*a,.4*y,.525*a,.275*y,.475*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.55*y,a,.4*y,a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.425*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.55*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.6*a,.7*y,.675*a,.55*y,.675*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.575*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.575*a,.85*y,.65*a,.7*y,.65*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Line,.525*a,.85*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.535*a,y,.61*a,.85*y,.61*a,y)),b.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*y,.435*a,y,0,y).close()),E}),go.Shape.defineFigureGenerator("Map",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,.2*y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.25*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.25*a,.8*y)),b.add(new go.PathSegment(go.PathSegment.Move,.5*a,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y)),b.add(new go.PathSegment(go.PathSegment.Move,.75*a,0)),b.add(new go.PathSegment(go.PathSegment.Line,.75*a,.8*y)),E}),go.Shape.defineFigureGenerator("Eject",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a,y)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.7)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.7).close());var x=new go.PathFigure(0,y*.6,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a,.6*y)),x.add(new go.PathSegment(go.PathSegment.Line,.5*a,0).close()),E}),go.Shape.defineFigureGenerator("Pencil",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.2*y).close()))}),go.Shape.defineFigureGenerator("Building",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.046*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.3)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*a,y*.85)),b.add(new go.PathSegment(go.PathSegment.Line,a,y*.85).close());var x=new go.PathFigure(.126*a,.85*y,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,.126*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.45*y)),x.add(new go.PathSegment(go.PathSegment.Line,.322*a,.85*y).close());var z=new go.PathFigure(.402*a,.85*y,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,.402*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.45*y)),z.add(new go.PathSegment(go.PathSegment.Line,.598*a,.85*y).close());var ee=new go.PathFigure(.678*a,.85*y,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,.678*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.45*y)),ee.add(new go.PathSegment(go.PathSegment.Line,.874*a,.85*y).close());var te=new go.PathFigure(.5*a,.1*y,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*a,.3*y)),te.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*a,.3*y).close()),E}),go.Shape.defineFigureGenerator("Staircase",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.8)),b.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.6)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.4)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.2)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.15)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*.95).close()),E}),go.Shape.defineFigureGenerator("5Bars",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,y*1,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.184,y*(1-.184)).close());var x=new go.PathFigure(a*.204,y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.204,y*(1-.184))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*(1-.184*2))),x.add(new go.PathSegment(go.PathSegment.Line,a*.388,y*1).close());var z=new go.PathFigure(a*.408,y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.408,y*(1-.184*2))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*(1-.184*3))),z.add(new go.PathSegment(go.PathSegment.Line,a*.592,y*1).close());var ee=new go.PathFigure(a*.612,y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.612,y*(1-.184*3))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*(1-.184*4))),ee.add(new go.PathSegment(go.PathSegment.Line,a*.796,y*1).close());var te=new go.PathFigure(a*.816,y,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.816,y*(1-.184*4))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-.184*5))),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1).close()),E}),go.Shape.defineFigureGenerator("PC",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,0).close());var x=new go.PathFigure(a*.055,.07*y,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.07)),x.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.1).close());var z=new go.PathFigure(a*.055,.13*y,!0);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.13)),z.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.16)),z.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.16).close());var ee=new go.PathFigure(a*.055,.18*y,!0);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.18)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.245,y*.21)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.055,y*.21).close());var te=new go.PathFigure(a*1,0,!0);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,0)),te.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.65)),te.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.65).close()),E}),go.Shape.defineFigureGenerator("Plane",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(.55*a,y,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.7*y)),b.add(new go.PathSegment(go.PathSegment.Line,.1*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.35*a,.525*y,0,.4*y,.225*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.4*a,.475*y)),b.add(new go.PathSegment(go.PathSegment.Line,.15*a,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,.2*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.325*y)),b.add(new go.PathSegment(go.PathSegment.Line,.85*a,.1*y)),b.add(new go.PathSegment(go.PathSegment.Bezier,.9*a,.2*y,.975*a,0,a,.08*y)),b.add(new go.PathSegment(go.PathSegment.Line,.7*a,.45*y)),b.add(new go.PathSegment(go.PathSegment.Line,.6*a,.95*y)),b.add(new go.PathSegment(go.PathSegment.Line,.55*a,y).close()),E}),go.Shape.defineFigureGenerator("Key",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*1,y*.5,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.4*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.2*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.35*y)),b.add(new go.PathSegment(go.PathSegment.Line,0,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.15,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,.8*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.65*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,.55*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,.6*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,.575*y)),b.add(new go.PathSegment(go.PathSegment.Line,a*.9,.6*y).close()),b.add(new go.PathSegment(go.PathSegment.Move,.17*a,.425*y)),b.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*a,.5*y,.075*a,.075*y).close()),E}),go.Shape.defineFigureGenerator("FilmTape",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(0,0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Arc,270,180,a*0,a*.3,a*.055)),b.add(new go.PathSegment(go.PathSegment.Line,0,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.08,y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*1),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*2),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*3),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*4),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*5),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*6),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*7),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*8),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*9),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*10),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*11),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*12),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*13),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*14),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*.95)),b.add(new go.PathSegment(go.PathSegment.Line,a*(.08+.056*15),y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var x=new go.PathFigure(0,0,!1);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*0)),x.add(new go.PathSegment(go.PathSegment.Arc,270,-180,a*1,a*.3,a*.055)),x.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1));var z=new go.PathFigure(a*.11,y*.1,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.1)),z.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*0),y*.8)),z.add(new go.PathSegment(go.PathSegment.Line,a*.11,y*.8).close());var ee=new go.PathFigure(a*(.11+.24133333*1+.028*1),y*.1,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.1)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*1),y*.8)),ee.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*1+.028*1),y*.8).close());var te=new go.PathFigure(a*(.11+.24133333*2+.028*2),y*.1,!1);return E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.1)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*3+.028*2),y*.8)),te.add(new go.PathSegment(go.PathSegment.Line,a*(.11+.24133333*2+.028*2),y*.8).close()),E}),go.Shape.defineFigureGenerator("FloppyDisk",function(ae,a,y){var E=new go.Geometry,b=8,x=b*le,z=new go.PathFigure(b,0,!1);E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.86,0)),z.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.14)),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,0,b)),z.add(new go.PathSegment(go.PathSegment.Bezier,b,0,0,x,x,0).close());var ee=new go.PathFigure(a*.83,0,!1);E.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.3)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*0).close());var te=new go.PathFigure(a*.83,y*1,!1);E.add(te),te.add(new go.PathSegment(go.PathSegment.Line,a*.83,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*.5)),te.add(new go.PathSegment(go.PathSegment.Line,a*.17,y*1).close());var re=new go.PathFigure(a*.78,y*.05,!1);return E.add(re),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.05)),re.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.25)),re.add(new go.PathSegment(go.PathSegment.Line,a*.78,y*.25).close()),E}),go.Shape.defineFigureGenerator("SpeechBubble",function(ae,a,y){var E=ae?ae.parameter1:NaN;(isNaN(E)||E<0)&&(E=15),E=Math.min(E,a/3),E=Math.min(E,y/3);var b=E*le,x=y*.8,z=new go.Geometry,ee=new go.PathFigure(E,0,!0);return z.add(ee),ee.add(new go.PathSegment(go.PathSegment.Line,a-E,0)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a,E,a-b,0,a,b)),ee.add(new go.PathSegment(go.PathSegment.Line,a,x-E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,a-E,x,a,x-b,a-b,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,x)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.7,y)),ee.add(new go.PathSegment(go.PathSegment.Line,a*.55,x)),ee.add(new go.PathSegment(go.PathSegment.Line,E,x)),ee.add(new go.PathSegment(go.PathSegment.Bezier,0,x-E,b,x,0,x-b)),ee.add(new go.PathSegment(go.PathSegment.Line,0,E)),ee.add(new go.PathSegment(go.PathSegment.Bezier,E,0,0,b,b,0).close()),b>1?(z.spot1=new go.Spot(0,0,b,b),z.spot2=new go.Spot(1,.8,-b,-b)):(z.spot1=go.Spot.TopLeft,z.spot2=new go.Spot(1,.8)),z}),go.Shape.defineFigureGenerator("Repeat",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.45,!0);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.2,y*.45).close());var x=new go.PathFigure(a*1,y*.55,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.55)),x.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.1)),x.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),x.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*.55).close()),E}),go.Shape.defineFigureGenerator("Windows",function(ae,a,y){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,a,0)).add(new go.PathSegment(go.PathSegment.Line,a,y)).add(new go.PathSegment(go.PathSegment.Line,0,y).close()).add(new go.PathSegment(go.PathSegment.Move,.4*a,.4*y)).add(new go.PathSegment(go.PathSegment.Line,.4*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.8*y)).add(new go.PathSegment(go.PathSegment.Line,.9*a,.4*y).close()).add(new go.PathSegment(go.PathSegment.Move,.2*a,.1*y)).add(new go.PathSegment(go.PathSegment.Line,.2*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.7*a,.1*y).close()).add(new go.PathSegment(go.PathSegment.Move,.1*a,.6*y)).add(new go.PathSegment(go.PathSegment.Line,.1*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.9*y)).add(new go.PathSegment(go.PathSegment.Line,.5*a,.6*y).close()))}),go.Shape.defineFigureGenerator("Terminal",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*.1,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.9)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.9).close());var x=new go.PathFigure(a*.1,y*.2,!0);E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.25)),x.add(new go.PathSegment(go.PathSegment.Line,a*.22,y*.285)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.1,y*.37)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.32)),x.add(new go.PathSegment(go.PathSegment.Line,a*.275,y*.25).close());var z=new go.PathFigure(a*.28,y*.37,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.37)),z.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.41)),z.add(new go.PathSegment(go.PathSegment.Line,a*.28,y*.41).close()),E}),go.Shape.defineFigureGenerator("Beaker",function(ae,a,y){var E=new go.Geometry,b=15,x=b*le,z=new go.PathFigure(a*.62,y*.475,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a,y-b)),z.add(new go.PathSegment(go.PathSegment.Bezier,a-b,y,a,y-x,a-x,y)),z.add(new go.PathSegment(go.PathSegment.Line,b,y)),z.add(new go.PathSegment(go.PathSegment.Bezier,0,y-b,x,y,0,y-x)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.475)),z.add(new go.PathSegment(go.PathSegment.Line,a*.38,y*.03)),z.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*0)),z.add(new go.PathSegment(go.PathSegment.Line,a*.62,y*.03).close()),x>1?(E.spot1=new go.Spot(0,0,x,x),E.spot2=new go.Spot(1,1,-x,-x)):(E.spot1=go.Spot.TopLeft,E.spot2=go.Spot.BottomRight),E}),go.Shape.defineFigureGenerator("Download",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.4,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.66)),z.add(new go.PathSegment(go.PathSegment.Line,a*(1-.26),y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.44)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*0).close()),E}),go.Shape.defineFigureGenerator("Bin",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;return b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close()),E}),go.Shape.defineFigureGenerator("Upload",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*0,y*1,!0);E.add(b);var x=.1/.3;b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.8,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.66,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.755,y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*.93,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.64,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.61,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.39,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.36,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*.07,y*(1-x))),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.755),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*.055)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.66),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*(1-.8),y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*(1-x)).close());var z=new go.PathFigure(a*.5,y*0,!0);return E.add(z),z.add(new go.PathSegment(go.PathSegment.Line,a*.26,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.4,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.63)),z.add(new go.PathSegment(go.PathSegment.Line,a*.6,y*.25)),z.add(new go.PathSegment(go.PathSegment.Line,a*.74,y*.25).close()),E}),go.Shape.defineFigureGenerator("EmptyDrink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close()),E}),go.Shape.defineFigureGenerator("Drink",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.15,y*0,!1);E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.85,y*0)),b.add(new go.PathSegment(go.PathSegment.Line,a*.7,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.3,y*1).close());var x=new go.PathFigure(a*.235,y*.28,!0);return E.add(x),x.add(new go.PathSegment(go.PathSegment.Line,a*.765,y*.28)),x.add(new go.PathSegment(go.PathSegment.Line,a*.655,y*.97)),x.add(new go.PathSegment(go.PathSegment.Line,a*.345,y*.97).close()),E}),go.Shape.defineFigureGenerator("4Arrows",function(ae,a,y){var E=new go.Geometry,b=new go.PathFigure(a*.5,y*0,!0);return E.add(b),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*1,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*.75,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.55,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.65,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.5,y*1)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.75)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.55)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.65)),b.add(new go.PathSegment(go.PathSegment.Line,a*0,y*.5)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.35)),b.add(new go.PathSegment(go.PathSegment.Line,a*.25,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.45)),b.add(new go.PathSegment(go.PathSegment.Line,a*.45,y*.25)),b.add(new go.PathSegment(go.PathSegment.Line,a*.35,y*.25).close()),E}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},63089: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 ze={},dt="5.0",oe={},ne=null,Se=!1,We=!1,Ie=null,me=!1,ye=null,le=null,_e=0;_e<arguments.length;_e++){var Ae=arguments[_e];if(Ae!==null)switch(typeof Ae){case"number":dt=Ae.toFixed(1);break;case"string":Ae.match(new RegExp("^[0-9]\\.[0-9]+$"))?dt=Ae:Ie=Ae;break;case"object":typeof Ae.is3D!="undefined"?ne=Ae:oe=Ae;break;case"boolean":Se=Ae,We=!0;break}}ne===null&&(ne={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},oe.material_id!==void 0&&!We&&(Se=!0)),Ie!==null&&oe.id===void 0&&(oe.id=Ie);var De="",Ze="",ke=!1,Re=null,ae=null,a=null,y=!1,E=null,b=null,x=null,z=null,ee=null;oe.height!==void 0&&(oe.height=Math.round(oe.height)),oe.width!==void 0&&(oe.width=Math.round(oe.width));var te=function(fe){return parseFloat(fe)>4?parseFloat(fe):5};ze.setHTML5Codebase=function(fe,Ce){le=fe,Xe(fe,Ce)},ze.setJavaCodebase=ze.setJavaCodebaseVersion=ze.isCompiledInstalled=ze.setPreCompiledScriptPath=ze.setPreCompiledResourcePath=function(){},ze.setHTML5CodebaseVersion=function(fe,Ce){var Je=parseFloat(fe);if(Je!==NaN&&Je<5){console.log("The GeoGebra HTML5 codebase version "+Je+" is deprecated. Using version latest instead.");return}ye=fe,He(fe,Ce)},ze.getHTML5CodebaseVersion=function(){return ae},ze.getParameters=function(){return oe},ze.setFontsCSSURL=function(fe){z=fe},ze.setGiacJSURL=function(fe){},ze.setJNLPFile=function(fe){De=fe},ze.setJNLPBaseDir=function(fe){},ze.inject=function(){function fe(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ce="auto",Je=oe.id,ut,Ke=!1,et=0;et<arguments.length;et++){var de=arguments[et];typeof de=="string"?(de=de.toLowerCase(),de.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ce=de:Je=arguments[et]):typeof de=="boolean"?Ke=de:de instanceof HTMLElement&&(ut=de)}nt();function nt(){if(!me){setTimeout(nt,200);return}Ce=Qe(Ce);var ct=ut||document.getElementById(Je);if(!ct){console.log("possibly bug on ajax loading? ");return}if(ze.removeExistingApplet(ct,!1),oe.width===void 0&&ct.clientWidth&&(oe.width=ct.clientWidth),oe.height===void 0&&ct.clientHeight&&(oe.height=ct.clientHeight),!(oe.width&&oe.height)&&Ce==="html5"&&(delete oe.width,delete oe.height),Re=Ce,Ce==="screenshot")Mt(ct,oe);else{var Nt=!1;oe.hasOwnProperty("playButton")&&oe.playButton||oe.hasOwnProperty("clickToLoad")&&oe.clickToLoad?Nt=!0:oe.hasOwnProperty("playButtonAutoDecide")&&oe.playButtonAutoDecide&&(Nt=(!re()||fe())&&ie()),Nt?(Re="screenshot",he(ct,oe,Ke,Ce)):St(ct,oe,Ke)}}};function re(){try{return window.self!==window.top}catch(fe){return!0}}function ie(){return oe.hasOwnProperty("screenshotGenerator")&&oe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}ze.getViews=function(){return ne},ze.isJavaInstalled=function(){return!1};var ge=function(fe){var Ce=function(et){var de=JSON.parse(et),nt=function(Ft){return Ft.type=="G"||Ft.type=="E"},ct=de.elements?de.elements.filter(nt)[0]:de;if(!ct||!ct.url){Je();return}oe.fileName=ct.url,ce(ct.settings||{}),ne.is3D=!0;var Nt="https://www.geogebra.org/images/";ze.setPreviewImage(E||ct.previewUrl,Nt+"GeoGebra_loading.png",Nt+"applet_play.png"),fe()},Je=function(){oe.onError&&oe.onError(),Ye("Error: Fetching material (id "+oe.material_id+") failed.",oe)},ut=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Ke="/materials/"+oe.material_id+"?scope=basic";se("https://"+ut+"/api/proxy.php?path="+encodeURIComponent(Ke),Ce,Je)};function ce(fe){var Ce=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Je){fe[Je]=!!fe[Je]}),Ce.forEach(function(Je){oe[Je]===void 0&&fe[Je]!==void 0&&(oe[Je]=fe[Je])}),oe.showToolBarHelp===void 0&&(oe.showToolBarHelp=oe.showToolBar)}function se(fe,Ce,Je){var ut=new XMLHttpRequest;ut.open("GET",fe),ut.onload=function(){Ce(ut.responseText)},ut.onerror=Je,ut.send()}ze.isHTML5Installed=function(){return!0},ze.getLoadedAppletType=function(){return Re},ze.setPreviewImage=function(fe,Ce,Je){E=fe,b=Ce,x=Je},ze.removeExistingApplet=function(fe,Ce){var Je;typeof fe=="string"&&(fe=document.getElementById(fe)),Re=null;var ut=null;for(Je=0;Je<fe.childNodes.length;Je++){var Ke=fe.childNodes[Je],et=Ke.className;et==="applet_screenshot"?Ce?(Ke.style.display="block",Re="screenshot"):Ke.style.display="none":et!=="applet_scaler prerender"&&(fe.removeChild(Ke),ut=et&&et.indexOf("appletParameters")!=-1?Ke.id:null,Je--)}var de=oe.id!==void 0?oe.id:ut,nt=window[de];nt&&typeof nt.getBase64=="function"&&(nt.remove(),window[de]=null)},ze.refreshHitPoints=function(){if(te(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var fe=ze.getAppletObject();return fe&&typeof fe.recalculateEnvironments=="function"?(fe.recalculateEnvironments(),!0):!1},ze.startAnimation=function(){var fe=ze.getAppletObject();return fe&&typeof fe.startAnimation=="function"?(fe.startAnimation(),!0):!1},ze.stopAnimation=function(){var fe=ze.getAppletObject();return fe&&typeof fe.stopAnimation=="function"?(fe.stopAnimation(),!0):!1},ze.getAppletObject=function(){var fe=oe.id!==void 0?oe.id:"ggbApplet";return window[fe]},ze.resize=function(){};var Be=function(fe,Ce,Je){var ut=document.createElement("param");ut.setAttribute("name",Ce),ut.setAttribute("value",Je),fe.appendChild(ut)},Ge=function(fe){return fe&&fe!=="false"},St=function(fe,Ce,Je){te(ae)<=4.2&&(Je=!0);var ut=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==ae||ggbHTML5LoadedCodebaseIsWebSimple&&!y)&&(ut=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Ke=document.createElement("div");Ke.classList.add("appletParameters","notranslate");var et=Ce.width,de=Ce.height;if(Ce.disableAutoScale=Ce.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ce.disableAutoScale,Ce.width!==void 0)if(te(ae)<=4.4)Ge(Ce.showToolBar)&&(Ce.height-=7),Ge(Ce.showAlgebraInput)&&(Ce.height-=37),Ce.width<605&&Ge(Ce.showToolBar)&&(Ce.width=605,et=605);else{var nt=100;(Ge(Ce.showToolBar)||Ge(Ce.showMenuBar))&&(Ce.hasOwnProperty("customToolBar")&&(Ce.customToolbar=Ce.customToolBar),nt=Ge(Ce.showMenuBar)?245:155),et<nt&&(Ce.width=nt,et=nt)}Ke.style.border="none",Ke.style.display="inline-block";for(var ct in Ce)Ce.hasOwnProperty(ct)&&ct!=="appletOnLoad"&&Ke.setAttribute("data-param-"+ct,Ce[ct]);z&&Ke.setAttribute("data-param-fontscssurl",z),ze.resize=function(){GGBAppletUtils.responsiveResize(fe,Ce)},window.addEventListener("resize",function(Et){ze.resize()});var Nt=typeof Ce.appletOnLoad=="function"?Ce.appletOnLoad:function(){};if(!Je&&Ce.width!==void 0){Ce.hasOwnProperty("showSplash")||Ke.setAttribute("data-param-showSplash","false");var Ft=fe.querySelector(".applet_scaler.prerender"),Fe=Ft!==null;if(Fe)var Le=Ft.querySelector(".ggb_preview");else{var Le=Ee(et,de,Ce.borderColor,!1);Ft=document.createElement("div"),Ft.className="applet_scaler",Ft.style.position="relative",Ft.style.display="block",Ft.style.width=et+"px",Ft.style.height=de+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ft,"66%"),te(ae)>=5?(Ce.appletOnLoad=function(Et){var yt=fe.querySelector(".ggb_preview");yt&&yt.parentNode.removeChild(yt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Ft),window.GGBT_wsf_view&&$(window).trigger("resize"),Nt(Et)},Fe||Ft.appendChild(Le)):Ke.appendChild(Le),Ft.appendChild(Ke),Fe||fe.appendChild(Ft),setTimeout(function(){ze.resize()},1)}else{var Pe=document.createElement("div");Pe.className="applet_scaler",Pe.style.position="relative",Pe.style.display="block",Pe.appendChild(Ke),fe.appendChild(Pe),Ce.appletOnLoad=function(Et){ze.resize(),Nt(Et)}}function Te(Et,yt){yt&&typeof yt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Et,yt.appletOnLoad):renderGGBElement(Et),Ye("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",yt)}function je(Et,yt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Et,params:yt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(wt){Te(wt.article,wt.params)}),html5AppletsToProcess=null)},te(ae)<5&&(Et.className+=" geogebraweb")):Te(Et,yt)}if(ut){scriptLoadStarted=!0;for(var lt=0;lt<Ke.childNodes.length;lt++){var Bt=Ke.childNodes[lt].tagName;Bt==="TABLE"&&(Ke.removeChild(Ke.childNodes[lt]),lt--)}if(ggbHTML5LoadedScript!==null){var bt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');bt!=null&&bt.parentNode.removeChild(bt)}var zt=document.createElement("script"),At=function(){je(Ke,Ce)};zt.src=Ze+a,ggbHTML5LoadedCodebaseIsWebSimple=y,ggbHTML5LoadedCodebaseVersion=ae,ggbHTML5LoadedScript=zt.src,Ye("GeoGebra HTML5 codebase loaded: '"+Ze+"'.",Ce),!le&&(!ye||ye=="5.0")?(y?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),At()):Ze.requirejs?__webpack_require__.e(6954).then(function(){var Et=[__webpack_require__(76954)];At.apply(null,Et)}.bind(this)).catch(__webpack_require__.oe):(zt.onload=At,fe.appendChild(zt))}else je(Ke,Ce);Ce.height=de,Ce.width=et},Mt=function(fe,Ce,Je){var ut=Ee(Ce.width,Ce.height,Ce.borderColor,Je),Ke=document.createElement("div");Ke.style.position="relative",Ke.style.display="block",Ke.style.width=Ce.width+"px",Ke.style.height=Ce.height+"px",Ke.className="applet_screenshot applet_scaler"+(Je?" applet_screenshot_play":""),Ke.appendChild(ut);var et=GGBAppletUtils.getScale(Ce,fe,Je);Je?(fe.appendChild(xe()),window.GGBT_wsf_view||(fe.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Ke,"66%"),fe.appendChild(Ke),et!==1&&!isNaN(et)&&(GGBAppletUtils.scaleElement(Ke,et),Ke.style.width=Ce.width+"px",Ke.style.height=Ce.height+"px",Ke.parentNode.style.width=Ce.width*et+"px",Ke.parentNode.style.height=Ce.height*et+"px"),ze.resize=function(){Wt(fe,ut,Ke,Je)},window.addEventListener("resize",function(de){ze.resize()}),ze.resize()};function Wt(fe,Ce,Je,ut){if(fe.contains(Ce)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(fe.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(fe)}var Ke=GGBAppletUtils.getScale(oe,fe,ut);Je.parentNode!==null&&(!isNaN(Ke)&&Ke!==1?(GGBAppletUtils.scaleElement(Je,Ke),Je.parentNode.style.width=oe.width*Ke+"px",Je.parentNode.style.height=oe.height*Ke+"px"):(GGBAppletUtils.scaleElement(Je,1),Je.parentNode.style.width=oe.width+"px",Je.parentNode.style.height=oe.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()}}ze.onExitFullscreen=function(fe,Ce){Ce.appendChild(fe)};var he=function(fe,Ce,Je,ut){Mt(fe,Ce,!0);for(var Ke=function(){var nt=[];for(de=0;de<fe.childNodes.length;de++)nt.push(fe.childNodes[de]);if(window.GGBT_wsf_view){var ct=window.GGBT_wsf_view.renderFullScreen(fe,Ce.id),Nt=document.getElementById("fullscreencontainer"),Ft=jQuery(fe).find(".fullscreencontent");Ft.length>0?(ct.remove(),Ft.attr("id","fullscreencontent").show(),jQuery(Nt).append(Ft),window.dispatchEvent(new Event("resize"))):St(ct,Ce,!1),window.GGBT_wsf_view.launchFullScreen(Nt)}else Re=ut,St(fe,Ce,!1);if(!window.GGBT_wsf_view)for(de=0;de<nt.length;de++)fe.removeChild(nt[de])},et=fe.getElementsByClassName("ggb_preview_play"),de=0;de<et.length;de++)et[de].addEventListener("click",Ke,!1),et[de].addEventListener("ontouchstart",Ke,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(fe),ie()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},xe=function(){var fe=document.createElement("div");if(fe.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ce='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Je=document.createElement("style");Je.styleSheet?Je.styleSheet.cssText=Ce:Je.appendChild(document.createTextNode(Ce)),document.getElementsByTagName("head")[0].appendChild(Je)}return fe},Ee=function(fe,Ce,Je,ut){var Ke=document.createElement("div");Ke.className="ggb_preview",Ke.style.position="absolute",Ke.style.zIndex="90",Ke.style.width=fe-2+"px",Ke.style.height=Ce-2+"px",Ke.style.top="0px",Ke.style.left="0px",Ke.style.overflow="hidden",Ke.style.backgroundColor="white";var et="lightgrey";Je!==void 0&&(Je==="none"?et="transparent":et=Je),Ke.style.border="1px solid "+et;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 nt,ct,Nt;if(!ut){nt=document.createElement("img"),nt.style.position="absolute",nt.style.zIndex="1001",nt.style.opacity=1,de.style.opacity=.3,ct=360,ct>fe/4*3&&(ct=fe/4*3),Nt=ct/5.8,nt.setAttribute("src",b),nt.setAttribute("width",ct),nt.setAttribute("height",Nt);var Ft=(fe-ct)/2,Fe=(Ce-Nt)/2;nt.style.left=Ft+"px",nt.style.top=Fe+"px",Ke.appendChild(nt)}}return Ke.appendChild(de),Ke},Qe=function(fe){return fe=fe.toLowerCase(),fe==="html5"||fe==="screenshot"?fe:"html5"},it=["web","webSimple","web3d","tablet","tablet3d","phone"],He=function(fe,Ce){if(ae=fe,Ce){Xe(ae,!0);return}var Je=!Se;if(Je){var ut=te(ae);!isNaN(ut)&&ut<4.4&&(Je=!1)}var Ke,et;window.location.protocol.substr(0,4)==="http"?Ke=window.location.protocol:Ke="http:";var de=ae.indexOf("//");de>0?et=ae:de===0?et=Ke+ae:et="https://www.geogebra.org/apps/5.2.814.0/";for(var nt in it)if(ae.slice(it[nt].length*-1)===it[nt]||ae.slice((it[nt].length+1)*-1)===it[nt]+"/"){Xe(et,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Je&&!ne.is3D&&!ne.AV&&!ne.SV&&!ne.CV&&!ne.EV2&&!ne.CP&&!ne.PC&&!ne.DA&&!ne.FI&&!ne.PV&&!Ge(oe.showToolBar)&&!Ge(oe.showMenuBar)&&!Ge(oe.showAlgebraInput)&&!Ge(oe.enableRightClick)&&(!oe.appName||oe.appName=="classic")?et+="webSimple/":et+="web3d/",Xe(et,!1)},Xe=function(fe,Ce){if(fe.requirejs){Ze=fe;return}fe.slice(-1)!=="/"&&(fe+="/"),Ze=fe,Ce===null&&(Ce=fe.indexOf("http")===-1),ke=Ce,a="web.nocache.js",y=!1;var Je=Ze.split("/");Je.length>1&&(!Ce&&Je[Je.length-2]==="webSimple"?(a="webSimple.nocache.js",y=!0):it.indexOf(Je[Je.length-2])>=0&&(a=Je[Je.length-2]+".nocache.js")),Je=fe.split("/"),ae=Je[Je.length-3],ae.substr(0,4)==="test"?ae=ae.substr(4,1)+"."+ae.substr(5,1):(ae.substr(0,3)==="war"||ae.substr(0,4)==="beta")&&(ae="5.0");var ut=parseFloat(ae);ut!==NaN&&ut<5&&fe.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ut+" is deprecated. Using version latest instead."),He("5.0",Ce))},Ye=function(fe,Ce){window.console&&window.console.log&&(!Ce||typeof Ce.showLogging=="undefined"||Ce.showLogging&&Ce.showLogging!=="false")&&console.log(fe)};oe.material_id!==void 0?ge(Pt):Pt();function Pt(){var fe=dt;ye!==null?fe=ye:parseFloat(fe)<5&&(fe="5.0"),He(fe,!1),le!==null&&Xe(le,ke),me=!0}return ze},GGBAppletUtils=function(){"use strict";function ze(){return window.GGBT_wsf_edit!==void 0}function dt(me,ye){ye!=1?(me.style.transformOrigin="0% 0% 0px",me.style.webkitTransformOrigin="0% 0% 0px",me.style.transform="scale("+ye+","+ye+")",me.style.webkitTransform="scale("+ye+","+ye+")",me.style.maxWidth="initial",me.querySelector(".ggb_preview")!==null&&(me.querySelector(".ggb_preview").style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[0]!==void 0&&(me.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),me.querySelectorAll(".ggb_preview img")[1]!==void 0&&(me.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(me.style.transform="none",me.style.webkitTransform="none")}function oe(me,ye,le,_e,Ae,De){var Ze=null;if(De!=null&&De!="")for(var ke=me.parentNode;ke!=null;)if((" "+ke.className+" ").indexOf(" "+De+" ")>-1){Ze=ke;break}else ke=ke.parentNode;var Re=0,ae=0,a=0,y=0,E=0,b=0,x=0;if(Ze)Re=Ze.offsetWidth,ae=Math.max(_e?Ze.offsetWidth:0,Ze.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Re=Math.min(window.innerWidth,document.documentElement.clientWidth),ae=Math.min(window.innerHeight,document.documentElement.clientHeight),a=Re):(Re=window.innerWidth,ae=window.innerHeight,a=window.innerWidth),me){var z=me.getBoundingClientRect();z.left>0&&z.left<=Re&&(Ae===void 0||!Ae)&&(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(me&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ee=me.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(y=40,x=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(y=0,x=40)}}return me&&((le===void 0||!le)&&ye>0&&ye+y<Re?Re=ye:Re-=y,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(le===void 0||!le)&&(ae-=x)),{width:Re,height:ae}}function ne(me,ye,le,_e,Ae){if(me.isScreenshoGenerator)return 1;var De=_e!==void 0&&_e,Ze=me.noScaleMargin!=null&&me.noScaleMargin,ke=function(ee){return ee&&ee!=="false"},Re=ke(me.autoHeight),ae=oe(ye,me.width,le,Re,De&&window.GGBT_wsf_view||Ze,Ae),a=parseInt(ae.width),y=me.width,E=me.height;if(y===void 0){var b=ye.querySelector(".appletParameters");b&&(y=b.offsetWidth,E=b.offsetHeight)}var x=a/y,z=De?1:ae.height/E;return le!==void 0&&!le&&(x=Math.min(1,x),z=Math.min(1,z)),Math.min(x,z)}function Se(me,ye,le){var _e=1,Ae,De=!1;if(me.hasOwnProperty("allowUpscale")&&(De=me.allowUpscale),me.hasOwnProperty("scale")&&(_e=parseFloat(me.scale),(isNaN(_e)||_e===null||_e===0)&&(_e=1),_e>1&&(De=!0)),ye&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De=!0),!(me.hasOwnProperty("disableAutoScale")&&me.disableAutoScale))Ae=ne(me,ye,De,le,me.scaleContainerClass);else return _e;return De&&(!me.hasOwnProperty("scale")||_e===1)?Ae:Math.min(_e,Ae)}function We(me){var ye=Math.min(window.innerWidth,document.documentElement.clientWidth),le=Math.min(window.innerHeight,document.documentElement.clientHeight),_e=me.getBoundingClientRect(),Ae=(ye-_e.width)/2,De=(le-_e.height)/2;De<0&&(De=0),me.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ae<40?me.style.left="40px":me.style.left=Ae+"px",me.style.top=De+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(De<40?me.style.top="40px":me.style.top=De+"px",me.style.left=Ae+"px")}function Ie(me,ye){var le=me.querySelector(".appletParameters");if(le){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ye.id!==le.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(me)}if(le.parentElement&&/fullscreen/.test(le.parentElement.className))return;var _e=Se(ye,me);ze()&&le.setAttribute("data-param-scale",_e);for(var Ae=null,De=0;De<me.childNodes.length;De++)if(me.childNodes[De].className!==void 0&&me.childNodes[De].className.match(/^applet_scaler/)){Ae=me.childNodes[De];break}if(Ae!==null&&Ae.querySelector(".noscale")!==null)return;var Ze=ye.id!==void 0?ye.id:"ggbApplet",ke=window[Ze];(ke==null||!ke.recalculateEnvironments)&&Ae!==null&&!Ae.className.match(/fullscreen/)&&(Ae.parentNode.style.transform="",!isNaN(_e)&&_e!==1?(Ae.parentNode.style.width=ye.width*_e+"px",Ae.parentNode.style.height=ye.height*_e+"px",dt(Ae,_e)):(dt(Ae,1),Ae.parentNode.style.width=ye.width+"px",Ae.parentNode.style.height=ye.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&We(me),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(le).parents(".content-added-content"))}}return{responsiveResize:Ie,isFlexibleWorksheetEditor:ze,positionCenter:We,getScale:Se,scaleElement:dt}}();__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 ze=n.location.search;return ze.indexOf(J)!=-1||ze.indexOf(K)!=-1}function q(ze,dt){}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(ze){var dt=s[L].bindings;s[L].bindings=function(){for(var oe=dt?dt():{},ne=ze[webModule.__softPermutationId],Se=O;Se<ne.length;Se++){var We=ne[Se];oe[We[O]]=We[P]}return oe}};var t;function u(){return v(),t}function v(){if(!t){var ze=o.createElement(Q);if(ze.id=L,ze.style.cssText=R+S,ze.tabIndex=-1,o.body.appendChild(ze),t=ze.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var dt=document.compatMode==U?V:W;t.write(dt+X),t.close()}}}function w(ze){function dt(ne){function Se(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var We=Se();if(We){ne();return}function Ie(){if(!We){if(!Se())return;We=!0,ne(),o.removeEventListener&&o.removeEventListener(Z,Ie,!1),me&&clearInterval(me)}}o.addEventListener&&o.addEventListener(Z,Ie,!1);var me=setInterval(function(){Ie()},$)}function oe(ne){var Se=u(),We=Se.body,Ie=Se.createElement(_);Ie.language=ab,Ie.crossOrigin=W,Ie.src=ne,webModule.__errFn&&(Ie.onerror=function(){webModule.__errFn(L,new Error(bb+ne))}),We.appendChild(Ie)}dt(function(){oe(ze)})}webModule.__startLoadingFragment=function(ze){return C(ze)},webModule.__installRunAsyncCode=function(ze){var dt=u(),oe=dt.body,ne=dt.createElement(_);ne.language=ab,ne.text=ze,oe.appendChild(ne),oe.removeChild(ne)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(ze){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(ze){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(ze){var dt=c[ze];return dt==null?null:dt},r=d,webModule.__errFn=e}function B(){function ze(me){var ye=me.lastIndexOf(rb);ye==-1&&(ye=me.length);var le=me.indexOf(sb);le==-1&&(le=me.length);var _e=me.lastIndexOf(tb,Math.min(le,ye));return _e>=O?me.substring(O,_e+P):W}function dt(me){if(!me.match(/^\w+:\/\//)){var ye=o.createElement(ub);ye.src=me+vb,me=ze(ye.src)}return me}function oe(){var me=__gwt_getMetaProperty(wb);return me!=null?me:W}function ne(){for(var me=o.getElementsByTagName(_),ye=O;ye<me.length;++ye)if(me[ye].src.indexOf(xb)!=-1)return ze(me[ye].src);return W}function Se(){var me=o.getElementsByTagName(yb);return me.length>O?me[me.length-P].href:W}function We(){var me=o.location;return me.href==me.protocol+zb+me.host+me.pathname+me.search+me.hash}var Ie=oe();return Ie==W&&(Ie=ne()),Ie==W&&(Ie=Se()),Ie==W&&We()&&(Ie=ze(o.location.href)),Ie=dt(Ie),Ie}function C(ze){return ze.match(/^\//)||ze.match(/^[a-zA-Z]+:\/\//)?ze:webModule.__moduleBase+ze}function D(){var ze=[],dt=O,oe=[],ne=[];function Se(me){var ye=ne[me](),le=oe[me];if(ye in le)return ye;var _e=[];for(var Ae in le)_e[le[Ae]]=Ae;throw r&&r(me,_e,ye),null}if(__gwt_isKnownPropertyValue=function(me,ye){return ye in oe[me]},webModule.__getPropMap=function(){var me={};for(var ye in oe)oe.hasOwnProperty(ye)&&(me[ye]=Se(ye));return me},webModule.__computePropValue=Se,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var We;try{We=Cb;var Ie=We.indexOf(Db);Ie!=-1&&(dt=parseInt(We.substring(Ie+P),$),We=We.substring(O,Ie))}catch(me){}return webModule.__softPermutationId=dt,C(We+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase=window.ENV==="build"?"/react/build/js/mathematicalGraphics/"+name+"/":"/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},88457:function(ze,dt,oe){"use strict";oe.d(dt,{Ax:function(){return Ie},Ds:function(){return me},KI:function(){return le},SI:function(){return We},f1:function(){return Se}});var ne=oe(78323);function Se(_e){let Ae=!0;if(_e.length>0){for(let De=0;De<_e.length;De++)if(_e[De].compile_success==0||!_e[De].compile_success){Ae=!1;break}}else Ae=!1;return Ae}function We(_e,Ae=""){let De=[];for(let Ze=0;Ze<_e.length;Ze++){let ke=_e[Ze],Re=Ae?`${Ae}/${ke.name}`:`${ke.name}`;De.push({title:ke.name,type:ke.type,isLeaf:ke.type!=="tree",key:Re})}return De}function Ie(_e,Ae,De){for(let Ze=0;Ze<_e.length;Ze++){let ke=_e[Ze];if(ke.key===Ae){ke.children=De;break}ke.children&&Ie(ke.children,Ae,De)}return _e}function me(_e,Ae,De){let Ze;return function(){let ke=this,Re=arguments,ae=function(){Ze=null,De||_e.apply(ke,Re)},a=De&&!Ze;clearTimeout(Ze),Ze=setTimeout(ae,Ae),a&&_e.apply(ke,Re)}}const ye=!0,le=ne.Z.API_SERVER},37875:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return Wt}});var ne=oe(59301),Se=oe(95392),We=oe(24905),Ie=oe(12893),me=oe(32134),ye=oe(57193),le=oe(78241),_e=oe(57809),Ae={},De=Object.defineProperty,Ze=Object.getOwnPropertySymbols,ke=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,ae=(he,xe,Ee)=>xe in he?De(he,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):he[xe]=Ee,a=(he,xe)=>{for(var Ee in xe||(xe={}))ke.call(xe,Ee)&&ae(he,Ee,xe[Ee]);if(Ze)for(var Ee of Ze(xe))Re.call(xe,Ee)&&ae(he,Ee,xe[Ee]);return he},y=(he,xe,Ee)=>new Promise((Qe,it)=>{var He=Pt=>{try{Ye(Ee.next(Pt))}catch(fe){it(fe)}},Xe=Pt=>{try{Ye(Ee.throw(Pt))}catch(fe){it(fe)}},Ye=Pt=>Pt.done?Qe(Pt.value):Promise.resolve(Pt.value).then(He,Xe);Ye((Ee=Ee.apply(he,xe)).next())});const E=We.default.Group,b=({classroomList:he,loading:xe,user:Ee,exercise_id:Qe=null,homework_common_id:it=null,setitem:He,item:Xe,type:Ye,rz:Pt,dispatch:fe})=>{var Ce,Je,ut,Ke,et,de,nt,ct;const[Nt,Ft]=(0,ne.useState)([]);let[Fe,Le]=(0,ne.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const Pe=(0,Se.useParams)(),[Te,je]=(0,ne.useState)(!1),[lt,Bt]=(0,ne.useState)(!1),[bt]=le.default.useForm();(0,ne.useEffect)(()=>{Pt&&(Fe.zydatas=Pt,Le(a({},Fe)),Xe!=null&&Xe.ec_course_id&&zt())},[Xe,Pt]);function zt(){return y(this,null,function*(){console.log("----",Xe),yield At(Xe==null?void 0:Xe.ec_major_school_id),yield Et(Xe==null?void 0:Xe.ec_year_id),yield yt(Xe==null?void 0:Xe.ec_course_id),bt.setFieldsValue({ec_course_id:Xe==null?void 0:Xe.ec_course_id,ec_major_school_id:Xe==null?void 0:Xe.ec_major_school_id,ec_point_ids:Xe==null?void 0:Xe.ec_point_ids,ec_year_id:Xe==null?void 0:Xe.ec_year_id})})}function At(wt){return y(this,null,function*(){const Ht=yield(0,ye.ZP)(`/api/ec_major_schools/${wt}/ec_years/get_year_list.json`,{method:"get"});Fe.jbdatas=Ht==null?void 0:Ht.data,Le(a({},Fe)),bt.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function Et(wt){return y(this,null,function*(){const Ht=yield(0,ye.ZP)(`/api/ec_years/${wt}/ec_courses/get_courses.json`,{method:"get"});Fe.kcdatas=Ht==null?void 0:Ht.data,Le(a({},Fe)),bt.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const yt=wt=>y(void 0,null,function*(){const Ht=yield(0,ye.ZP)(`/api/ec_courses/${wt}/ec_points.json`,{method:"get",params:{ec_course_id:wt}});Fe.zsdatas=Ht==null?void 0:Ht.data,Le(a({},Fe))});return ne.createElement("div",{className:Ae.from},ne.createElement(le.default,{form:bt,layout:"inline",onValuesChange:wt=>{console.log("----",wt),wt.ec_major_school_id&&(Fe.jbdatas=[],Fe.kcdatas=[],Fe.zsdatas=[],Le(a({},Fe)),At(wt.ec_major_school_id)),wt.ec_year_id&&(Fe.kcdatas=[],Fe.zsdatas=[],Le(a({},Fe)),Et(wt.ec_year_id)),wt.ec_course_id&&(Fe.zsdatas=[],Le(a({},Fe)),yt(wt.ec_course_id))},onFinish:wt=>y(void 0,null,function*(){He(wt)})},ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u4E13\u4E1A",name:"ec_major_school_id"},ne.createElement(_e.default,{style:{width:150},disabled:((Ce=Fe.zydatas)==null?void 0:Ce.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Je=Fe==null?void 0:Fe.zydatas)==null?void 0:Je.map((wt,Ht)=>ne.createElement(_e.default.Option,{key:Ht,value:wt==null?void 0:wt.ec_major_school_id},wt==null?void 0:wt.name)))),ne.createElement(le.default.Item,{label:"\u8BA4\u8BC1\u5C4A\u522B",name:"ec_year_id"},ne.createElement(_e.default,{style:{width:150},disabled:((ut=Fe.jbdatas)==null?void 0:ut.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(Ke=Fe==null?void 0:Fe.jbdatas)==null?void 0:Ke.map((wt,Ht)=>ne.createElement(_e.default.Option,{key:Ht,value:wt==null?void 0:wt.ec_year_id},wt==null?void 0:wt.year)))),ne.createElement(le.default.Item,{label:"\u8BFE\u7A0B",name:"ec_course_id"},ne.createElement(_e.default,{style:{width:150},disabled:((et=Fe.kcdatas)==null?void 0:et.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(de=Fe==null?void 0:Fe.kcdatas)==null?void 0:de.map((wt,Ht)=>ne.createElement(_e.default.Option,{key:Ht,value:wt==null?void 0:wt.id},wt==null?void 0:wt.name)))),ne.createElement(le.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"ec_point_ids"},ne.createElement(_e.default,{onChange:()=>{bt.submit()},style:{width:150},mode:"multiple",disabled:((nt=Fe.zsdatas)==null?void 0:nt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(ct=Fe==null?void 0:Fe.zsdatas)==null?void 0:ct.map((wt,Ht)=>ne.createElement(_e.default.Option,{key:Ht,value:wt==null?void 0:wt.id},wt==null?void 0:wt.name))))))};var x=(0,Se.connect)(({classroomList:he,loading:xe,globalSetting:Ee,user:Qe})=>({classroomList:he,globalSetting:Ee,loading:xe.effects,user:Qe}))(b),z=Object.defineProperty,ee=Object.defineProperties,te=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ce=(he,xe,Ee)=>xe in he?z(he,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):he[xe]=Ee,se=(he,xe)=>{for(var Ee in xe||(xe={}))ie.call(xe,Ee)&&ce(he,Ee,xe[Ee]);if(re)for(var Ee of re(xe))ge.call(xe,Ee)&&ce(he,Ee,xe[Ee]);return he},Be=(he,xe)=>ee(he,te(xe)),Ge=(he,xe,Ee)=>new Promise((Qe,it)=>{var He=Pt=>{try{Ye(Ee.next(Pt))}catch(fe){it(fe)}},Xe=Pt=>{try{Ye(Ee.throw(Pt))}catch(fe){it(fe)}},Ye=Pt=>Pt.done?Qe(Pt.value):Promise.resolve(Pt.value).then(He,Xe);Ye((Ee=Ee.apply(he,xe)).next())});const St=We.default.Group,Mt=({classroomList:he,loading:xe,user:Ee,exercise_id:Qe=null,homework_common_id:it=null,setitem:He,type:Xe,dispatch:Ye})=>{var Pt,fe;let[Ce,Je]=(0,ne.useState)([{}]),[ut,Ke]=(0,ne.useState)([]);function et(){return Ge(this,null,function*(){var nt,ct,Nt;let Ft=yield(0,ye.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:Qe,homework_common_id:it}});if(((nt=Ft==null?void 0:Ft.data)==null?void 0:nt.length)>0){let Fe=[];(ct=Ft==null?void 0:Ft.data)==null||ct.map(Le=>{var Pe;(Pe=Le==null?void 0:Le.ec_point_ids)==null||Pe.map(Te=>{Fe.push(Te)})}),He(Be(se({},(Nt=Ft==null?void 0:Ft.data)==null?void 0:Nt[0]),{ec_point_ids:Fe})),Je(Ft==null?void 0:Ft.data)}})}(0,ne.useEffect)(()=>{var nt,ct;(ct=(nt=Ee==null?void 0:Ee.userInfo)==null?void 0:nt.course)!=null&&ct.course_school_id&&de()},[(fe=(Pt=Ee==null?void 0:Ee.userInfo)==null?void 0:Pt.course)==null?void 0:fe.course_school_id]);function de(){return Ge(this,null,function*(){var nt,ct;const Nt=yield(0,ye.ZP)(`/api/schools/${(ct=(nt=Ee==null?void 0:Ee.userInfo)==null?void 0:nt.course)==null?void 0:ct.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ke(Nt==null?void 0:Nt.data),(it||Qe)&&et()})}return ne.createElement("div",null,ne.createElement("p",{style:{fontSize:"16px",fontWeight:400}},"\u5DE5\u7A0B\u8BA4\u8BC1\u8003\u6838\u77E5\u8BC6\u70B9"),Ce==null?void 0:Ce.map((nt,ct)=>ne.createElement("div",{key:ct,style:{display:"flex",alignItems:"center",marginBottom:"10px"}},ne.createElement(x,{rz:ut,item:nt,type:ct,setitem:Nt=>{Ce.splice(ct,1,Nt),Je([...Ce]);let Ft=[];Ce==null||Ce.map(Fe=>{var Le;(Le=Fe==null?void 0:Fe.ec_point_ids)==null||Le.map(Pe=>{Ft.push(Pe)})}),He(Be(se({},Nt),{ec_point_ids:Ft}))}}),ct!=0&&ne.createElement(Ie.Z,{onClick:()=>{Ce.splice(ct,1),Je([...Ce])},style:{marginLeft:10,fontSize:"20px"}}),ne.createElement(me.Z,{onClick:()=>{Ce.push({}),Je([...Ce])},style:{marginLeft:10,fontSize:"20px"}}))))};var Wt=(0,Se.connect)(({classroomList:he,loading:xe,globalSetting:Ee,user:Qe})=>({classroomList:he,globalSetting:Ee,loading:xe.effects,user:Qe}))(Mt)},86197:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ze}});var ne=oe(59301),Se={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},We=oe(92310),Ie=oe.n(We),me=oe(71418),ye=oe(2859),le=oe(57193),_e=oe(63949),Ae=(ke,Re,ae)=>new Promise((a,y)=>{var E=z=>{try{x(ae.next(z))}catch(ee){y(ee)}},b=z=>{try{x(ae.throw(z))}catch(ee){y(ee)}},x=z=>z.done?a(z.value):Promise.resolve(z.value).then(E,b);x((ae=ae.apply(ke,Re)).next())}),Ze=({data:ke,className:Re,fullWidth:ae,style:a={},onClose:y,onOk:E,showFullTools:b,noAssociationId:x})=>{const z=(0,ne.useRef)(null),ee=(0,ne.useRef)(null),te=(0,ne.useRef)(null),re=(0,ne.useRef)(null),[ie,ge]=(0,ne.useState)(!1),[ce,se]=(0,ne.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ne.useEffect)(()=>{te.current||(te.current=document.createElement("style"),document.head.appendChild(te.current)),ke!=null&&ke.visible?(document.body.setAttribute("data-custom","y-hidden"),te.current.innerHTML=" html { overflow-y: hidden; }",ke!=null&&ke.src&&Be()):(document.body.removeAttribute("data-custom"),te.current&&(document.head.removeChild(te.current),te.current=null))},[ke==null?void 0:ke.visible]);const Be=()=>Ae(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u52A0\u8F7D\u4E2D");const he=yield(0,_e.ZJ)(ke==null?void 0:ke.src);z.current.src="",z.current.src=he,z.current.onload=function(){Wt()},ge(!1),se("")}),Ge=()=>{document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",y()},St=he=>Ae(void 0,null,function*(){ge(!0),se("\u6B63\u5728\u4FDD\u5B58\u4E2D");const xe=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ke.title,file:he.dataUrl}});xe!=null&&xe.id&&!x?(yield(0,le.ZP)(`/api/attachments/${ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:xe==null?void 0:xe.id,settings:JSON.stringify(he.state)}})).status===0&&E():xe!=null&&xe.id&&E(xe),document.body.removeAttribute("data-custom"),te.current.innerHTML=" ",ge(!1),se("")}),Mt=()=>{const he=document.querySelector('a[href="https://markerjs.com/"]');he&&he.parentNode&&(he.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(Ee=>{const Qe=document.querySelector(Ee.name);Qe&&Qe.setAttribute("title",Ee.title)})},Wt=()=>{ee.current=new ye.hP(z.current),ee.current.targetRoot=re.current,ee.current.addEventListener("render",St),ee.current.addEventListener("beforeclose",Ge),b&&(ee.current.availableMarkerTypes=ee.current.ALL_MARKER_TYPES,ee.current.uiStyleSettings.redoButtonVisible=!0,ee.current.uiStyleSettings.notesButtonVisible=!0,ee.current.uiStyleSettings.zoomButtonVisible=!0,ee.current.uiStyleSettings.zoomOutButtonVisible=!0,ee.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ee.current.uiStyleSettings,ee.current.show(),ke!=null&&ke.snapshotData&&ee.current.restoreState(ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Mt()},300)};return ne.createElement(ne.Fragment,null,(ke==null?void 0:ke.visible)&&ne.createElement(me.Z,{spinning:ie,tip:ce,style:{position:"absolute"}},ne.createElement("div",{ref:re,className:Ie()(Se.imageDimensions,Re,ae?Se.fullWidth:""),style:a},ne.createElement("img",{className:Se.img,ref:z}))))}},24638:function(ze,dt,oe){"use strict";var ne=oe(59301),Se=oe(95237),We=oe(43604),Ie=oe(99313),me=oe(3113),ye=oe(76818),le=oe(27431),_e=oe(48136),Ae=oe(59301);const De=(0,ne.forwardRef)(({callback:Ze,showSaveButton:ke,value:Re=""},ae)=>{const a=(0,ne.useRef)(),y=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],E=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],b=ee=>{a.current.setValue(a.current.getValue()+" "+ee.value+" ")},x=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Ae.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},y.map((ee,te)=>Ae.createElement(We.Z,{flex:"110px",className:le.Z.item},Ae.createElement("div",null,Ae.createElement(ye.Z,{value:`$$${ee.value}$$`}),ee.name),Ae.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Ae.createElement("div",{key:ie},Ae.createElement("h1",null,re.name),Ae.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,ce)=>Ae.createElement(We.Z,{key:ce,onClick:()=>b(ge),className:le.Z.diamond},Ae.createElement(ye.Z,{value:"`$$"+ge.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Ae.createElement(Se.Z,{className:le.Z.lists,gutter:[10,10]},E.map((ee,te)=>Ae.createElement(We.Z,{flex:"110px",className:le.Z.item},Ae.createElement("div",null,Ae.createElement(ye.Z,{value:"`$$"+ee.value+"$$`"}),ee.name),Ae.createElement("div",{className:le.Z.children},ee.children.map((re,ie)=>Ae.createElement("div",{key:ie},re.name&&Ae.createElement("h1",null,re.name),Ae.createElement(Se.Z,{gutter:[10,10]},re.data.map((ge,ce)=>Ae.createElement(We.Z,{key:ce,onClick:()=>b(ge),className:le.Z.diamond},Ae.createElement(ye.Z,{value:"`$$"+ge.value+"$$`"}))))))))))}],z=()=>{var ee=document.createElement("div");ee.innerHTML=a.current.getValue();var te=ee.innerText;return Ze&&Ze(te),te};return(0,ne.useImperativeHandle)(ae,()=>({getData:z})),Ae.createElement("div",{className:le.Z.mathWrap},Ae.createElement(Ie.default,{defaultActiveKey:"1",items:x}),Ae.createElement("math-field",{locale:"zh_cn",className:le.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:a,style:{width:800,marginTop:30,fontSize:18}},Re||""),ke&&Ae.createElement("div",{className:le.Z.button},Ae.createElement(me.ZP,{size:"large",onClick:z,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});dt.Z=De},97041:function(ze,dt,oe){"use strict";oe.d(dt,{z:function(){return Qe},Z:function(){return it}});var ne=oe(59301),Se=oe(54580),We=oe(8591),Ie=oe(43418),me=oe(3113),ye=oe(78323),le=oe(12480),_e=Object.defineProperty,Ae=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,ke=(He,Xe,Ye)=>Xe in He?_e(He,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):He[Xe]=Ye,Re=(He,Xe)=>{for(var Ye in Xe||(Xe={}))De.call(Xe,Ye)&&ke(He,Ye,Xe[Ye]);if(Ae)for(var Ye of Ae(Xe))Ze.call(Xe,Ye)&&ke(He,Ye,Xe[Ye]);return He},ae=(He,Xe,Ye)=>new Promise((Pt,fe)=>{var Ce=Ke=>{try{ut(Ye.next(Ke))}catch(et){fe(et)}},Je=Ke=>{try{ut(Ye.throw(Ke))}catch(et){fe(et)}},ut=Ke=>Ke.done?Pt(Ke.value):Promise.resolve(Ke.value).then(Ce,Je);ut((Ye=Ye.apply(He,Xe)).next())});const a="\u3000\u3000";function y(He){var Xe=["Bytes","KB","MB","GB","TB"];if(He==0)return"0 Byte";var Ye=parseInt(""+Math.floor(Math.log(He)/Math.log(1024)),10);return(He/Math.pow(1024,Ye)).toFixed(1)+" "+Xe[Ye]}var E=({value:He=[],action:Xe,onChange:Ye,className:Pt,maxSize:fe=150,title:Ce="\u6587\u4EF6\u4E0A\u4F20",accept:Je=null})=>{const ut={multiple:!1,fileList:He,accept:Je,withCredentials:!0,beforeUpload:et=>et.size/1024/1024<fe?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${fe}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(et){var de,nt,ct,Nt;let Ft=[...et.fileList];if(Ft=Ft.map(Fe=>(Fe.name.indexOf(a)===-1&&(Fe.name=`${Fe.name}${a}${y(Fe.size)}`),Re({},Fe))),et.file.status==="done"&&((nt=(de=et.file)==null?void 0:de.response)==null?void 0:nt.status)===-1){message.error((Nt=(ct=et.file)==null?void 0:ct.response)==null?void 0:Nt.message),Ye([]);return}Ye(Ft)},onRemove:et=>ae(void 0,null,function*(){const de=et.size/1024/1024;return et.status==="uploading"?!0:de<fe&&(et.response?et.response.id:et.uid)?yield removeAttachment(et.response?et.response.id:et.id):!0})};function Ke(et){et.preventDefault(),et.stopPropagation()}return React.createElement("div",{className:`single-upload ${Pt||""}`},React.createElement(Upload,Re({},ut),React.createElement(Button,{type:"primary",title:He.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:He.length>0,ghost:!0},Ce),React.createElement("span",{onClick:Ke,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",fe,"M)"," ")))},b=oe(61481),x=oe(89392),z=Object.defineProperty,ee=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,ie=(He,Xe,Ye)=>Xe in He?z(He,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):He[Xe]=Ye,ge=(He,Xe)=>{for(var Ye in Xe||(Xe={}))te.call(Xe,Ye)&&ie(He,Ye,Xe[Ye]);if(ee)for(var Ye of ee(Xe))re.call(Xe,Ye)&&ie(He,Ye,Xe[Ye]);return He};const ce=He=>React.createElement("svg",ge({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},He),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",Be=Object.defineProperty,Ge=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,Wt=(He,Xe,Ye)=>Xe in He?Be(He,Xe,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):He[Xe]=Ye,he=(He,Xe)=>{for(var Ye in Xe||(Xe={}))St.call(Xe,Ye)&&Wt(He,Ye,Xe[Ye]);if(Ge)for(var Ye of Ge(Xe))Mt.call(Xe,Ye)&&Wt(He,Ye,Xe[Ye]);return He},xe=(He,Xe,Ye)=>new Promise((Pt,fe)=>{var Ce=Ke=>{try{ut(Ye.next(Ke))}catch(et){fe(et)}},Je=Ke=>{try{ut(Ye.throw(Ke))}catch(et){fe(et)}},ut=Ke=>Ke.done?Pt(Ke.value):Promise.resolve(Ke.value).then(Ce,Je);ut((Ye=Ye.apply(He,Xe)).next())});const{Dragger:Ee}=Se.default;function Qe(He){let Xe=[];return He&&He.length>0&&(Xe=He.map(Ye=>({uid:Ye.id,id:Ye.id,name:Ye.title+a+Ye.filesize,url:Ye.url,filesize:Ye.filesize,status:"done",response:{id:Ye.id}}))),Xe}var it=({value:He,onChange:Xe,action:Ye,data:Pt,className:fe,maxSize:Ce=150,title:Je="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:ut=!1,accept:Ke="",additionalText:et,isDragger:de,number:nt=1e3,aloneClear:ct=!1,realTimeRemove:Nt=!0,uploadText:Ft,setFileProgress:Fe,showFileProgress:Le})=>{const[Pe,Te]=(0,ne.useState)(!1);let[je,lt]=(0,ne.useState)(He||[]),[Bt,bt]=(0,ne.useState)(1);(0,ne.useEffect)(()=>{He&&(Bt===1&<([...He]),bt(2),nt===(He==null?void 0:He.length)&&Te(!0))},[He]);const zt=()=>{setTimeout(()=>{je.pop(),lt([...je])},500)};Le&&Fe(je.some(yt=>yt.status==="uploading"));const At={multiple:!0,disabled:Pe,accept:Ke,withCredentials:!0,fileList:je,beforeUpload:(yt,wt)=>{const Ht=yt.size/1024/1024;return je.concat(wt).length>nt?(je.pop(),lt([...je]),We.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${nt}\u4E2A\u6587\u4EF6`),ct?Promise.reject():(zt(),!1)):Ht<Ce?!0:(We.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${Ce}MB).`),ct?Promise.reject():(zt(),!1))},data:Pt,action:Ye||`${ye.Z.API_SERVER}/api/attachments.json`,onChange(yt){var wt,Ht,mn,qt;if(yt.file.status==="removed"?je=yt.fileList:je=(0,x.uniqBy)([...yt.fileList,...je],"uid"),yt.file.status==="done"&&((Ht=(wt=yt.file)==null?void 0:wt.response)==null?void 0:Ht.status)===-1){We.ZP.error((qt=(mn=yt.file)==null?void 0:mn.response)==null?void 0:qt.message);return}je.length>=nt?Te(!0):Te(!1),lt([...je]),je=je.map(Ut=>{var ve,Oe;return(ve=Ut==null?void 0:Ut.response)!=null&&ve.id&&(Ut.url=(Oe=Ut==null?void 0:Ut.response)==null?void 0:Oe.url),Ut.name.indexOf(a)===-1&&(Ut.name=`${Ut.name}${a}${y(Ut.size)}`),he({},Ut)}),console.log("info:",yt,je),Xe(je)},onRemove:yt=>xe(void 0,null,function*(){if(!Nt)return!0;const wt=()=>xe(void 0,null,function*(){if(yt.response?yt.response.id:yt.id){let mn=yield(0,le.JZ)(yt.response?yt.response.id:yt.uid);return Promise.resolve(mn)}else return!0});return ut?new Promise((Ht,mn)=>{Ie.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:ne.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>xe(void 0,null,function*(){const qt=yield wt();We.ZP.success("\u5220\u9664\u6210\u529F"),Ht(!0)}),onCancel:()=>Ht(!1)})}):yield wt()})};function Et(yt){yt.preventDefault(),yt.stopPropagation()}return ne.createElement("div",{className:`multi-upload ${fe||""}`},de&&ne.createElement(Ee,he({},At),ne.createElement("p",{className:"ant-upload-drag-icon"},ne.createElement(b.Z,null)),ne.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",ne.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",Ce,"MB)"," "),et),!de&&ne.createElement(Se.default,he({},At),ne.createElement(me.ZP,{disabled:Pe,className:"upload_button"},ne.createElement("img",{className:"aBtn_img",src:se}),Je),ne.createElement("span",{onClick:Et,className:"upload_text"},Ft||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${Ce}MB)`)))}},63347:function(ze,dt,oe){"use strict";oe.d(dt,{h:function(){return ee}});var ne=oe(59301),Se=oe(57809),We=oe(78241),Ie=oe(3113),me=oe(89780),ye=oe.n(me),le=oe(4887),_e=oe(37068),Ae=Object.defineProperty,De=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,ke=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,a=(te,re,ie)=>re in te?Ae(te,re,{enumerable:!0,configurable:!0,writable:!0,value:ie}):te[re]=ie,y=(te,re)=>{for(var ie in re||(re={}))Re.call(re,ie)&&a(te,ie,re[ie]);if(ke)for(var ie of ke(re))ae.call(re,ie)&&a(te,ie,re[ie]);return te},E=(te,re)=>De(te,Ze(re));const b=Se.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"]};dt.Z=({callback:te,onCancel:re})=>{const[ie,ge]=(0,ne.useState)("python");function ce(Be){ge(z[Be][1])}function se(Be){te(Be)}return ne.createElement(We.default,E(y({},x),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:se,style:{width:500}}),ne.createElement(We.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ne.createElement(Se.default,{getPopupContainer:Be=>Be.parentNode,onChange:ce},Object.keys(z).map(Be=>ne.createElement(b,{key:Be,value:Be},z[Be][0])))),ne.createElement(We.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ne.createElement(ee,{mode:ie})),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ie.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ie.ZP,{type:"ghost",onClick:re},"\u53D6\u6D88")))};function ee({value:te,onChange:re,mode:ie,options:ge={}}){const ce=(0,ne.useRef)(),[se,Be]=(0,ne.useState)();return(0,ne.useEffect)(()=>{if(se){let Ge=function(St){const Mt=St.getValue();re&&re(Mt)};return se.on("change",Ge),()=>{se.off("change",Ge)}}},[se,re]),(0,ne.useEffect)(()=>{se&&se.setOption("mode",ie)},[se,ie]),(0,ne.useEffect)(()=>{se&&(te!==se.getValue()||te==="")&&setTimeout(()=>{se.setValue(te||"")},300)},[se,te]),(0,ne.useEffect)(()=>{if(ce.current&&!se){const Ge=ye().fromTextArea(ce.current,y({mode:ie,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ge));Be(Ge)}},[ce.current,se]),ne.createElement("div",{className:"my-codemirror-container"},ne.createElement("textarea",{ref:ce}))}},88871:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return Jn}});var ne=oe(59301),Se=oe(89780),We=oe.n(Se),Ie=oe(76374),me=oe(4887),ye=oe(6313),le=oe(25717),_e=oe(99498),Ae=oe(25419),De=oe(67549),Ze=oe(76818),ke=({value:be="",className:we,showTextOnly:pe,showLines:st,style:Gt={}})=>{const Ct=(0,ne.useMemo)(()=>"",[be]);return ne.createElement(ne.Fragment,null,ne.createElement("div",{dangerouslySetInnerHTML:{__html:Ct}}))},Re=oe(59301),ae=Object.defineProperty,a=Object.defineProperties,y=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,z=(be,we,pe)=>we in be?ae(be,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[we]=pe,ee=(be,we)=>{for(var pe in we||(we={}))b.call(we,pe)&&z(be,pe,we[pe]);if(E)for(var pe of E(we))x.call(we,pe)&&z(be,pe,we[pe]);return be},te=(be,we)=>a(be,y(we));let re=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function ie({onActionCallback:be,title:we,icon:pe,actionName:st,className:Gt="",children:Ct}){function ln(){be(st)}return Re.createElement("a",{title:we,className:Gt,onClick:ln},Re.createElement("i",{className:`${pe}`}),Ct)}var ge=({watch:be,showNullButton:we,showNullProgramButton:pe,onActionCallback:st,fullScreen:Gt,insertTemp:Ct,hidetoolBar:ln,extraUse:Zt})=>{const en=[...re,{title:`${be?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${be?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Re.createElement("ul",{className:"markdown-toolbar-container"},!ln&&en.map((Ln,_n)=>Re.createElement("li",{key:_n},Ln.actionName?Re.createElement(ie,te(ee({},Ln),{onActionCallback:st})):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:st},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:st},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:st},Re.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,Ct&&Re.createElement("li",null,Re.createElement(ie,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Ct}`,onActionCallback:st},Re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Zt&&Re.createElement("li",null,Zt),Re.createElement("li",{className:"btn-full-screen"},Re.createElement(ie,{icon:`${Gt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Gt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:st})))},ce=oe(81123),se=oe(78241),Be=oe(92832),Ge=oe(3113),St=Object.defineProperty,Mt=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Qe=(be,we,pe)=>we in be?St(be,we,{enumerable:!0,configurable:!0,writable:!0,value:pe}):be[we]=pe,it=(be,we)=>{for(var pe in we||(we={}))xe.call(we,pe)&&Qe(be,pe,we[pe]);if(he)for(var pe of he(we))Ee.call(we,pe)&&Qe(be,pe,we[pe]);return be},He=(be,we)=>Mt(be,Wt(we));const Xe={labelCol:{span:4},wrapperCol:{span:20}};var Ye=({callback:be,onCancel:we})=>{function pe(st){be(st)}return ne.createElement(se.default,He(it({},Xe),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:pe,style:{width:500}}),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ne.createElement(Be.default,null)),ne.createElement(se.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ne.createElement(Be.default,null)),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ge.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},Pt=oe(63347),fe=oe(90443),Ce=oe(43418),Je=oe(95237),ut=oe(86197),Ke=oe(59301),et=({callback:be,onCancel:we})=>{const pe=document.createElement("canvas"),st=pe.getContext("2d");pe.width=1e3,pe.height=800,st.fillStyle="#ffffff",st.fillRect(0,0,pe.width,pe.height);const Gt=pe.toDataURL("image/png");return Ke.createElement(Ce.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Ke.createElement(Je.Z,{style:{height:"100vh"}},Ke.createElement(ut.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Gt,visible:!0,title:String(Date.now())},onOk:Ct=>{be({src:Ct.url})},onClose:we})))},de=oe(12378);function nt(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(nt,go.CommandHandler),nt.prototype.canAlignSelection=function(){var be=this.diagram;return!(be===null||be.isReadOnly||be.isModelReadOnly||be.selection.count<2)},nt.prototype.alignLeft=function(){var be=this.diagram;be.startTransaction("aligning left");var we=1/0;be.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.x,we))}),be.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we,pe.position.y))}),be.commitTransaction("aligning left")},nt.prototype.alignRight=function(){var be=this.diagram;be.startTransaction("aligning right");var we=-1/0;be.selection.each(function(pe){if(!(pe instanceof go.Link)){var st=pe.actualBounds.x+pe.actualBounds.width;we=Math.max(st,we)}}),be.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(we-pe.actualBounds.width,pe.position.y))}),be.commitTransaction("aligning right")},nt.prototype.alignTop=function(){var be=this.diagram;be.startTransaction("alignTop");var we=1/0;be.selection.each(function(pe){pe instanceof go.Link||(we=Math.min(pe.position.y,we))}),be.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.position.x,we))}),be.commitTransaction("alignTop")},nt.prototype.alignBottom=function(){var be=this.diagram;be.startTransaction("aligning bottom");var we=-1/0;be.selection.each(function(pe){if(!(pe instanceof go.Link)){var st=pe.actualBounds.y+pe.actualBounds.height;we=Math.max(st,we)}}),be.selection.each(function(pe){pe instanceof go.Link||pe.move(new go.Point(pe.actualBounds.x,we-pe.actualBounds.height))}),be.commitTransaction("aligning bottom")},nt.prototype.alignCenterX=function(){var be=this.diagram,we=be.selection.first();if(we){be.startTransaction("aligning Center X");var pe=we.actualBounds.x+we.actualBounds.width/2;be.selection.each(function(st){st instanceof go.Link||st.move(new go.Point(pe-st.actualBounds.width/2,st.actualBounds.y))}),be.commitTransaction("aligning Center X")}},nt.prototype.alignCenterY=function(){var be=this.diagram,we=be.selection.first();if(we){be.startTransaction("aligning Center Y");var pe=we.actualBounds.y+we.actualBounds.height/2;be.selection.each(function(st){st instanceof go.Link||st.move(new go.Point(st.actualBounds.x,pe-st.actualBounds.height/2))}),be.commitTransaction("aligning Center Y")}},nt.prototype.alignColumn=function(be){var we=this.diagram;we.startTransaction("align Column"),be===void 0&&(be=0),be=parseFloat(be);var pe=new Array;we.selection.each(function(Zt){Zt instanceof go.Link||pe.push(Zt)});for(var st=0;st<pe.length-1;st++){var Gt=pe[st],Ct=Gt.actualBounds.y+Gt.actualBounds.height+be,ln=pe[st+1];ln.move(new go.Point(Gt.actualBounds.x,Ct))}we.commitTransaction("align Column")},nt.prototype.alignRow=function(be){be===void 0&&(be=0),be=parseFloat(be);var we=this.diagram;we.startTransaction("align Row");var pe=new Array;we.selection.each(function(Zt){Zt instanceof go.Link||pe.push(Zt)});for(var st=0;st<pe.length-1;st++){var Gt=pe[st],Ct=Gt.actualBounds.x+Gt.actualBounds.width+be,ln=pe[st+1];ln.move(new go.Point(Ct,Gt.actualBounds.y))}we.commitTransaction("align Row")},nt.prototype.canRotate=function(be){var we=this.diagram;return!(we===null||we.isReadOnly||we.isModelReadOnly||we.selection.count<1)},nt.prototype.rotate=function(be){be===void 0&&(be=90);var we=this.diagram;we.startTransaction("rotate "+be.toString());var we=this.diagram;we.selection.each(function(pe){pe instanceof go.Link||pe instanceof go.Group||(pe.angle+=be)}),we.commitTransaction("rotate "+be.toString())},nt.prototype.pullToFront=function(){var be=this.diagram;be.startTransaction("pullToFront");var we=new go.Map;be.selection.each(function(pe){we.set(pe.layer,0)}),we.iteratorKeys.each(function(pe){var st=0;pe.parts.each(function(Gt){if(!Gt.isSelected){var Ct=Gt.zOrder;isNaN(Ct)?Gt.zOrder=0:st=Math.max(st,Ct)}}),we.set(pe,st)}),be.selection.each(function(pe){nt._assignZOrder(pe,we.get(pe.layer)+1)}),be.commitTransaction("pullToFront")},nt.prototype.pushToBack=function(){var be=this.diagram;be.startTransaction("pushToBack");var we=new go.Map;be.selection.each(function(pe){we.set(pe.layer,0)}),we.iteratorKeys.each(function(pe){var st=0;pe.parts.each(function(Gt){if(!Gt.isSelected){var Ct=Gt.zOrder;isNaN(Ct)?Gt.zOrder=0:st=Math.min(st,Ct)}}),we.set(pe,st)}),be.selection.each(function(pe){nt._assignZOrder(pe,we.get(pe.layer)-1-nt._findGroupDepth(pe))}),be.commitTransaction("pushToBack")},nt._assignZOrder=function(be,we,pe){pe===void 0&&(pe=be),be.layer===pe.layer&&(be.zOrder=we),be instanceof go.Group&&be.memberParts.each(function(st){nt._assignZOrder(st,we+1,pe)})},nt._findGroupDepth=function(be){if(be instanceof go.Group){var we=0;return be.memberParts.each(function(pe){we=Math.max(we,nt._findGroupDepth(pe))}),we+1}else return 0},nt.prototype.doKeyDown=function(){var be=this.diagram;if(be!==null){var we=be.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)}},nt.prototype._getAllParts=function(){var be=new Array;return this.diagram.nodes.each(function(we){be.push(we)}),this.diagram.parts.each(function(we){be.push(we)}),be},nt.prototype._arrowKeyMove=function(){var be=this.diagram,we=be.lastInput,pe=0,st=0;if(we.control||we.meta)pe=1,st=1;else if(be.grid!==null){var Gt=be.grid.gridCellSize;st=Gt.width,pe=Gt.height}be.startTransaction("arrowKeyMove"),be.selection.each(function(Ct){we.key==="Up"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y-pe)):we.key==="Down"?Ct.move(new go.Point(Ct.actualBounds.x,Ct.actualBounds.y+pe)):we.key==="Left"?Ct.move(new go.Point(Ct.actualBounds.x-st,Ct.actualBounds.y)):we.key==="Right"&&Ct.move(new go.Point(Ct.actualBounds.x+st,Ct.actualBounds.y))}),be.commitTransaction("arrowKeyMove")},nt.prototype._arrowKeySelect=function(){var be=this.diagram,we=be.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:be.select(pe))},nt.prototype._findNearestPartTowards=function(be){var we=this.diagram.selection.first();if(we===null)return null;for(var pe=we.actualBounds.center,st=this._getAllParts(),Gt=1/0,Ct=we,ln=0;ln<st.length;ln++){var Zt=st[ln];if(Zt!==we&&Zt.canSelect()){var en=Zt.actualBounds.center,Ln=pe.directionPoint(en),_n=this._angleCloseness(Ln,be);if(_n<=45){var gt=pe.distanceSquaredPoint(en);gt*=1+Math.sin(_n*Math.PI/180),gt<Gt&&(Gt=gt,Ct=Zt)}}}return Ct},nt.prototype._angleCloseness=function(be,we){return Math.min(Math.abs(we-be),Math.min(Math.abs(we+360-be),Math.abs(we-360-be)))},nt.prototype._arrowKeyTree=function(){var be=this.diagram,we=be.selection.first();if(we instanceof go.Node){var pe=be.lastInput;if(pe.key==="Right"){if(!we.isTreeLeaf)if(!we.isTreeExpanded)be.commandHandler.canExpandTree(we)&&be.commandHandler.expandTree(we);else{var st=this._sortTreeChildrenByY(we).first();st!==null&&be.select(st)}}else if(pe.key==="Left")if(!we.isTreeLeaf&&we.isTreeExpanded)be.commandHandler.canCollapseTree(we)&&be.commandHandler.collapseTree(we);else{var Gt=we.findTreeParentNode();Gt!==null&&be.select(Gt)}else if(pe.key==="Up"){var Gt=we.findTreeParentNode();if(Gt!==null){var Ct=this._sortTreeChildrenByY(Gt),ln=Ct.indexOf(we);if(ln>0){for(var Zt=Ct.elt(ln-1);Zt!==null&&Zt.isTreeExpanded&&!Zt.isTreeLeaf;){var en=this._sortTreeChildrenByY(Zt);Zt=en.last()}Zt!==null&&be.select(Zt)}else be.select(Gt)}}else if(pe.key==="Down")if(we.isTreeExpanded&&!we.isTreeLeaf){var st=this._sortTreeChildrenByY(we).first();st!==null&&be.select(st)}else for(;we!==null;){var Gt=we.findTreeParentNode();if(Gt===null)break;var Ct=this._sortTreeChildrenByY(Gt),ln=Ct.indexOf(we);if(ln<Ct.length-1){be.select(Ct.elt(ln+1));break}else we=Gt}var Ln=be.selection.first();Ln!==null&&be.scrollToRect(Ln.actualBounds)}},nt.prototype._sortTreeChildrenByY=function(be){var we=new go.List().addAll(be.findTreeChildrenNodes());return we.sort(function(pe,st){var Gt=pe.location,Ct=st.location;return Gt.y<Ct.y?-1:Gt.y>Ct.y?1:Gt.x<Ct.x?-1:Gt.x>Ct.x?1:0}),we},nt.prototype.copyToClipboard=function(be){go.CommandHandler.prototype.copyToClipboard.call(this,be),this._lastPasteOffset.set(this.pasteOffset)},nt.prototype.pasteFromClipboard=function(){var be=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(be,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),be},Object.defineProperty(nt.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(be){if(be!=="move"&&be!=="select"&&be!=="scroll"&&be!=="tree"&&be!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+be);this._arrowKeyBehavior=be}}),Object.defineProperty(nt.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(be){if(!(be instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+be);this._pasteOffset.set(be)}});var ct=nt,Nt=oe(87851),Ft=oe(43604),Fe=oe(57193),Le={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Pe=oe(59301),Te=(be,we,pe)=>new Promise((st,Gt)=>{var Ct=en=>{try{Zt(pe.next(en))}catch(Ln){Gt(Ln)}},ln=en=>{try{Zt(pe.throw(en))}catch(Ln){Gt(Ln)}},Zt=en=>en.done?st(en.value):Promise.resolve(en.value).then(Ct,ln);Zt((pe=pe.apply(be,we)).next())});function je({onCancel:be,callback:we}){let pe=(0,ne.useRef)(),st=(0,ne.useRef)(),Gt=(0,ne.useRef)(),Ct=(0,ne.useRef)(!1);const ln=(0,ne.useRef)(!1),[Zt,en]=(0,ne.useState)(0);function Ln(){const gt=de.bx.make,tn={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(st.current,{padding:20,grid:gt(de.s_,"Grid",gt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt(de.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:ot=>{var vt=ot.diagram.commandHandler.addTopLevelParts(ot.diagram.selection,!0);vt||ot.diagram.currentTool.doCancel()},commandHandler:gt(ct),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:ot=>{var vt=ot.subject;vt.location=vt.location.copy().snapToGridPoint(ot.diagram.grid.gridOrigin,ot.diagram.grid.gridCellSize),setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:ot=>{var vt=ot.subject;setTimeout(()=>{ot.diagram.commandHandler.editTextBlock()})},LinkRelinked:ot=>{var vt=ot.parameter.part;vt.invalidateConnectedLinks();var It=ot.subject;ot.diagram.toolManager.linkingTool.isForwards?It.toNode.invalidateConnectedLinks():It.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),pe.current.nodeTemplate=gt(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),gt(de.bn,{name:"SHAPE",fill:tn.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")),gt(de.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),gt(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=gt("ToolTip",gt(de.s_,"Vertical",{maxSize:new de.$u(200,NaN)},gt(de.al,{font:"bold 10pt sans-serif",textAlign:"center"},new de.KX("text")),gt(de.al,{font:"10pt sans-serif",textAlign:"center"},new de.KX("text","details"))));function Tn(ot,vt){var It=(pt,Yt)=>{pt.handled=!0,pt.diagram.model.commit(Qt=>{var kt=Yt.part.adornedPart,Pn=new de.E9().setRectSpot(kt.actualBounds,ot);Pn.subtract(kt.location),Pn.scale(2,2),Pn.x+=Math.sign(Pn.x)*130,Pn.y+=Math.sign(Pn.y)*130,Pn.add(kt.location),Pn.snapToGridPoint(pt.diagram.grid.gridOrigin,pt.diagram.grid.gridCellSize);var fn=Qt.copyNodeData(kt.data);Qt.setGroupKeyForNodeData(fn,Qt.getGroupKeyForNodeData(kt.data)),Qt.addNodeData(fn);var oa={from:kt.key,to:Qt.getKeyForNodeData(fn)};Qt.addLinkData(oa);var Qn=pt.diagram.findNodeForData(fn);Qn.location=Pn,pt.diagram.select(Qn),setTimeout(()=>{pt.diagram.commandHandler.editTextBlock()},20)})};return gt(de.bn,{figure:vt,alignment:ot,alignmentFocus:ot.opposite(),width:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?25:18,height:ot.equals(de.z6.Top)||ot.equals(de.z6.Bottom)?18:25,fill:"orange",stroke:tn.white,strokeWidth:4,mouseEnter:(pt,Yt)=>Yt.fill="dodgerblue",mouseLeave:(pt,Yt)=>Yt.fill="orange",isActionable:!0,click:It,contextClick:It})}function Zn(ot){return gt(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:(vt,It)=>It.fill="dodgerblue",mouseLeave:(vt,It)=>It.fill="orange",click:(vt,It)=>{vt.diagram.commandHandler.showContextMenu(It.part.adornedPart)}},ot||{})}pe.current.nodeTemplate.selectionAdornmentTemplate=gt(de.uz,"Spot",gt(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 En(ot,vt){return(It,pt)=>{It.handled=!0,It.diagram.model.commit(Yt=>{Yt.set(pt.part.adornedPart.data,ot,vt)})}}function ue(ot,vt){return vt||(vt="color"),gt(de.bn,{width:16,height:16,stroke:"lightgray",fill:ot,margin:1,background:"transparent",mouseEnter:(It,pt)=>pt.stroke="dodgerblue",mouseLeave:(It,pt)=>pt.stroke="lightgray",click:En(vt,ot),contextClick:En(vt,ot)})}function Me(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.white,"fill"),ue(tn.beige,"fill"),ue(tn.extralightblue,"fill"),ue(tn.extralightred,"fill"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.lightgray,"fill"),ue(tn.lightgreen,"fill"),ue(tn.lightblue,"fill"),ue(tn.lightred,"fill")))]}function Ne(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.black),ue(tn.green),ue(tn.blue),ue(tn.red))),gt("ContextMenuButton",gt(de.s_,"Horizontal",ue(tn.white),ue(tn.magenta),ue(tn.purple),ue(tn.orange)))]}function Ue(ot,vt){return vt||(vt="thickness"),gt(de.bn,"LineH",{width:16,height:16,strokeWidth:ot,margin:1,background:"transparent",mouseEnter:(It,pt)=>pt.background="dodgerblue",mouseLeave:(It,pt)=>pt.background="transparent",click:En(vt,ot),contextClick:En(vt,ot)})}function at(ot,vt){return vt||(vt="dash"),gt(de.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:ot,margin:1,background:"transparent",mouseEnter:(It,pt)=>pt.background="dodgerblue",mouseLeave:(It,pt)=>pt.background="transparent",click:En(vt,ot),contextClick:En(vt,ot)})}function rt(){return[gt("ContextMenuButton",gt(de.s_,"Horizontal",Ue(1),Ue(2),Ue(3),Ue(4))),gt("ContextMenuButton",gt(de.s_,"Horizontal",at(null),at([2,4]),at([4,4])))]}function tt(ot,vt){return vt||(vt="figure"),gt(de.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:ot,margin:1,background:"transparent",mouseEnter:(It,pt)=>pt.fill="dodgerblue",mouseLeave:(It,pt)=>pt.fill="lightgray",click:En(vt,ot),contextClick:En(vt,ot)})}pe.current.nodeTemplate.contextMenu=gt("ContextMenu",gt("ContextMenuButton",gt(de.s_,"Horizontal",tt("Rectangle"),tt("RoundedRectangle"),tt("Ellipse"),tt("Diamond"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",tt("Parallelogram2"),tt("ManualOperation"),tt("Procedure"),tt("Cylinder1"))),gt("ContextMenuButton",gt(de.s_,"Horizontal",tt("Terminator"),tt("CreateRequest"),tt("Document"),tt("TriangleDown"))),Me(),Ne(),rt()),pe.current.groupTemplate=gt(de.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:de.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(ot,vt)=>{var It=vt.addMembers(vt.diagram.selection,!0);It||vt.diagram.currentTool.doCancel()},avoidable:!1},new de.KX("location","loc",de.E9.parse).makeTwoWay(de.E9.stringify),gt(de.s_,"Auto",{name:"BODY"},gt(de.bn,{parameter1:10,fill:tn.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")),gt(de.Vm,{background:"transparent",margin:20})),gt(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=gt(de.uz,"Spot",gt(de.s_,"Auto",gt(de.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),gt(de.Vm,{margin:1.5})),Zn({alignment:de.z6.TopRight,alignmentFocus:de.z6.BottomRight})),pe.current.groupTemplate.contextMenu=gt("ContextMenu",Me(),Ne(),rt()),pe.current.linkTemplate=gt(de.rU,{layerName:"Foreground",routing:de.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new de.KX("fromSpot","fromSpot",de.z6.parse),new de.KX("toSpot","toSpot",de.z6.parse),new de.KX("fromShortLength","dir",ot=>ot>=1?10:0),new de.KX("toShortLength","dir",ot=>ot>=1?10:0),new de.KX("points").makeTwoWay(),gt(de.bn,{strokeWidth:2},new de.KX("stroke","color"),new de.KX("strokeWidth","thickness"),new de.KX("strokeDashArray","dash")),gt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,0),segmentOrientation:de.rU.OrientAlong,alignmentFocus:de.z6.Right,figure:"circle",width:10,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",ot=>ot===1)),gt(de.bn,{segmentIndex:-1,segmentOffset:new de.E9(-10,6),segmentOrientation:de.rU.OrientPlus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",ot=>ot>=1),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),gt(de.bn,{segmentIndex:0,segmentOffset:new de.E9(15,-6),segmentOrientation:de.rU.OrientMinus90,alignmentFocus:de.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new de.KX("fill","color"),new de.KX("visible","dir",ot=>ot===2),new de.KX("width","thickness",ot=>7+3*ot),new de.KX("height","thickness",ot=>7+3*ot),new de.KX("segmentOffset","thickness",ot=>new de.E9(-15,4+1.5*ot))),gt(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=gt(de.uz,gt(de.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ve(2)},new de.KX("pathPattern","thickness",Ve)),Zn({alignmentFocus:new de.z6(0,0,-6,-4)}));function Ve(ot){return gt(de.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(ot+4).toString()+" H3"})}function Dt(ot){var vt="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return ot===0?vt="M0 0 M16 16 M0 8 L16 8":ot===2&&(vt="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),gt(de.bn,{geometryString:vt,margin:2,background:"transparent",mouseEnter:(It,pt)=>pt.background="dodgerblue",mouseLeave:(It,pt)=>pt.background="transparent",click:En("dir",ot),contextClick:En("dir",ot)})}function Tt(ot){var vt=(It,pt)=>{It.handled=!0,It.diagram.model.commit(Yt=>{var Qt=pt.part.adornedPart;Yt.set(Qt.data,ot?"toSpot":"fromSpot",de.z6.stringify(de.z6.AllSides)),(ot?Qt.toNode:Qt.fromNode).invalidateConnectedLinks()})};return gt(de.bn,{width:12,height:12,fill:"transparent",mouseEnter:(It,pt)=>pt.background="dodgerblue",mouseLeave:(It,pt)=>pt.background="transparent",click:vt,contextClick:vt})}function $e(ot,vt){var It=0,pt=de.z6.RightSide;ot.equals(de.z6.Top)?(It=270,pt=de.z6.TopSide):ot.equals(de.z6.Left)?(It=180,pt=de.z6.LeftSide):ot.equals(de.z6.Bottom)&&(It=90,pt=de.z6.BottomSide),vt||(It-=180);var Yt=(Qt,kt)=>{Qt.handled=!0,Qt.diagram.model.commit(Pn=>{var fn=kt.part.adornedPart;Pn.set(fn.data,vt?"toSpot":"fromSpot",de.z6.stringify(pt)),(vt?fn.toNode:fn.fromNode).invalidateConnectedLinks()})};return gt(de.bn,{alignment:ot,alignmentFocus:ot.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:It,background:"transparent",mouseEnter:(Qt,kt)=>kt.background="dodgerblue",mouseLeave:(Qt,kt)=>kt.background="transparent",click:Yt,contextClick:Yt})}pe.current.linkTemplate.contextMenu=gt("ContextMenu",Ne(),rt(),gt("ContextMenuButton",gt(de.s_,"Horizontal",Dt(0),Dt(1),Dt(2))),gt("ContextMenuButton",gt(de.s_,"Horizontal",gt(de.s_,"Spot",Tt(!1),$e(de.z6.Top,!1),$e(de.z6.Left,!1),$e(de.z6.Right,!1),$e(de.z6.Bottom,!1)),gt(de.s_,"Spot",{margin:new de.Zt(0,0,0,2)},Tt(!0),$e(de.z6.Top,!0),$e(de.z6.Left,!0),$e(de.z6.Right,!0),$e(de.z6.Bottom,!0)))));const rn=`{ "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 an=["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 pn(ot){return console.log("shapeName:",ot),an.indexOf(ot)>=0}var Bn=new de.YI(Gt.current,{maxSelectionCount:1,linkTemplate:gt(de.rU,{locationSpot:de.z6.Center,selectionAdornmentTemplate:gt(de.uz,"Link",{locationSpot:de.z6.Center},gt(de.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),gt(de.bn,{toArrow:"Standard",stroke:null}))},{routing:de.rU.AvoidsNodes,curve:de.rU.JumpOver,corner:5,toShortLength:4},new de.KX("points"),gt(de.bn,{isPanelMain:!0,strokeWidth:2}),gt(de.bn,{toArrow:"Standard",stroke:null})),model:new de.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...de.bn.getFigureGenerators().toArray().map(ot=>({text:"\u672A\u547D\u540D",size:"100 100",figure:ot.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return pe.current.addDiagramListener("TextEdited",function(ot){var vt;const It=ot.subject.part;var pt=(vt=document.activeElement)==null?void 0:vt.value;typeof pt=="string"&&pt.trim()===""&&pe.current.model.commit(function(Yt){Yt.set(It.data,"text","\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}),Bn.nodeTemplate=gt(de.NB,"Auto",{locationSpot:de.z6.Center},new de.KX("location","location",de.E9.parse).makeTwoWay(de.E9.stringify),gt(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")),gt(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=gt(de.s_,"Grid",gt(de.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),gt(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=()=>Te(this,null,function*(){var gt=pe.current.makeImage();const tn=yield(0,Fe.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:gt.src}});we({src:tn.url})});return(0,ne.useEffect)(()=>(setTimeout(()=>{Ln()},500),en(Zt+1),()=>{pe.current=null}),[]),Pe.createElement("div",{ref:ln,className:Ct.current?`${Le.maxH60} body-overflow-initial`:"body-overflow-initial"},Pe.createElement(Ce.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Zt,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Pe.createElement(Je.Z,null,Pe.createElement(Ft.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Pe.createElement(Ft.Z,{onClick:()=>{var gt,tn,Tn=pe.current.selection.first();if(Ct.current=!Ct.current,document.activeElement&&Tn){let Zn=(tn=(gt=document.activeElement)==null?void 0:gt.value)==null?void 0:tn.trim();typeof Zn=="string"&&pe.current.model.commit(function(En){En.set(Tn.data,"text",Zn||"\u672A\u547D\u540D"),pe.current.commandHandler.stopCommand()},"increment")}en(Zt+1)}},Pe.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:be},Pe.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Le.flowChartWrp},Pe.createElement("div",{style:{display:"flex",height:"100%"}},Pe.createElement("div",{style:{width:"300px",height:"100%"}},Pe.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),Pe.createElement("div",{style:{height:"calc(100% - 50px)"},className:Le.myPaletteDiv,ref:Gt})),Pe.createElement("div",{style:{flex:1,position:"relative"}},Pe.createElement("div",{ref:st,style:{height:"80vh"}}))),Pe.createElement("div",{className:"tr"},Pe.createElement(Ge.ZP,{size:"large",onClick:_n,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var lt=je,Bt=oe(5112),bt=oe(5871);const zt=Bt.ZP.Group,At={margin:"0 8px"};var Et=({callback:be,onCancel:we})=>{function pe(st){be(st)}return ne.createElement(se.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:pe},ne.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ne.createElement("span",{style:At},"\u5355\u5143\u683C\u6570\uFF1A"),ne.createElement("span",{style:At},"\u884C\u6570"),ne.createElement(se.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ne.createElement(bt.Z,null)),ne.createElement("span",{style:At},"\u5217\u6570"),ne.createElement(se.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ne.createElement(bt.Z,null))),ne.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ne.createElement("span",{style:At},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ne.createElement(se.default.Item,{name:"align"},ne.createElement(zt,null,ne.createElement(Bt.ZP,{value:"default"},ne.createElement("i",{className:"fa fa-align-justify"})),ne.createElement(Bt.ZP,{value:"left"},ne.createElement("i",{className:"fa fa-align-left"})),ne.createElement(Bt.ZP,{value:"center"},ne.createElement("i",{className:"fa fa-align-center"})),ne.createElement(Bt.ZP,{value:"right"},ne.createElement("i",{className:"fa fa-align-right"}))))),ne.createElement("div",{className:"flex-container flex-end"},ne.createElement(Ge.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ne.createElement(Ge.ZP,{type:"ghost",onClick:we},"\u53D6\u6D88")))},yt=oe(78673),wt=oe(63089),Ht=oe.n(wt),qt=(0,ne.forwardRef)(({use3d:be,width:we,height:pe,callback:st,showSaveButton:Gt},Ct)=>{const ln=(0,ne.useRef)(),Zt=(0,ne.useRef)(),[en,Ln]=(0,ne.useState)(!1),_n=(0,ne.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,ne.useEffect)(()=>{Zt.current=new(Ht())(_n.current,!0),window.onload=function(){Zt.current.inject("applet_container")}},[]);const gt=()=>{var tn=window.ggbApplet.getPNGBase64(1,!0,72);return st&&st(tn),tn};return(0,ne.useEffect)(()=>{_n.current.appName=en?"3D":"graphing",Zt.current.inject("applet_container")},[en]),(0,ne.useEffect)(()=>{Ln(be)},[be]),(0,ne.useImperativeHandle)(Ct,()=>({getImgData:gt})),ne.createElement(ne.Fragment,null,ne.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ln}),ne.createElement(Je.Z,{align:"middle"},ne.createElement(Ft.Z,{flex:1},ne.createElement(yt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:en,onChange:tn=>Ln(tn)})),ne.createElement(Ft.Z,null,ne.createElement(Ge.ZP,{size:"large",onClick:gt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Ut=oe(24638),ve=oe(1012),Oe=oe(8591);const qe="link",mt="upload-image",ht="add-flowchart",Rt="draw-image",jt="add-flowchart",$t="code-block",_t="add-table",Jt="------------",Kt={default:Jt,left:`:${Jt}`,center:`:${Jt}:`,right:`${Jt}:`};var nn=oe(66991),hn=(be,we,pe)=>new Promise((st,Gt)=>{var Ct=en=>{try{Zt(pe.next(en))}catch(Ln){Gt(Ln)}},ln=en=>{try{Zt(pe.throw(en))}catch(Ln){Gt(Ln)}},Zt=en=>en.done?st(en.value):Promise.resolve(en.value).then(Ct,ln);Zt((pe=pe.apply(be,we)).next())});function vn(){}let Fn=0;const dn=1e4,on="\u2581",yn="@\u2581\u2581@",Cn="@\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`,cn=["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(be){return/^\d+$/.test(be)?`${be}px`:be}const In=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[In+"-B"]:"bold",[In+"-I"]:"italic"},na={[qe]:"\u6DFB\u52A0\u94FE\u63A5",[$t]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mt]:"\u6DFB\u52A0\u56FE\u7247",[Rt]:"\u6DFB\u52A0\u753B\u56FE",[ht]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[_t]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Jn=({defaultValue:be="",onChange:we,width:pe="100%",height:st=400,miniToolbar:Gt=!1,isFocus:Ct=!1,watch:ln,insertTemp:Zt,mode:en="markdown",id:Ln="markdown-editor-id",showResizeBar:_n=!1,noStorage:gt=!1,showNullButton:tn=!1,showNullProgramButton:Tn=!1,hidetoolBar:Zn=!1,fullScreen:En=!1,onBlur:ue,onCMBeforeChange:Me,onFullScreen:Ne,className:Ue="",disablePaste:at=!1,disabled:rt=!1,disabledFill:tt=!1,placeholder:Ve="",values:Dt="",extraUse:Tt})=>{const[$e,rn]=(0,ne.useState)(null),[an,pn]=(0,ne.useState)(be),[Bn,ot]=(0,ne.useState)(ln),[vt,It]=(0,ne.useState)(En),[pt,Yt]=(0,ne.useState)(""),[Qt,kt]=(0,ne.useState)(0),[Pn,fn]=(0,ne.useState)(st),[oa,Qn]=(0,ne.useState)(!1),qn=(0,ne.useRef)((0,ve.Z)()),ca=(0,ne.useRef)(!1),Sa=(0,ne.useRef)(),[Pa,da]=(0,ne.useState)(0),[Kn,$n]=(0,ne.useState)(0),ta=(0,ne.useRef)(),ia=(0,ne.useRef)(),ga=(0,ne.useRef)(),aa=(0,ne.useRef)(),ea=()=>hn(void 0,null,function*(){var Ot;const ft=yield Fetch("/api/attachments/distinct_hash_val.json",{method:"post",body:{hash_val:qn.current}});(Ot=ft==null?void 0:ft.attachments)!=null&&Ot.length&&(console.log("cm:",$e,ta),ft.attachments.map(Lt=>{Lt.content_type.indexOf("image")>-1?$e.replaceSelection(``):Lt.content_type.indexOf("video")>-1?$e.replaceSelection(`<video width="100%" controls src="${ENV.API_SERVER}/api/attachments/${data.id}"></video>`):Lt.content_type.indexOf("pdf")>-1?$e.replaceSelection(`<a href="${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type}&disposition=inline" target="_blank">${Lt.name}</a>`):$e.replaceSelection(`[${Lt.name}](${ENV.API_SERVER}/api/attachments/${Lt.id}?type=${Lt.content_type})`)}))});(0,ne.useEffect)(()=>{const Ot=window.scrollY||window.pageYOffset;pn(Dt),$e==null||$e.setValue(Dt),window.scrollTo(0,Ot)},[Dt]),(0,ne.useEffect)(()=>{Ne==null||Ne(vt)},[vt]),(0,ne.useEffect)(()=>{if(ta.current){let Ot=function(Lt,xt){var un;if(at){xt.preventDefault();return}const zn=xt.clipboardData;if(zn){const Rn=zn.types.toString(),Dn=zn.items;if(Rn==="Files"||zn.types.indexOf("Files")>-1){if(xt.preventDefault(),en=="stex")return;try{let jn=Dn[1];((un=Dn[0])==null?void 0:un.kind)==="file"&&(jn=Dn[0]);const kn=jn.getAsFile(),sa=kn.name.split(".").pop();(0,fe.I)(kn,Vn=>{var Vt,sn,bn;Vn.id?((Vt=kn==null?void 0:kn.type)==null?void 0:Vt.indexOf("image"))>-1?ft.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?ft.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?ft.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=${kn.type}&disposition=inline" target="_blank">${kn.name}</a>`):cn.includes(sa)?ft.replaceSelection(`<a href="/api/attachments/${Vn.id}?type=office&disposition=inline" target="_blank">${kn.name}</a>`):ft.replaceSelection(`[${kn.name}](/api/attachments/${Vn.id}?type=${Vn.content_type})`):(Vn==null?void 0:Vn.status)===401&&(Oe.ZP.warning((Vn==null?void 0:Vn.message)||"\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),document.location.href="/user/login")})}catch(jn){Oe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const ft=We().fromTextArea(ta.current,{mode:en,lineNumbers:!Gt,lineWrapping:!0,value:be,autoCloseTags:!Tn,autoCloseBrackets:!0});return ft.on("keyup",function(Lt,xt){xt.keyCode===8&&(Lt.getValue()==""?ft.setOption("placeholder",Ve):ft.setOption("placeholder",null))}),ft.on("keydown",function(Lt,xt){if(xt.keyCode===8){var un=Xt(Lt);un&&xt.preventDefault()}}),Ct&&ft.focus(),ft.on("paste",Ot),ft.on("dragleave",function(Lt,xt){ia.current.classList.remove("mouse-hover-md")}),rt&&ft.on("beforeChange",function(Lt,xt){(xt.origin==="paste"||xt.origin==="+input")&&xt.cancel()}),rn(ft),()=>{ft.off("paste",Ot)}}},[]);const fa=(0,ne.useCallback)(()=>{if(ia.current)try{}catch(Ot){console.log(Ot,"---- to set md editor body height")}},[Pn,ia,vt]);(0,ne.useEffect)(()=>{function Ot(){let ft=new Ie.Z(Lt=>{for(let xt of Lt)(xt.target.offsetHeight>0||xt.target.offsetWidth>0)&&(fa(),$e.setSize("100%","100%"),$e.refresh())});return ft.observe(ta.current.parentElement),ft}if($e){const ft=Ot();return()=>{var Lt,xt;(Lt=ta.current)!=null&&Lt.parentElement&&ft.unobserve((xt=ta.current)==null?void 0:xt.parentElement)}}},[$e,fa]),(0,ne.useEffect)(()=>{if($e){let Ot=[];for(const[ft,Lt]of Object.entries(Wn)){let xt={[ft]:()=>{On(Lt)}};Ot.push(xt),$e.addKeyMap(xt)}return Sa.current=setInterval(()=>{ca.current&&ea()},4e3),()=>{clearInterval(Sa.current);for(let ft of Ot)$e.removeKeyMap(ft)}}},[$e]),(0,ne.useEffect)(()=>{En!==vt&&It(En)},[En]),(0,nn.Z)(()=>{if(!gt&&Qt>0){let Ot=new Date().getTime(),ft=window.sessionStorage.getItem(Ln);Ot>=Qt+dn&&(!ft||ft!==an)&&(window.sessionStorage.setItem(Ln,an),Qn(!0))}},dn),(0,ne.useEffect)(()=>{ot(ln)},[$e,ln]),(0,ne.useEffect)(()=>{$e&&Ct&&$e.focus()},[$e,Ct]),(0,ne.useEffect)(()=>{if(Bn&&$e){let Ot=function(Lt){let xt=Lt.target;if(aa.current){let un=xt.scrollTop/xt.scrollHeight;aa.current.scrollTop=aa.current.scrollHeight*un}};const ft=$e.getScrollerElement();return ft.addEventListener("scroll",Ot),()=>{ft.removeEventListener("scroll",Ot)}}},[$e,Bn]),(0,ne.useEffect)(()=>{if($e&&Me){let Ot=function(ft,Lt){Me(ft,Lt)};return $e.on("beforeChange",Ot),()=>{$e.off("beforeChange",Ot)}}},[$e,Me]),(0,ne.useEffect)(()=>{if($e&&ue){let Ot=function(){ue($e.getValue())};return $e.on("blur",Ot),()=>{$e.off("blur",Ot)}}},[$e,ue]);function Xt(Ot,ft){var Lt=Ot.getDoc(),xt=Lt.getCursor(),un=Lt.getLine(xt.line),zn=un.charAt(xt.ch-1),Rn=un.lastIndexOf("@\u2581@",xt.ch),Dn=un.lastIndexOf("@\u2581\u2581@",xt.ch),jn=Rn>Dn?Rn:Dn,kn=Rn>Dn?3:4;if(yn.indexOf(zn)===-1)return null;if(console.log("change1:",ft,Ot,un,xt,jn,Rn,Dn,zn),jn>=0&&xt.ch-jn<5){var sa=jn+kn;return Lt.replaceRange("",{line:xt.line,ch:jn},{line:xt.line,ch:sa}),{line:xt.line,ch:sa}}return null}(0,ne.useEffect)(()=>{if($e){let Ot=function(ft,Lt){const xt=ft.getValue();pn(xt),kt(new Date().getTime()),ft.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),we&&(Tn?we(xt,Gn(xt)):we(xt))};return $e.on("change",Ot),()=>{$e.off("change",Ot)}}},[$e,we]),(0,ne.useEffect)(()=>{if($e)if(be==null)$e.setValue(""),pn("");else{const Ot=window.scrollY||window.pageYOffset;be!==$e.getValue()&&($e.setValue(be),pn(be),$e.setCursor(rt?1:$e.lineCount(),0),window.scrollTo(0,Ot))}},[$e,be]);const On=(0,ne.useCallback)(Ot=>{const ft=$e.getCursor(),Lt=$e.getSelection();let xt=Lt.split(`
|
|
`);switch(Ot){case"bold":return $e.replaceSelection("**"+Lt+"**"),Lt===""&&$e.setCursor(ft.line,ft.ch+2),$e.focus();case"italic":return $e.replaceSelection("*"+Lt+"*"),Lt===""&&$e.setCursor(ft.line,ft.ch+1),$e.focus();case"code":return $e.replaceSelection("`"+Lt+"`"),Lt===""&&$e.setCursor(ft.line,ft.ch+1),$e.focus();case"inline-latex":return Yt("inline-latex"),$e.focus();case"latex":return $e.replaceSelection("```latex\n"+Lt+"\n```"),$e.setCursor(ft.line+1,Lt.length+1),$e.focus();case"line-break":return $e.replaceSelection(`<br/>
|
|
`),$e.focus();case"list-ul":return Lt===""?$e.replaceSelection("- "+Lt):$e.replaceSelection(xt.map(un=>un===""?"":`- ${un}`).join(`
|
|
`)),$e.focus();case"list-ol":return Lt===""?$e.replaceSelection("1. "+Lt):$e.replaceSelection(xt.map((un,zn)=>un===""?"":`${zn+1}. ${un}`).join(`
|
|
`)),$e.focus();case"add-null-ch":return Lt===""&&$e.setCursor(ft.line,ft.ch),$e.replaceSelection(on),$e.focus();case"add-signal":return Lt===""&&$e.setCursor(ft.line,ft.ch),$e.replaceSelection(Cn),$e.focus();case"add-multiple":return Lt===""&&$e.setCursor(ft.line,ft.ch),$e.replaceSelection(yn),$e.focus();case"inster-template-1":return Lt===""&&$e.setCursor(ft.line,ft.ch),$e.replaceSelection(xn),$e.focus();case"eraser":return $e.setValue(""),$e.focus();case"trigger-watch":return ot(!Bn),$e.focus();case"trigger-full-screen":return It(!vt),$e.focus();case qe:Yt(qe);return;case $t:Yt($t);return;case mt:Yt(mt);return;case Rt:Yt(Rt);return;case"maths-latex":Yt("maths-latex");return;case ht:Yt(ht);return;case _t:Yt(_t);return;default:throw new Error}},[$e,Bn,vt]),Mn=(0,ne.useCallback)((Ot,ft)=>{var Lt,xt,un,zn,Rn,Dn;switch(Yt(""),pt){case qe:const{title:Vt,link:sn}=Ot;return $e.replaceSelection(`[${Vt}](${sn})`),$e.focus();case $t:const{language:bn,content:gn}=Ot;return $e.replaceSelection(["```"+bn,gn,"```"].join(`
|
|
`)),$e.focus();case"maths-latex":for(var jn=atob(Ot),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?$e.replaceSelection(``):(ma==null?void 0:ma.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":$e.replaceSelection("`$$"+Ot+"$$`");break;case mt:case Rt:case jt:const{src:Sn,alt:Hn}=Ot,wn=ft,ha=(un=(xt=(Lt=wn==null?void 0:wn.name)==null?void 0:Lt.split("."))==null?void 0:xt.pop)==null?void 0:un.call(xt);return((zn=wn==null?void 0:wn.type)==null?void 0:zn.indexOf("image"))>-1||!(wn!=null&&wn.type)?wn.align||wn.width?$e.replaceSelection(`<p style="text-align:${wn.align||"initial"}"><img width="${wn.width?wn.width+"%":"initial"}" src="${Sn}" alt="${Hn||""}" /></p>`):$e.replaceSelection(`<img width="100%" src="${Sn}" alt="${Hn||""}" />`):((Rn=wn==null?void 0:wn.type)==null?void 0:Rn.indexOf("video"))>-1?$e.replaceSelection(`<video width="100%" controls src="${Sn}"></video>`):((Dn=wn==null?void 0:wn.type)==null?void 0:Dn.indexOf("pdf"))>-1?$e.replaceSelection(`<a href="${Sn}?type=${wn.type}&disposition=inline" target="_blank">${wn.name}</a>`):cn.includes(ha)?$e.replaceSelection(`<a href="${Sn}?type=office&disposition=inline" target="_blank">${wn.name}</a>`):$e.replaceSelection(`[${wn.name}](${Sn})`),$e.focus();case _t:const{row:ua,col:wa,align:xa}=Ot;let Fa=`
|
|
`;for(let ma=0;ma<ua;ma++){let Ea=[],Ba=[];for(let Ca=0;Ca<wa;Ca++)ma===1&&Ba.push(Kt[xa]),Ea.push(" ");ma===1&&(Fa+=`| ${Ba.join(" | ")} |
|
|
`),Fa+=`| ${Ea.join(wa===1?"":" | ")} |
|
|
`}return $e.replaceSelection(Fa+`
|
|
`),$e.focus();default:throw new Error}},[$e,pt]),Un=(0,ne.useMemo)(()=>{switch(pt){case qe:return ne.createElement(Ye,{callback:Mn,onCancel:Xn});case $t:return ne.createElement(Pt.Z,{callback:Mn,onCancel:Xn});case mt:return ne.createElement(fe.Z,{callback:Mn,onCancel:Xn});case ht:return ne.createElement(lt,{callback:Mn,onCancel:Xn});case _t:return ne.createElement(Et,{callback:Mn,onCancel:Xn});case"maths-latex":return ne.createElement(qt,{showSaveButton:!0,callback:Mn});case"inline-latex":return ne.createElement(Ut.Z,{showSaveButton:!0,callback:Mn});default:return null}},[pt]);function Xn(){Yt("")}(0,ne.useEffect)(()=>{if(ga.current){let Ot=function(Rn){un=!0,zn=Rn.pageY},ft=function(){un=!1},Lt=function(Rn){if(un){let Dn=Rn.pageY-zn;Dn<0&&(Dn=0),Dn>300&&(Dn=300);let jn=st+Dn+"px";fn(jn)}},xt=ga.current,un=!1,zn=0;return xt.addEventListener("mousedown",Ot),document.addEventListener("mousemove",Lt),document.addEventListener("mouseup",ft),()=>{xt.removeEventListener("mousedown",Ot),document.removeEventListener("mousemove",Lt),document.removeEventListener("mouseup",ft)}}},[$e,ga]),(0,ne.useEffect)(()=>{fn(st)},[st]);const ra=Nn(pe),va=Nn(Pn),pa={width:ra,height:va},An=(0,ne.useMemo)(()=>{if(Qt){let Ot=new Date(Qt),ft=Ot.getHours(),Lt=Ot.getMinutes(),xt=Ot.getSeconds();return ft=ft<10?"0"+ft:ft,Lt=Lt<10?"0"+Lt:Lt,xt=xt<10?"0"+xt:xt,`${ft}:${Lt}:${xt}`}return 0},[Qt]),Gn=Ot=>{const ft=[];if(Tn){let Lt=-1;Ot=Ot.replace(/(@▁▁@|@▁@)/g,function(xt,un,zn){ft.push({multiLine:xt!==Cn})})}return ft};function la(){window.sessionStorage.removeItem(Ln),Qn(!1),kt(0)}function ya(){Qn(!1),kt(0),$e.setValue(window.sessionStorage.getItem(Ln))}(0,ne.useEffect)(()=>{na[pt]&&pt!==Rt&&pt!==ht&&setTimeout(()=>{const Ot=document.getElementsByClassName("markdown-popup-form")[0],ft=window.innerWidth/2-Ot.offsetWidth/2,Lt=window.innerHeight/2-Ot.offsetHeight/2;da(ft),$n(Lt)},0)},[pt]);const La=Ot=>{Ot.preventDefault();const ft=Ot.clientX-Pa,Lt=Ot.clientY-Kn;document.body.onmousemove=xt=>{let un=xt.clientX-ft,zn=xt.clientY-Lt;const Rn=document.getElementsByClassName("markdown-popup-form")[0],Dn=window.innerWidth-Rn.offsetWidth,jn=window.innerHeight-Rn.offsetHeight;un=Math.max(0,Math.min(un,Dn)),zn=Math.max(0,Math.min(zn,jn)),ba(xt.clientX,xt.clientY,ft,Lt)&&(da(un),$n(zn))},document.body.onmouseup=function(){document.body.onmousemove=null}},ba=(Ot,ft,Lt,xt)=>{const un=document.body.clientHeight,zn=document.body.clientWidth;return Ot<20&&Lt>Ot||Ot>zn-20&&Lt<Ot||ft<20&&xt>ft||ft>un-20&&xt<ft?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:"markdown-editor-wrapper",ref:ia},ne.createElement("div",{className:`markdown-editor-container ${Ue} ${Bn?"on-preview":""} ${Gt?"mini":""} ${vt?"full-screen":""}`,style:pa},ne.createElement(ge,{insertTemp:Zt,watch:Bn,fullScreen:vt,showNullButton:tn,showNullProgramButton:Tn,onActionCallback:On,hidetoolBar:Zn,extraUse:Tt}),ne.createElement("div",{className:"markdown-editor-body"},ne.createElement("div",{className:"codemirror-container"},ne.createElement("textarea",{ref:ta,placeholder:Ve})),Bn?ne.createElement("div",{ref:aa,className:"preview-container"},en==="stex"&&ne.createElement(ke,{value:an}),en!=="stex"&&ne.createElement(Ze.Z,{disabledFill:tt,showProgramFill:Tn,value:an})):null))),_n?ne.createElement("a",{ref:ga,className:"editor-resize"}):null,pt===Rt&&ne.createElement(et,{callback:Mn,onCancel:Xn}),pt===ht&&ne.createElement(lt,{callback:Mn,onCancel:Xn}),ne.createElement(ce.Z,null,na[pt]&&pt!==Rt&&pt!==ht?ne.createElement(Ce.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Pa,top:Kn},title:ne.createElement("div",{style:{cursor:"move"},onMouseDown:La},na[pt]),open:!0,onCancel:Xn,footer:null,destroyOnClose:!0,width:pt===ht?"1200px":null,height:pt===ht?"80vh":null,className:"markdown-popup-form"},Un):null))}},90443:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return ie},I:function(){return ce}});var ne=oe(78241),Se=oe(8591),We=oe(92832),Ie=oe(81327),me=oe(5871),ye=oe(5112),le=oe(3113),_e=oe(88457),Ae=oe(59301),De=oe(81779),Ze=oe(59301),ke=Object.defineProperty,Re=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable,b=(se,Be,Ge)=>Be in se?ke(se,Be,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):se[Be]=Ge,x=(se,Be)=>{for(var Ge in Be||(Be={}))y.call(Be,Ge)&&b(se,Ge,Be[Ge]);if(a)for(var Ge of a(Be))E.call(Be,Ge)&&b(se,Ge,Be[Ge]);return se},z=(se,Be)=>Re(se,ae(Be));const{useForm:ee}=ne.default,te={width:280,marginRight:10},re={labelCol:{span:5},wrapperCol:{span:19}};var ie=({callback:se,onCancel:Be})=>{const[Ge]=ee();let St=(0,Ae.useRef)();function Mt(xe){St.current.width=Ge.getFieldValue("width"),St.current.align=Ge.getFieldValue("align"),se(xe,St.current)}function Wt(xe,Ee){if(xe.status===-1){Se.ZP.error(xe.message);return}Ge.setFieldsValue({src:`/api/attachments/${xe.id}`,type:Ee.type})}function he(xe){let Ee=xe.target.files[0];St.current=Ee,ce(Ee,Wt)}return Ze.createElement(ne.default,z(x({form:Ge},re),{className:"upload-image-panel",onFinish:Mt,style:{width:470,overflow:"hidden"}}),Ze.createElement(ne.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ze.createElement("div",{className:"flex-container"},Ze.createElement(ne.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5730\u5740"}]},Ze.createElement(We.default,{style:te})),Ze.createElement(ge,{onFileChange:he}))),Ze.createElement(ne.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ze.createElement(We.default,{style:{width:264}})),Ze.createElement(ne.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ze.createElement(Ie.Z,null,Ze.createElement(ne.default.Item,{name:"width",style:{margin:0}},Ze.createElement(me.Z,{style:{width:264}})),Ze.createElement("span",{className:"ml8"},"%"))),Ze.createElement(ne.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ze.createElement(ye.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"}]})),Ze.createElement("aside",null,Ze.createElement(ne.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ze.createElement(le.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ze.createElement(le.ZP,{type:"default",onClick:Be},"\u53D6\u6D88"))))};function ge({onFileChange:se}){return Ze.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ze.createElement("input",{type:"file",onChange:se}))}function ce(se,Be){if(!se)throw new String("\u6CA1\u6709\u6587\u4EF6");if(!(0,De.bg)())throw Se.ZP.warning("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C"),new String("\u8BF7\u767B\u5F55\u540E\u518D\u64CD\u4F5C");let Ge=new FormData;Ge.append("editormd-image-file",se),Ge.append("file_param_name","editormd-image-file"),Ge.append("byxhr","true");var St=new window.XMLHttpRequest;St.withCredentials=!0,St.addEventListener("load",function(Mt){Be(JSON.parse(Mt.target.responseText),se)},!1),St.addEventListener("error",function(Mt){console.error(Mt)},!1),St.open("POST",`${_e.KI}/api/attachments.json`),St.send(Ge)}},81123:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return We}});var ne=oe(59301),Se=oe(4676);class We extends ne.Component{constructor(me){super(me);const ye=window.document;this.node=ye.createElement("div"),ye.body.appendChild(this.node)}render(){const{children:me}=this.props;return(0,Se.createPortal)(me,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},66991:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(We,Ie){const me=(0,ne.useRef)();(0,ne.useEffect)(()=>{me.current=We}),(0,ne.useEffect)(()=>{function ye(){me.current()}if(Ie!==null){let le=setInterval(ye,Ie);return()=>clearInterval(le)}},[Ie])}},53201:function(ze,dt,oe){"use strict";oe.r(dt),oe.d(dt,{default:function(){return Wt}});var ne=oe(59301),Se=oe(95392),We=oe(78241),Ie=oe(8591),me=oe(66104),ye=oe(92832),le=oe(5112),_e=oe(95237),Ae=oe(5871),De=oe(43604),Ze=oe(24905),ke=oe(3113),Re=oe(63949),ae=oe(88871),a=oe(79777),y={bg:"bg___wrwMu",flexRow:"flexRow___tXDGx",flexJustifyCenter:"flexJustifyCenter___FJrBL",flexAlignEnd:"flexAlignEnd___Y_tEj",flexAlignCenter:"flexAlignCenter___KQIWk",flexColumn:"flexColumn___bt5NB",formWrap:"formWrap___zb3yW",titleWrap:"titleWrap___Tqypo",fieldWrap:"fieldWrap___LZQ8o",mdWrap:"mdWrap___oYoPg",backgroundFa:"backgroundFa___ilebm",button:"button___JhLyG"},E=oe(97041),b=oe(37875),x=oe(57193),z=oe(28854),ee=Object.defineProperty,te=Object.defineProperties,re=Object.getOwnPropertyDescriptors,ie=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,ce=Object.prototype.propertyIsEnumerable,se=(he,xe,Ee)=>xe in he?ee(he,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):he[xe]=Ee,Be=(he,xe)=>{for(var Ee in xe||(xe={}))ge.call(xe,Ee)&&se(he,Ee,xe[Ee]);if(ie)for(var Ee of ie(xe))ce.call(xe,Ee)&&se(he,Ee,xe[Ee]);return he},Ge=(he,xe)=>te(he,re(xe)),St=(he,xe,Ee)=>new Promise((Qe,it)=>{var He=Pt=>{try{Ye(Ee.next(Pt))}catch(fe){it(fe)}},Xe=Pt=>{try{Ye(Ee.throw(Pt))}catch(fe){it(fe)}},Ye=Pt=>Pt.done?Qe(Pt.value):Promise.resolve(Pt.value).then(He,Xe);Ye((Ee=Ee.apply(he,xe)).next())});const Mt=({shixunHomeworks:he,newCourse:xe,globalSetting:Ee,loading:Qe,user:it,dispatch:He})=>{var Xe,Ye,Pt,fe;const Ce=(0,Se.useIntl)(),Je=(0,Se.useParams)(),[ut]=We.default.useForm(),Ke=We.default.useWatch("group_type",ut),[et,de]=(0,ne.useState)({}),nt=(0,ne.useRef)(),{commonHomeWorkAddDefaultData:ct}=he;let[Nt,Ft]=(0,ne.useState)({});(0,ne.useEffect)(()=>{setTimeout(()=>{document.body.scrollIntoView()},300);const{coursesId:Pe,categoryId:Te}=Je;He({type:"shixunHomeworks/addCommonHomeWorkDefaultData",payload:{category:Te,coursesId:Pe,type:3}})},[]);const Fe=Pe=>St(void 0,null,function*(){var Te,je;if(et.min_num>et.max_num){Ie.ZP.info(Ce.formatMessage({id:"classrooms.promptMaxNum",defaultMessage:"\u6700\u5927\u4EBA\u6570\u4E0D\u80FD\u5C0F\u4E8E\u6700\u5C0F\u4EBA\u6570"}));return}const lt=Be({},et);lt.attachment_ids&&(lt.attachment_ids=(Te=lt==null?void 0:lt.attachment_ids)==null?void 0:Te.map(At=>At.response.id)),lt.reference_attachment_ids&&(lt.reference_attachment_ids=(je=lt==null?void 0:lt.reference_attachment_ids)==null?void 0:je.map(At=>At.response.id));const{coursesId:Bt,categoryId:bt}=Je,zt=yield(0,a.H1)(Ge(Be({coursesId:Bt,category:bt},lt),{type:3}));zt.status===0&&(Le(zt.homework_id),(0,Re.L9)(["\u6559\u5B66\u8BFE\u5802","\u5206\u7EC4\u4F5C\u4E1A","\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"]),Se.history.push(`/classrooms/${Bt}/group_homework/${zt.homework_id}/detail`))});function Le(Pe){return St(this,null,function*(){if(!(Nt!=null&&Nt.ec_point_ids))return;let Te=yield(0,x.ZP)(`/api/ec_courses/${Nt==null?void 0:Nt.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:Be({homework_common_id:Pe},Nt)})})}return ne.createElement("section",{className:y.bg},ct.course_name&&ne.createElement("section",{className:"animated fadeIn"},ne.createElement("aside",{className:"mt10"},ct.category&&ne.createElement(me.Z,{separator:">"},ne.createElement(me.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${ct.course_id}/group_homework`},ct.course_name)),ne.createElement(me.Z.Item,null,ne.createElement(Se.Link,{to:`/classrooms/${ct.course_id}/group_homework`},ct.category.category_name)),ne.createElement(me.Z.Item,null,"\u65B0\u5EFA\u8BE6\u60C5")))),ne.createElement("aside",{className:"font24 bold mt20 mb20"},"\u65B0\u5EFA\u5206\u7EC4\u4F5C\u4E1A"),ne.createElement(We.default,{form:ut,className:y.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{de(Be({},ut.getFieldsValue()))},initialValues:{base_on_project:!1,group_type:z.YT.STUDENT_SELF},onFinish:Fe},ne.createElement("div",{className:y.fieldWrap},ne.createElement(We.default.Item,{name:"name",label:`${Ce.formatMessage({id:"classrooms.title",defaultMessage:"\u6807\u9898"})}:`,rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6807\u9898"}]},ne.createElement(ye.default,{maxLength:60,suffix:`${((Xe=et.name)==null?void 0:Xe.length)||0}/60`,placeholder:"\u4F8B\u5982\uFF1A\u4ECEPython\u7A0B\u5E8F\u8BBE\u8BA1-\u5165\u95E8\u7CBE\u901A"}))),ne.createElement("div",{className:y.mdWrap},ne.createElement(We.default.Item,{name:"description",label:"\u5185\u5BB9:",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u7684\u7B80\u4ECB"},{max:5e3,message:"\u4F5C\u4E1A\u7B80\u4ECB\u6700\u5927\u9650\u52365000\u4E2A\u5B57\u7B26"}]},ne.createElement(ae.Z,{watch:!0,defaultValue:et.intro})),ne.createElement("div",null,ne.createElement(We.default.Item,{name:"attachment_ids"},ne.createElement(E.Z,null))),ne.createElement("div",{className:"mb-16px"},ne.createElement("span",{className:"c-red-e53 px-6px"},"*"),"\u5206\u7EC4\u8BBE\u7F6E"),ne.createElement("div",{className:"flex"},ne.createElement("div",{style:{marginRight:8,lineHeight:"32px"}},"\u7EC4\u961F\u65B9\u5F0F :"),ne.createElement(We.default.Item,{name:"group_type"},ne.createElement(le.ZP.Group,{options:[{value:z.YT.STUDENT_SELF,label:"\u5B66\u751F\u81EA\u4E3B\u7EC4\u961F"},{value:z.YT.TEACHER_ASSIGN,label:ne.createElement(ne.Fragment,null,"\u6559\u5E08\u5206\u914D\u5C0F\u7EC4",ne.createElement("span",{className:"c-grey-666"},"\uFF08\u5C0F\u7EC4\u53EA\u80FD\u7531\u6559\u5E08\u521B\u5EFA\uFF09"))}]}))),Ke==z.YT.STUDENT_SELF&&ne.createElement(_e.Z,{gutter:[20,20]},ne.createElement("div",{className:"flex ml10"},ne.createElement("div",{style:{marginRight:8,lineHeight:"32px"}},"\u4EBA\u6570\u8BBE\u7F6E :"),ne.createElement(We.default.Item,{name:"min_num",normalize:Pe=>Math.round(Pe),required:!1,rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}]},ne.createElement(Ae.Z,{style:{width:200,marginRight:10},min:1,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5C0F\u4EBA\u6570"}))),ne.createElement(De.Z,null,ne.createElement(We.default.Item,{name:"max_num",normalize:Pe=>Math.round(Pe),rules:[{required:!0,message:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}]},ne.createElement(Ae.Z,{style:{width:200},max:100,placeholder:"\u8BF7\u586B\u5199\u6BCF\u7EC4\u6700\u5927\u4EBA\u6570"}))),ne.createElement(De.Z,null,ne.createElement("div",{className:"c-grey-666",style:{lineHeight:"30px"}},"\uFF08\u5B66\u751F\u63D0\u4EA4\u4F5C\u54C1\u65F6\u9700\u8981\u5173\u8054\u540C\u7EC4\u6210\u5458\uFF0C\u7EC4\u5185\u6210\u5458\u4F5C\u54C1\u5171\u4EAB\uFF09"))),ne.createElement(_e.Z,{style:{display:(Ye=Ee==null?void 0:Ee.setting)!=null&&Ye.hide_project?"none":""}},ne.createElement("div",{className:"flex gap-10px"},ne.createElement(We.default.Item,{name:"base_on_project",valuePropName:"checked"},ne.createElement(Ze.default,{value:!0},"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD")),ne.createElement("span",{className:"c-light-black",style:{lineHeight:"32px"}},"\uFF08\u9009\u4E2D\uFF0C\u5219\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u9879\u76EE\u7BA1\u7406\u5458\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF1B\u4E0D\u9009\u4E2D\uFF0C\u65E0\u9700\u5728\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u4EFB\u610F\u5C0F\u7EC4\u6210\u5458\u5747\u53EF\u4EE5\u63D0\u4EA4\u4F5C\u54C1\uFF09")))),ne.createElement("div",{className:y.mdWrap},ne.createElement(We.default.Item,{name:"reference_answer",label:"\u53C2\u8003\u7B54\u6848:"},ne.createElement(ae.Z,{watch:!0,defaultValue:et.notice})),ne.createElement("div",null,ne.createElement(We.default.Item,{name:"reference_attachment_ids"},ne.createElement(E.Z,null))))),ne.createElement("div",{className:y.mdWrap,style:{display:(Pt=Ee==null?void 0:Ee.setting)!=null&&Pt.hide_ec?"none":(fe=it.userInfo.course)!=null&&fe.is_openengineering?"":"none"}},ne.createElement(b.Z,{setitem:Pe=>Ft(Be({},Pe))})),ne.createElement("div",{className:y.backgroundFa},ne.createElement("div",{className:"pt40 mb30"},ne.createElement(We.default.Item,null,ne.createElement(ke.ZP,{size:"middle",type:"primary",onClick:()=>{ut.submit()},className:`${y.button} mr20`,htmlType:"submit",loading:Qe["newCourse/editCourse"]||Qe["newCourse/submitCourse"]},"\u63D0\u4EA4"),ne.createElement(ke.ZP,{size:"middle",type:"primary",ghost:!0,className:y.button,onClick:()=>Se.history.push(`/classrooms/${Je.coursesId}/group_homework`)},"\u53D6\u6D88")))))};var Wt=(0,Se.connect)(({shixunHomeworks:he,newCourse:xe,loading:Ee,user:Qe,globalSetting:it})=>({shixunHomeworks:he,newCourse:xe,globalSetting:it,user:Qe,loading:Ee.effects}))(Mt)},28854:function(ze,dt,oe){"use strict";oe.d(dt,{$s:function(){return Se},Kc:function(){return me},Um:function(){return Ie},YT:function(){return ne},ck:function(){return We}});var ne=(ye=>(ye.STUDENT_SELF="student_self",ye.TEACHER_ASSIGN="teacher_assign",ye))(ne||{}),Se=(ye=>(ye.BY_PERSON="by_person",ye.BY_GROUP="by_group",ye.BY_FILE="by_file",ye))(Se||{}),We=(ye=>(ye.BY_CLASS="by_class",ye.BY_RANDOM="by_random",ye))(We||{}),Ie=(ye=>(ye.BY_SCORE="by_score",ye.BY_HEADCOUNT="by_headcount",ye.BY_RULE_RANDOM="by_rule_random",ye))(Ie||{}),me=(ye=>(ye.BY_RULE="by_rule",ye.BY_LEADER="by_leader",ye))(me||{})},12480:function(ze,dt,oe){"use strict";oe.d(dt,{$J:function(){return We},JZ:function(){return me},bN:function(){return le},jP:function(){return ye},rO:function(){return Ie}});var ne=oe(57193),Se=(_e,Ae,De)=>new Promise((Ze,ke)=>{var Re=y=>{try{a(De.next(y))}catch(E){ke(E)}},ae=y=>{try{a(De.throw(y))}catch(E){ke(E)}},a=y=>y.done?Ze(y.value):Promise.resolve(y.value).then(Re,ae);a((De=De.apply(_e,Ae)).next())});function We(_e){return(0,ne.U2)(`libraries/${_e}.json`)}function Ie(_e){return(0,ne.U2)("library_tags.json",_e)}function me(_e){return Se(this,null,function*(){return(yield(0,ne.IV)(`attachments/${_e}.json`)).status===0})}function ye(_e){return(0,ne.v_)("libraries.json",_e)}function le(_e,Ae){return(0,ne.gz)(`libraries/${_e}.json`,Ae)}},56762:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return Se}});var ne=oe(59301);function Se(){const[,We]=ne.useReducer(Ie=>Ie+1,0);return We}},66104:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return Wt}});var ne=oe(92310),Se=oe.n(ne),We=oe(11592),Ie=oe(26112),me=oe(59301),ye=oe(92343),le=oe(36355),_e=oe(84105),Ae=oe(91857);const De=he=>{let{children:xe}=he;const{getPrefixCls:Ee}=me.useContext(le.E_),Qe=Ee("breadcrumb");return me.createElement("li",{className:`${Qe}-separator`,"aria-hidden":"true"},xe===""?xe:xe||"/")};De.__ANT_BREADCRUMB_SEPARATOR=!0;var Ze=De,ke=function(he,xe){var Ee={};for(var Qe in he)Object.prototype.hasOwnProperty.call(he,Qe)&&xe.indexOf(Qe)<0&&(Ee[Qe]=he[Qe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(he);it<Qe.length;it++)xe.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(he,Qe[it])&&(Ee[Qe[it]]=he[Qe[it]]);return Ee};function Re(he,xe){if(he.title===void 0||he.title===null)return null;const Ee=Object.keys(xe).join("|");return typeof he.title=="object"?he.title:String(he.title).replace(new RegExp(`:(${Ee})`,"g"),(Qe,it)=>xe[it]||Qe)}function ae(he,xe,Ee,Qe){if(Ee==null)return null;const{className:it,onClick:He}=xe,Xe=ke(xe,["className","onClick"]),Ye=Object.assign(Object.assign({},(0,Ie.Z)(Xe,{data:!0,aria:!0})),{onClick:He});return Qe!==void 0?me.createElement("a",Object.assign({},Ye,{className:Se()(`${he}-link`,it),href:Qe}),Ee):me.createElement("span",Object.assign({},Ye,{className:Se()(`${he}-link`,it)}),Ee)}function a(he,xe){return(Qe,it,He,Xe,Ye)=>{if(xe)return xe(Qe,it,He,Xe);const Pt=Re(Qe,it);return ae(he,Qe,Pt,Ye)}}var y=function(he,xe){var Ee={};for(var Qe in he)Object.prototype.hasOwnProperty.call(he,Qe)&&xe.indexOf(Qe)<0&&(Ee[Qe]=he[Qe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(he);it<Qe.length;it++)xe.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(he,Qe[it])&&(Ee[Qe[it]]=he[Qe[it]]);return Ee};const E=he=>{const{prefixCls:xe,separator:Ee="/",children:Qe,menu:it,overlay:He,dropdownProps:Xe,href:Ye}=he,fe=(Ce=>{if(it||He){const Je=Object.assign({},Xe);if(it){const ut=it||{},{items:Ke}=ut,et=y(ut,["items"]);Je.menu=Object.assign(Object.assign({},et),{items:Ke==null?void 0:Ke.map((de,nt)=>{var{key:ct,title:Nt,label:Ft,path:Fe}=de,Le=y(de,["key","title","label","path"]);let Pe=Ft!=null?Ft:Nt;return Fe&&(Pe=me.createElement("a",{href:`${Ye}${Fe}`},Pe)),Object.assign(Object.assign({},Le),{key:ct!=null?ct:nt,label:Pe})})})}else He&&(Je.overlay=He);return me.createElement(Ae.Z,Object.assign({placement:"bottom"},Je),me.createElement("span",{className:`${xe}-overlay-link`},Ce,me.createElement(_e.Z,null)))}return Ce})(Qe);return fe!=null?me.createElement(me.Fragment,null,me.createElement("li",null,fe),Ee&&me.createElement(Ze,null,Ee)):null},b=he=>{const{prefixCls:xe,children:Ee,href:Qe}=he,it=y(he,["prefixCls","children","href"]),{getPrefixCls:He}=me.useContext(le.E_),Xe=He("breadcrumb",xe);return me.createElement(E,Object.assign({},it,{prefixCls:Xe}),ae(Xe,it,Ee,Qe))};b.__ANT_BREADCRUMB_ITEM=!0;var x=b,z=oe(17313),ee=oe(83116),te=oe(37613);const re=he=>{const{componentCls:xe,iconCls:Ee}=he;return{[xe]:Object.assign(Object.assign({},(0,z.Wf)(he)),{color:he.itemColor,fontSize:he.fontSize,[Ee]:{fontSize:he.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:he.linkColor,transition:`color ${he.motionDurationMid}`,padding:`0 ${he.paddingXXS}px`,borderRadius:he.borderRadiusSM,height:he.lineHeight*he.fontSize,display:"inline-block",marginInline:-he.marginXXS,"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover}},(0,z.Qy)(he)),"li:last-child":{color:he.lastItemColor},[`${xe}-separator`]:{marginInline:he.separatorMargin,color:he.separatorColor},[`${xe}-link`]:{[`
|
|
> ${Ee} + span,
|
|
> ${Ee} + a
|
|
`]:{marginInlineStart:he.marginXXS}},[`${xe}-overlay-link`]:{borderRadius:he.borderRadiusSM,height:he.lineHeight*he.fontSize,display:"inline-block",padding:`0 ${he.paddingXXS}px`,marginInline:-he.marginXXS,[`> ${Ee}`]:{marginInlineStart:he.marginXXS,fontSize:he.fontSizeIcon},"&:hover":{color:he.linkHoverColor,backgroundColor:he.colorBgTextHover,a:{color:he.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${he.componentCls}-rtl`]:{direction:"rtl"}})}};var ie=(0,ee.Z)("Breadcrumb",he=>{const xe=(0,te.TS)(he,{});return[re(xe)]},he=>({itemColor:he.colorTextDescription,lastItemColor:he.colorText,iconFontSize:he.fontSize,linkColor:he.colorTextDescription,linkHoverColor:he.colorText,separatorColor:he.colorTextDescription,separatorMargin:he.marginXS})),ge=function(he,xe){var Ee={};for(var Qe in he)Object.prototype.hasOwnProperty.call(he,Qe)&&xe.indexOf(Qe)<0&&(Ee[Qe]=he[Qe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(he);it<Qe.length;it++)xe.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(he,Qe[it])&&(Ee[Qe[it]]=he[Qe[it]]);return Ee};function ce(he){const{breadcrumbName:xe,children:Ee}=he,Qe=ge(he,["breadcrumbName","children"]),it=Object.assign({title:xe},Qe);return Ee&&(it.menu={items:Ee.map(He=>{var{breadcrumbName:Xe}=He,Ye=ge(He,["breadcrumbName"]);return Object.assign(Object.assign({},Ye),{title:Xe})})}),it}function se(he,xe){return(0,me.useMemo)(()=>he||(xe?xe.map(ce):null),[he,xe])}var Be=function(he,xe){var Ee={};for(var Qe in he)Object.prototype.hasOwnProperty.call(he,Qe)&&xe.indexOf(Qe)<0&&(Ee[Qe]=he[Qe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,Qe=Object.getOwnPropertySymbols(he);it<Qe.length;it++)xe.indexOf(Qe[it])<0&&Object.prototype.propertyIsEnumerable.call(he,Qe[it])&&(Ee[Qe[it]]=he[Qe[it]]);return Ee};const Ge=(he,xe)=>{if(xe===void 0)return xe;let Ee=(xe||"").replace(/^\//,"");return Object.keys(he).forEach(Qe=>{Ee=Ee.replace(`:${Qe}`,he[Qe])}),Ee},St=he=>{const{prefixCls:xe,separator:Ee="/",style:Qe,className:it,rootClassName:He,routes:Xe,items:Ye,children:Pt,itemRender:fe,params:Ce={}}=he,Je=Be(he,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:ut,direction:Ke,breadcrumb:et}=me.useContext(le.E_);let de;const nt=ut("breadcrumb",xe),[ct,Nt]=ie(nt),Ft=se(Ye,Xe),Fe=a(nt,fe);if(Ft&&Ft.length>0){const Te=[],je=Ye||Xe;de=Ft.map((lt,Bt)=>{const{path:bt,key:zt,type:At,menu:Et,overlay:yt,onClick:wt,className:Ht,separator:mn,dropdownProps:qt}=lt,Ut=Ge(Ce,bt);Ut!==void 0&&Te.push(Ut);const ve=zt!=null?zt:Bt;if(At==="separator")return me.createElement(Ze,{key:ve},mn);const Oe={},qe=Bt===Ft.length-1;Et?Oe.menu=Et:yt&&(Oe.overlay=yt);let{href:mt}=lt;return Te.length&&Ut!==void 0&&(mt=`#/${Te.join("/")}`),me.createElement(E,Object.assign({key:ve},Oe,(0,Ie.Z)(lt,{data:!0,aria:!0}),{className:Ht,dropdownProps:qt,href:mt,separator:qe?"":Ee,onClick:wt,prefixCls:nt}),Fe(lt,Ce,je,Te,mt))})}else if(Pt){const Te=(0,We.Z)(Pt).length;de=(0,We.Z)(Pt).map((je,lt)=>{if(!je)return je;const Bt=lt===Te-1;return(0,ye.Tm)(je,{separator:Bt?"":Ee,key:lt})})}const Le=Se()(nt,et==null?void 0:et.className,{[`${nt}-rtl`]:Ke==="rtl"},it,He,Nt),Pe=Object.assign(Object.assign({},et==null?void 0:et.style),Qe);return ct(me.createElement("nav",Object.assign({className:Le,style:Pe},Je),me.createElement("ol",null,de)))};St.Item=x,St.Separator=Ze;var Mt=St,Wt=Mt},24905:function(ze,dt,oe){"use strict";oe.d(dt,{default:function(){return ie}});var ne=oe(92310),Se=oe.n(ne),We=oe(5630),Ie=oe(59301),me=oe(36355),ye=oe(1684),le=oe(32441),Ae=Ie.createContext(null),De=oe(98447),Ze=oe(14088),ke=oe(4572),Re=function(ge,ce){var se={};for(var Be in ge)Object.prototype.hasOwnProperty.call(ge,Be)&&ce.indexOf(Be)<0&&(se[Be]=ge[Be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Be=Object.getOwnPropertySymbols(ge);Ge<Be.length;Ge++)ce.indexOf(Be[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ge,Be[Ge])&&(se[Be[Ge]]=ge[Be[Ge]]);return se};const ae=(ge,ce)=>{var se;const{prefixCls:Be,className:Ge,rootClassName:St,children:Mt,indeterminate:Wt=!1,style:he,onMouseEnter:xe,onMouseLeave:Ee,skipGroup:Qe=!1,disabled:it}=ge,He=Re(ge,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Xe,direction:Ye,checkbox:Pt}=Ie.useContext(me.E_),fe=Ie.useContext(Ae),{isFormItemInput:Ce}=Ie.useContext(le.aM),Je=Ie.useContext(ye.Z),ut=(se=(fe==null?void 0:fe.disabled)||it)!==null&&se!==void 0?se:Je,Ke=Ie.useRef(He.value);Ie.useEffect(()=>{fe==null||fe.registerValue(He.value)},[]),Ie.useEffect(()=>{if(!Qe)return He.value!==Ke.current&&(fe==null||fe.cancelValue(Ke.current),fe==null||fe.registerValue(He.value),Ke.current=He.value),()=>fe==null?void 0:fe.cancelValue(He.value)},[He.value]);const et=Xe("checkbox",Be),[de,nt]=(0,De.ZP)(et),ct=Object.assign({},He);fe&&!Qe&&(ct.onChange=function(){He.onChange&&He.onChange.apply(He,arguments),fe.toggleOption&&fe.toggleOption({label:Mt,value:He.value})},ct.name=fe.name,ct.checked=fe.value.includes(He.value));const Nt=Se()(`${et}-wrapper`,{[`${et}-rtl`]:Ye==="rtl",[`${et}-wrapper-checked`]:ct.checked,[`${et}-wrapper-disabled`]:ut,[`${et}-wrapper-in-form-item`]:Ce},Pt==null?void 0:Pt.className,Ge,St,nt),Ft=Se()({[`${et}-indeterminate`]:Wt},ke.A,nt),Fe=Wt?"mixed":void 0;return de(Ie.createElement(Ze.Z,{component:"Checkbox",disabled:ut},Ie.createElement("label",{className:Nt,style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),he),onMouseEnter:xe,onMouseLeave:Ee},Ie.createElement(We.Z,Object.assign({"aria-checked":Fe},ct,{prefixCls:et,className:Ft,disabled:ut,ref:ce})),Mt!==void 0&&Ie.createElement("span",null,Mt))))};var y=Ie.forwardRef(ae),E=oe(94480),b=oe(2738),x=function(ge,ce){var se={};for(var Be in ge)Object.prototype.hasOwnProperty.call(ge,Be)&&ce.indexOf(Be)<0&&(se[Be]=ge[Be]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,Be=Object.getOwnPropertySymbols(ge);Ge<Be.length;Ge++)ce.indexOf(Be[Ge])<0&&Object.prototype.propertyIsEnumerable.call(ge,Be[Ge])&&(se[Be[Ge]]=ge[Be[Ge]]);return se};const z=(ge,ce)=>{const{defaultValue:se,children:Be,options:Ge=[],prefixCls:St,className:Mt,rootClassName:Wt,style:he,onChange:xe}=ge,Ee=x(ge,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Qe,direction:it}=Ie.useContext(me.E_),[He,Xe]=Ie.useState(Ee.value||se||[]),[Ye,Pt]=Ie.useState([]);Ie.useEffect(()=>{"value"in Ee&&Xe(Ee.value||[])},[Ee.value]);const fe=Ie.useMemo(()=>Ge.map(Le=>typeof Le=="string"||typeof Le=="number"?{label:Le,value:Le}:Le),[Ge]),Ce=Le=>{Pt(Pe=>Pe.filter(Te=>Te!==Le))},Je=Le=>{Pt(Pe=>[].concat((0,E.Z)(Pe),[Le]))},ut=Le=>{const Pe=He.indexOf(Le.value),Te=(0,E.Z)(He);Pe===-1?Te.push(Le.value):Te.splice(Pe,1),"value"in Ee||Xe(Te),xe==null||xe(Te.filter(je=>Ye.includes(je)).sort((je,lt)=>{const Bt=fe.findIndex(zt=>zt.value===je),bt=fe.findIndex(zt=>zt.value===lt);return Bt-bt}))},Ke=Qe("checkbox",St),et=`${Ke}-group`,[de,nt]=(0,De.ZP)(Ke),ct=(0,b.Z)(Ee,["value","disabled"]),Nt=Ge.length?fe.map(Le=>Ie.createElement(y,{prefixCls:Ke,key:Le.value.toString(),disabled:"disabled"in Le?Le.disabled:Ee.disabled,value:Le.value,checked:He.includes(Le.value),onChange:Le.onChange,className:`${et}-item`,style:Le.style,title:Le.title},Le.label)):Be,Ft={toggleOption:ut,value:He,disabled:Ee.disabled,name:Ee.name,registerValue:Je,cancelValue:Ce},Fe=Se()(et,{[`${et}-rtl`]:it==="rtl"},Mt,Wt,nt);return de(Ie.createElement("div",Object.assign({className:Fe,style:he},ct,{ref:ce}),Ie.createElement(Ae.Provider,{value:Ft},Nt)))},ee=Ie.forwardRef(z);var te=Ie.memo(ee);const re=y;re.Group=te,re.__ANT_CHECKBOX=!0;var ie=re},98447:function(ze,dt,oe){"use strict";oe.d(dt,{C2:function(){return me}});var ne=oe(17313),Se=oe(37613),We=oe(83116);const Ie=ye=>{const{checkboxCls:le}=ye,_e=`${le}-wrapper`;return[{[`${le}-group`]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{display:"inline-flex",flexWrap:"wrap",columnGap:ye.marginXS,[`> ${ye.antCls}-row`]:{flex:1}}),[_e]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${_e}`]:{marginInlineStart:0},[`&${_e}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[le]:Object.assign(Object.assign({},(0,ne.Wf)(ye)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:ye.borderRadiusSM,alignSelf:"center",[`${le}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${le}-inner`]:Object.assign({},(0,ne.oN)(ye))},[`${le}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:ye.checkboxSize,height:ye.checkboxSize,direction:"ltr",backgroundColor:ye.colorBgContainer,border:`${ye.lineWidth}px ${ye.lineType} ${ye.colorBorder}`,borderRadius:ye.borderRadiusSM,borderCollapse:"separate",transition:`all ${ye.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:ye.checkboxSize/14*5,height:ye.checkboxSize/14*8,border:`${ye.lineWidthBold}px solid ${ye.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${ye.motionDurationFast} ${ye.motionEaseInBack}, opacity ${ye.motionDurationFast}`}},"& + span":{paddingInlineStart:ye.paddingXS,paddingInlineEnd:ye.paddingXS}})},{[`
|
|
${_e}:not(${_e}-disabled),
|
|
${le}:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{borderColor:ye.colorPrimary}},[`${_e}:not(${_e}-disabled)`]:{[`&:hover ${le}-checked:not(${le}-disabled) ${le}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${le}-checked:not(${le}-disabled):after`]:{borderColor:ye.colorPrimaryHover}}},{[`${le}-checked`]:{[`${le}-inner`]:{backgroundColor:ye.colorPrimary,borderColor:ye.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${ye.motionDurationMid} ${ye.motionEaseOutBack} ${ye.motionDurationFast}`}}},[`
|
|
${_e}-checked:not(${_e}-disabled),
|
|
${le}-checked:not(${le}-disabled)
|
|
`]:{[`&:hover ${le}-inner`]:{backgroundColor:ye.colorPrimaryHover,borderColor:"transparent"}}},{[le]:{"&-indeterminate":{[`${le}-inner`]:{backgroundColor:ye.colorBgContainer,borderColor:ye.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:ye.fontSizeLG/2,height:ye.fontSizeLG/2,backgroundColor:ye.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${_e}-disabled`]:{cursor:"not-allowed"},[`${le}-disabled`]:{[`&, ${le}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${le}-inner`]:{background:ye.colorBgContainerDisabled,borderColor:ye.colorBorder,"&:after":{borderColor:ye.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:ye.colorTextDisabled},[`&${le}-indeterminate ${le}-inner::after`]:{background:ye.colorTextDisabled}}}]};function me(ye,le){const _e=(0,Se.TS)(le,{checkboxCls:`.${ye}`,checkboxSize:le.controlInteractiveSize});return[Ie(_e)]}dt.ZP=(0,We.Z)("Checkbox",(ye,le)=>{let{prefixCls:_e}=le;return[me(_e,ye)]})},91857:function(ze,dt,oe){"use strict";var ne=oe(59301),Se=oe(38819),We=oe(92310),Ie=oe.n(We),me=oe(31561),ye=oe(70425),le=oe(18929),_e=oe(2738),Ae=oe(79676),De=oe(53487),Ze=oe(92343),ke=oe(36355),Re=oe(20834),ae=oe(40875),a=oe(88088),y=oe(47211);const E=null,b=te=>{const{menu:re,arrow:ie,prefixCls:ge,children:ce,trigger:se,disabled:Be,dropdownRender:Ge,getPopupContainer:St,overlayClassName:Mt,rootClassName:Wt,open:he,onOpenChange:xe,visible:Ee,onVisibleChange:Qe,mouseEnterDelay:it=.15,mouseLeaveDelay:He=.1,autoAdjustOverflow:Xe=!0,placement:Ye="",overlay:Pt,transitionName:fe}=te,{getPopupContainer:Ce,getPrefixCls:Je,direction:ut}=ne.useContext(ke.E_),Ke=ne.useMemo(()=>{const Et=Je();return fe!==void 0?fe:Ye.includes("top")?`${Et}-slide-down`:`${Et}-slide-up`},[Je,Ye,fe]),et=ne.useMemo(()=>Ye?Ye.includes("Center")?Ye.slice(0,Ye.indexOf("Center")):Ye:ut==="rtl"?"bottomRight":"bottomLeft",[Ye,ut]),de=Je("dropdown",ge),[nt,ct]=(0,y.Z)(de),[,Nt]=(0,a.Z)(),Ft=ne.Children.only(ce),Fe=(0,Ze.Tm)(Ft,{className:Ie()(`${de}-trigger`,{[`${de}-rtl`]:ut==="rtl"},Ft.props.className),disabled:Be}),Le=Be?[]:se;let Pe;Le&&Le.includes("contextMenu")&&(Pe=!0);const[Te,je]=(0,le.Z)(!1,{value:he!=null?he:Ee}),lt=(0,ye.useEvent)(Et=>{xe==null||xe(Et),Qe==null||Qe(Et),je(Et)}),Bt=Ie()(Mt,Wt,ct,{[`${de}-rtl`]:ut==="rtl"}),bt=(0,Ae.Z)({arrowPointAtCenter:typeof ie=="object"&&ie.pointAtCenter,autoAdjustOverflow:Xe,offset:Nt.marginXXS,arrowWidth:ie?Nt.sizePopupArrow:0,borderRadius:Nt.borderRadius}),zt=ne.useCallback(()=>{je(!1)},[]),At=()=>{let Et;return re!=null&&re.items?Et=ne.createElement(Re.default,Object.assign({},re)):typeof Pt=="function"?Et=Pt():Et=Pt,Ge&&(Et=Ge(Et)),Et=ne.Children.only(typeof Et=="string"?ne.createElement("span",null,Et):Et),ne.createElement(ae.J,{prefixCls:`${de}-menu`,expandIcon:ne.createElement("span",{className:`${de}-menu-submenu-arrow`},ne.createElement(Se.Z,{className:`${de}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:zt,validator:yt=>{let{mode:wt}=yt}},Et)};return nt(ne.createElement(me.Z,Object.assign({alignPoint:Pe},(0,_e.Z)(te,["rootClassName"]),{mouseEnterDelay:it,mouseLeaveDelay:He,visible:Te,builtinPlacements:bt,arrow:!!ie,overlayClassName:Bt,prefixCls:de,getPopupContainer:St||Ce,transitionName:Ke,trigger:Le,overlay:At,placement:et,onVisibleChange:lt}),Fe))};function x(te){return Object.assign(Object.assign({},te),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,De.Z)(b,"dropdown",te=>te,x),ee=te=>ne.createElement(z,Object.assign({},te),ne.createElement("span",null));b._InternalPanelDoNotUseOrYouWillBeFired=ee,dt.Z=b},47211:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ze}});var ne=oe(17313),Se=oe(13826),We=oe(92899),Ie=oe(29878),me=oe(19447),ye=oe(83116),le=oe(37613),Ae=ke=>{const{componentCls:Re,menuCls:ae,colorError:a,colorTextLightSolid:y}=ke,E=`${ae}-item`;return{[`${Re}, ${Re}-menu-submenu`]:{[`${ae} ${E}`]:{[`&${E}-danger:not(${E}-disabled)`]:{color:a,"&:hover":{color:y,backgroundColor:a}}}}}};const De=ke=>{const{componentCls:Re,menuCls:ae,zIndexPopup:a,dropdownArrowDistance:y,sizePopupArrow:E,antCls:b,iconCls:x,motionDurationMid:z,dropdownPaddingVertical:ee,fontSize:te,dropdownEdgeChildPadding:re,colorTextDisabled:ie,fontSizeIcon:ge,controlPaddingHorizontal:ce,colorBgElevated:se}=ke;return[{[Re]:Object.assign(Object.assign({},(0,ne.Wf)(ke)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:a,display:"block","&::before":{position:"absolute",insetBlock:-y+E/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${b}-btn`]:{[`& > ${x}-down, & > ${b}-btn-icon > ${x}-down`]:{fontSize:ge}},[`${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:Se.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:Se.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:Se.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:Se.ly}})},(0,me.ZP)(ke,{colorBg:se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${Re} ${ae}`]:{position:"relative",margin:0},[`${ae}-submenu-popup`]:{position:"absolute",zIndex:a,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Re}, ${Re}-menu-submenu`]:{[ae]:Object.assign(Object.assign({padding:re,listStyleType:"none",backgroundColor:se,backgroundClip:"padding-box",borderRadius:ke.borderRadiusLG,outline:"none",boxShadow:ke.boxShadowSecondary},(0,ne.Qy)(ke)),{[`${ae}-item-group-title`]:{padding:`${ee}px ${ce}px`,color:ke.colorTextDescription,transition:`all ${z}`},[`${ae}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${ae}-item-icon`]:{minWidth:te,marginInlineEnd:ke.marginXS,fontSize:ke.fontSizeSM},[`${ae}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${ae}-item, ${ae}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ee}px ${ce}px`,color:ke.colorText,fontWeight:"normal",fontSize:te,lineHeight:ke.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:ke.borderRadiusSM,"&:hover, &-active":{backgroundColor:ke.controlItemBgHover}},(0,ne.Qy)(ke)),{"&-selected":{color:ke.colorPrimary,backgroundColor:ke.controlItemBgActive,"&:hover, &-active":{backgroundColor:ke.controlItemBgActiveHover}},"&-disabled":{color:ie,cursor:"not-allowed","&:hover":{color:ie,backgroundColor:se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ke.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ke.colorSplit},[`${Re}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ke.paddingXS,[`${Re}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ke.colorTextDescription,fontSize:ge,fontStyle:"normal"}}}),[`${ae}-item-group-list`]:{margin:`0 ${ke.marginXS}px`,padding:0,listStyle:"none"},[`${ae}-submenu-title`]:{paddingInlineEnd:ce+ke.fontSizeSM},[`${ae}-submenu-vertical`]:{position:"relative"},[`${ae}-submenu${ae}-submenu-disabled ${Re}-menu-submenu-title`]:{[`&, ${Re}-menu-submenu-arrow-icon`]:{color:ie,backgroundColor:se,cursor:"not-allowed"}},[`${ae}-submenu-selected ${Re}-menu-submenu-title`]:{color:ke.colorPrimary}})}},[(0,Se.oN)(ke,"slide-up"),(0,Se.oN)(ke,"slide-down"),(0,We.Fm)(ke,"move-up"),(0,We.Fm)(ke,"move-down"),(0,Ie._y)(ke,"zoom-big")]]};var Ze=(0,ye.Z)("Dropdown",(ke,Re)=>{let{rootPrefixCls:ae}=Re;const{marginXXS:a,sizePopupArrow:y,controlHeight:E,fontSize:b,lineHeight:x,paddingXXS:z,componentCls:ee,borderRadiusLG:te}=ke,re=(E-b*x)/2,{dropdownArrowOffset:ie}=(0,me.fS)({contentRadius:te}),ge=(0,le.TS)(ke,{menuCls:`${ee}-menu`,rootPrefixCls:ae,dropdownArrowDistance:y/2+a,dropdownArrowOffset:ie,dropdownPaddingVertical:re,dropdownEdgeChildPadding:z});return[De(ge),Ae(ge)]},ke=>({zIndexPopup:ke.zIndexPopupBase+50}))},45818:function(ze,dt,oe){"use strict";oe.d(dt,{D:function(){return z},Z:function(){return re}});var ne=oe(54476),Se=oe(59301),We={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ie=We,me=oe(7657),ye=function(ge,ce){return Se.createElement(me.Z,(0,ne.Z)({},ge,{ref:ce,icon:Ie}))},le=Se.forwardRef(ye),_e=le,Ae=oe(33853),De=oe(38819),Ze=oe(92310),ke=oe.n(Ze),Re=oe(2738),a=ie=>!isNaN(parseFloat(ie))&&isFinite(ie),y=oe(36355),E=oe(84966),b=function(ie,ge){var ce={};for(var se in ie)Object.prototype.hasOwnProperty.call(ie,se)&&ge.indexOf(se)<0&&(ce[se]=ie[se]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Be=0,se=Object.getOwnPropertySymbols(ie);Be<se.length;Be++)ge.indexOf(se[Be])<0&&Object.prototype.propertyIsEnumerable.call(ie,se[Be])&&(ce[se[Be]]=ie[se[Be]]);return ce};const x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},z=Se.createContext({}),ee=(()=>{let ie=0;return function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ie+=1,`${ge}${ie}`}})();var re=Se.forwardRef((ie,ge)=>{const{prefixCls:ce,className:se,trigger:Be,children:Ge,defaultCollapsed:St=!1,theme:Mt="dark",style:Wt={},collapsible:he=!1,reverseArrow:xe=!1,width:Ee=200,collapsedWidth:Qe=80,zeroWidthTriggerStyle:it,breakpoint:He,onCollapse:Xe,onBreakpoint:Ye}=ie,Pt=b(ie,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:fe}=(0,Se.useContext)(E.Gs),[Ce,Je]=(0,Se.useState)("collapsed"in ie?ie.collapsed:St),[ut,Ke]=(0,Se.useState)(!1);(0,Se.useEffect)(()=>{"collapsed"in ie&&Je(ie.collapsed)},[ie.collapsed]);const et=(Fe,Le)=>{"collapsed"in ie||Je(Fe),Xe==null||Xe(Fe,Le)},de=(0,Se.useRef)();de.current=Fe=>{Ke(Fe.matches),Ye==null||Ye(Fe.matches),Ce!==Fe.matches&&et(Fe.matches,"responsive")},(0,Se.useEffect)(()=>{function Fe(Pe){return de.current(Pe)}let Le;if(typeof window!="undefined"){const{matchMedia:Pe}=window;if(Pe&&He&&He in x){Le=Pe(`(max-width: ${x[He]})`);try{Le.addEventListener("change",Fe)}catch(Te){Le.addListener(Fe)}Fe(Le)}}return()=>{try{Le==null||Le.removeEventListener("change",Fe)}catch(Pe){Le==null||Le.removeListener(Fe)}}},[He]),(0,Se.useEffect)(()=>{const Fe=ee("ant-sider-");return fe.addSider(Fe),()=>fe.removeSider(Fe)},[]);const nt=()=>{et(!Ce,"clickTrigger")},{getPrefixCls:ct}=(0,Se.useContext)(y.E_),Nt=()=>{const Fe=ct("layout-sider",ce),Le=(0,Re.Z)(Pt,["collapsed"]),Pe=Ce?Qe:Ee,Te=a(Pe)?`${Pe}px`:String(Pe),je=parseFloat(String(Qe||0))===0?Se.createElement("span",{onClick:nt,className:ke()(`${Fe}-zero-width-trigger`,`${Fe}-zero-width-trigger-${xe?"right":"left"}`),style:it},Be||Se.createElement(_e,null)):null,bt={expanded:xe?Se.createElement(De.Z,null):Se.createElement(Ae.Z,null),collapsed:xe?Se.createElement(Ae.Z,null):Se.createElement(De.Z,null)}[Ce?"collapsed":"expanded"],zt=Be!==null?je||Se.createElement("div",{className:`${Fe}-trigger`,onClick:nt,style:{width:Te}},Be||bt):null,At=Object.assign(Object.assign({},Wt),{flex:`0 0 ${Te}`,maxWidth:Te,minWidth:Te,width:Te}),Et=ke()(Fe,`${Fe}-${Mt}`,{[`${Fe}-collapsed`]:!!Ce,[`${Fe}-has-trigger`]:he&&Be!==null&&!je,[`${Fe}-below`]:!!ut,[`${Fe}-zero-width`]:parseFloat(Te)===0},se);return Se.createElement("aside",Object.assign({className:Et},Le,{style:At,ref:ge}),Se.createElement("div",{className:`${Fe}-children`},Ge),he||ut&&je?zt:null)},Ft=Se.useMemo(()=>({siderCollapsed:Ce}),[Ce]);return Se.createElement(z.Provider,{value:Ft},Nt())})},84966:function(ze,dt,oe){"use strict";oe.d(dt,{VY:function(){return z},$_:function(){return x},h4:function(){return b},Gs:function(){return Re},ZP:function(){return ee}});var ne=oe(94480),Se=oe(92310),We=oe.n(Se),Ie=oe(2738),me=oe(59301),ye=oe(36355),le=oe(83116),Ae=te=>{const{componentCls:re,bodyBg:ie,lightSiderBg:ge,lightTriggerBg:ce,lightTriggerColor:se}=te;return{[`${re}-sider-light`]:{background:ge,[`${re}-sider-trigger`]:{color:se,background:ce},[`${re}-sider-zero-width-trigger`]:{color:se,background:ce,border:`1px solid ${ie}`,borderInlineStart:0}}}};const De=te=>{const{antCls:re,componentCls:ie,colorText:ge,triggerColor:ce,footerBg:se,triggerBg:Be,headerHeight:Ge,headerPadding:St,headerColor:Mt,footerPadding:Wt,triggerHeight:he,zeroTriggerHeight:xe,zeroTriggerWidth:Ee,motionDurationMid:Qe,motionDurationSlow:it,fontSize:He,borderRadius:Xe,bodyBg:Ye,headerBg:Pt,siderBg:fe}=te;return{[ie]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ye,"&, *":{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 ${Qe}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${re}-menu${re}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:he},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:he,color:ce,lineHeight:`${he}px`,textAlign:"center",background:Be,cursor:"pointer",transition:`all ${Qe}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ge,insetInlineEnd:-Ee,zIndex:1,width:Ee,height:xe,color:ce,fontSize:te.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:fe,borderStartStartRadius:0,borderStartEndRadius:Xe,borderEndEndRadius:Xe,borderEndStartRadius:0,cursor:"pointer",transition:`background ${it} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${it}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ee,borderStartStartRadius:Xe,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Xe}}}}},Ae(te)),{"&-rtl":{direction:"rtl"}}),[`${ie}-header`]:{height:Ge,padding:St,color:Mt,lineHeight:`${Ge}px`,background:Pt,[`${re}-menu`]:{lineHeight:"inherit"}},[`${ie}-footer`]:{padding:Wt,color:ge,fontSize:He,background:se},[`${ie}-content`]:{flex:"auto",minHeight:0}}};var Ze=(0,le.Z)("Layout",te=>[De(te)],te=>{const{colorBgLayout:re,controlHeight:ie,controlHeightLG:ge,colorText:ce,controlHeightSM:se,marginXXS:Be,colorTextLightSolid:Ge,colorBgContainer:St}=te,Mt=ge*1.25;return{colorBgHeader:"#001529",colorBgBody:re,colorBgTrigger:"#002140",bodyBg:re,headerBg:"#001529",headerHeight:ie*2,headerPadding:`0 ${Mt}px`,headerColor:ce,footerPadding:`${se}px ${Mt}px`,footerBg:re,siderBg:"#001529",triggerHeight:ge+Be*2,triggerBg:"#002140",triggerColor:Ge,zeroTriggerWidth:ge,zeroTriggerHeight:ge,lightSiderBg:St,lightTriggerBg:St,lightTriggerColor:ce}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ke=function(te,re){var ie={};for(var ge in te)Object.prototype.hasOwnProperty.call(te,ge)&&re.indexOf(ge)<0&&(ie[ge]=te[ge]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ce=0,ge=Object.getOwnPropertySymbols(te);ce<ge.length;ce++)re.indexOf(ge[ce])<0&&Object.prototype.propertyIsEnumerable.call(te,ge[ce])&&(ie[ge[ce]]=te[ge[ce]]);return ie};const Re=me.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function ae(te){let{suffixCls:re,tagName:ie,displayName:ge}=te;return ce=>me.forwardRef((Be,Ge)=>me.createElement(ce,Object.assign({ref:Ge,suffixCls:re,tagName:ie},Be)))}const a=me.forwardRef((te,re)=>{const{prefixCls:ie,suffixCls:ge,className:ce,tagName:se}=te,Be=ke(te,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ge}=me.useContext(ye.E_),St=Ge("layout",ie),[Mt,Wt]=Ze(St),he=ge?`${St}-${ge}`:St;return Mt(me.createElement(se,Object.assign({className:We()(ie||he,ce,Wt),ref:re},Be)))}),y=me.forwardRef((te,re)=>{const{direction:ie}=me.useContext(ye.E_),[ge,ce]=me.useState([]),{prefixCls:se,className:Be,rootClassName:Ge,children:St,hasSider:Mt,tagName:Wt,style:he}=te,xe=ke(te,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ee=(0,Ie.Z)(xe,["suffixCls"]),{getPrefixCls:Qe,layout:it}=me.useContext(ye.E_),He=Qe("layout",se),[Xe,Ye]=Ze(He),Pt=We()(He,{[`${He}-has-sider`]:typeof Mt=="boolean"?Mt:ge.length>0,[`${He}-rtl`]:ie==="rtl"},it==null?void 0:it.className,Be,Ge,Ye),fe=me.useMemo(()=>({siderHook:{addSider:Ce=>{ce(Je=>[].concat((0,ne.Z)(Je),[Ce]))},removeSider:Ce=>{ce(Je=>Je.filter(ut=>ut!==Ce))}}}),[]);return Xe(me.createElement(Re.Provider,{value:fe},me.createElement(Wt,Object.assign({ref:re,className:Pt,style:Object.assign(Object.assign({},it==null?void 0:it.style),he)},Ee),St)))}),E=ae({tagName:"div",displayName:"Layout"})(y),b=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(a),x=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(a),z=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(a);var ee=E},40875:function(ze,dt,oe){"use strict";oe.d(dt,{J:function(){return ye}});var ne=oe(59301),Se=oe(33234),We=oe(70425),Ie=function(le,_e){var Ae={};for(var De in le)Object.prototype.hasOwnProperty.call(le,De)&&_e.indexOf(De)<0&&(Ae[De]=le[De]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,De=Object.getOwnPropertySymbols(le);Ze<De.length;Ze++)_e.indexOf(De[Ze])<0&&Object.prototype.propertyIsEnumerable.call(le,De[Ze])&&(Ae[De[Ze]]=le[De[Ze]]);return Ae};const me=ne.createContext(null),ye=ne.forwardRef((le,_e)=>{const{children:Ae}=le,De=Ie(le,["children"]),Ze=ne.useContext(me),ke=ne.useMemo(()=>Object.assign(Object.assign({},Ze),De),[Ze,De.prefixCls,De.mode,De.selectable]);return ne.createElement(me.Provider,{value:ke},ne.createElement(Se.BR,null,(0,We.supportNodeRef)(Ae)?ne.cloneElement(Ae,{ref:_e}):Ae))});dt.Z=me},20834:function(ze,dt,oe){"use strict";oe.d(dt,{default:function(){return Ft}});var ne=oe(15285),Se=oe(59301),We=oe(45818),Ie=oe(92310),me=oe.n(Ie),ye=oe(36355),le=function(Fe,Le){var Pe={};for(var Te in Fe)Object.prototype.hasOwnProperty.call(Fe,Te)&&Le.indexOf(Te)<0&&(Pe[Te]=Fe[Te]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Te=Object.getOwnPropertySymbols(Fe);je<Te.length;je++)Le.indexOf(Te[je])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Te[je])&&(Pe[Te[je]]=Fe[Te[je]]);return Pe},Ae=Fe=>{const{prefixCls:Le,className:Pe,dashed:Te}=Fe,je=le(Fe,["prefixCls","className","dashed"]),{getPrefixCls:lt}=Se.useContext(ye.E_),Bt=lt("menu",Le),bt=me()({[`${Bt}-item-divider-dashed`]:!!Te},Pe);return Se.createElement(ne.iz,Object.assign({className:bt},je))},De=oe(11592),Ze=oe(2738),ke=oe(6848),Re=oe(92343),a=(0,Se.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),E=Fe=>{var Le;const{className:Pe,children:Te,icon:je,title:lt,danger:Bt}=Fe,{prefixCls:bt,firstLevel:zt,direction:At,disableMenuItemTitleTooltip:Et,inlineCollapsed:yt}=Se.useContext(a),wt=Oe=>{const qe=Se.createElement("span",{className:`${bt}-title-content`},Te);return(!je||(0,Re.l$)(Te)&&Te.type==="span")&&Te&&Oe&&zt&&typeof Te=="string"?Se.createElement("div",{className:`${bt}-inline-collapsed-noicon`},Te.charAt(0)):qe},{siderCollapsed:Ht}=Se.useContext(We.D);let mn=lt;typeof lt=="undefined"?mn=zt?Te:"":lt===!1&&(mn="");const qt={title:mn};!Ht&&!yt&&(qt.title=null,qt.open=!1);const Ut=(0,De.Z)(Te).length;let ve=Se.createElement(ne.ck,Object.assign({},(0,Ze.Z)(Fe,["title","icon","danger"]),{className:me()({[`${bt}-item-danger`]:Bt,[`${bt}-item-only-child`]:(je?Ut+1:Ut)===1},Pe),title:typeof lt=="string"?lt:void 0}),(0,Re.Tm)(je,{className:me()((0,Re.l$)(je)?(Le=je.props)===null||Le===void 0?void 0:Le.className:"",`${bt}-item-icon`)}),wt(yt));return Et||(ve=Se.createElement(ke.Z,Object.assign({},qt,{placement:At==="rtl"?"left":"right",overlayClassName:`${bt}-inline-collapsed-tooltip`}),ve)),ve},x=Fe=>{var Le;const{popupClassName:Pe,icon:Te,title:je,theme:lt}=Fe,Bt=Se.useContext(a),{prefixCls:bt,inlineCollapsed:zt,theme:At}=Bt,Et=(0,ne.Xl)();let yt;if(!Te)yt=zt&&!Et.length&&je&&typeof je=="string"?Se.createElement("div",{className:`${bt}-inline-collapsed-noicon`},je.charAt(0)):Se.createElement("span",{className:`${bt}-title-content`},je);else{const Ht=(0,Re.l$)(je)&&je.type==="span";yt=Se.createElement(Se.Fragment,null,(0,Re.Tm)(Te,{className:me()((0,Re.l$)(Te)?(Le=Te.props)===null||Le===void 0?void 0:Le.className:"",`${bt}-item-icon`)}),Ht?je:Se.createElement("span",{className:`${bt}-title-content`},je))}const wt=Se.useMemo(()=>Object.assign(Object.assign({},Bt),{firstLevel:!1}),[Bt]);return Se.createElement(a.Provider,{value:wt},Se.createElement(ne.Wd,Object.assign({},(0,Ze.Z)(Fe,["icon"]),{title:yt,popupClassName:me()(bt,Pe,`${bt}-${lt||At}`)})))},z=oe(18785),ee=oe(70425),te=oe(62892),re=oe(40875),ie=function(Fe,Le){var Pe={};for(var Te in Fe)Object.prototype.hasOwnProperty.call(Fe,Te)&&Le.indexOf(Te)<0&&(Pe[Te]=Fe[Te]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Te=Object.getOwnPropertySymbols(Fe);je<Te.length;je++)Le.indexOf(Te[je])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Te[je])&&(Pe[Te[je]]=Fe[Te[je]]);return Pe};function ge(Fe){return(Fe||[]).map((Le,Pe)=>{if(Le&&typeof Le=="object"){const Te=Le,{label:je,children:lt,key:Bt,type:bt}=Te,zt=ie(Te,["label","children","key","type"]),At=Bt!=null?Bt:`tmp-${Pe}`;return lt||bt==="group"?bt==="group"?Se.createElement(ne.BW,Object.assign({key:At},zt,{title:je}),ge(lt)):Se.createElement(x,Object.assign({key:At},zt,{title:je}),ge(lt)):bt==="divider"?Se.createElement(Ae,Object.assign({key:At},zt)):Se.createElement(E,Object.assign({key:At},zt),je)}return null}).filter(Le=>Le)}function ce(Fe){return Se.useMemo(()=>Fe&&ge(Fe),[Fe])}var se=oe(64993),Be=oe(17313),Ge=oe(8378),St=oe(13826),Mt=oe(29878),Wt=oe(83116),he=oe(37613),Ee=Fe=>{const{componentCls:Le,motionDurationSlow:Pe,horizontalLineHeight:Te,colorSplit:je,lineWidth:lt,lineType:Bt,itemPaddingInline:bt}=Fe;return{[`${Le}-horizontal`]:{lineHeight:Te,border:0,borderBottom:`${lt}px ${Bt} ${je}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Le}-item, ${Le}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:bt},[`> ${Le}-item:hover,
|
|
> ${Le}-item-active,
|
|
> ${Le}-submenu ${Le}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Le}-item, ${Le}-submenu-title`]:{transition:[`border-color ${Pe}`,`background ${Pe}`].join(",")},[`${Le}-submenu-arrow`]:{display:"none"}}}},it=Fe=>{let{componentCls:Le,menuArrowOffset:Pe}=Fe;return{[`${Le}-rtl`]:{direction:"rtl"},[`${Le}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Le}-rtl${Le}-vertical,
|
|
${Le}-submenu-rtl ${Le}-vertical`]:{[`${Le}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Pe})`},"&::after":{transform:`rotate(45deg) translateY(${Pe})`}}}}};const He=Fe=>Object.assign({},(0,Be.oN)(Fe));var Ye=(Fe,Le)=>{const{componentCls:Pe,itemColor:Te,itemSelectedColor:je,groupTitleColor:lt,itemBg:Bt,subMenuItemBg:bt,itemSelectedBg:zt,activeBarHeight:At,activeBarWidth:Et,activeBarBorderWidth:yt,motionDurationSlow:wt,motionEaseInOut:Ht,motionEaseOut:mn,itemPaddingInline:qt,motionDurationMid:Ut,itemHoverColor:ve,lineType:Oe,colorSplit:qe,itemDisabledColor:mt,dangerItemColor:ht,dangerItemHoverColor:Rt,dangerItemSelectedColor:jt,dangerItemActiveBg:$t,dangerItemSelectedBg:_t,itemHoverBg:Jt,itemActiveBg:Kt,menuSubMenuBg:nn,horizontalItemSelectedColor:hn,horizontalItemSelectedBg:vn,horizontalItemBorderRadius:Fn,horizontalItemHoverBg:dn,popupBg:on}=Fe;return{[`${Pe}-${Le}, ${Pe}-${Le} > ${Pe}`]:{color:Te,background:Bt,[`&${Pe}-root:focus-visible`]:Object.assign({},He(Fe)),[`${Pe}-item-group-title`]:{color:lt},[`${Pe}-submenu-selected`]:{[`> ${Pe}-submenu-title`]:{color:je}},[`${Pe}-item-disabled, ${Pe}-submenu-disabled`]:{color:`${mt} !important`},[`${Pe}-item:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{[`&:hover, > ${Pe}-submenu-title:hover`]:{color:ve}},[`&:not(${Pe}-horizontal)`]:{[`${Pe}-item:not(${Pe}-item-selected)`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}},[`${Pe}-submenu-title`]:{"&:hover":{backgroundColor:Jt},"&:active":{backgroundColor:Kt}}},[`${Pe}-item-danger`]:{color:ht,[`&${Pe}-item:hover`]:{[`&:not(${Pe}-item-selected):not(${Pe}-submenu-selected)`]:{color:Rt}},[`&${Pe}-item:active`]:{background:$t}},[`${Pe}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Pe}-item-selected`]:{color:je,[`&${Pe}-item-danger`]:{color:jt},"a, a:hover":{color:"inherit"}},[`& ${Pe}-item-selected`]:{backgroundColor:zt,[`&${Pe}-item-danger`]:{backgroundColor:_t}},[`${Pe}-item, ${Pe}-submenu-title`]:{[`&:not(${Pe}-item-disabled):focus-visible`]:Object.assign({},He(Fe))},[`&${Pe}-submenu > ${Pe}`]:{backgroundColor:nn},[`&${Pe}-popup > ${Pe}`]:{backgroundColor:on},[`&${Pe}-horizontal`]:Object.assign(Object.assign({},Le==="dark"?{borderBottom:0}:{}),{[`> ${Pe}-item, > ${Pe}-submenu`]:{top:yt,marginTop:-yt,marginBottom:0,borderRadius:Fn,"&::after":{position:"absolute",insetInline:qt,bottom:0,borderBottom:`${At}px solid transparent`,transition:`border-color ${wt} ${Ht}`,content:'""'},"&:hover, &-active, &-open":{background:dn,"&::after":{borderBottomWidth:At,borderBottomColor:hn}},"&-selected":{color:hn,backgroundColor:vn,"&:hover":{backgroundColor:vn},"&::after":{borderBottomWidth:At,borderBottomColor:hn}}}}),[`&${Pe}-root`]:{[`&${Pe}-inline, &${Pe}-vertical`]:{borderInlineEnd:`${yt}px ${Oe} ${qe}`}},[`&${Pe}-inline`]:{[`${Pe}-sub${Pe}-inline`]:{background:bt},[`${Pe}-item, ${Pe}-submenu-title`]:yt&&Et?{width:`calc(100% + ${yt}px)`}:{},[`${Pe}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Et}px solid ${je}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ut} ${mn}`,`opacity ${Ut} ${mn}`].join(","),content:'""'},[`&${Pe}-item-danger`]:{"&::after":{borderInlineEndColor:jt}}},[`${Pe}-selected, ${Pe}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ut} ${Ht}`,`opacity ${Ut} ${Ht}`].join(",")}}}}}};const Pt=Fe=>{const{componentCls:Le,itemHeight:Pe,itemMarginInline:Te,padding:je,menuArrowSize:lt,marginXS:Bt,itemMarginBlock:bt}=Fe,zt=je+lt+Bt;return{[`${Le}-item`]:{position:"relative",overflow:"hidden"},[`${Le}-item, ${Le}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`,paddingInline:je,overflow:"hidden",textOverflow:"ellipsis",marginInline:Te,marginBlock:bt,width:`calc(100% - ${Te*2}px)`},[`> ${Le}-item,
|
|
> ${Le}-submenu > ${Le}-submenu-title`]:{height:Pe,lineHeight:`${Pe}px`},[`${Le}-item-group-list ${Le}-submenu-title,
|
|
${Le}-submenu-title`]:{paddingInlineEnd:zt}}};var Ce=Fe=>{const{componentCls:Le,iconCls:Pe,itemHeight:Te,colorTextLightSolid:je,dropdownWidth:lt,controlHeightLG:Bt,motionDurationMid:bt,motionEaseOut:zt,paddingXL:At,itemMarginInline:Et,fontSizeLG:yt,motionDurationSlow:wt,paddingXS:Ht,boxShadowSecondary:mn,collapsedWidth:qt,collapsedIconSize:Ut}=Fe,ve={height:Te,lineHeight:`${Te}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Le]:{"&-inline, &-vertical":Object.assign({[`&${Le}-root`]:{boxShadow:"none"}},Pt(Fe))},[`${Le}-submenu-popup`]:{[`${Le}-vertical`]:Object.assign(Object.assign({},Pt(Fe)),{boxShadow:mn})}},{[`${Le}-submenu-popup ${Le}-vertical${Le}-sub`]:{minWidth:lt,maxHeight:`calc(100vh - ${Bt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Le}-inline`]:{width:"100%",[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${wt}`,`background ${wt}`,`padding ${bt} ${zt}`].join(","),[`> ${Le}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Le}-sub${Le}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Le}-submenu > ${Le}-submenu-title`]:ve,[`& ${Le}-item-group-title`]:{paddingInlineStart:At}},[`${Le}-item`]:ve}},{[`${Le}-inline-collapsed`]:{width:qt,[`&${Le}-root`]:{[`${Le}-item, ${Le}-submenu ${Le}-submenu-title`]:{[`> ${Le}-inline-collapsed-noicon`]:{fontSize:yt,textAlign:"center"}}},[`> ${Le}-item,
|
|
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-item,
|
|
> ${Le}-item-group > ${Le}-item-group-list > ${Le}-submenu > ${Le}-submenu-title,
|
|
> ${Le}-submenu > ${Le}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${yt/2}px - ${Et}px)`,textOverflow:"clip",[`
|
|
${Le}-submenu-arrow,
|
|
${Le}-submenu-expand-icon
|
|
`]:{opacity:0},[`${Le}-item-icon, ${Pe}`]:{margin:0,fontSize:Ut,lineHeight:`${Te}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Le}-item-icon, ${Pe}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Le}-item-icon, ${Pe}`]:{display:"none"},"a, a:hover":{color:je}},[`${Le}-item-group-title`]:Object.assign(Object.assign({},Be.vS),{paddingInline:Ht})}}]};const Je=Fe=>{const{componentCls:Le,motionDurationSlow:Pe,motionDurationMid:Te,motionEaseInOut:je,motionEaseOut:lt,iconCls:Bt,iconSize:bt,iconMarginInlineEnd:zt}=Fe;return{[`${Le}-item, ${Le}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Pe}`,`background ${Pe}`,`padding ${Pe} ${je}`].join(","),[`${Le}-item-icon, ${Bt}`]:{minWidth:bt,fontSize:bt,transition:[`font-size ${Te} ${lt}`,`margin ${Pe} ${je}`,`color ${Pe}`].join(","),"+ span":{marginInlineStart:zt,opacity:1,transition:[`opacity ${Pe} ${je}`,`margin ${Pe}`,`color ${Pe}`].join(",")}},[`${Le}-item-icon`]:Object.assign({},(0,Be.Ro)()),[`&${Le}-item-only-child`]:{[`> ${Bt}, > ${Le}-item-icon`]:{marginInlineEnd:0}}},[`${Le}-item-disabled, ${Le}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Le}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ut=Fe=>{const{componentCls:Le,motionDurationSlow:Pe,motionEaseInOut:Te,borderRadius:je,menuArrowSize:lt,menuArrowOffset:Bt}=Fe;return{[`${Le}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:Fe.margin,width:lt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Pe} ${Te}, opacity ${Pe}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:lt*.6,height:lt*.15,backgroundColor:"currentcolor",borderRadius:je,transition:[`background ${Pe} ${Te}`,`transform ${Pe} ${Te}`,`top ${Pe} ${Te}`,`color ${Pe} ${Te}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Bt})`},"&::after":{transform:`rotate(-45deg) translateY(${Bt})`}}}}},Ke=Fe=>{const{antCls:Le,componentCls:Pe,fontSize:Te,motionDurationSlow:je,motionDurationMid:lt,motionEaseInOut:Bt,paddingXS:bt,padding:zt,colorSplit:At,lineWidth:Et,zIndexPopup:yt,borderRadiusLG:wt,subMenuItemBorderRadius:Ht,menuArrowSize:mn,menuArrowOffset:qt,lineType:Ut,menuPanelMaskInset:ve,groupTitleLineHeight:Oe,groupTitleFontSize:qe}=Fe;return[{"":{[`${Pe}`]:Object.assign(Object.assign({},(0,Be.dF)()),{"&-hidden":{display:"none"}})},[`${Pe}-submenu-hidden`]:{display:"none"}},{[Pe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Be.Wf)(Fe)),(0,Be.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Te,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${je} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Pe}-item`]:{flex:"none"}},[`${Pe}-item, ${Pe}-submenu, ${Pe}-submenu-title`]:{borderRadius:Fe.itemBorderRadius},[`${Pe}-item-group-title`]:{padding:`${bt}px ${zt}px`,fontSize:qe,lineHeight:Oe,transition:`all ${je}`},[`&-horizontal ${Pe}-submenu`]:{transition:[`border-color ${je} ${Bt}`,`background ${je} ${Bt}`].join(",")},[`${Pe}-submenu, ${Pe}-submenu-inline`]:{transition:[`border-color ${je} ${Bt}`,`background ${je} ${Bt}`,`padding ${lt} ${Bt}`].join(",")},[`${Pe}-submenu ${Pe}-sub`]:{cursor:"initial",transition:[`background ${je} ${Bt}`,`padding ${je} ${Bt}`].join(",")},[`${Pe}-title-content`]:{transition:`color ${je}`},[`${Pe}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Pe}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:At,borderStyle:Ut,borderWidth:0,borderTopWidth:Et,marginBlock:Et,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Je(Fe)),{[`${Pe}-item-group`]:{[`${Pe}-item-group-list`]:{margin:0,padding:0,[`${Pe}-item, ${Pe}-submenu-title`]:{paddingInline:`${Te*2}px ${zt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:yt,borderRadius:wt,boxShadow:"none",transformOrigin:"0 0",[`&${Pe}-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:Fe.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:Fe.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:Fe.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:Fe.paddingXS},[`> ${Pe}`]:Object.assign(Object.assign(Object.assign({borderRadius:wt},Je(Fe)),ut(Fe)),{[`${Pe}-item, ${Pe}-submenu > ${Pe}-submenu-title`]:{borderRadius:Ht},[`${Pe}-submenu-title::after`]:{transition:`transform ${je} ${Bt}`}})}}),ut(Fe)),{[`&-inline-collapsed ${Pe}-submenu-arrow,
|
|
&-inline ${Pe}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${qt})`},"&::after":{transform:`rotate(45deg) translateX(-${qt})`}},[`${Pe}-submenu-open${Pe}-submenu-inline > ${Pe}-submenu-title > ${Pe}-submenu-arrow`]:{transform:`translateY(-${mn*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${qt})`},"&::before":{transform:`rotate(45deg) translateX(${qt})`}}})},{[`${Le}-layout-header`]:{[Pe]:{lineHeight:"inherit"}}}]};var et=(Fe,Le)=>(0,Wt.Z)("Menu",Te=>{if(Le===!1)return[];const{colorBgElevated:je,colorPrimary:lt,colorTextLightSolid:Bt,controlHeightLG:bt,fontSize:zt,darkItemColor:At,darkDangerItemColor:Et,darkItemBg:yt,darkSubMenuItemBg:wt,darkItemSelectedColor:Ht,darkItemSelectedBg:mn,darkDangerItemSelectedBg:qt,darkItemHoverBg:Ut,darkGroupTitleColor:ve,darkItemHoverColor:Oe,darkItemDisabledColor:qe,darkDangerItemHoverColor:mt,darkDangerItemSelectedColor:ht,darkDangerItemActiveBg:Rt}=Te,jt=zt/7*5,$t=(0,he.TS)(Te,{menuArrowSize:jt,menuHorizontalHeight:bt*1.15,menuArrowOffset:`${jt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:je}),_t=(0,he.TS)($t,{itemColor:At,itemHoverColor:Oe,groupTitleColor:ve,itemSelectedColor:Ht,itemBg:yt,popupBg:yt,subMenuItemBg:wt,itemActiveBg:"transparent",itemSelectedBg:mn,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ut,itemDisabledColor:qe,dangerItemColor:Et,dangerItemHoverColor:mt,dangerItemSelectedColor:ht,dangerItemActiveBg:Rt,dangerItemSelectedBg:qt,menuSubMenuBg:wt,horizontalItemSelectedColor:Bt,horizontalItemSelectedBg:lt});return[Ke($t),Ee($t),Ce($t),Ye($t,"light"),Ye(_t,"dark"),it($t),(0,Ge.Z)($t),(0,St.oN)($t,"slide-up"),(0,St.oN)($t,"slide-down"),(0,Mt._y)($t,"zoom-big")]},Te=>{const{colorPrimary:je,colorError:lt,colorTextDisabled:Bt,colorErrorBg:bt,colorText:zt,colorTextDescription:At,colorBgContainer:Et,colorFillAlter:yt,colorFillContent:wt,lineWidth:Ht,lineWidthBold:mn,controlItemBgActive:qt,colorBgTextHover:Ut,controlHeightLG:ve,lineHeight:Oe,colorBgElevated:qe,marginXXS:mt,padding:ht,fontSize:Rt,controlHeightSM:jt,fontSizeLG:$t,colorTextLightSolid:_t,colorErrorHover:Jt}=Te,Kt=new se.C(_t).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Te.zIndexPopupBase+50,radiusItem:Te.borderRadiusLG,itemBorderRadius:Te.borderRadiusLG,radiusSubMenuItem:Te.borderRadiusSM,subMenuItemBorderRadius:Te.borderRadiusSM,colorItemText:zt,itemColor:zt,colorItemTextHover:zt,itemHoverColor:zt,colorItemTextHoverHorizontal:je,horizontalItemHoverColor:je,colorGroupTitle:At,groupTitleColor:At,colorItemTextSelected:je,itemSelectedColor:je,colorItemTextSelectedHorizontal:je,horizontalItemSelectedColor:je,colorItemBg:Et,itemBg:Et,colorItemBgHover:Ut,itemHoverBg:Ut,colorItemBgActive:wt,itemActiveBg:qt,colorSubItemBg:yt,subMenuItemBg:yt,colorItemBgSelected:qt,itemSelectedBg:qt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:mn,activeBarHeight:mn,colorActiveBarBorderSize:Ht,activeBarBorderWidth:Ht,colorItemTextDisabled:Bt,itemDisabledColor:Bt,colorDangerItemText:lt,dangerItemColor:lt,colorDangerItemTextHover:lt,dangerItemHoverColor:lt,colorDangerItemTextSelected:lt,dangerItemSelectedColor:lt,colorDangerItemBgActive:bt,dangerItemActiveBg:bt,colorDangerItemBgSelected:bt,dangerItemSelectedBg:bt,itemMarginInline:Te.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ve,groupTitleLineHeight:Oe,collapsedWidth:ve*2,popupBg:qe,itemMarginBlock:mt,itemPaddingInline:ht,horizontalLineHeight:`${ve*1.15}px`,iconSize:Rt,iconMarginInlineEnd:jt-Rt,collapsedIconSize:$t,groupTitleFontSize:Rt,darkItemDisabledColor:new se.C(_t).setAlpha(.25).toRgbString(),darkItemColor:Kt,darkDangerItemColor:lt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_t,darkItemSelectedBg:je,darkDangerItemSelectedBg:lt,darkItemHoverBg:"transparent",darkGroupTitleColor:Kt,darkItemHoverColor:_t,darkDangerItemHoverColor:Jt,darkDangerItemSelectedColor:_t,darkDangerItemActiveBg:lt}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(Fe),de=function(Fe,Le){var Pe={};for(var Te in Fe)Object.prototype.hasOwnProperty.call(Fe,Te)&&Le.indexOf(Te)<0&&(Pe[Te]=Fe[Te]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,Te=Object.getOwnPropertySymbols(Fe);je<Te.length;je++)Le.indexOf(Te[je])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Te[je])&&(Pe[Te[je]]=Fe[Te[je]]);return Pe},ct=(0,Se.forwardRef)((Fe,Le)=>{var Pe,Te;const je=Se.useContext(re.Z),lt=je||{},{getPrefixCls:Bt,getPopupContainer:bt,direction:zt,menu:At}=Se.useContext(ye.E_),Et=Bt(),{prefixCls:yt,className:wt,style:Ht,theme:mn="light",expandIcon:qt,_internalDisableMenuItemTitleTooltip:Ut,inlineCollapsed:ve,siderCollapsed:Oe,items:qe,children:mt,rootClassName:ht,mode:Rt,selectable:jt,onClick:$t,overflowedIndicatorPopupClassName:_t}=Fe,Jt=de(Fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kt=(0,Ze.Z)(Jt,["collapsedWidth"]),nn=ce(qe)||mt;(Pe=lt.validator)===null||Pe===void 0||Pe.call(lt,{mode:Rt});const hn=(0,ee.useEvent)(function(){var In;$t==null||$t.apply(void 0,arguments),(In=lt.onClick)===null||In===void 0||In.call(lt)}),vn=lt.mode||Rt,Fn=jt!=null?jt:lt.selectable,dn=Se.useMemo(()=>Oe!==void 0?Oe:ve,[ve,Oe]),on={horizontal:{motionName:`${Et}-slide-up`},inline:(0,te.Z)(Et),other:{motionName:`${Et}-zoom-big`}},yn=Bt("menu",yt||lt.prefixCls),[Cn,xn]=et(yn,!je),cn=me()(`${yn}-${mn}`,At==null?void 0:At.className,wt);let Nn;if(typeof qt=="function")Nn=qt;else if(qt===null||qt===!1)Nn=null;else if(lt.expandIcon===null||lt.expandIcon===!1)Nn=null;else{const In=qt!=null?qt:lt.expandIcon;Nn=(0,Re.Tm)(In,{className:me()(`${yn}-submenu-expand-icon`,(0,Re.l$)(In)?(Te=In.props)===null||Te===void 0?void 0:Te.className:"")})}const Yn=Se.useMemo(()=>({prefixCls:yn,inlineCollapsed:dn||!1,direction:zt,firstLevel:!0,theme:mn,mode:vn,disableMenuItemTitleTooltip:Ut}),[yn,dn,zt,Ut,mn]);return Cn(Se.createElement(re.Z.Provider,{value:null},Se.createElement(a.Provider,{value:Yn},Se.createElement(ne.ZP,Object.assign({getPopupContainer:bt,overflowedIndicator:Se.createElement(z.Z,null),overflowedIndicatorPopupClassName:me()(yn,`${yn}-${mn}`,_t),mode:vn,selectable:Fn,onClick:hn},Kt,{inlineCollapsed:dn,style:Object.assign(Object.assign({},At==null?void 0:At.style),Ht),className:cn,prefixCls:yn,direction:zt,defaultMotions:on,expandIcon:Nn,ref:Le,rootClassName:me()(ht,xn)}),nn))))});const Nt=(0,Se.forwardRef)((Fe,Le)=>{const Pe=(0,Se.useRef)(null),Te=Se.useContext(We.D);return(0,Se.useImperativeHandle)(Le,()=>({menu:Pe.current,focus:je=>{var lt;(lt=Pe.current)===null||lt===void 0||lt.focus(je)}})),Se.createElement(ct,Object.assign({ref:Pe},Fe,Te))});Nt.Item=E,Nt.SubMenu=x,Nt.Divider=Ae,Nt.ItemGroup=ne.BW;var Ft=Nt},93948:function(ze,dt,oe){"use strict";oe.d(dt,{Z:function(){return Ut}});var ne=oe(59301),Se=oe(29679),We=oe(40001),Ie=oe(19248),me=oe(99267),ye=oe(92310),le=oe.n(ye),_e=oe(2738),Ae=oe(36355),De=oe(54476),Ze=oe(33885),ke=oe(75931),Re={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ae=function(){var Oe=(0,ne.useRef)([]),qe=(0,ne.useRef)(null);return(0,ne.useEffect)(function(){var mt=Date.now(),ht=!1;Oe.current.forEach(function(Rt){if(Rt){ht=!0;var jt=Rt.style;jt.transitionDuration=".3s, .3s, .3s, .06s",qe.current&&mt-qe.current<100&&(jt.transitionDuration="0s, 0s")}}),ht&&(qe.current=Date.now())}),Oe.current},a=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],y=function(Oe){var qe=(0,Ze.Z)((0,Ze.Z)({},Re),Oe),mt=qe.className,ht=qe.percent,Rt=qe.prefixCls,jt=qe.strokeColor,$t=qe.strokeLinecap,_t=qe.strokeWidth,Jt=qe.style,Kt=qe.trailColor,nn=qe.trailWidth,hn=qe.transition,vn=(0,ke.Z)(qe,a);delete vn.gapPosition;var Fn=Array.isArray(ht)?ht:[ht],dn=Array.isArray(jt)?jt:[jt],on=ae(),yn=_t/2,Cn=100-_t/2,xn="M ".concat($t==="round"?yn:0,",").concat(yn,`
|
|
L `).concat($t==="round"?Cn:100,",").concat(yn),cn="0 0 100 ".concat(_t),Nn=0;return ne.createElement("svg",(0,De.Z)({className:le()("".concat(Rt,"-line"),mt),viewBox:cn,preserveAspectRatio:"none",style:Jt},vn),ne.createElement("path",{className:"".concat(Rt,"-line-trail"),d:xn,strokeLinecap:$t,stroke:Kt,strokeWidth:nn||_t,fillOpacity:"0"}),Fn.map(function(Yn,In){var Wn=1;switch($t){case"round":Wn=1-_t/100;break;case"square":Wn=1-_t/2/100;break;default:Wn=1;break}var na={strokeDasharray:"".concat(Yn*Wn,"px, 100px"),strokeDashoffset:"-".concat(Nn,"px"),transition:hn||"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,ne.createElement("path",{key:In,className:"".concat(Rt,"-line-path"),d:xn,strokeLinecap:$t,stroke:Jn,strokeWidth:_t,fillOpacity:"0",ref:function(we){on[In]=we},style:na})}))},E=y,b=oe(76190),x=oe(42978),z=oe(47273),ee=0,te=(0,z.Z)();function re(){var ve;return te?(ve=ee,ee+=1):ve="TEST_OR_SSR",ve}var ie=function(ve){var Oe=ne.useState(),qe=(0,x.Z)(Oe,2),mt=qe[0],ht=qe[1];return ne.useEffect(function(){ht("rc_progress_".concat(re()))},[]),ve||mt},ge=function(Oe){var qe=Oe.bg,mt=Oe.children;return ne.createElement("div",{style:{width:"100%",height:"100%",background:qe}},mt)};function ce(ve,Oe){return Object.keys(ve).map(function(qe){var mt=parseFloat(qe),ht="".concat(Math.floor(mt*Oe),"%");return"".concat(ve[qe]," ").concat(ht)})}var se=ne.forwardRef(function(ve,Oe){var qe=ve.prefixCls,mt=ve.color,ht=ve.gradientId,Rt=ve.radius,jt=ve.style,$t=ve.ptg,_t=ve.strokeLinecap,Jt=ve.strokeWidth,Kt=ve.size,nn=ve.gapDegree,hn=mt&&(0,b.Z)(mt)==="object",vn=hn?"#FFF":void 0,Fn=Kt/2,dn=ne.createElement("circle",{className:"".concat(qe,"-circle-path"),r:Rt,cx:Fn,cy:Fn,stroke:vn,strokeLinecap:_t,strokeWidth:Jt,opacity:$t===0?0:1,style:jt,ref:Oe});if(!hn)return dn;var on="".concat(ht,"-conic"),yn=nn?"".concat(180+nn/2,"deg"):"0deg",Cn=ce(mt,(360-nn)/360),xn=ce(mt,1),cn="conic-gradient(from ".concat(yn,", ").concat(Cn.join(", "),")"),Nn="linear-gradient(to ".concat(nn?"bottom":"top",", ").concat(xn.join(", "),")");return ne.createElement(ne.Fragment,null,ne.createElement("mask",{id:on},dn),ne.createElement("foreignObject",{x:0,y:0,width:Kt,height:Kt,mask:"url(#".concat(on,")")},ne.createElement(ge,{bg:Nn},ne.createElement(ge,{bg:cn}))))}),Be=se,Ge=100,St=function(Oe,qe,mt,ht,Rt,jt,$t,_t,Jt,Kt){var nn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,hn=mt/100*360*((360-jt)/360),vn=jt===0?0:{bottom:0,top:180,left:90,right:-90}[$t],Fn=(100-ht)/100*qe;Jt==="round"&&ht!==100&&(Fn+=Kt/2,Fn>=qe&&(Fn=qe-.01));var dn=Ge/2;return{stroke:typeof _t=="string"?_t:void 0,strokeDasharray:"".concat(qe,"px ").concat(Oe),strokeDashoffset:Fn+nn,transform:"rotate(".concat(Rt+hn+vn,"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}},Mt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Wt(ve){var Oe=ve!=null?ve:[];return Array.isArray(Oe)?Oe:[Oe]}var he=function(Oe){var qe=(0,Ze.Z)((0,Ze.Z)({},Re),Oe),mt=qe.id,ht=qe.prefixCls,Rt=qe.steps,jt=qe.strokeWidth,$t=qe.trailWidth,_t=qe.gapDegree,Jt=_t===void 0?0:_t,Kt=qe.gapPosition,nn=qe.trailColor,hn=qe.strokeLinecap,vn=qe.style,Fn=qe.className,dn=qe.strokeColor,on=qe.percent,yn=(0,ke.Z)(qe,Mt),Cn=Ge/2,xn=ie(mt),cn="".concat(xn,"-gradient"),Nn=Cn-jt/2,Yn=Math.PI*2*Nn,In=Jt>0?90+Jt/2:-90,Wn=Yn*((360-Jt)/360),na=(0,b.Z)(Rt)==="object"?Rt:{count:Rt,space:2},Jn=na.count,be=na.space,we=Wt(on),pe=Wt(dn),st=pe.find(function(_n){return _n&&(0,b.Z)(_n)==="object"}),Gt=st&&(0,b.Z)(st)==="object",Ct=Gt?"butt":hn,ln=St(Yn,Wn,0,100,In,Jt,Kt,nn,Ct,jt),Zt=ae(),en=function(){var gt=0;return we.map(function(tn,Tn){var Zn=pe[Tn]||pe[pe.length-1],En=St(Yn,Wn,gt,tn,In,Jt,Kt,Zn,Ct,jt);return gt+=tn,ne.createElement(Be,{key:Tn,color:Zn,ptg:tn,radius:Nn,prefixCls:ht,gradientId:cn,style:En,strokeLinecap:Ct,strokeWidth:jt,gapDegree:Jt,ref:function(Me){Zt[Tn]=Me},size:Ge})}).reverse()},Ln=function(){var gt=Math.round(Jn*(we[0]/100)),tn=100/Jn,Tn=0;return new Array(Jn).fill(null).map(function(Zn,En){var ue=En<=gt-1?pe[0]:nn,Me=ue&&(0,b.Z)(ue)==="object"?"url(#".concat(cn,")"):void 0,Ne=St(Yn,Wn,Tn,tn,In,Jt,Kt,ue,"butt",jt,be);return Tn+=(Wn-Ne.strokeDashoffset+be)*100/Wn,ne.createElement("circle",{key:En,className:"".concat(ht,"-circle-path"),r:Nn,cx:Cn,cy:Cn,stroke:Me,strokeWidth:jt,opacity:1,style:Ne,ref:function(at){Zt[En]=at}})})};return ne.createElement("svg",(0,De.Z)({className:le()("".concat(ht,"-circle"),Fn),viewBox:"0 0 ".concat(Ge," ").concat(Ge),style:vn,id:mt,role:"presentation"},yn),!Jn&&ne.createElement("circle",{className:"".concat(ht,"-circle-trail"),r:Nn,cx:Cn,cy:Cn,stroke:nn,strokeLinecap:Ct,strokeWidth:$t||jt,style:ln}),Jn?Ln():en())},xe=he,Ee={Line:E,Circle:xe},Qe=oe(6848),it=oe(30071);function He(ve){return!ve||ve<0?0:ve>100?100:ve}function Xe(ve){let{success:Oe,successPercent:qe}=ve,mt=qe;return Oe&&"progress"in Oe&&(mt=Oe.progress),Oe&&"percent"in Oe&&(mt=Oe.percent),mt}const Ye=ve=>{let{percent:Oe,success:qe,successPercent:mt}=ve;const ht=He(Xe({success:qe,successPercent:mt}));return[ht,He(He(Oe)-ht)]},Pt=ve=>{let{success:Oe={},strokeColor:qe}=ve;const{strokeColor:mt}=Oe;return[mt||it.presetPrimaryColors.green,qe||null]},fe=(ve,Oe,qe)=>{var mt,ht,Rt,jt;let $t=-1,_t=-1;if(Oe==="step"){const Jt=qe.steps,Kt=qe.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?($t=ve==="small"?2:14,_t=Kt!=null?Kt:8):typeof ve=="number"?[$t,_t]=[ve,ve]:[$t=14,_t=8]=ve,$t*=Jt}else if(Oe==="line"){const Jt=qe==null?void 0:qe.strokeWidth;typeof ve=="string"||typeof ve=="undefined"?_t=Jt||(ve==="small"?6:8):typeof ve=="number"?[$t,_t]=[ve,ve]:[$t=-1,_t=8]=ve}else(Oe==="circle"||Oe==="dashboard")&&(typeof ve=="string"||typeof ve=="undefined"?[$t,_t]=ve==="small"?[60,60]:[120,120]:typeof ve=="number"?[$t,_t]=[ve,ve]:($t=(ht=(mt=ve[0])!==null&&mt!==void 0?mt:ve[1])!==null&&ht!==void 0?ht:120,_t=(jt=(Rt=ve[0])!==null&&Rt!==void 0?Rt:ve[1])!==null&&jt!==void 0?jt:120));return[$t,_t]},Ce=3,Je=ve=>Ce/ve*100;var Ke=ve=>{const{prefixCls:Oe,trailColor:qe=null,strokeLinecap:mt="round",gapPosition:ht,gapDegree:Rt,width:jt=120,type:$t,children:_t,success:Jt,size:Kt=jt}=ve,[nn,hn]=fe(Kt,"circle");let{strokeWidth:vn}=ve;vn===void 0&&(vn=Math.max(Je(nn),6));const Fn={width:nn,height:hn,fontSize:nn*.15+6},dn=ne.useMemo(()=>{if(Rt||Rt===0)return Rt;if($t==="dashboard")return 75},[Rt,$t]),on=ht||$t==="dashboard"&&"bottom"||void 0,yn=Object.prototype.toString.call(ve.strokeColor)==="[object Object]",Cn=Pt({success:Jt,strokeColor:ve.strokeColor}),xn=le()(`${Oe}-inner`,{[`${Oe}-circle-gradient`]:yn}),cn=ne.createElement(xe,{percent:Ye(ve),strokeWidth:vn,trailWidth:vn,strokeColor:Cn,strokeLinecap:mt,trailColor:qe,prefixCls:Oe,gapDegree:dn,gapPosition:on});return ne.createElement("div",{className:xn,style:Fn},nn<=20?ne.createElement(Qe.Z,{title:_t},ne.createElement("span",null,cn)):ne.createElement(ne.Fragment,null,cn,_t))},et=function(ve,Oe){var qe={};for(var mt in ve)Object.prototype.hasOwnProperty.call(ve,mt)&&Oe.indexOf(mt)<0&&(qe[mt]=ve[mt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,mt=Object.getOwnPropertySymbols(ve);ht<mt.length;ht++)Oe.indexOf(mt[ht])<0&&Object.prototype.propertyIsEnumerable.call(ve,mt[ht])&&(qe[mt[ht]]=ve[mt[ht]]);return qe};const de=ve=>{let Oe=[];return Object.keys(ve).forEach(qe=>{const mt=parseFloat(qe.replace(/%/g,""));isNaN(mt)||Oe.push({key:mt,value:ve[qe]})}),Oe=Oe.sort((qe,mt)=>qe.key-mt.key),Oe.map(qe=>{let{key:mt,value:ht}=qe;return`${ht} ${mt}%`}).join(", ")},nt=(ve,Oe)=>{const{from:qe=it.presetPrimaryColors.blue,to:mt=it.presetPrimaryColors.blue,direction:ht=Oe==="rtl"?"to left":"to right"}=ve,Rt=et(ve,["from","to","direction"]);if(Object.keys(Rt).length!==0){const jt=de(Rt);return{backgroundImage:`linear-gradient(${ht}, ${jt})`}}return{backgroundImage:`linear-gradient(${ht}, ${qe}, ${mt})`}};var Nt=ve=>{const{prefixCls:Oe,direction:qe,percent:mt,size:ht,strokeWidth:Rt,strokeColor:jt,strokeLinecap:$t="round",children:_t,trailColor:Jt=null,success:Kt}=ve,nn=jt&&typeof jt!="string"?nt(jt,qe):{backgroundColor:jt},hn=$t==="square"||$t==="butt"?0:void 0,vn={backgroundColor:Jt||void 0,borderRadius:hn},Fn=ht!=null?ht:[-1,Rt||(ht==="small"?6:8)],[dn,on]=fe(Fn,"line",{strokeWidth:Rt}),yn=Object.assign({width:`${He(mt)}%`,height:on,borderRadius:hn},nn),Cn=Xe(ve),xn={width:`${He(Cn)}%`,height:on,borderRadius:hn,backgroundColor:Kt==null?void 0:Kt.strokeColor},cn={width:dn<0?"100%":dn,height:on};return ne.createElement(ne.Fragment,null,ne.createElement("div",{className:`${Oe}-outer`,style:cn},ne.createElement("div",{className:`${Oe}-inner`,style:vn},ne.createElement("div",{className:`${Oe}-bg`,style:yn}),Cn!==void 0?ne.createElement("div",{className:`${Oe}-success-bg`,style:xn}):null)),_t)},Fe=ve=>{const{size:Oe,steps:qe,percent:mt=0,strokeWidth:ht=8,strokeColor:Rt,trailColor:jt=null,prefixCls:$t,children:_t}=ve,Jt=Math.round(qe*(mt/100)),Kt=Oe==="small"?2:14,nn=Oe!=null?Oe:[Kt,ht],[hn,vn]=fe(nn,"step",{steps:qe,strokeWidth:ht}),Fn=hn/qe,dn=new Array(qe);for(let on=0;on<qe;on++){const yn=Array.isArray(Rt)?Rt[on]:Rt;dn[on]=ne.createElement("div",{key:on,className:le()(`${$t}-steps-item`,{[`${$t}-steps-item-active`]:on<=Jt-1}),style:{backgroundColor:on<=Jt-1?yn:jt,width:Fn,height:vn}})}return ne.createElement("div",{className:`${$t}-steps-outer`},dn,_t)},Le=oe(36237),Pe=oe(17313),Te=oe(83116),je=oe(37613);const lt=ve=>{const Oe=ve?"100%":"-100%";return new Le.Keyframes(`antProgress${ve?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Oe}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Bt=ve=>{const{componentCls:Oe,iconCls:qe}=ve;return{[Oe]:Object.assign(Object.assign({},(0,Pe.Wf)(ve)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ve.fontSize,marginInlineEnd:ve.marginXS,marginBottom:ve.marginXS},[`${Oe}-outer`]:{display:"inline-block",width:"100%"},[`&${Oe}-show-info`]:{[`${Oe}-outer`]:{marginInlineEnd:`calc(-2em - ${ve.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ve.paddingXS}px)`}},[`${Oe}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ve.remainingColor,borderRadius:ve.lineBorderRadius},[`${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ve.defaultColor}},[`${Oe}-success-bg, ${Oe}-bg`]:{position:"relative",backgroundColor:ve.defaultColor,borderRadius:ve.lineBorderRadius,transition:`all ${ve.motionDurationSlow} ${ve.motionEaseInOutCirc}`},[`${Oe}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ve.colorSuccess},[`${Oe}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ve.marginXS,color:ve.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[qe]:{fontSize:ve.fontSize}},[`&${Oe}-status-active`]:{[`${Oe}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ve.colorBgContainer,borderRadius:ve.lineBorderRadius,opacity:0,animationName:lt(),animationDuration:ve.progressActiveMotionDuration,animationTimingFunction:ve.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Oe}-rtl${Oe}-status-active`]:{[`${Oe}-bg::before`]:{animationName:lt(!0)}},[`&${Oe}-status-exception`]:{[`${Oe}-bg`]:{backgroundColor:ve.colorError},[`${Oe}-text`]:{color:ve.colorError}},[`&${Oe}-status-exception ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ve.colorError}},[`&${Oe}-status-success`]:{[`${Oe}-bg`]:{backgroundColor:ve.colorSuccess},[`${Oe}-text`]:{color:ve.colorSuccess}},[`&${Oe}-status-success ${Oe}-inner:not(${Oe}-circle-gradient)`]:{[`${Oe}-circle-path`]:{stroke:ve.colorSuccess}}})}},bt=ve=>{const{componentCls:Oe,iconCls:qe}=ve;return{[Oe]:{[`${Oe}-circle-trail`]:{stroke:ve.remainingColor},[`&${Oe}-circle ${Oe}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Oe}-circle ${Oe}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ve.circleTextColor,fontSize:ve.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[qe]:{fontSize:`${ve.fontSize/ve.fontSizeSM}em`}},[`${Oe}-circle&-status-exception`]:{[`${Oe}-text`]:{color:ve.colorError}},[`${Oe}-circle&-status-success`]:{[`${Oe}-text`]:{color:ve.colorSuccess}}},[`${Oe}-inline-circle`]:{lineHeight:1,[`${Oe}-inner`]:{verticalAlign:"bottom"}}}},zt=ve=>{const{componentCls:Oe}=ve;return{[Oe]:{[`${Oe}-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}}}}}},At=ve=>{const{componentCls:Oe,iconCls:qe}=ve;return{[Oe]:{[`${Oe}-small&-line, ${Oe}-small&-line ${Oe}-text ${qe}`]:{fontSize:ve.fontSizeSM}}}};var Et=(0,Te.Z)("Progress",ve=>{const Oe=ve.marginXXS/2,qe=(0,je.TS)(ve,{progressStepMarginInlineEnd:Oe,progressStepMinWidth:Oe,progressActiveMotionDuration:"2.4s"});return[Bt(qe),bt(qe),zt(qe),At(qe)]},ve=>({circleTextColor:ve.colorText,defaultColor:ve.colorInfo,remainingColor:ve.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),yt=function(ve,Oe){var qe={};for(var mt in ve)Object.prototype.hasOwnProperty.call(ve,mt)&&Oe.indexOf(mt)<0&&(qe[mt]=ve[mt]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ht=0,mt=Object.getOwnPropertySymbols(ve);ht<mt.length;ht++)Oe.indexOf(mt[ht])<0&&Object.prototype.propertyIsEnumerable.call(ve,mt[ht])&&(qe[mt[ht]]=ve[mt[ht]]);return qe};const wt=null,Ht=["normal","exception","active","success"];var qt=ne.forwardRef((ve,Oe)=>{const{prefixCls:qe,className:mt,rootClassName:ht,steps:Rt,strokeColor:jt,percent:$t=0,size:_t="default",showInfo:Jt=!0,type:Kt="line",status:nn,format:hn,style:vn}=ve,Fn=yt(ve,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),dn=ne.useMemo(()=>{var we,pe;const st=Xe(ve);return parseInt(st!==void 0?(we=st!=null?st:0)===null||we===void 0?void 0:we.toString():(pe=$t!=null?$t:0)===null||pe===void 0?void 0:pe.toString(),10)},[$t,ve.success,ve.successPercent]),on=ne.useMemo(()=>!Ht.includes(nn)&&dn>=100?"success":nn||"normal",[nn,dn]),{getPrefixCls:yn,direction:Cn,progress:xn}=ne.useContext(Ae.E_),cn=yn("progress",qe),[Nn,Yn]=Et(cn),In=ne.useMemo(()=>{if(!Jt)return null;const we=Xe(ve);let pe;const st=hn||(Ct=>`${Ct}%`),Gt=Kt==="line";return hn||on!=="exception"&&on!=="success"?pe=st(He($t),He(we)):on==="exception"?pe=Gt?ne.createElement(Ie.Z,null):ne.createElement(me.Z,null):on==="success"&&(pe=Gt?ne.createElement(Se.Z,null):ne.createElement(We.Z,null)),ne.createElement("span",{className:`${cn}-text`,title:typeof pe=="string"?pe:void 0},pe)},[Jt,$t,dn,on,Kt,cn,hn]),Wn=Array.isArray(jt)?jt[0]:jt,na=typeof jt=="string"||Array.isArray(jt)?jt:void 0;let Jn;Kt==="line"?Jn=Rt?ne.createElement(Fe,Object.assign({},ve,{strokeColor:na,prefixCls:cn,steps:Rt}),In):ne.createElement(Nt,Object.assign({},ve,{strokeColor:Wn,prefixCls:cn,direction:Cn}),In):(Kt==="circle"||Kt==="dashboard")&&(Jn=ne.createElement(Ke,Object.assign({},ve,{strokeColor:Wn,prefixCls:cn,progressStatus:on}),In));const be=le()(cn,`${cn}-status-${on}`,`${cn}-${Kt==="dashboard"&&"circle"||Rt&&"steps"||Kt}`,{[`${cn}-inline-circle`]:Kt==="circle"&&fe(_t,"circle")[0]<=20,[`${cn}-show-info`]:Jt,[`${cn}-${_t}`]:typeof _t=="string",[`${cn}-rtl`]:Cn==="rtl"},xn==null?void 0:xn.className,mt,ht,Yn);return Nn(ne.createElement("div",Object.assign({ref:Oe,style:Object.assign(Object.assign({},xn==null?void 0:xn.style),vn),className:be,role:"progressbar","aria-valuenow":dn},(0,_e.Z)(Fn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Jn))}),Ut=qt},54580:function(ze,dt,oe){"use strict";oe.d(dt,{default:function(){return En}});var ne=oe(59301),Se=oe(94480),We=oe(92310),Ie=oe.n(We),me=oe(54476),ye=oe(67732),le=oe(83652),_e=oe(42403),Ae=oe(158),De=oe(20068),Ze=oe(75931),ke=oe(75044),Re=oe(76190),ae=oe(3202),a=oe(26112);function y(ue,Me){var Ne="cannot ".concat(ue.method," ").concat(ue.action," ").concat(Me.status,"'"),Ue=new Error(Ne);return Ue.status=Me.status,Ue.method=ue.method,Ue.url=ue.action,Ue}function E(ue){var Me=ue.responseText||ue.response;if(!Me)return Me;try{return JSON.parse(Me)}catch(Ne){return Me}}function b(ue){var Me=new XMLHttpRequest;ue.onProgress&&Me.upload&&(Me.upload.onprogress=function(rt){rt.total>0&&(rt.percent=rt.loaded/rt.total*100),ue.onProgress(rt)});var Ne=new FormData;ue.data&&Object.keys(ue.data).forEach(function(at){var rt=ue.data[at];if(Array.isArray(rt)){rt.forEach(function(tt){Ne.append("".concat(at,"[]"),tt)});return}Ne.append(at,rt)}),ue.file instanceof Blob?Ne.append(ue.filename,ue.file,ue.file.name):Ne.append(ue.filename,ue.file),Me.onerror=function(rt){ue.onError(rt)},Me.onload=function(){return Me.status<200||Me.status>=300?ue.onError(y(ue,Me),E(Me)):ue.onSuccess(E(Me),Me)},Me.open(ue.method,ue.action,!0),ue.withCredentials&&"withCredentials"in Me&&(Me.withCredentials=!0);var Ue=ue.headers||{};return Ue["X-Requested-With"]!==null&&Me.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(Ue).forEach(function(at){Ue[at]!==null&&Me.setRequestHeader(at,Ue[at])}),Me.send(Ne),{abort:function(){Me.abort()}}}var x=+new Date,z=0;function ee(){return"rc-upload-".concat(x,"-").concat(++z)}var te=oe(48736),re=function(ue,Me){if(ue&&Me){var Ne=Array.isArray(Me)?Me:Me.split(","),Ue=ue.name||"",at=ue.type||"",rt=at.replace(/\/.*$/,"");return Ne.some(function(tt){var Ve=tt.trim();if(/^\*(\/\*)?$/.test(tt))return!0;if(Ve.charAt(0)==="."){var Dt=Ue.toLowerCase(),Tt=Ve.toLowerCase(),$e=[Tt];return(Tt===".jpg"||Tt===".jpeg")&&($e=[".jpg",".jpeg"]),$e.some(function(rn){return Dt.endsWith(rn)})}return/\/\*$/.test(Ve)?rt===Ve.replace(/\/.*$/,""):at===Ve?!0:/^\w+$/.test(Ve)?((0,te.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ve,"'.Skip for check.")),!0):!1})}return!0};function ie(ue,Me){var Ne=ue.createReader(),Ue=[];function at(){Ne.readEntries(function(rt){var tt=Array.prototype.slice.apply(rt);Ue=Ue.concat(tt);var Ve=!tt.length;Ve?Me(Ue):at()})}at()}var ge=function(Me,Ne,Ue){var at=function rt(tt,Ve){tt&&(tt.path=Ve||"",tt.isFile?tt.file(function(Dt){Ue(Dt)&&(tt.fullPath&&!Dt.webkitRelativePath&&(Object.defineProperties(Dt,{webkitRelativePath:{writable:!0}}),Dt.webkitRelativePath=tt.fullPath.replace(/^\//,""),Object.defineProperties(Dt,{webkitRelativePath:{writable:!1}})),Ne([Dt]))}):tt.isDirectory&&ie(tt,function(Dt){Dt.forEach(function(Tt){rt(Tt,"".concat(Ve).concat(tt.name,"/"))})}))};Me.forEach(function(rt){at(rt.webkitGetAsEntry())})},ce=ge,se=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Be=function(ue){(0,_e.Z)(Ne,ue);var Me=(0,Ae.Z)(Ne);function Ne(){var Ue;(0,ye.Z)(this,Ne);for(var at=arguments.length,rt=new Array(at),tt=0;tt<at;tt++)rt[tt]=arguments[tt];return Ue=Me.call.apply(Me,[this].concat(rt)),Ue.state={uid:ee()},Ue.reqs={},Ue.fileInput=void 0,Ue._isMounted=void 0,Ue.onChange=function(Ve){var Dt=Ue.props,Tt=Dt.accept,$e=Dt.directory,rn=Ve.target.files,an=(0,Se.Z)(rn).filter(function(pn){return!$e||re(pn,Tt)});Ue.uploadFiles(an),Ue.reset()},Ue.onClick=function(Ve){var Dt=Ue.fileInput;if(Dt){var Tt=Ve.target,$e=Ue.props.onClick;if(Tt&&Tt.tagName==="BUTTON"){var rn=Dt.parentNode;rn.focus(),Tt.blur()}Dt.click(),$e&&$e(Ve)}},Ue.onKeyDown=function(Ve){Ve.key==="Enter"&&Ue.onClick(Ve)},Ue.onFileDrop=function(Ve){var Dt=Ue.props.multiple;if(Ve.preventDefault(),Ve.type!=="dragover")if(Ue.props.directory)ce(Array.prototype.slice.call(Ve.dataTransfer.items),Ue.uploadFiles,function($e){return re($e,Ue.props.accept)});else{var Tt=(0,Se.Z)(Ve.dataTransfer.files).filter(function($e){return re($e,Ue.props.accept)});Dt===!1&&(Tt=Tt.slice(0,1)),Ue.uploadFiles(Tt)}},Ue.uploadFiles=function(Ve){var Dt=(0,Se.Z)(Ve),Tt=Dt.map(function($e){return $e.uid=ee(),Ue.processFile($e,Dt)});Promise.all(Tt).then(function($e){var rn=Ue.props.onBatchStart;rn==null||rn($e.map(function(an){var pn=an.origin,Bn=an.parsedFile;return{file:pn,parsedFile:Bn}})),$e.filter(function(an){return an.parsedFile!==null}).forEach(function(an){Ue.post(an)})})},Ue.processFile=function(){var Ve=(0,ae.Z)((0,ke.Z)().mark(function Dt(Tt,$e){var rn,an,pn,Bn,ot,vt,It,pt,Yt;return(0,ke.Z)().wrap(function(kt){for(;;)switch(kt.prev=kt.next){case 0:if(rn=Ue.props.beforeUpload,an=Tt,!rn){kt.next=14;break}return kt.prev=3,kt.next=6,rn(Tt,$e);case 6:an=kt.sent,kt.next=12;break;case 9:kt.prev=9,kt.t0=kt.catch(3),an=!1;case 12:if(an!==!1){kt.next=14;break}return kt.abrupt("return",{origin:Tt,parsedFile:null,action:null,data:null});case 14:if(pn=Ue.props.action,typeof pn!="function"){kt.next=21;break}return kt.next=18,pn(Tt);case 18:Bn=kt.sent,kt.next=22;break;case 21:Bn=pn;case 22:if(ot=Ue.props.data,typeof ot!="function"){kt.next=29;break}return kt.next=26,ot(Tt);case 26:vt=kt.sent,kt.next=30;break;case 29:vt=ot;case 30:return It=((0,Re.Z)(an)==="object"||typeof an=="string")&&an?an:Tt,It instanceof File?pt=It:pt=new File([It],Tt.name,{type:Tt.type}),Yt=pt,Yt.uid=Tt.uid,kt.abrupt("return",{origin:Tt,data:vt,parsedFile:Yt,action:Bn});case 35:case"end":return kt.stop()}},Dt,null,[[3,9]])}));return function(Dt,Tt){return Ve.apply(this,arguments)}}(),Ue.saveFileInput=function(Ve){Ue.fileInput=Ve},Ue}return(0,le.Z)(Ne,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(at){var rt=this,tt=at.data,Ve=at.origin,Dt=at.action,Tt=at.parsedFile;if(this._isMounted){var $e=this.props,rn=$e.onStart,an=$e.customRequest,pn=$e.name,Bn=$e.headers,ot=$e.withCredentials,vt=$e.method,It=Ve.uid,pt=an||b,Yt={action:Dt,filename:pn,data:tt,file:Tt,headers:Bn,withCredentials:ot,method:vt||"post",onProgress:function(kt){var Pn=rt.props.onProgress;Pn==null||Pn(kt,Tt)},onSuccess:function(kt,Pn){var fn=rt.props.onSuccess;fn==null||fn(kt,Tt,Pn),delete rt.reqs[It]},onError:function(kt,Pn){var fn=rt.props.onError;fn==null||fn(kt,Pn,Tt),delete rt.reqs[It]}};rn(Ve),this.reqs[It]=pt(Yt)}}},{key:"reset",value:function(){this.setState({uid:ee()})}},{key:"abort",value:function(at){var rt=this.reqs;if(at){var tt=at.uid?at.uid:at;rt[tt]&&rt[tt].abort&&rt[tt].abort(),delete rt[tt]}else Object.keys(rt).forEach(function(Ve){rt[Ve]&&rt[Ve].abort&&rt[Ve].abort(),delete rt[Ve]})}},{key:"render",value:function(){var at=this.props,rt=at.component,tt=at.prefixCls,Ve=at.className,Dt=at.disabled,Tt=at.id,$e=at.style,rn=at.multiple,an=at.accept,pn=at.capture,Bn=at.children,ot=at.directory,vt=at.openFileDialogOnClick,It=at.onMouseEnter,pt=at.onMouseLeave,Yt=(0,Ze.Z)(at,se),Qt=Ie()((0,De.Z)((0,De.Z)((0,De.Z)({},tt,!0),"".concat(tt,"-disabled"),Dt),Ve,Ve)),kt=ot?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Pn=Dt?{}:{onClick:vt?this.onClick:function(){},onKeyDown:vt?this.onKeyDown:function(){},onMouseEnter:It,onMouseLeave:pt,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return ne.createElement(rt,(0,me.Z)({},Pn,{className:Qt,role:"button",style:$e}),ne.createElement("input",(0,me.Z)({},(0,a.Z)(Yt,{aria:!0,data:!0}),{id:Tt,disabled:Dt,type:"file",ref:this.saveFileInput,onClick:function(oa){return oa.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:an},kt,{multiple:rn,onChange:this.onChange},pn!=null?{capture:pn}:{})),Bn)}}]),Ne}(ne.Component),Ge=Be;function St(){}var Mt=function(ue){(0,_e.Z)(Ne,ue);var Me=(0,Ae.Z)(Ne);function Ne(){var Ue;(0,ye.Z)(this,Ne);for(var at=arguments.length,rt=new Array(at),tt=0;tt<at;tt++)rt[tt]=arguments[tt];return Ue=Me.call.apply(Me,[this].concat(rt)),Ue.uploader=void 0,Ue.saveUploader=function(Ve){Ue.uploader=Ve},Ue}return(0,le.Z)(Ne,[{key:"abort",value:function(at){this.uploader.abort(at)}},{key:"render",value:function(){return ne.createElement(Ge,(0,me.Z)({},this.props,{ref:this.saveUploader}))}}]),Ne}(ne.Component);Mt.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:St,onError:St,onSuccess:St,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var Wt=Mt,he=Wt,xe=oe(18929),Ee=oe(4676),Qe=oe(36355),it=oe(1684),He=oe(9763),Xe=oe(31724),Ye={icon:function(Me,Ne){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Ne}},{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:Me}}]}},name:"file",theme:"twotone"},Pt=Ye,fe=oe(7657),Ce=function(Me,Ne){return ne.createElement(fe.Z,(0,me.Z)({},Me,{ref:Ne,icon:Pt}))},Je=ne.forwardRef(Ce),ut=Je,Ke=oe(58617),et={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=et,nt=function(Me,Ne){return ne.createElement(fe.Z,(0,me.Z)({},Me,{ref:Ne,icon:de}))},ct=ne.forwardRef(nt),Nt=ct,Ft={icon:function(Me,Ne){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:Me}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Ne}},{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:Ne}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Ne}},{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:Me}}]}},name:"picture",theme:"twotone"},Fe=Ft,Le=function(Me,Ne){return ne.createElement(fe.Z,(0,me.Z)({},Me,{ref:Ne,icon:Fe}))},Pe=ne.forwardRef(Le),Te=Pe,je=oe(77900),lt=oe(56762),Bt=oe(62892),bt=oe(92343),zt=oe(3113);function At(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 Et(ue,Me){const Ne=(0,Se.Z)(Me),Ue=Ne.findIndex(at=>{let{uid:rt}=at;return rt===ue.uid});return Ue===-1?Ne.push(ue):Ne[Ue]=ue,Ne}function yt(ue,Me){const Ne=ue.uid!==void 0?"uid":"name";return Me.filter(Ue=>Ue[Ne]===ue[Ne])[0]}function wt(ue,Me){const Ne=ue.uid!==void 0?"uid":"name",Ue=Me.filter(at=>at[Ne]!==ue[Ne]);return Ue.length===Me.length?null:Ue}const Ht=function(){const Me=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),Ue=Me[Me.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Ue)||[""])[0]},mn=ue=>ue.indexOf("image/")===0,qt=ue=>{if(ue.type&&!ue.thumbUrl)return mn(ue.type);const Me=ue.thumbUrl||ue.url||"",Ne=Ht(Me);return/^data:image\//.test(Me)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Ne)?!0:!(/^data:/.test(Me)||Ne)},Ut=200;function ve(ue){return new Promise(Me=>{if(!ue.type||!mn(ue.type)){Me("");return}const Ne=document.createElement("canvas");Ne.width=Ut,Ne.height=Ut,Ne.style.cssText=`position: fixed; left: 0; top: 0; width: ${Ut}px; height: ${Ut}px; z-index: 9999; display: none;`,document.body.appendChild(Ne);const Ue=Ne.getContext("2d"),at=new Image;if(at.onload=()=>{const{width:rt,height:tt}=at;let Ve=Ut,Dt=Ut,Tt=0,$e=0;rt>tt?(Dt=tt*(Ut/rt),$e=-(Dt-Ve)/2):(Ve=rt*(Ut/tt),Tt=-(Ve-Dt)/2),Ue.drawImage(at,Tt,$e,Ve,Dt);const rn=Ne.toDataURL();document.body.removeChild(Ne),window.URL.revokeObjectURL(at.src),Me(rn)},at.crossOrigin="anonymous",ue.type.startsWith("image/svg+xml")){const rt=new FileReader;rt.onload=()=>{rt.result&&(at.src=rt.result)},rt.readAsDataURL(ue)}else if(ue.type.startsWith("image/gif")){const rt=new FileReader;rt.onload=()=>{rt.result&&Me(rt.result)},rt.readAsDataURL(ue)}else at.src=window.URL.createObjectURL(ue)})}var Oe=oe(26227),qe=oe(41464),mt=oe(15277),ht=oe(93948),Rt=oe(6848),$t=ne.forwardRef((ue,Me)=>{let{prefixCls:Ne,className:Ue,style:at,locale:rt,listType:tt,file:Ve,items:Dt,progress:Tt,iconRender:$e,actionIconRender:rn,itemRender:an,isImgUrl:pn,showPreviewIcon:Bn,showRemoveIcon:ot,showDownloadIcon:vt,previewIcon:It,removeIcon:pt,downloadIcon:Yt,onPreview:Qt,onDownload:kt,onClose:Pn}=ue;var fn,oa;const{status:Qn}=Ve,[qn,ca]=ne.useState(Qn);ne.useEffect(()=>{Qn!=="removed"&&ca(Qn)},[Qn]);const[Sa,Pa]=ne.useState(!1);ne.useEffect(()=>{const An=setTimeout(()=>{Pa(!0)},300);return()=>{clearTimeout(An)}},[]);const da=$e(Ve);let Kn=ne.createElement("div",{className:`${Ne}-icon`},da);if(tt==="picture"||tt==="picture-card"||tt==="picture-circle")if(qn==="uploading"||!Ve.thumbUrl&&!Ve.url){const An=Ie()(`${Ne}-list-item-thumbnail`,{[`${Ne}-list-item-file`]:qn!=="uploading"});Kn=ne.createElement("div",{className:An},da)}else{const An=pn!=null&&pn(Ve)?ne.createElement("img",{src:Ve.thumbUrl||Ve.url,alt:Ve.name,className:`${Ne}-list-item-image`,crossOrigin:Ve.crossOrigin}):da,Gn=Ie()(`${Ne}-list-item-thumbnail`,{[`${Ne}-list-item-file`]:pn&&!pn(Ve)});Kn=ne.createElement("a",{className:Gn,onClick:la=>Qt(Ve,la),href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer"},An)}const $n=Ie()(`${Ne}-list-item`,`${Ne}-list-item-${qn}`),ta=typeof Ve.linkProps=="string"?JSON.parse(Ve.linkProps):Ve.linkProps,ia=ot?rn((typeof pt=="function"?pt(Ve):pt)||ne.createElement(Oe.Z,null),()=>Pn(Ve),Ne,rt.removeFile):null,ga=vt&&qn==="done"?rn((typeof Yt=="function"?Yt(Ve):Yt)||ne.createElement(qe.Z,null),()=>kt(Ve),Ne,rt.downloadFile):null,aa=tt!=="picture-card"&&tt!=="picture-circle"&&ne.createElement("span",{key:"download-delete",className:Ie()(`${Ne}-list-item-actions`,{picture:tt==="picture"})},ga,ia),ea=Ie()(`${Ne}-list-item-name`),fa=Ve.url?[ne.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ea,title:Ve.name},ta,{href:Ve.url,onClick:An=>Qt(Ve,An)}),Ve.name),aa]:[ne.createElement("span",{key:"view",className:ea,onClick:An=>Qt(Ve,An),title:Ve.name},Ve.name),aa],Xt={pointerEvents:"none",opacity:.5},On=Bn?ne.createElement("a",{href:Ve.url||Ve.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ve.url||Ve.thumbUrl?void 0:Xt,onClick:An=>Qt(Ve,An),title:rt.previewFile},typeof It=="function"?It(Ve):It||ne.createElement(mt.Z,null)):null,Mn=(tt==="picture-card"||tt==="picture-circle")&&qn!=="uploading"&&ne.createElement("span",{className:`${Ne}-list-item-actions`},On,qn==="done"&&ga,ia),{getPrefixCls:Un}=ne.useContext(Qe.E_),Xn=Un(),ra=ne.createElement("div",{className:$n},Kn,fa,Mn,Sa&&ne.createElement(je.default,{motionName:`${Xn}-fade`,visible:qn==="uploading",motionDeadline:2e3},An=>{let{className:Gn}=An;const la="percent"in Ve?ne.createElement(ht.Z,Object.assign({},Tt,{type:"line",percent:Ve.percent,"aria-label":Ve["aria-label"],"aria-labelledby":Ve["aria-labelledby"]})):null;return ne.createElement("div",{className:Ie()(`${Ne}-list-item-progress`,Gn)},la)})),va=Ve.response&&typeof Ve.response=="string"?Ve.response:((fn=Ve.error)===null||fn===void 0?void 0:fn.statusText)||((oa=Ve.error)===null||oa===void 0?void 0:oa.message)||rt.uploadError,pa=qn==="error"?ne.createElement(Rt.Z,{title:va,getPopupContainer:An=>An.parentNode},ra):ra;return ne.createElement("div",{className:Ie()(`${Ne}-list-item-container`,Ue),style:at,ref:Me},an?an(pa,Ve,Dt,{download:kt.bind(null,Ve),preview:Qt.bind(null,Ve),remove:Pn.bind(null,Ve)}):pa)});const _t=(ue,Me)=>{const{listType:Ne="text",previewFile:Ue=ve,onPreview:at,onDownload:rt,onRemove:tt,locale:Ve,iconRender:Dt,isImageUrl:Tt=qt,prefixCls:$e,items:rn=[],showPreviewIcon:an=!0,showRemoveIcon:pn=!0,showDownloadIcon:Bn=!1,removeIcon:ot,previewIcon:vt,downloadIcon:It,progress:pt={size:[-1,2],showInfo:!1},appendAction:Yt,appendActionVisible:Qt=!0,itemRender:kt,disabled:Pn}=ue,fn=(0,lt.Z)(),[oa,Qn]=ne.useState(!1);ne.useEffect(()=>{Ne!=="picture"&&Ne!=="picture-card"&&Ne!=="picture-circle"||(rn||[]).forEach(Xt=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Xt.originFileObj instanceof File||Xt.originFileObj instanceof Blob)||Xt.thumbUrl!==void 0||(Xt.thumbUrl="",Ue&&Ue(Xt.originFileObj).then(On=>{Xt.thumbUrl=On||"",fn()}))})},[Ne,rn,Ue]),ne.useEffect(()=>{Qn(!0)},[]);const qn=(Xt,On)=>{if(at)return On==null||On.preventDefault(),at(Xt)},ca=Xt=>{typeof rt=="function"?rt(Xt):Xt.url&&window.open(Xt.url)},Sa=Xt=>{tt==null||tt(Xt)},Pa=Xt=>{if(Dt)return Dt(Xt,Ne);const On=Xt.status==="uploading",Mn=Tt&&Tt(Xt)?ne.createElement(Te,null):ne.createElement(ut,null);let Un=On?ne.createElement(Ke.Z,null):ne.createElement(Nt,null);return Ne==="picture"?Un=On?ne.createElement(Ke.Z,null):Mn:(Ne==="picture-card"||Ne==="picture-circle")&&(Un=On?Ve.uploading:Mn),Un},da=(Xt,On,Mn,Un)=>{const Xn={type:"text",size:"small",title:Un,onClick:ra=>{On(),(0,bt.l$)(Xt)&&Xt.props.onClick&&Xt.props.onClick(ra)},className:`${Mn}-list-item-action`,disabled:Pn};if((0,bt.l$)(Xt)){const ra=(0,bt.Tm)(Xt,Object.assign(Object.assign({},Xt.props),{onClick:()=>{}}));return ne.createElement(zt.ZP,Object.assign({},Xn,{icon:ra}))}return ne.createElement(zt.ZP,Object.assign({},Xn),ne.createElement("span",null,Xt))};ne.useImperativeHandle(Me,()=>({handlePreview:qn,handleDownload:ca}));const{getPrefixCls:Kn}=ne.useContext(Qe.E_),$n=Kn("upload",$e),ta=Kn(),ia=Ie()(`${$n}-list`,`${$n}-list-${Ne}`),ga=(0,Se.Z)(rn.map(Xt=>({key:Xt.uid,file:Xt})));let ea={motionDeadline:2e3,motionName:`${$n}-${Ne==="picture-card"||Ne==="picture-circle"?"animate-inline":"animate"}`,keys:ga,motionAppear:oa};const fa=ne.useMemo(()=>{const Xt=Object.assign({},(0,Bt.Z)(ta));return delete Xt.onAppearEnd,delete Xt.onEnterEnd,delete Xt.onLeaveEnd,Xt},[ta]);return Ne!=="picture-card"&&Ne!=="picture-circle"&&(ea=Object.assign(Object.assign({},fa),ea)),ne.createElement("div",{className:ia},ne.createElement(je.CSSMotionList,Object.assign({},ea,{component:!1}),Xt=>{let{key:On,file:Mn,className:Un,style:Xn}=Xt;return ne.createElement($t,{key:On,locale:Ve,prefixCls:$n,className:Un,style:Xn,file:Mn,items:rn,progress:pt,listType:Ne,isImgUrl:Tt,showPreviewIcon:an,showRemoveIcon:pn,showDownloadIcon:Bn,removeIcon:ot,previewIcon:vt,downloadIcon:It,iconRender:Pa,actionIconRender:da,itemRender:kt,onPreview:qn,onDownload:ca,onClose:Sa})}),Yt&&ne.createElement(je.default,Object.assign({},ea,{visible:Qt,forceRender:!0}),Xt=>{let{className:On,style:Mn}=Xt;return(0,bt.Tm)(Yt,Un=>({className:Ie()(Un.className,On),style:Object.assign(Object.assign(Object.assign({},Mn),{pointerEvents:On?"none":void 0}),Un.style)}))}))};var Kt=ne.forwardRef(_t),nn=oe(17313),hn=oe(8378),vn=oe(83116),Fn=oe(37613),on=ue=>{const{componentCls:Me,iconCls:Ne}=ue;return{[`${Me}-wrapper`]:{[`${Me}-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}`,[Me]:{padding:`${ue.padding}px 0`},[`${Me}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Me}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Me}-disabled):hover`]:{borderColor:ue.colorPrimaryHover},[`p${Me}-drag-icon`]:{marginBottom:ue.margin,[Ne]:{color:ue.colorPrimary,fontSize:ue.uploadThumbnailSize}},[`p${Me}-text`]:{margin:`0 0 ${ue.marginXXS}px`,color:ue.colorTextHeading,fontSize:ue.fontSizeLG},[`p${Me}-hint`]:{color:ue.colorTextDescription,fontSize:ue.fontSize},[`&${Me}-disabled`]:{cursor:"not-allowed",[`p${Me}-drag-icon ${Ne},
|
|
p${Me}-text,
|
|
p${Me}-hint
|
|
`]:{color:ue.colorTextDisabled}}}}}},Cn=ue=>{const{componentCls:Me,antCls:Ne,iconCls:Ue,fontSize:at,lineHeight:rt}=ue,tt=`${Me}-list-item`,Ve=`${tt}-actions`,Dt=`${tt}-action`,Tt=Math.round(at*rt);return{[`${Me}-wrapper`]:{[`${Me}-list`]:Object.assign(Object.assign({},(0,nn.dF)()),{lineHeight:ue.lineHeight,[tt]:{position:"relative",height:ue.lineHeight*at,marginTop:ue.marginXS,fontSize:at,display:"flex",alignItems:"center",transition:`background-color ${ue.motionDurationSlow}`,"&:hover":{backgroundColor:ue.controlItemBgHover},[`${tt}-name`]:Object.assign(Object.assign({},nn.vS),{padding:`0 ${ue.paddingXS}px`,lineHeight:rt,flex:"auto",transition:`all ${ue.motionDurationSlow}`}),[Ve]:{[Dt]:{opacity:0},[`${Dt}${Ne}-btn-sm`]:{height:Tt,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
${Dt}:focus-visible,
|
|
&.picture ${Dt}
|
|
`]:{opacity:1},[Ue]:{color:ue.actionsColor,transition:`all ${ue.motionDurationSlow}`},[`&:hover ${Ue}`]:{color:ue.colorText}},[`${Me}-icon ${Ue}`]:{color:ue.colorTextDescription,fontSize:at},[`${tt}-progress`]:{position:"absolute",bottom:-ue.uploadProgressOffset,width:"100%",paddingInlineStart:at+ue.paddingXS,fontSize:at,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${tt}:hover ${Dt}`]:{opacity:1,color:ue.colorText},[`${tt}-error`]:{color:ue.colorError,[`${tt}-name, ${Me}-icon ${Ue}`]:{color:ue.colorError},[Ve]:{[`${Ue}, ${Ue}:hover`]:{color:ue.colorError},[Dt]:{opacity:1}}},[`${Me}-list-item-container`]:{transition:`opacity ${ue.motionDurationSlow}, height ${ue.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},xn=oe(36237),cn=oe(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:Me}=ue,Ne=`${Me}-animate-inline`;return[{[`${Me}-wrapper`]:{[`${Ne}-appear, ${Ne}-enter, ${Ne}-leave`]:{animationDuration:ue.motionDurationSlow,animationTimingFunction:ue.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Ne}-appear, ${Ne}-enter`]:{animationName:Nn},[`${Ne}-leave`]:{animationName:Yn}}},{[`${Me}-wrapper`]:(0,cn.J$)(ue)},Nn,Yn]},na=oe(30071),Jn=oe(64993);const be=ue=>{const{componentCls:Me,iconCls:Ne,uploadThumbnailSize:Ue,uploadProgressOffset:at}=ue,rt=`${Me}-list`,tt=`${rt}-item`;return{[`${Me}-wrapper`]:{[`
|
|
${rt}${rt}-picture,
|
|
${rt}${rt}-picture-card,
|
|
${rt}${rt}-picture-circle
|
|
`]:{[tt]:{position:"relative",height:Ue+ue.lineWidth*2+ue.paddingXS*2,padding:ue.paddingXS,border:`${ue.lineWidth}px ${ue.lineType} ${ue.colorBorder}`,borderRadius:ue.borderRadiusLG,"&:hover":{background:"transparent"},[`${tt}-thumbnail`]:Object.assign(Object.assign({},nn.vS),{width:Ue,height:Ue,lineHeight:`${Ue+ue.paddingSM}px`,textAlign:"center",flex:"none",[Ne]:{fontSize:ue.fontSizeHeading2,color:ue.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${tt}-progress`]:{bottom:at,width:`calc(100% - ${ue.paddingSM*2}px)`,marginTop:0,paddingInlineStart:Ue+ue.paddingXS}},[`${tt}-error`]:{borderColor:ue.colorError,[`${tt}-thumbnail ${Ne}`]:{[`svg path[fill='${na.blue[0]}']`]:{fill:ue.colorErrorBg},[`svg path[fill='${na.blue.primary}']`]:{fill:ue.colorError}}},[`${tt}-uploading`]:{borderStyle:"dashed",[`${tt}-name`]:{marginBottom:at}}},[`${rt}${rt}-picture-circle ${tt}`]:{[`&, &::before, ${tt}-thumbnail`]:{borderRadius:"50%"}}}}},we=ue=>{const{componentCls:Me,iconCls:Ne,fontSizeLG:Ue,colorTextLightSolid:at}=ue,rt=`${Me}-list`,tt=`${rt}-item`,Ve=ue.uploadPicCardSize;return{[`
|
|
${Me}-wrapper${Me}-picture-card-wrapper,
|
|
${Me}-wrapper${Me}-picture-circle-wrapper
|
|
`]:Object.assign(Object.assign({},(0,nn.dF)()),{display:"inline-block",width:"100%",[`${Me}${Me}-select`]:{width:Ve,height:Ve,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}`,[`> ${Me}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Me}-disabled):hover`]:{borderColor:ue.colorPrimary}},[`${rt}${rt}-picture-card, ${rt}${rt}-picture-circle`]:{[`${rt}-item-container`]:{display:"inline-block",width:Ve,height:Ve,marginBlock:`0 ${ue.marginXS}px`,marginInline:`0 ${ue.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[tt]:{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:'" "'}},[`${tt}:hover`]:{[`&::before, ${tt}-actions`]:{opacity:1}},[`${tt}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ue.motionDurationSlow}`,[`${Ne}-eye, ${Ne}-download, ${Ne}-delete`]:{zIndex:10,width:Ue,margin:`0 ${ue.marginXXS}px`,fontSize:Ue,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${tt}-actions, ${tt}-actions:hover`]:{[`${Ne}-eye, ${Ne}-download, ${Ne}-delete`]:{color:new Jn.C(at).setAlpha(.65).toRgbString(),"&:hover":{color:at}}},[`${tt}-thumbnail, ${tt}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${tt}-name`]:{display:"none",textAlign:"center"},[`${tt}-file + ${tt}-name`]:{position:"absolute",bottom:ue.margin,display:"block",width:`calc(100% - ${ue.paddingXS*2}px)`},[`${tt}-uploading`]:{[`&${tt}`]:{backgroundColor:ue.colorFillAlter},[`&::before, ${Ne}-eye, ${Ne}-download, ${Ne}-delete`]:{display:"none"}},[`${tt}-progress`]:{bottom:ue.marginXL,width:`calc(100% - ${ue.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Me}-wrapper${Me}-picture-circle-wrapper`]:{[`${Me}${Me}-select`]:{borderRadius:"50%"}}}};var st=ue=>{const{componentCls:Me}=ue;return{[`${Me}-rtl`]:{direction:"rtl"}}};const Gt=ue=>{const{componentCls:Me,colorTextDisabled:Ne}=ue;return{[`${Me}-wrapper`]:Object.assign(Object.assign({},(0,nn.Wf)(ue)),{[Me]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Me}-select`]:{display:"inline-block"},[`${Me}-disabled`]:{color:Ne,cursor:"not-allowed"}})}};var Ct=(0,vn.Z)("Upload",ue=>{const{fontSizeHeading3:Me,fontSize:Ne,lineHeight:Ue,lineWidth:at,controlHeightLG:rt}=ue,tt=Math.round(Ne*Ue),Ve=(0,Fn.TS)(ue,{uploadThumbnailSize:Me*2,uploadProgressOffset:tt/2+at,uploadPicCardSize:rt*2.55});return[Gt(Ve),on(Ve),be(Ve),we(Ve),Cn(Ve),Wn(Ve),st(Ve),(0,hn.Z)(Ve)]},ue=>({actionsColor:ue.colorTextDescription})),ln=function(ue,Me,Ne,Ue){function at(rt){return rt instanceof Ne?rt:new Ne(function(tt){tt(rt)})}return new(Ne||(Ne=Promise))(function(rt,tt){function Ve($e){try{Tt(Ue.next($e))}catch(rn){tt(rn)}}function Dt($e){try{Tt(Ue.throw($e))}catch(rn){tt(rn)}}function Tt($e){$e.done?rt($e.value):at($e.value).then(Ve,Dt)}Tt((Ue=Ue.apply(ue,Me||[])).next())})};const Zt=`__LIST_IGNORE_${Date.now()}__`,en=(ue,Me)=>{const{fileList:Ne,defaultFileList:Ue,onRemove:at,showUploadList:rt=!0,listType:tt="text",onPreview:Ve,onDownload:Dt,onChange:Tt,onDrop:$e,previewFile:rn,disabled:an,locale:pn,iconRender:Bn,isImageUrl:ot,progress:vt,prefixCls:It,className:pt,type:Yt="select",children:Qt,style:kt,itemRender:Pn,maxCount:fn,data:oa={},multiple:Qn=!1,action:qn="",accept:ca="",supportServerRender:Sa=!0,rootClassName:Pa}=ue,da=ne.useContext(it.Z),Kn=an!=null?an:da,[$n,ta]=(0,xe.Z)(Ue||[],{value:Ne,postState:Vt=>Vt!=null?Vt:[]}),[ia,ga]=ne.useState("drop"),aa=ne.useRef(null);ne.useMemo(()=>{const Vt=Date.now();(Ne||[]).forEach((sn,bn)=>{!sn.uid&&!Object.isFrozen(sn)&&(sn.uid=`__AUTO__${Vt}_${bn}__`)})},[Ne]);const ea=(Vt,sn,bn)=>{let gn=(0,Se.Z)(sn),Sn=!1;fn===1?gn=gn.slice(-1):fn&&(Sn=gn.length>fn,gn=gn.slice(0,fn)),(0,Ee.flushSync)(()=>{ta(gn)});const Hn={file:Vt,fileList:gn};bn&&(Hn.event=bn),(!Sn||gn.some(wn=>wn.uid===Vt.uid))&&(0,Ee.flushSync)(()=>{Tt==null||Tt(Hn)})},fa=(Vt,sn)=>ln(void 0,void 0,void 0,function*(){const{beforeUpload:bn,transformFile:gn}=ue;let Sn=Vt;if(bn){const Hn=yield bn(Vt,sn);if(Hn===!1)return!1;if(delete Vt[Zt],Hn===Zt)return Object.defineProperty(Vt,Zt,{value:!0,configurable:!0}),!1;typeof Hn=="object"&&Hn&&(Sn=Hn)}return gn&&(Sn=yield gn(Sn)),Sn}),Xt=Vt=>{const sn=Vt.filter(Sn=>!Sn.file[Zt]);if(!sn.length)return;const bn=sn.map(Sn=>At(Sn.file));let gn=(0,Se.Z)($n);bn.forEach(Sn=>{gn=Et(Sn,gn)}),bn.forEach((Sn,Hn)=>{let wn=Sn;if(sn[Hn].parsedFile)Sn.status="uploading";else{const{originFileObj:ha}=Sn;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=Sn.uid,wn=ua}ea(wn,gn)})},On=(Vt,sn,bn)=>{try{typeof Vt=="string"&&(Vt=JSON.parse(Vt))}catch(Hn){}if(!yt(sn,$n))return;const gn=At(sn);gn.status="done",gn.percent=100,gn.response=Vt,gn.xhr=bn;const Sn=Et(gn,$n);ea(gn,Sn)},Mn=(Vt,sn)=>{if(!yt(sn,$n))return;const bn=At(sn);bn.status="uploading",bn.percent=Vt.percent;const gn=Et(bn,$n);ea(bn,gn,Vt)},Un=(Vt,sn,bn)=>{if(!yt(bn,$n))return;const gn=At(bn);gn.error=Vt,gn.response=sn,gn.status="error";const Sn=Et(gn,$n);ea(gn,Sn)},Xn=Vt=>{let sn;Promise.resolve(typeof at=="function"?at(Vt):at).then(bn=>{var gn;if(bn===!1)return;const Sn=wt(Vt,$n);Sn&&(sn=Object.assign(Object.assign({},Vt),{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")}),(gn=aa.current)===null||gn===void 0||gn.abort(sn),ea(sn,Sn))})},ra=Vt=>{ga(Vt.type),Vt.type==="drop"&&($e==null||$e(Vt))};ne.useImperativeHandle(Me,()=>({onBatchStart:Xt,onSuccess:On,onProgress:Mn,onError:Un,fileList:$n,upload:aa.current}));const{getPrefixCls:va,direction:pa,upload:An}=ne.useContext(Qe.E_),Gn=va("upload",It),la=Object.assign(Object.assign({onBatchStart:Xt,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,(!Qt||Kn)&&delete la.id;const[ya,La]=Ct(Gn),[ba]=(0,He.Z)("Upload",Xe.Z.Upload),{showRemoveIcon:Ot,showPreviewIcon:ft,showDownloadIcon:Lt,removeIcon:xt,previewIcon:un,downloadIcon:zn}=typeof rt=="boolean"?{}:rt,Rn=(Vt,sn)=>rt?ne.createElement(Kt,{prefixCls:Gn,listType:tt,items:$n,previewFile:rn,onPreview:Ve,onDownload:Dt,onRemove:Xn,showRemoveIcon:!Kn&&Ot,showPreviewIcon:ft,showDownloadIcon:Lt,removeIcon:xt,previewIcon:un,downloadIcon:zn,iconRender:Bn,locale:Object.assign(Object.assign({},ba),pn),isImageUrl:ot,progress:vt,appendAction:Vt,appendActionVisible:sn,itemRender:Pn,disabled:Kn}):Vt,Dn=Ie()(`${Gn}-wrapper`,pt,Pa,La,An==null?void 0:An.className,{[`${Gn}-rtl`]:pa==="rtl",[`${Gn}-picture-card-wrapper`]:tt==="picture-card",[`${Gn}-picture-circle-wrapper`]:tt==="picture-circle"}),jn=Object.assign(Object.assign({},An==null?void 0:An.style),kt);if(Yt==="drag"){const Vt=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(ne.createElement("span",{className:Dn},ne.createElement("div",{className:Vt,style:jn,onDrop:ra,onDragOver:ra,onDragLeave:ra},ne.createElement(he,Object.assign({},la,{ref:aa,className:`${Gn}-btn`}),ne.createElement("div",{className:`${Gn}-drag-container`},Qt))),Rn()))}const kn=Ie()(Gn,`${Gn}-select`,{[`${Gn}-disabled`]:Kn}),Vn=(Vt=>ne.createElement("div",{className:kn,style:Vt},ne.createElement(he,Object.assign({},la,{ref:aa}))))(Qt?void 0:{display:"none"});return ya(tt==="picture-card"||tt==="picture-circle"?ne.createElement("span",{className:Dn},Rn(Vn,!!Qt)):ne.createElement("span",{className:Dn},Vn,Rn()))};var _n=ne.forwardRef(en),gt=function(ue,Me){var Ne={};for(var Ue in ue)Object.prototype.hasOwnProperty.call(ue,Ue)&&Me.indexOf(Ue)<0&&(Ne[Ue]=ue[Ue]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,Ue=Object.getOwnPropertySymbols(ue);at<Ue.length;at++)Me.indexOf(Ue[at])<0&&Object.prototype.propertyIsEnumerable.call(ue,Ue[at])&&(Ne[Ue[at]]=ue[Ue[at]]);return Ne},Tn=ne.forwardRef((ue,Me)=>{var{style:Ne,height:Ue}=ue,at=gt(ue,["style","height"]);return ne.createElement(_n,Object.assign({ref:Me},at,{type:"drag",style:Object.assign(Object.assign({},Ne),{height:Ue})}))});const Zn=_n;Zn.Dragger=Tn,Zn.LIST_IGNORE=Zt;var En=Zn}}]);
|